7535 references to Dictionary
AnalyzerRunner (5)
AnalyzerRunnerHelper.cs (1)
14var properties = new Dictionary<string, string>
DiagnosticAnalyzerRunner.cs (3)
103var projectPerformance = new Dictionary<ProjectId, double>(); 104var documentPerformance = new Dictionary<DocumentId, DocumentAnalyzerPerformance>(); 414var telemetryInfoDictionary = new Dictionary<DiagnosticAnalyzer, AnalyzerTelemetryInfo>();
Program.cs (1)
147var diagnosticStatistics = new Dictionary<string, (string description, DiagnosticSeverity severity, int count)>();
aspire (16)
Commands\ExecCommand.cs (1)
146var env = new Dictionary<string, string>();
Commands\InitCommand.cs (1)
217var serviceDefaultsActions = new Dictionary<string, string>
Commands\PublishCommandBase.cs (3)
123var env = new Dictionary<string, string>(); 275var steps = new Dictionary<string, string>(); 347var steps = new Dictionary<string, StepInfo>();
Commands\RunCommand.cs (2)
130var env = new Dictionary<string, string>(); 454private readonly Dictionary<string, RpcResourceState> _resourceStates = new();
Configuration\ConfigurationService.cs (1)
117var allConfig = new Dictionary<string, string>();
DotNet\DotNetCliRunner.cs (5)
261finalEnv = new Dictionary<string, string>(env ?? new Dictionary<string, string>()) 273finalEnv = new Dictionary<string, string>(env ?? new Dictionary<string, string>()); 289finalEnv = new Dictionary<string, string>(env ?? new Dictionary<string, string>()); 381env: new Dictionary<string, string> 733var env = new Dictionary<string, string>
Projects\ProjectUpdater.cs (3)
646var mappings = new Dictionary<string, List<string>>(); 787public Dictionary<string, List<string>> OriginalMappings { get; set; } = new(); 788public Dictionary<string, List<string>> ProposedMappings { get; set; } = new();
Aspire.Azure.AI.OpenAI.Tests (2)
AspireAzureAIOpenAIExtensionsTests.cs (2)
205builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 231builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireAzureEFPostgreSqlExtensionsTests.cs (2)
317builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 347builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Cli.Tests (39)
Caching\DiskCacheTests.cs (1)
16var values = new Dictionary<string,string?>();
Commands\ConfigCommandTests.cs (1)
436return Task.FromResult(new Dictionary<string, string>
Commands\PublishCommandPromptingIntegrationTests.cs (1)
772private readonly Dictionary<string, TaskCompletionSource> _promptCompletionSources = new();
Commands\RunCommandTests.cs (7)
815env: new Dictionary<string, string>(), 867env: new Dictionary<string, string>(), 923env: new Dictionary<string, string>(), 974env: new Dictionary<string, string>(), 1026env: new Dictionary<string, string>(), 1078env: new Dictionary<string, string>(), 1131env: new Dictionary<string, string>(),
DotNet\DotNetCliRunnerTests.cs (14)
70env: new Dictionary<string, string>(), 129configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 203env: new Dictionary<string, string>(), 253env: new Dictionary<string, string>(), 298var existingEnv = new Dictionary<string, string> 397env: new Dictionary<string, string>(), 447env: new Dictionary<string, string>(), 492var userEnv = new Dictionary<string, string> 919env: new Dictionary<string, string>(), 976env: new Dictionary<string, string>(), 1030env: new Dictionary<string, string>(), 1093env: new Dictionary<string, string>(), 1151env: new Dictionary<string, string>(), 1208env: new Dictionary<string, string>(),
DotNetSdkInstallerTests.cs (1)
387private readonly Dictionary<string, bool> _features = new();
Hosting\CliOrphanDetectorTests.cs (6)
36.AddInMemoryCollection(new Dictionary<string, string?> { { "ASPIRE_CLI_PID", "1111" } }) 58.AddInMemoryCollection(new Dictionary<string, string?> 79.AddInMemoryCollection(new Dictionary<string, string?> 102.AddInMemoryCollection(new Dictionary<string, string?> 146.AddInMemoryCollection(new Dictionary<string, string?> 172.AddInMemoryCollection(new Dictionary<string, string?> { { "ASPIRE_CLI_PID", "1111" } })
Packaging\PackagingServiceTests.cs (5)
26private readonly Dictionary<string, bool> _features = new(); 89.AddInMemoryCollection(new Dictionary<string, string?> 134.AddInMemoryCollection(new Dictionary<string, string?> 167.AddInMemoryCollection(new Dictionary<string, string?> 196.AddInMemoryCollection(new Dictionary<string, string?>
Projects\ProjectLocatorTests.cs (2)
689return Task.FromResult(new Dictionary<string, string>()); 706private readonly Dictionary<string, bool> _features = new();
Utils\CliTestHelper.cs (1)
41var configurationValues = new Dictionary<string, string?>();
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (31)
Authentication\FrontendCompositeAuthenticationHandler.cs (2)
27items: new Dictionary<string, string?>(), 28parameters: new Dictionary<string, object?> { [AspirePolicyEvaluator.SuppressChallengeKey] = true }));
Components\Controls\Chart\ChartBase.cs (4)
63private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 64private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>(); 127var traces = new Dictionary<int, ChartTrace> 514_newCache = new Dictionary<SpanKey, OtlpSpan>();
Components\Controls\Chart\PlotlyChart.razor.cs (1)
117var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>();
Components\Controls\ResourceDetails.razor.cs (1)
161_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Controls\SpanDetails.razor.cs (1)
167_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Controls\StructuredLogDetails.razor.cs (1)
109_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
45_elementRefs = new();
Components\Layout\AspirePageContentLayout.razor.cs (1)
52public Dictionary<string, Func<Task>> DialogCloseListeners { get; } = new();
Components\Pages\ComponentTelemetryContext.cs (1)
113return new Dictionary<string, AspireTelemetryProperty>
DashboardWebApplication.cs (1)
545var initialValues = new Dictionary<string, string?>();
GenAIMessagesContext.DictionaryStringJsonElement.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
Model\Assistant\AssistantChatViewModel.cs (1)
973properties: new Dictionary<string, AspireTelemetryProperty>
Model\Assistant\PromptContext.cs (1)
11private readonly Dictionary<string, string> _promptValueMap = new Dictionary<string, string>();
Model\DashboardCommandExecutor.cs (1)
44new Dictionary<string, AspireTelemetryProperty>
Model\ResourceMenuItems.cs (1)
144AdditionalAttributes = new Dictionary<string, object>
Model\TraceHelpers.cs (2)
19var spanLookup = new Dictionary<OtlpSpan, List<OtlpSpan>>(); 67var resourceFirstTimes = new Dictionary<OtlpResource, OrderedResource>();
Otlp\Model\OtlpInstrument.cs (1)
40public Dictionary<string, List<string?>> KnownAttributeValues { get; } = new();
Otlp\Model\OtlpResource.cs (2)
33private readonly Dictionary<string, OtlpScope> _meters = new(); 34private readonly Dictionary<OtlpInstrumentKey, OtlpInstrument> _instruments = new();
Otlp\Storage\TelemetryRepository.cs (5)
43private readonly Dictionary<string, OtlpScope> _logScopes = new(); 47private readonly Dictionary<ResourceKey, int> _resourceUnviewedErrorLogs = new(); 50private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 980var updatedTraces = new Dictionary<ReadOnlyMemory<byte>, OtlpTrace>(); 1342var allKnownAttributes = new Dictionary<string, List<string?>>();
Telemetry\DashboardTelemetryService.cs (1)
25_defaultProperties = new Dictionary<string, AspireTelemetryProperty>
Telemetry\TelemetryErrorRecorder.cs (1)
38new Dictionary<string, AspireTelemetryProperty>
Aspire.Dashboard.Components.Tests (3)
Pages\ResourcesTests.cs (3)
237new Dictionary<string, bool> { { "Type1", true }, { "Type2", false } }, 239new Dictionary<string, bool> { { "Running", true }, { "Finished", false } }, 241new Dictionary<string, bool> { { "Healthy", true }, { "Unhealthy", false } },
Aspire.Dashboard.Tests (33)
Integration\IntegrationTestHelpers.cs (1)
59var initialData = new Dictionary<string, string?>
Integration\MockOpenIdAuthority.cs (1)
95Claims = new Dictionary<string, object>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
27Configuration = new Dictionary<string, string?>
Integration\StartupTests.cs (2)
166.AddInMemoryCollection(new Dictionary<string, string?> { [dashboardFileConfigDirectoryNameKey] = fileConfigDirectory.FullName }) 201.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName })
Model\ApplicationsSelectHelpersTests.cs (1)
173var apps = new Dictionary<string, OtlpResource>();
Model\ResourceGraphMapperTests.cs (4)
24var resources = new Dictionary<string, ResourceViewModel> 45var resources = new Dictionary<string, ResourceViewModel> 66var resources = new Dictionary<string, ResourceViewModel> 84var resources = new Dictionary<string, ResourceViewModel>
Model\ResourceSourceViewModelTests.cs (1)
18var properties = new Dictionary<string, ResourcePropertyViewModel>();
Model\ResourceStateViewModelTests.cs (1)
72var propertiesDictionary = new Dictionary<string, ResourcePropertyViewModel>();
ResourceOutgoingPeerResolverTests.cs (21)
30var resources = new Dictionary<string, ResourceViewModel> 43var resources = new Dictionary<string, ResourceViewModel> 56var resources = new Dictionary<string, ResourceViewModel> 69var resources = new Dictionary<string, ResourceViewModel> 88var resources = new Dictionary<string, ResourceViewModel> 102var resources = new Dictionary<string, ResourceViewModel> 116var resources = new Dictionary<string, ResourceViewModel> 195var resources = new Dictionary<string, ResourceViewModel> 209var resources = new Dictionary<string, ResourceViewModel> 233var resources = new Dictionary<string, ResourceViewModel> 248var resources = new Dictionary<string, ResourceViewModel> 262var resources = new Dictionary<string, ResourceViewModel> 277var resources = new Dictionary<string, ResourceViewModel> 290var resources = new Dictionary<string, ResourceViewModel> 304var resources = new Dictionary<string, ResourceViewModel> 319var resources = new Dictionary<string, ResourceViewModel> 331var properties = new Dictionary<string, ResourcePropertyViewModel> 349var properties = new Dictionary<string, ResourcePropertyViewModel> 369var resources = new Dictionary<string, ResourceViewModel> 384var resources = new Dictionary<string, ResourceViewModel> 401var resources = new Dictionary<string, ResourceViewModel>
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
167EnvVars = new Dictionary<string, string>();
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (34)
ApplicationModel\EnvironmentCallbackContext.cs (1)
35public Dictionary<string, object> EnvironmentVariables { get; } = environmentVariables ?? new();
ApplicationModel\ProjectResource.cs (1)
18internal Dictionary<EndpointAnnotation, string> KestrelEndpointAnnotationHosts { get; } = new();
ApplicationModel\ResourceExtensions.cs (2)
190var env = new Dictionary<string, string>(); 344var config = new Dictionary<string, object>();
ApplicationModel\ResourceNotificationService.cs (1)
540var versionsSeen = new Dictionary<string, long>();
Dashboard\DashboardEventHandlers.cs (1)
669var dashboardResourceTasks = new Dictionary<string, Task>();
Dcp\DcpExecutor.cs (1)
273var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>();
Dcp\DcpHost.cs (1)
272var loggerCache = new Dictionary<int, ILogger>();
Dcp\Model\ExecutableReplicaSet.cs (2)
28Annotations = new Dictionary<string, string>(); 38Annotations = new Dictionary<string, string>();
Dcp\Model\ModelCommon.cs (3)
44Metadata.Annotations = new Dictionary<string, string>(); 54Metadata.Annotations = new Dictionary<string, string>(); 64Metadata.Annotations = new Dictionary<string, string>();
Dcp\Model\Schema.cs (1)
8private readonly Dictionary<Type, (string Kind, string Resource)> _byType = new();
Dcp\Process\ProcessSpec.cs (1)
10public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
38remappedUrls ??= new();
DistributedApplicationBuilder.cs (7)
206_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 240_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 333new Dictionary<string, string?> 347new Dictionary<string, string?> 358new Dictionary<string, string?> 509var switchMappings = new Dictionary<string, string>() 527var switchMappings = new Dictionary<string, string>()
Health\ResourceHealthCheckService.cs (1)
16private readonly Dictionary<string, ResourceMonitorState> _resourceMonitoringStates = new();
LaunchSettingsSerializerContext.DictionaryStringLaunchProfile.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.LaunchProfile>(),
LaunchSettingsSerializerContext.DictionaryStringString.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Orchestrator\ParameterProcessor.cs (1)
83var referencedParameters = new Dictionary<string, ParameterResource>();
Pipelines\DistributedApplicationPipeline.cs (2)
216var graph = new Dictionary<string, List<string>>(); 217var inDegree = new Dictionary<string, int>();
Publishing\ManifestPublishingContext.cs (1)
505var env = new Dictionary<string, (object, string)>();
Publishing\PodmanContainerRuntime.cs (1)
60var environmentVariables = new Dictionary<string, string>();
Publishing\ResourceContainerImageBuilder.cs (2)
370var resolvedBuildArguments = new Dictionary<string, string?>(); 377var resolvedBuildSecrets = new Dictionary<string, string?>();
src\Shared\SecretsStore.cs (1)
107new Dictionary<string, string?>
Aspire.Hosting.Azure (6)
AzureEnvironmentResource.cs (1)
330var resourcesByRegistry = new Dictionary<IContainerRegistry, List<IResource>>();
AzurePublishingContext.cs (2)
152var moduleMap = new Dictionary<AzureBicepResource, ModuleImport>(); 292var outputs = new Dictionary<string, BicepOutputReference>();
AzureResourcePreparer.cs (2)
105var globalRoleAssignments = new Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>>(); 245var result = new Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>>();
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
10public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppExtensions.cs (1)
168var managedStorages = new Dictionary<string, ContainerAppManagedEnvironmentStorage>();
ContainerAppContext.cs (1)
156var endpointIndexMap = new Dictionary<string, int>();
Aspire.Hosting.Azure.Functions (2)
LaunchSettingsSerializerContext.DictionaryStringLaunchProfile.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.LaunchProfile>(),
LaunchSettingsSerializerContext.DictionaryStringString.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
127Assert.Equivalent(new Dictionary<string, object>() { { "ACCEPT_EULA", "Y" } }, env);
Aspire.Hosting.Azure.Tests (55)
AzureContainerAppsTests.cs (1)
1726Profiles = new Dictionary<string, LaunchProfile>
AzureCosmosDBEmulatorFunctionalTests.cs (2)
179hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 227hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AzureCosmosDBExtensionsTests.cs (3)
151var target = new Dictionary<string, object>(); 339var secrets = new Dictionary<string, string> 443var secrets = new Dictionary<string, string>
AzureDeployerTests.cs (15)
122var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 169var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 217var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 274var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 335string name when name.StartsWith("aca-env") => new Dictionary<string, object> 343string name when name.StartsWith("aas-env") => new Dictionary<string, object> 546var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 599var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 757string name when name.StartsWith("env") => new Dictionary<string, object> 765string name when name.StartsWith("funcstorage") => new Dictionary<string, object> 772string name when name.StartsWith("hoststorage") => new Dictionary<string, object> 779string name when name.StartsWith("funcapp-identity") => new Dictionary<string, object> 783string name when name.StartsWith("funcapp") => new Dictionary<string, object> 914var armClientProvider = new TestArmClientProvider(new Dictionary<string, object> 973Profiles = new Dictionary<string, LaunchProfile>
AzureEnvironmentResourceTests.cs (1)
247public IDictionary<string, object?> Parameters { get; } = new Dictionary<string, object?>();
AzureEventHubsExtensionsTests.cs (1)
560var target = new Dictionary<string, object>();
AzureFunctionsTests.cs (7)
427Profiles = new Dictionary<string, LaunchProfile> 444Profiles = new Dictionary<string, LaunchProfile> 461Profiles = new Dictionary<string, LaunchProfile> 478Profiles = new Dictionary<string, LaunchProfile> 494Profiles = new Dictionary<string, LaunchProfile> 511Profiles = new Dictionary<string, LaunchProfile> 528Profiles = new Dictionary<string, LaunchProfile>
AzureServiceBusExtensionsTests.cs (1)
660var target = new Dictionary<string, object>();
BicepUtilitiesTests.cs (2)
440configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 467configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?>
PublicApiTests\FunctionsPublicApiTests.cs (1)
102Profiles = new Dictionary<string, LaunchProfile>
ResourceWithAzureFunctionsConfigTests.cs (21)
110var target = new Dictionary<string, object>(); 128var target = new Dictionary<string, object>(); 149var target = new Dictionary<string, object>(); 166var target = new Dictionary<string, object>(); 183var target = new Dictionary<string, object>(); 199var target = new Dictionary<string, object>(); 215var target = new Dictionary<string, object>(); 231var target = new Dictionary<string, object>(); 248var target = new Dictionary<string, object>(); 273var target = new Dictionary<string, object>(); 301var target = new Dictionary<string, object>(); 323var target = new Dictionary<string, object>(); 343var target = new Dictionary<string, object>(); 363var target = new Dictionary<string, object>(); 383var target = new Dictionary<string, object>(); 400var target = new Dictionary<string, object>(); 419var target = new Dictionary<string, object>(); 439var target = new Dictionary<string, object>(); 458var target = new Dictionary<string, object>(); 479var target = new Dictionary<string, object>(); 501var target = new Dictionary<string, object>();
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
163var env = new Dictionary<string, string>();
Aspire.Hosting.Docker.Tests (3)
DockerComposePublisherTests.cs (3)
546public TestProjectWithLaunchSettings() => Profiles = new() 553EnvironmentVariables = new() 563EnvironmentVariables = new()
Aspire.Hosting.Kubernetes (7)
Extensions\ResourceExtensions.cs (1)
395Capacity = new()
KubernetesPublishingContext.cs (5)
23private readonly Dictionary<string, Dictionary<string, object>> _helmValues = new() 25[HelmExtensions.ParametersKey] = new Dictionary<string, object>(), 26[HelmExtensions.SecretsKey] = new Dictionary<string, object>(), 27[HelmExtensions.ConfigKey] = new Dictionary<string, object>(), 129var paramValues = new Dictionary<string, string>();
KubernetesResource.cs (1)
114Labels = new()
Aspire.Hosting.MySql.Tests (6)
MySqlFunctionalTests.cs (6)
88hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 164hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 233hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 336hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 422hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 492hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
111var data = new Dictionary<string, object>
Aspire.Hosting.PostgreSQL.Tests (5)
PostgresFunctionalTests.cs (5)
117hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 239hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 301hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 396hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 482hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
42hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 127hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 172hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Redis.Tests (7)
RedisFunctionalTests.cs (7)
104hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 210hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 246hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 293hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 328hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 377hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 407hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
186hb1.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 271hb2.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Testing (4)
DistributedApplicationFactory.cs (2)
201var additionalConfig = new Dictionary<string, string?>(); 266var additionalConfig = new Dictionary<string, string?>();
LaunchSettingsSerializerContext.DictionaryStringLaunchProfile.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.LaunchProfile>(),
LaunchSettingsSerializerContext.DictionaryStringString.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Aspire.Hosting.Tests (75)
AddParameterTests.cs (9)
48appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 77appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 129appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 193appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 263appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 511appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 534appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 558appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 584appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardLifecycleHookTests.cs (2)
163configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 176var envVars = new Dictionary<string, object>();
Dashboard\DashboardOptionsTests.cs (1)
22builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardResourceTests.cs (7)
29builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 94builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 209builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 250builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 286builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 323builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 369builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\DcpExecutorTests.cs (23)
126configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1292configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1327configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1363configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1403configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1434configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1465configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1495configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1524configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1556var configDict = new Dictionary<string, string?> 1602var configDict = new Dictionary<string, string?> 1641var configDict = new Dictionary<string, string?> 1680var configDict = new Dictionary<string, string?> 1716var configDict = new Dictionary<string, string?> 1758var configDict = new Dictionary<string, string?> 1800var configDict = new Dictionary<string, string?> 1842var configDict = new Dictionary<string, string?> 1879var configDict = new Dictionary<string, string?> 1916var configDict = new Dictionary<string, string?> 1959var configDict = new Dictionary<string, string?> 2005builder.AddInMemoryCollection(new Dictionary<string, string?> 2068EnvironmentVariables = new Dictionary<string, string> 2078EnvironmentVariables = new Dictionary<string, string>
Devcontainers\SshRemoteOptionsTests.cs (4)
16.AddInMemoryCollection(new Dictionary<string, string?> 38.AddInMemoryCollection(new Dictionary<string, string?> 59.AddInMemoryCollection(new Dictionary<string, string?> 80.AddInMemoryCollection(new Dictionary<string, string?>
ExpressionResolverTests.cs (1)
220Expressions = new()
InteractionServiceTests.cs (2)
897UpdateInputCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string> 930UpdateInputCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string>
KestrelConfigTests.cs (1)
384Profiles = new()
Orchestrator\ApplicationOrchestratorTests.cs (2)
356new ChildResourceWithConnectionString("child", new Dictionary<string, string> { { "Namespace", "ns" } }, parentResource.Resource) 359new ChildResourceWithConnectionString("grand-child", new Dictionary<string, string> { { "Database", "db" } }, childResource.Resource)
Orchestrator\ParameterProcessorTests.cs (2)
805.AddInMemoryCollection(new Dictionary<string, string?> { [$"Parameters:{name}"] = value }) 826.AddInMemoryCollection(new Dictionary<string, string?> { ["Parameters:generatedParam"] = "existingValue" })
ProjectResourceTests.cs (10)
759protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new(); 773Profiles = new() 781EnvironmentVariables = new() 794Profiles = new() 802EnvironmentVariables = new() 815Profiles = new() 823EnvironmentVariables = new() 836Profiles = new() 857Profiles = new() 878Profiles = new()
PublishAsDockerfileTests.cs (1)
376Profiles = new()
Utils\EnvironmentVariableEvaluator.cs (1)
20var environmentVariables = new Dictionary<string, string>();
Utils\Grpc\TestServerCallContext.cs (2)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>()); 25_userState = new Dictionary<object, object>();
VersionChecking\VersionCheckServiceTests.cs (6)
49configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 76configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 111configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 151configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 195configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 223configurationManager.AddInMemoryCollection(new Dictionary<string, string?>
WithUrlsTests.cs (1)
864Profiles = new Dictionary<string, LaunchProfile>
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
34hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 97hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 148hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Yarp.Tests (10)
YarpConfigGeneratorTests.cs (10)
60new Dictionary<string, string> 64new Dictionary<string, string> 68new Dictionary<string, string> 72new Dictionary<string, string> 78Metadata = new Dictionary<string, string> { { "routeA-K1", "routeA-V1" }, { "routeA-K2", "routeA-V2" } } 128Metadata = new Dictionary<string, string> { { "destA-K1", "destA-V1" }, { "destA-K2", "destA-V2" } }, 193Metadata = new Dictionary<string, string> { { "cluster1-K1", "cluster1-V1" }, { "cluster1-K2", "cluster1-V2" } } 229var variables = new Dictionary<string, object>(); 248var variables = new Dictionary<string, object>(); 281.WithMetadata(new Dictionary<string, string>() { { "custom-metadata", "some-value" } });
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (2)
360builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 387builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (2)
309builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 335builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireEFPostgreSqlExtensionsTests.cs (2)
317builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 347builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Oracle.EntityFrameworkCore.Tests (2)
AspireOracleEFCoreDatabaseExtensionsTests.cs (2)
342builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 368builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
146resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } }, 154resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 159resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } }, 172resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }), 174resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 181resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } }, 187resourceEndpoints: new() { 196resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 201resourceEndpoints: new() { 215resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } }, 222resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }, 228resourceEndpoints: new() { { "api", ["/alive", "/health"] } }, 235resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 241resourceEndpoints: new() {
Infrastructure\DistributedApplicationExtensions.cs (1)
58var renamedVolumes = new Dictionary<string, string>();
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
AspireEFMySqlExtensionsTests.cs (2)
308builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 336builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
167EnvVars = new Dictionary<string, string>();
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
AuthSamples.FunctionalTests (4)
CookiesTests.cs (1)
85await Client.SendAsync(form, new Dictionary<string, string>()
CustomPolicyProviderTests.cs (1)
127return await client.SendAsync(form, new Dictionary<string, string>()
DynamicSchemeTests.cs (1)
86return await Client.SendAsync(form, new Dictionary<string, string>()
PathSchemeSelectionTests.cs (1)
111await Client.SendAsync(form, new Dictionary<string, string>()
AzureFunctionsEndToEnd.Functions (1)
GeneratedFunctionExecutor.g.cs (1)
17private readonly Dictionary<string, Type> types = new Dictionary<string, Type>()
BasicWebSite (1)
ValueProviders\CustomValueProviderFactory.cs (1)
19private static readonly Dictionary<string, Func<ValueProviderFactoryContext, StringValues>> Values = new()
blazor-devserver (1)
Server\Program.cs (1)
34var inMemoryConfiguration = new Dictionary<string, string?>
BuildActionTelemetryTable (1)
CodeActionDescriptions.cs (1)
12public static ImmutableDictionary<string, string> CodeActionDescriptionMap { get; } = new Dictionary<string, string>()
BuildBoss (2)
SolutionCheckerUtil.cs (2)
53var solutionMap = new Dictionary<ProjectKey, ProjectData>(); 81map = new Dictionary<ProjectKey, SolutionProjectData>();
BuildValidator (5)
LocalReferenceResolver.cs (3)
26private readonly Dictionary<Guid, AssemblyInfo> _mvidMap = new(); 32private readonly Dictionary<string, List<string>> _nameToLocationsMap = new(); 65var nameToLocationsMap = new Dictionary<string, List<string>>();
PEReaderExtensions.cs (1)
23_namedExportRva = new Dictionary<string, int>();
Program.cs (1)
183var map = new Dictionary<Guid, AssemblyInfo>();
ConfigurationSchemaGenerator (3)
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (2)
27private readonly Dictionary<TypeRef, bool> _seenTransitiveTypes = new(); 32private readonly Dictionary<MethodsToGen_CoreBindingHelper, HashSet<TypeSpec>> _typesForGen = new();
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
134private readonly Dictionary<ComplexTypeSpec, TypedInterceptorInvocationInfo.Builder> _invocationInfoBuilderCache = new();
ConfigurationSchemaGenerator.Tests (2)
VariousTypes.cs (2)
83public IDictionary<string, TimeSpan> PropertyOfStringToTimeSpan { get; } = new Dictionary<string, TimeSpan>(); 93public IDictionary<string, DefaultSettings> PropertyOfStringToDefaultSettings { get; } = new Dictionary<string, DefaultSettings>();
containerize (3)
ContainerizeCommand.cs (3)
260Dictionary<string, string> _labels = parseResult.GetValue(LabelsOption) ?? new Dictionary<string, string>(); 262Dictionary<string, string> _envVars = parseResult.GetValue(EnvVarsOption) ?? new Dictionary<string, string>(); 310Dictionary<string, string> parsed = new();
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
52(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
DemoConsole (1)
DesignSurfaceExtended.cs (1)
216initializer.InitializeNewComponent(new Dictionary<object, object>());
dotnet (43)
CliSchema.cs (4)
77var telemetryProperties = new Dictionary<string, string> { { "command", commandString } }; 119var dict = new Dictionary<string, ArgumentDetails>(); 133var dict = new Dictionary<string, OptionDetails>(); 147var dict = new Dictionary<string, CommandDetails>();
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
41TelemetryEventEntry.TrackEvent(CommandResolveEvent, new Dictionary<string, string>()
CommandFactory\CommandResolution\MSBuildProject.cs (1)
79return new Dictionary<string, string>
Commands\New\BuiltInTemplatePackageProvider.cs (2)
75var versionFileInfo = new Dictionary<string, SemanticVersion>(); 90IDictionary<string, (string path, SemanticVersion version)> bestVersionsByBucket = new Dictionary<string, (string path, SemanticVersion version)>();
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (2)
198Dictionary<string, string?> properties = new() 206Dictionary<string, double> measurements = new()
Commands\New\MSBuildEvaluation\MultiTargetEvaluationResult.cs (1)
15internal IReadOnlyDictionary<string, MSBuildProject?> EvaluatedProjects { get; private set; } = new Dictionary<string, MSBuildProject?>();
Commands\New\NewCommandParser.cs (1)
166var preferences = new Dictionary<string, string>
Commands\Run\LaunchSettings\LaunchSettingsManager.cs (1)
19_providers = new Dictionary<string, ILaunchSettingsProvider>
Commands\Run\RunTelemetry.cs (1)
46var properties = new Dictionary<string, string?>
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
163var modulesWithMissingOptions = new Dictionary<bool, List<(string[], string[])>>(); 169var missingOptionsToModules = new Dictionary<string, List<string>>();
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
198if (!(globalProperties ??= new Dictionary<string, string>()).ContainsKey(property.Key))
Commands\Test\MTP\Terminal\TestProgressState.cs (1)
11private readonly Dictionary<string, TestNodeInfoEntry> _testUidToResults = new();
Commands\Test\MTP\TestApplication.cs (1)
30private readonly Dictionary<NamedPipeServer, HandshakeMessage> _handshakes = new();
Commands\Test\MTP\TestApplicationHandler.cs (1)
15private readonly Dictionary<string, (int TestSessionStartCount, int TestSessionEndCount)> _testSessionEventCountPerSessionUid = new();
Commands\Test\VSTest\VSTestArgumentConverter.cs (2)
22= new Dictionary<string, string>() 41= new Dictionary<string, string>()
Commands\Test\VSTest\VSTestForwardingApp.cs (1)
48return new()
Commands\Tool\Install\LocalToolsResolverCacheExtensions.cs (1)
36new Dictionary<RestoredCommandIdentifier, ToolCommand>
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (2)
99Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => new Dictionary<string, string>() 136Reporter.WriteLine(JsonSerializer.Serialize(new Dictionary<string, Dictionary<string, string>>()
MsbuildProject.cs (1)
217new Dictionary<string, string>
Program.cs (2)
288TelemetryClient.TrackEvent("command/finish", properties: new Dictionary<string, string> 292measurements: new Dictionary<string, double>());
ReleasePropertyProjectLocator.cs (1)
291return new(new Dictionary<string, string>() { [MSBuildPropertyNames.TARGET_FRAMEWORK] = _options.FrameworkOption });
ShellShim\ShellShimRepository.cs (1)
118var files = new Dictionary<string, string>();
Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
30new Dictionary<string, string>
Telemetry\AllowListToSendFirstArgument.cs (1)
36new Dictionary<string, string>
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
34new Dictionary<string, string>
Telemetry\PersistenceChannel\SnapshottingDictionary.cs (1)
12: base(new Dictionary<TKey, TValue>())
Telemetry\Telemetry.cs (1)
183eventProperties ??= new Dictionary<string, string>();
Telemetry\TelemetryCommonProperties.cs (1)
62return new Dictionary<string, string>
Telemetry\TelemetryFilter.cs (5)
49Dictionary<string, string> properties = new() 77new Dictionary<string, string> { { "exeName", installerSuccessReport.ExeName } } 84new Dictionary<string, string> 154new Dictionary<string, string>() 174new Dictionary<string, string>()
Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
35new Dictionary<string, string>
dotnet.Tests (83)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (3)
96new Dictionary<RestoredCommandIdentifier, ToolCommand> 129new Dictionary<RestoredCommandIdentifier, ToolCommand> 194new Dictionary<RestoredCommandIdentifier, ToolCommand>
CommandTests\MSBuild\GivenForwardingApp.cs (1)
67var startInfo = new ForwardingApp("<apppath>", new string[0], environmentVariables: new Dictionary<string, string>
CommandTests\MSBuild\GivenMSBuildLogger.cs (6)
20Properties = new Dictionary<string, string> 38Properties = new Dictionary<string, string> 60Properties = new Dictionary<string, string> 82Properties = new Dictionary<string, string> 105Properties = new Dictionary<string, string> 117fakeTelemetry.LogEntry.Properties.Should().BeEquivalentTo(new Dictionary<string, string>
CommandTests\New\DotnetAddPostActionTests.cs (5)
162var args = new Dictionary<string, string>() { { "targetFiles", "[\"MyApp.csproj\"]" }, { "referenceType", "project" }, { "reference", "./OldName.csproj" } }; 190var args = new Dictionary<string, string>() { { "targetFiles", "[\"MyApp.csproj\"]" }, { "referenceType", "project" }, { "reference", "./Reference.csproj" } }; 225var args = new Dictionary<string, string>() 259var args = new Dictionary<string, string>() { { "targetFiles", "[\"MyApp.csproj\"]" }, { "referenceType", "package" }, { "reference", "System.Net.Json" } }; 285var args = new Dictionary<string, string>() { { "targetFiles", "MyApp.csproj" }, { "referenceType", "package" }, { "reference", "System.Net.Json" } };
CommandTests\New\DotnetRestorePostActionTests.cs (2)
29var args = new Dictionary<string, string>() { { "files", "[\"MyApp.csproj\"]" } }; 54var args = new Dictionary<string, string>() { { "files", "MyApp.csproj" } };
CommandTests\New\DotnetSlnPostActionTests.cs (10)
71Args = new Dictionary<string, string>() 91Args = new Dictionary<string, string>() 120Args = new Dictionary<string, string>() 140Args = new Dictionary<string, string>() 174Args = new Dictionary<string, string>() 205var args = new Dictionary<string, string>() { { "projectFiles", "[\"MyApp.csproj\"]" } }; 234var args = new Dictionary<string, string>() { { "projectFiles", "MyApp.csproj" } }; 263var args = new Dictionary<string, string>() { 295var args = new Dictionary<string, string>() { 327var args = new Dictionary<string, string>() {
CommandTests\Test\GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs (1)
203var dataCollectionAttributes = new Dictionary<string, string>
CommandTests\Tool\Run\ToolRunCommandTests.cs (1)
89new Dictionary<RestoredCommandIdentifier, ToolCommand>
CommandTests\VSTest\VSTestArgumentConverterTests.cs (1)
107= new Dictionary<string, string>()
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (1)
44installer.SaveInstallStateManifestVersions(sdkFeatureBand, new Dictionary<string, string>()
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (3)
439var rollbackDefContent = JsonSerializer.Serialize(new Dictionary<string, string>() { { "test-manifest-1", "4.0.0" }, { "test-manifest-2", "2.0.0" } }); 481var rollbackDefContent = JsonSerializer.Serialize(new Dictionary<string, string>() { { "test-manifest-1", "4.0.0" }, { "test-manifest-2", "2.0.0" } }); 520var rollbackDefContent = JsonSerializer.Serialize(new Dictionary<string, string>() {
CommandTests\Workload\Install\MockManifestProvider.cs (1)
32public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
CommandTests\Workload\Install\MockPackWorkloadInstaller.cs (1)
245return new();
CommandTests\Workload\List\GivenWorkloadInstallerAndWorkloadsInstalled.cs (3)
60new WorkloadCollection 76new WorkloadCollection 90new WorkloadCollection
CommandTests\Workload\Search\GivenDotnetWorkloadSearch.cs (1)
88Dictionary<string, string> workloadSets = new()
CommandTests\Workload\Update\GivenDotnetWorkloadUpdate.cs (3)
249oldInstallState.Manifests = new Dictionary<string, string>() 311workloadSetContents: new Dictionary<string, string>() { { "8.0.302", workloadSetContents } }) 364Dictionary<string, string> workloadSets = new()
ConfigurerTests\GivenADotnetFirstTimeUseConfigurer.cs (2)
269Dictionary<string, double> measurements = new(); 309Dictionary<string, double> measurements = new();
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (1)
53public Dictionary<string, string> ExtraEnvironmentVariables = new();
ParserTests\CommonOptionsTests.cs (5)
21.BeEquivalentTo(new Dictionary<string, string> { ["A"] = "2" }); 34var expected = new Dictionary<string, string>(); 63.BeEquivalentTo(new Dictionary<string, string> 83.BeEquivalentTo(new Dictionary<string, string> { ["A"] = "" }); 98.BeEquivalentTo(new Dictionary<string, string> { ["A"] = " X Y \t\n\r\u2002" });
TelemetryCommonPropertiesTests.cs (21)
229new object[] { new Dictionary<string, string> { { "CLAUDECODE", "1" } }, "claude" }, 230new object[] { new Dictionary<string, string> { { "CURSOR_EDITOR", "1" } }, "cursor" }, 231new object[] { new Dictionary<string, string> { { "CLAUDECODE", "1" }, { "CURSOR_EDITOR", "1" } }, "claude, cursor" }, 232new object[] { new Dictionary<string, string>(), null }, 236new object[] { new Dictionary<string, string> { { "TF_BUILD", "true" } }, true }, 237new object[] { new Dictionary<string, string> { { "GITHUB_ACTIONS", "true" } }, true }, 238new object[] { new Dictionary<string, string> { { "APPVEYOR", "true"} }, true }, 239new object[] { new Dictionary<string, string> { { "CI", "true"} }, true }, 240new object[] { new Dictionary<string, string> { { "TRAVIS", "true"} }, true }, 241new object[] { new Dictionary<string, string> { { "CIRCLECI", "true"} }, true }, 243new object[] { new Dictionary<string, string> { { "CODEBUILD_BUILD_ID", "hi" }, { "AWS_REGION", "hi" } }, true }, 244new object[] { new Dictionary<string, string> { { "CODEBUILD_BUILD_ID", "hi" } }, false }, 245new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" }, { "BUILD_URL", "hi" } }, true }, 246new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" } }, false }, 247new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" }, { "PROJECT_ID", "hi" } }, true }, 248new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" } }, false }, 250new object[] { new Dictionary<string, string> { { "TEAMCITY_VERSION", "hi" } }, true }, 251new object[] { new Dictionary<string, string> { { "TEAMCITY_VERSION", "" } }, false }, 252new object[] { new Dictionary<string, string> { { "JB_SPACE_API_URL", "hi" } }, true }, 253new object[] { new Dictionary<string, string> { { "JB_SPACE_API_URL", "" } }, false }, 255new object[] { new Dictionary<string, string> { { "SomethingElse", "hi" } }, false },
TelemetryFilterTest.cs (11)
45TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 12345 } })); 58TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>(), globalJsonState)); 71TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 } })); 82TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } })); 110TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 34567 } })); 124TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 } })); 137TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 45678 } })); 154new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } })); 170new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } })); 186new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } })); 202new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } }));
dotnet-format (3)
Analyzers\CodeAnalysisResult.cs (1)
9private readonly Dictionary<Project, List<Diagnostic>> _dictionary = new();
Analyzers\CodeStyleInformationProvider.cs (1)
35var analyzersByLanguage = new Dictionary<string, AnalyzersAndFixers>();
Logging\SimpleConsoleLogger.cs (1)
19private static ImmutableDictionary<LogLevel, ConsoleColor> LogLevelColorMap => new Dictionary<LogLevel, ConsoleColor>
dotnet-format.UnitTests (35)
Analyzers\CodeStyleAnalyzerFormatterTests.cs (1)
47var editorConfig = new Dictionary<string, string>()
Analyzers\FilterDiagnosticsTests.cs (1)
192var analyzersByLanguage = new Dictionary<string, AnalyzersAndFixers>();
Analyzers\ThirdPartyAnalyzerFormatterTests.cs (3)
99var editorConfig = new Dictionary<string, string>() 152var editorConfig = new Dictionary<string, string>() 199var editorConfig = new Dictionary<string, string>()
Formatters\AbstractFormatterTests.cs (1)
267public Dictionary<string, string> XmlReferences { get; } = new Dictionary<string, string>();
Formatters\CharsetFormatterTests.cs (2)
45var editorConfig = new Dictionary<string, string>() 64var editorConfig = new Dictionary<string, string>()
Formatters\EndOfLineFormatterTests.cs (3)
32var editorConfig = new Dictionary<string, string>() 56var editorConfig = new Dictionary<string, string>() 72var editorConfig = new Dictionary<string, string>();
Formatters\FinalNewlineFormatterTests.cs (11)
24var editorConfig = new Dictionary<string, string>() 41var editorConfig = new Dictionary<string, string>() 56var editorConfig = new Dictionary<string, string>() 72var editorConfig = new Dictionary<string, string>() 88var editorConfig = new Dictionary<string, string>() 105var editorConfig = new Dictionary<string, string>() 121var editorConfig = new Dictionary<string, string>() 137var editorConfig = new Dictionary<string, string>() 153var editorConfig = new Dictionary<string, string>() 170var editorConfig = new Dictionary<string, string>() 184var editorConfig = new Dictionary<string, string>()
Formatters\FormattedFilesTests.cs (1)
18private Dictionary<string, string> EditorConfig => new Dictionary<string, string>()
Formatters\OrganizeImportsFormatterTests.cs (5)
37var editorConfig = new Dictionary<string, string>() 68var editorConfig = new Dictionary<string, string>() 100var editorConfig = new Dictionary<string, string>() 132var editorConfig = new Dictionary<string, string>() 154var editorConfig = new Dictionary<string, string>()
Formatters\UnnecessaryImportsFormatterTests.cs (6)
36var editorConfig = new Dictionary<string, string>(); 51var editorConfig = new Dictionary<string, string>(); 72var editorConfig = new Dictionary<string, string>() 101var editorConfig = new Dictionary<string, string>() 130var editorConfig = new Dictionary<string, string>() 154var editorConfig = new Dictionary<string, string>()
Utilities\XmlReferenceResolver.cs (1)
12new Dictionary<string, string>();
dotnet-MsiInstallation.Tests (4)
Framework\VMStateTree.cs (3)
13public Dictionary<SerializedVMAction, (VMActionResult actionResult, VMStateTree resultingState)> Actions { get; set; } = new(); 15public Dictionary<SerializedVMAction, VMActionResult> ReadOnlyActions { get; set; } = new(); 87public Dictionary<string, VMStateTree> VMStates { get; set; } = new Dictionary<string, VMStateTree>();
MsiInstallerTests.cs (1)
324Dictionary<string, List<(string version, string sdkFeatureBand)>> installedManifestVersions = new();
dotnet-new.IntegrationTests (8)
CommonTemplatesTests.cs (3)
59Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() }; 203Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() }; 397Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() };
DotnetClassTemplateTests.cs (4)
50Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() }; 130Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() }; 187IDictionary<string, string> languageToProjectExtMap = new Dictionary<string, string> 193IDictionary<string, string> languageToClassExtMap = new Dictionary<string, string>
TemplateEngineSamplesTest.cs (1)
48Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() };
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
174var metadata = new Dictionary<string, string>(); 489var result = new Dictionary<string, string>();
dotnet-svcutil-lib (189)
AppInsightsTelemetryClient.cs (1)
214var properties = new Dictionary<string, string>();
CmdCredentialsProvider.cs (2)
139private Dictionary<string, X509Certificate> _validatedClientCerts = new Dictionary<string, X509Certificate>(); 219private Dictionary<string, bool> _validatedServerCerts = new Dictionary<string, bool>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
67Dictionary<string, CodeTypeDeclaration> nameTable = new Dictionary<string, CodeTypeDeclaration>();
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
13private Dictionary<string, CodeTypeMember> _nameTable = new Dictionary<string, CodeTypeMember>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
214Dictionary<string, string> methodNames = new Dictionary<string, string>();
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
14private Dictionary<string, string> _namespacesToMatch = new Dictionary<string, string>() { { "System.ServiceModel.XmlSerializerFormatAttribute", "System.Xml.Serialization" }, { "System.Xml.Linq", "System.Xml.Linq" }, { "System.ServiceModel.Duplex", "System.ServiceModel.Extensions" } };
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
27_privateIfaceMethods = new Dictionary<string, PrivateInterfaceMethod>();
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (2)
18private Dictionary<string, Type> _xmlTypes = new Dictionary<string, Type>(); 19private Dictionary<string, Type> _codeDomTypes = new Dictionary<string, Type>();
CodeDomFixup\CodeDomVisitors\PropertyFieldNameScope.cs (1)
13private Dictionary<string, MemberInfo> _nameTable = new Dictionary<string, MemberInfo>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
13private Dictionary<string, CodeTypeDeclaration> _specialIXmlSerializableTypes = new Dictionary<string, CodeTypeDeclaration>();
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (2)
14internal Dictionary<string, CodeTypeDeclaration> AllTypeDecls = new Dictionary<string, CodeTypeDeclaration>(); 15internal Dictionary<string, string> TypeNamespaceMappings = new Dictionary<string, string>();
FrameworkFork\Microsoft.CodeDom\Configuration\CodeDomCompilationConfiguration.cs (1)
38compilerInfo._providerOptions = new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
1826Dictionary<String, String> nstable = new Dictionary<String, String>();
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriter.cs (1)
58_lookupCDataElems = new Dictionary<XmlQualifiedName, int>();
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriterV1.cs (1)
79_lookupCDataElems = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (1)
1210return new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
8223_currentEntities = new Dictionary<IDtdEntityInfo, IDtdEntityInfo>();
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (1)
996Dictionary<string, string> dict = new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
1375_undeclaredNotations = new Dictionary<string, UndeclaredNotation>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (2)
14private Dictionary<XmlQualifiedName, SchemaAttDef> _attdefs = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 23private Dictionary<XmlQualifiedName, XmlQualifiedName> _prohibitedAttributes = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (8)
32private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 33private Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 43private Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>(); 44private Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 47private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 84_generalEntities = new Dictionary<XmlQualifiedName, SchemaEntity>(); 96_parameterEntities = new Dictionary<XmlQualifiedName, SchemaEntity>(); 129_notations = new Dictionary<string, SchemaNotation>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
18private Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (4)
85_freeLocals = new Dictionary<Tuple<Type, string>, Queue<LocalBuilder>>(); 86_argList = new Dictionary<string, ArgBuilder>(); 155private Dictionary<Type, LocalBuilder> _tmpLocals = new Dictionary<Type, LocalBuilder>(); 2657_locals = new Dictionary<string, LocalBuilder>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1183replaceList = new Dictionary<string, MemberInfo>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (4)
19private Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 21internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 23internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>(); 67private static Dictionary<string, Regex> s_regexs = new Dictionary<string, Regex>();
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (2)
399_mapNmsp = new Dictionary<XPathNodeRef, XPathNodeRef>(); 432_idValueMap = new Dictionary<string, XPathNodeRef>();
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (1)
536Dictionary<string, string> dict = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
930Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (6)
52_namespaces = new Dictionary<string, string>(); 277ExportClassDataContractHierarchy(classDataContract.StableName, classDataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object>()); 746dataContract = DataContract.GetDataContract(type).BindGenericParameters(paramContracts, new Dictionary<DataContract, DataContract>()); 937return GetKnownTypeContracts((ClassDataContract)dataContract, new Dictionary<DataContract, object>()); 984dataContract.KnownDataContracts = new DataContractDictionary(); 995DataContractDictionary knownContractDictionary = GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
164private Dictionary<LocalBuilder, string> _localNames = new Dictionary<LocalBuilder, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (8)
816s_typeToBuiltInContract = new Dictionary<Type, DataContract>(); 833s_nameToBuiltInContract = new Dictionary<XmlQualifiedName, DataContract>(); 1024s_namespaces = new Dictionary<string, string>(); 1051s_clrTypeStrings = new Dictionary<string, XmlDictionaryString>(); 2063Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2147knownDataContracts = new DataContractDictionary(); 2175nameToDataContractTable = new DataContractDictionary(); 2193return Equals(other, new Dictionary<DataContractPairKey, object>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (4)
63_contracts = new Dictionary<XmlQualifiedName, DataContract>(); 75_processedContracts = new Dictionary<DataContract, object>(); 352_referencedTypesDictionary = new Dictionary<XmlQualifiedName, object>(); 374_referencedCollectionTypesDictionary = new Dictionary<XmlQualifiedName, object>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (3)
160s_typeToName = new Dictionary<Type, XmlQualifiedName>(); 161s_nameToType = new Dictionary<XmlQualifiedName, Type>(); 275Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (6)
129s_essentialExceptionFields = new Dictionary<string, string>(); 212_knownDataContracts = new Dictionary<XmlQualifiedName, DataContract>(); 269Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 308Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 487Dictionary<string, object> fieldToValueDictionary = new Dictionary<string, object>(); 599Dictionary<string, string> mapDict = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (2)
57s_nsToPrefixTable = new Dictionary<string, string>(); 58s_prefixToNsTable = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (2)
24_objectDictionary = new Dictionary<string, object>(); 42_referencedObjectDictionary = new Dictionary<string, object>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ImportOptions.cs (1)
77_namespaces = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (1)
38_objectDictionary = new Dictionary<object, object>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (4)
188Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 224DataContractDictionary knownDataContracts = new DataContractDictionary(); 243SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary(); 928knownDataContracts = new DataContractDictionary();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
203DataContractDictionary dataContracts = new DataContractDictionary(); 204Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (1)
39_stringDict = new Dictionary<int, XmlDictionaryString>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (1)
188_dictionary = new Dictionary<K, V>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
36_lookup = new Dictionary<string, XmlDictionaryString>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
43_items = new Dictionary<TKey, CacheEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\CryptoHelper.cs (1)
16private static Dictionary<string, Func<object>> s_algorithmDelegateDictionary = new Dictionary<string, Func<object>>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
24_properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
406Dictionary<string, object> properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
33_properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
119Dictionary<string, int> myHeaders = new Dictionary<string, int>(); 122Dictionary<string, int> otherHeaders = new Dictionary<string, int>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
31_endpointPools = new Dictionary<TKey, EndpointConnectionPool>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
15_registry = new Dictionary<string, List<ConnectionPool>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
123_connectionMapping = new Dictionary<TItem, IdlingConnectionSettings>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
19_states = new Dictionary<Key, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (4)
66_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 67_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 87_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 92_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
200Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
205dictionary = new Dictionary<DirectionalAction, TransactionFlowOption>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
198retValue = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
324private static Dictionary<string, int> s_targetNameCounter = new Dictionary<string, int>(); 339private static Dictionary<HttpRequestMessage, string> s_serverCertMap = new Dictionary<HttpRequestMessage, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (2)
48_operationAssertions = new Dictionary<OperationDescription, ICollection<XmlElement>>(); 58_messageAssertions = new Dictionary<MessageDescription, ICollection<XmlElement>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (3)
18private Dictionary<OperationDescription, DataContractFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, DataContractFormatAttribute>(); 39_isNonNillableReferenceTypes = new Dictionary<MessagePartDescription, bool>(); 59_knownTypes = new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (3)
32private readonly Dictionary<OperationDescription, PolicyAssertionCollection> _operationBindingAssertions = new Dictionary<OperationDescription, PolicyAssertionCollection>(); 33private readonly Dictionary<MessageDescription, PolicyAssertionCollection> _messageBindingAssertions = new Dictionary<MessageDescription, PolicyAssertionCollection>(); 34private readonly Dictionary<FaultDescription, PolicyAssertionCollection> _faultBindingAssertions = new Dictionary<FaultDescription, PolicyAssertionCollection>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (2)
45_bodyPartsTable = new Dictionary<WsdlNS.Message, IList<string>>(); 850Dictionary<string, object> prefixesUsed = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (1)
469_usedRetrievers = new Dictionary<MetadataRetriever, MetadataRetriever>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (4)
17private readonly Dictionary<object, object> _state = new Dictionary<object, object>(); 91_operationBindingAssertions = new Dictionary<OperationDescription, PolicyAssertionCollection>(); 92_messageBindingAssertions = new Dictionary<MessageDescription, PolicyAssertionCollection>(); 93_faultBindingAssertions = new Dictionary<FaultDescription, PolicyAssertionCollection>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (2)
18private readonly Dictionary<XmlQualifiedName, ContractDescription> _knownContracts = new Dictionary<XmlQualifiedName, ContractDescription>(); 20private readonly Dictionary<object, object> _state = new Dictionary<object, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
41_parameterAttributes = new Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection>(); 51_parameterTypes = new Dictionary<MessagePartDescription, CodeTypeReference>(); 61_specialPartName = new Dictionary<MessagePartDescription, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (4)
46_generatedTypes = new Dictionary<ContractDescription, ServiceContractGenerationContext>(); 47_generatedOperations = new Dictionary<OperationDescription, OperationContractGenerationContext>(); 48_referencedTypes = new Dictionary<ContractDescription, Type>(); 707_namespaceMappings = new Dictionary<string, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SoapHelper.cs (1)
165versions = new Dictionary<WsdlNS.Binding, EnvelopeVersion>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TransactionFlowAttribute.cs (1)
56dictionary = new Dictionary<DirectionalAction, TransactionFlowOption>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
51_contracts = new Dictionary<Type, ContractDescription>(); 52_messages = new Dictionary<Type, MessageDescriptionItems>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlContractConversionContext.cs (7)
38_wsdlOperations = new Dictionary<OperationDescription, WsdlNS.Operation>(); 39_operationDescriptions = new Dictionary<WsdlNS.Operation, OperationDescription>(); 40_wsdlOperationMessages = new Dictionary<MessageDescription, WsdlNS.OperationMessage>(); 41_messageDescriptions = new Dictionary<WsdlNS.OperationMessage, MessageDescription>(); 42_wsdlOperationFaults = new Dictionary<FaultDescription, WsdlNS.OperationFault>(); 43_faultDescriptions = new Dictionary<WsdlNS.OperationFault, FaultDescription>(); 44_operationBindings = new Dictionary<WsdlNS.Operation, Collection<WsdlNS.OperationBinding>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlEndpointConversionContext.cs (6)
35_wsdlOperationBindings = new Dictionary<OperationDescription, WsdlNS.OperationBinding>(); 36_operationDescriptionBindings = new Dictionary<WsdlNS.OperationBinding, OperationDescription>(); 37_wsdlMessageBindings = new Dictionary<MessageDescription, WsdlNS.MessageBinding>(); 38_messageDescriptionBindings = new Dictionary<WsdlNS.MessageBinding, MessageDescription>(); 39_wsdlFaultBindings = new Dictionary<FaultDescription, WsdlNS.FaultBinding>(); 40_faultDescriptionBindings = new Dictionary<WsdlNS.FaultBinding, FaultDescription>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
29= new Dictionary<ContractDescription, WsdlContractConversionContext>(); 30private Dictionary<BindingDictionaryKey, WsdlEndpointConversionContext> _exportedBindings = new Dictionary<BindingDictionaryKey, WsdlEndpointConversionContext>(); 31private Dictionary<EndpointDictionaryKey, ServiceEndpoint> _exportedEndpoints = new Dictionary<EndpointDictionaryKey, ServiceEndpoint>(); 952private readonly Dictionary<string, string> _lookup = new Dictionary<string, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (13)
23private readonly Dictionary<WsdlNS.NamedItem, WsdlImportException> _importErrors = new Dictionary<WsdlNS.NamedItem, WsdlImportException>(); 26private readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> _importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>(); 27private readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> _importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>(); 28private readonly Dictionary<WsdlNS.Port, ServiceEndpoint> _importedPorts = new Dictionary<WsdlNS.Port, ServiceEndpoint>(); 34private readonly Dictionary<string, XmlElement> _policyDocuments = new Dictionary<string, XmlElement>(); 35private readonly Dictionary<string, string> _warnings = new Dictionary<string, string>(); 1688Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>(); 2206policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>>(); 2207policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>>(); 2287private readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> _embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>(); 2288private readonly Dictionary<string, XmlElement> _externalPolicyDictionary = new Dictionary<string, XmlElement>(); 2289private readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> _policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>(); 2334wsdlPolicyDictionary = new Dictionary<string, XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
568_xmlMappings = new Dictionary<string, XmlMembersMapping>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (4)
23private Dictionary<OperationDescription, XmlSerializerFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, XmlSerializerFormatAttribute>(); 35_partInfoTable = new Dictionary<MessagePartDescription, PartInfo>(); 123Dictionary<XmlMembersMapping, XmlMembersMapping> alreadyExported = new Dictionary<XmlMembersMapping, XmlMembersMapping>(); 145_operationGenerator.GenerateOperation(context, ref style, xmlSerializerFormatAttribute.IsEncoded, new WrappedBodyTypeGenerator(context), new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
39_operations = new Dictionary<string, ProxyOperationRuntime>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
39_operationMap = new Dictionary<object, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderT.cs (1)
81private static Dictionary<Type, TypedHeaderManager> s_cache = new Dictionary<Type, TypedHeaderManager>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (2)
21_actionParts = new Dictionary<string, MessagePartSpecification>(); 187_readOnlyNormalizedActionParts = new Dictionary<string, MessagePartSpecification>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
124_scopedSupportingTokenAuthenticatorSpecification = new Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>>(); 800_mergedSupportingTokenAuthenticatorsMap = new Dictionary<string, MergedSupportingTokenAuthenticatorSpecification>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (2)
26_scopedCertificates = new Dictionary<Uri, X509Certificate2>(); 38_scopedCertificates = new Dictionary<Uri, X509Certificate2>();
ImportModule.cs (3)
376private readonly Dictionary<Binding, ContractDescription> _bindingContractMapping = new Dictionary<Binding, ContractDescription>(); 377private readonly Dictionary<Binding, XmlQualifiedName> _bindingWsdlMapping = new Dictionary<Binding, XmlQualifiedName>(); 378private readonly Dictionary<XmlQualifiedName, WsdlNS.Port> _bindingPortMapping = new Dictionary<XmlQualifiedName, WsdlNS.Port>();
Metadata\ServiceDescriptorFactory.cs (1)
23private Dictionary<int, ServiceDescriptor> _cache = new Dictionary<int, ServiceDescriptor>();
Shared\MSBuildProj.cs (1)
34public Dictionary<string, string> GlobalProperties { get; } = new Dictionary<string, string>();
Shared\ProjectPropertyResolver.cs (1)
25var propertyTable = new Dictionary<string, string>();
Shared\Utilities\ProcessRunner.cs (1)
49var emptyVars = new Dictionary<string, string>();
Tool.cs (1)
177var properties = new Dictionary<string, string>()
dotnet-svcutil-lib.Tests (1)
ProjectUtils.cs (1)
89var envVars = new Dictionary<string, string> { { AppInsightsTelemetryClient.OptOutVariable, (!AppInsightsTelemetryClient.IsUserOptedIn).ToString() } };
dotnet-user-jwts (5)
Commands\CreateCommand.cs (1)
208var claims = new Dictionary<string, string>();
Helpers\DevJwtCliHelpers.cs (1)
218claims = new Dictionary<string, string>();
Helpers\Jwt.cs (1)
15public IDictionary<string, string> CustomClaims { get; set; } = new Dictionary<string, string>();
Helpers\JwtStore.cs (2)
24public IDictionary<string, Jwt> Jwts { get; private set; } = new Dictionary<string, Jwt>(); 33Jwts = JsonSerializer.Deserialize<IDictionary<string, Jwt>>(fileStream, JwtSerializerOptions.Default) ?? new Dictionary<string, Jwt>();
dotnet-watch (8)
Build\EvaluationResult.cs (1)
87var fileItems = new Dictionary<string, FileItem>();
Build\FilePathExclusions.cs (1)
19var globs = new Dictionary<(string fixedDirectoryPart, string wildcardDirectoryPart, string filenamePart), (MSBuildGlob glob, string value, string projectDir)>();
HotReload\CompilationHandler.cs (1)
481var updates = new Dictionary<RunningProject, List<(string filePath, string relativeUrl, string assemblyName, bool isApplicationProject)>>();
HotReload\StaticFileHandler.cs (1)
15var refreshRequests = new Dictionary<BrowserRefreshServer, List<string>>();
Process\ProcessSpec.cs (1)
11public Dictionary<string, string> EnvironmentVariables { get; } = new();
Process\ProjectLauncher.cs (1)
79var environmentBuilder = new Dictionary<string, string>();
Watch\DotNetWatcher.cs (1)
24var environmentBuilder = new Dictionary<string, string>();
Watch\MsBuildFileSetFactory.cs (1)
86var fileItems = new Dictionary<string, FileItem>();
dotnet-watch.Tests (16)
Build\EvaluationTests.cs (4)
94new("EmbeddedResource", new() { { "Include", "*.resx" }, { "Watch", "false" } }), 95new("Compile", new() { { "Include", "Program.cs" } }), 96new("Compile", new() { { "Include", "Class*.cs" }, { "Watch", "false" } }), 337new("Compile", new() { { "Include", "Lib.fs" } })
Build\FileSetSerializerTests.cs (9)
44Projects = new() 50StaticFileSetBuilder = new() { { "path1", "path2" } } 57StaticFileSetBuilder = new() { { "path2", "path3" } } 118new MockTaskItem("file1.cs", new() 123new MockTaskItem("file1.cs", new() 128new MockTaskItem("ProjectA.csproj", new() 133new MockTaskItem("ProjectA.csproj", new() 138new MockTaskItem("ProjectB.csproj", new() 143new MockTaskItem("file.css", new()
MockBuildEngine.cs (1)
78public Dictionary<object, object> RegisteredTaskObjects { get; } = new Dictionary<object, object>();
Watch\BuildEvaluatorTests.cs (2)
10private static readonly MSBuildFileSetFactory.EvaluationResult s_emptyEvaluationResult = new(new Dictionary<string, FileItem>(), projectGraph: null); 97new Dictionary<string, FileItem>()
DotNetWatchTasks (1)
FileSetSerializer.cs (1)
22var projectItems = new Dictionary<string, ProjectItems>();
EndToEnd.Tests (2)
ProjectBuildTests.cs (1)
261var languageExtensionMap = new Dictionary<string, string>()
Utilities\TestProjectCreator.cs (1)
21public Dictionary<string, string> AdditionalProperties { get; } = new Dictionary<string, string>();
FilesWebSite (1)
Controllers\UploadFilesController.cs (1)
32var files = new Dictionary<string, List<string>>();
FormatterWebSite (2)
Controllers\JsonOutputFormatterController.cs (1)
39new Dictionary<string, string>
Controllers\XmlSerializerController.cs (1)
42return new Dictionary<string, string>
GenerateDocumentationAndConfigFiles (1)
ReleaseTrackingHelper.cs (1)
44var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
58var data = new Dictionary<string, object>()
HelixTasks (1)
SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs (1)
166partitionedWorkItem.Add(new Microsoft.Build.Utilities.TaskItem(assemblyPartitionInfo.DisplayName + testIdentityDifferentiator, new Dictionary<string, string>()
HelixTestRunner (1)
TestRunner.cs (1)
17EnvironmentVariables = new Dictionary<string, string>();
IdeCoreBenchmarks (4)
ClassificationBenchmarks.cs (1)
67_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
FindReferencesBenchmarks.cs (1)
66_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
IncrementalSourceGeneratorBenchmarks.cs (1)
68_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
NavigateToBenchmarks.cs (1)
69_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
573var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 608var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 679var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
573var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 608var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 679var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
573var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 608var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 679var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
573var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 608var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 679var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
illink (66)
ILLink.RoslynAnalyzer (17)
DataFlowAnalyzerContext.cs (1)
42var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>>();
DynamicallyAccessedMembersAnalyzer.cs (1)
372Dictionary<string, string?>? DAMArgument = new();
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (2)
44(Dictionary ??= new Dictionary<TKey, TValue>())[key] = value; 101var dict = new Dictionary<TKey, TValue>();
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
62branchInput = new(); 63exceptionState = new(); 64exceptionFinallyState = new(); 65finallyInputState = new();
TrimAnalysis\ArrayValue.cs (1)
30IndexValues = new Dictionary<int, MultiValue>();
TrimAnalysis\DiagnosticContext.cs (1)
64Dictionary<string, string?>? DAMArgument = new Dictionary<string, string?>();
TrimAnalysis\TrimAnalysisPatternStore.cs (7)
29AssignmentPatterns = new Dictionary<IOperation, TrimAnalysisAssignmentPattern>(); 30FieldAccessPatterns = new Dictionary<IOperation, TrimAnalysisFieldAccessPattern>(); 31BackingFieldAccessPatterns = new Dictionary<IOperation, TrimAnalysisBackingFieldAccessPattern>(); 32GenericInstantiationPatterns = new Dictionary<IOperation, TrimAnalysisGenericInstantiationPattern>(); 33MethodCallPatterns = new Dictionary<IOperation, TrimAnalysisMethodCallPattern>(); 34ReflectionAccessPatterns = new Dictionary<IOperation, TrimAnalysisReflectionAccessPattern>(); 35FeatureCheckReturnValuePatterns = new Dictionary<IOperation, FeatureCheckReturnValuePattern>();
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string>(); 95readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string>(); 96readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers>(); 97readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new(); 216featureSwitchMembers.Add(currentFeatureSwitch.Value, new Dictionary<string, ClassMembers>());
Infrastructure.Common (1)
TestEventListener.cs (1)
15private Dictionary<string, bool> _targetSourceName = new Dictionary<string, bool>();
InMemory.FunctionalTests (8)
BadHttpRequestTests.cs (1)
57public static Dictionary<string, (string header, string errorMessage)> BadHeaderData => new Dictionary<string, (string, string)>
Http3\Http3StreamTests.cs (2)
3147headers.Initialize(new Dictionary<string, StringValues>() { 3187trailers.Initialize(new Dictionary<string, StringValues>()
HttpsConnectionMiddlewareTests.cs (1)
73var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
845var settings = new Dictionary<long, long>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
20new Dictionary<string, CertificateAuthority>(); 23= new Dictionary<string, CertificateAuthority>();
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
17var delegates = new Dictionary<string, RequestDelegate>();
Interop.FunctionalTests (1)
H2SpecTests.cs (1)
65var toSkip = new Dictionary<string, string>();
KeyManagementSimulator (1)
Program.cs (1)
315private readonly Dictionary<Guid, DateTimeOffset> _missingSinceMap = new();
Metrics (10)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Metrics.Legacy (10)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.Analyzers.Extra (4)
CallAnalysis\Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalysis\CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
CallAnalysis\StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (2)
ApiLifecycle\Json\JsonObject.cs (1)
26_properties = new Dictionary<string, JsonValue>();
CallAnalysis\CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
Microsoft.Arcade.Test.Common (1)
MockFileSystem.cs (1)
32Files = files ?? new();
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticProject.cs (1)
29private static readonly Dictionary<Assembly, Solution> _solutionCache = new Dictionary<Assembly, Solution>();
Microsoft.AspNetCore.Analyzers.Test (1)
StartupFactsTest.cs (1)
101private static readonly Dictionary<string, string> TestSources = new Dictionary<string, string>
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTokenStoreTest.cs (4)
102httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 131httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 160httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 190httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
56var tempSpans = new Dictionary<string, List<TextSpan>>();
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
160AttributeRouteModel.ReplaceTokens(token.ValueText, new Dictionary<string, string>
Microsoft.AspNetCore.App.CodeFixes (1)
Dependencies\ExtensionMethodsCache.cs (1)
12return new()
Microsoft.AspNetCore.Authentication.Core.Test (7)
AuthenticationPropertiesTests.cs (5)
14var items = new Dictionary<string, string?> 19var parameters = new Dictionary<string, object?> 49var items = new Dictionary<string, string?> 61var items = new Dictionary<string, string?> 65var parameters = new Dictionary<string, object?>
AuthenticationTicketTests.cs (2)
13var items = new Dictionary<string, string?> 18var parameters = new Dictionary<string, object?>
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
64var queryStrings = new Dictionary<string, string>
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (2)
200var tokenRequestParameters = new Dictionary<string, string>() 305var parameters = new Dictionary<string, string>
OAuthOptions.cs (1)
94public IDictionary<string, string> AdditionalAuthorizationParameters { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
247public IDictionary<string, string> AdditionalAuthorizationParameters { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Authentication.Test (13)
CookieTests.cs (1)
211public readonly Dictionary<string, AuthenticationTicket> Store = new Dictionary<string, AuthenticationTicket>();
GoogleTests.cs (3)
231return context.ChallengeAsync("Google", new AuthenticationProperties(new Dictionary<string, string>() 283return context.ChallengeAsync("Google", new GoogleChallengeProperties(new Dictionary<string, string> 1268var properties = new AuthenticationProperties(new Dictionary<string, string>()
OAuthTests.cs (1)
565var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (2)
59request.Content = new FormUrlEncodedContent(new Dictionary<string, string>()); 120var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
970public IDictionary<string, string> PushedParameters { get; set; } = new Dictionary<string, string>();
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1334var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1332var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\TestSettings.cs (1)
140new Dictionary<string, string>() :
TwitterTests.cs (2)
407var content = new Dictionary<string, string>() 476var content = new Dictionary<string, string>()
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (4)
185var authorizationParts = new SortedDictionary<string, string>(extraOAuthPairs ?? new Dictionary<string, string>()) 273var response = await ExecuteRequestAsync(TwitterDefaults.RequestTokenEndpoint, HttpMethod.Post, extraOAuthPairs: new Dictionary<string, string>() { { "oauth_callback", callBackUri } }); 298var formPost = new Dictionary<string, string> { { "oauth_verifier", verifier } }; 324var response = await ExecuteRequestAsync("https://api.twitter.com/1.1/account/verify_credentials.json", HttpMethod.Get, accessToken, queryParameters: new Dictionary<string, string>() { { "include_email", "true" } });
Microsoft.AspNetCore.BrowserTesting (3)
BrowserManagerConfiguration.cs (2)
233return mapper(new Dictionary<string, HashSet<string>>()); 235var argsMap = new Dictionary<string, HashSet<string>>();
ContextInformation.cs (1)
22public IDictionary<IPage, PageInformation> Pages { get; } = new Dictionary<IPage, PageInformation>();
Microsoft.AspNetCore.Components (17)
NavigationManagerExtensions.cs (1)
26private static readonly Dictionary<Type, QueryParameterFormatter<object>> _queryParameterFormatters = new()
ParameterView.cs (1)
108var result = new Dictionary<string, object?>();
Rendering\RenderBatchBuilder.cs (2)
36public Dictionary<string, int> AttributeDiffSet { get; } = new Dictionary<string, int>(); 41= new StackObjectPool<Dictionary<object, KeyedItemInfo>>(maxPreservedItems: 10, () => new Dictionary<object, KeyedItemInfo>());
RenderTree\Renderer.cs (5)
34private readonly Dictionary<int, ComponentState> _componentStateById = new Dictionary<int, ComponentState>(); 35private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 37private readonly Dictionary<ulong, (int RenderedByComponentId, EventCallback Callback, string? attributeName)> _eventBindings = new(); 38private readonly Dictionary<ulong, ulong> _eventHandlerIdReplacements = new Dictionary<ulong, ulong>(); 302_rootComponentsLatestParameters ??= new();
Routing\Router.cs (2)
25= new Dictionary<string, object>(); 424new RouteData(componentType, new Dictionary<string, object>()));
Routing\RouteTableFactory.cs (1)
88var templatesByHandler = new Dictionary<Type, string[]>();
Sections\SectionRegistry.cs (2)
8private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 9private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new();
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>()); 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>());
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
Microsoft.AspNetCore.Components.Authorization.Tests (16)
AuthorizeRouteViewTest.cs (13)
15private static readonly IReadOnlyDictionary<string, object> EmptyParametersDictionary = new Dictionary<string, object>(); 47var routeData = new RouteData(typeof(TestPageRequiringAuthorization), new Dictionary<string, object> 54_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 82var routeData = new RouteData(typeof(TestPageRequiringAuthorization), new Dictionary<string, object> 90_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 129_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 158_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 185_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 212var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 256var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 278_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 336_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 344var render2Task = _renderer.Dispatcher.InvokeAsync(() => _authorizeRouteViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Endpoints (19)
Builder\ResourceCollectionUrlEndpoint.cs (2)
60new Dictionary<string, string> 66new Dictionary<string, string>
Builder\ResourcePreloadCollection.cs (1)
10private readonly Dictionary<string, List<PreloadAsset>> _storage = new();
DependencyInjection\WebAssemblySettingsEmitter.cs (1)
32var environmentVariables = new Dictionary<string, string>();
Discovery\ComponentCollectionBuilder.cs (1)
12private readonly Dictionary<string, IReadOnlyList<ComponentBuilder>> _components = new();
Discovery\PageCollectionBuilder.cs (1)
11private readonly Dictionary<string, IReadOnlyList<PageComponentBuilder>> _pages = new();
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
19new Dictionary<TKey, TValue>();
FormMapping\FormDataReader.cs (1)
127var result = new Dictionary<FormKey, HashSet<FormKey>>();
FormMapping\HttpContextFormValueMapper.cs (1)
125var dictionary = new Dictionary<FormKey, StringValues>();
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
ImportMapSerializerContext.IReadOnlyDictionaryStringIReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>(),
ImportMapSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
22private readonly Dictionary<(int ComponentId, int FrameIndex), string> _namedSubmitEventsByLocation = new();
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
265public Dictionary<string, byte[]> Saved { get; private set; } = new();
Results\RazorComponentResult.cs (1)
19= new Dictionary<string, object?>().AsReadOnly();
Results\RazorComponentResultExecutor.cs (1)
57var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new Dictionary<string, byte[]>();
Microsoft.AspNetCore.Components.Endpoints.Tests (154)
Assets\ImportMapDefinitionTest.cs (14)
28new Dictionary<string, string> 56new Dictionary<string, IReadOnlyDictionary<string, string>> 58["/scoped/"] = new Dictionary<string, string> 85new Dictionary<string, string> 90new Dictionary<string, string> 136new Dictionary<string, string> 140new Dictionary<string, IReadOnlyDictionary<string, string>> 142["/legacy/"] = new Dictionary<string, string> 147new Dictionary<string, string> 153new Dictionary<string, string> 158new Dictionary<string, IReadOnlyDictionary<string, string>> 160["/scoped/"] = new Dictionary<string, string> 164["/legacy/"] = new Dictionary<string, string> 169new Dictionary<string, string>
Binding\FormDataMapperTests.cs (66)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 97var collection = new Dictionary<string, StringValues>() { }; 119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") }; 136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") }; 162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 179var collection = new Dictionary<string, StringValues>() { }; 196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) }; 239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") }; 257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") }; 273var collection = new Dictionary<string, StringValues>() { }; 290var data = new Dictionary<string, StringValues>() { }; 306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" }; 322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) }; 340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) }; 358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) }; 376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) }; 401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) }; 609var collection = new Dictionary<string, StringValues>() 897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 905var expected = new ConcurrentDictionary<int, int>(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 913var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 921var expected = ImmutableSortedDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 929var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 931var collection = new Dictionary<string, StringValues>() 960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 985var collection = new Dictionary<string, StringValues>() 1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 1015var collection = new Dictionary<string, StringValues>() 1044var collection = new Dictionary<string, StringValues>() { }; 1105var expected = new Dictionary<int, int> 1118var collection = new Dictionary<string, StringValues>() 1166var expected = new Dictionary<int, int> 1177var collection = new Dictionary<string, StringValues>() 1226var collection = new Dictionary<string, StringValues>() 1254var collection = new Dictionary<string, StringValues>() 1290var data = new Dictionary<string, StringValues>() 1315var data = new Dictionary<string, StringValues>() 1356var data = new Dictionary<string, StringValues>() 1415var data = new Dictionary<string, StringValues>() 1486var data = new Dictionary<string, StringValues>() 1541Children = new Dictionary<int, RecursiveDictionaryTree>() { [0] = expected } 1545var data = new Dictionary<string, StringValues>() 1590var data = new Dictionary<string, StringValues>() 1629var data = new Dictionary<string, StringValues>() 1660var data = new Dictionary<string, StringValues>() 1679var data = new Dictionary<string, StringValues>() 1698var data = new Dictionary<string, StringValues>() 1717var data = new Dictionary<string, StringValues>() 1739var data = new Dictionary<string, StringValues>() 1761var data = new Dictionary<string, StringValues>() 1787var data = new Dictionary<string, StringValues>() 1812var data = new Dictionary<string, StringValues>() 1832var data = new Dictionary<string, StringValues>() 1852var data = new Dictionary<string, StringValues>() { }; 1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" }; 1906var data = new Dictionary<string, StringValues>(); 1934var data = new Dictionary<string, StringValues>(); 1967var data = new Dictionary<string, StringValues>(); 1989var data = new Dictionary<string, StringValues>(); 2012var data = new Dictionary<string, StringValues>(); 2045var data = new Dictionary<string, StringValues>(); 2080var data = new Dictionary<string, StringValues>()
Builder\TestFileProvider\TestFileProvider.cs (1)
13new Dictionary<string, IDirectoryContents>();
EndpointHtmlRendererTest.cs (21)
212ParameterView.FromDictionary(new Dictionary<string, object> 250ParameterView.FromDictionary(new Dictionary<string, object> 286ParameterView.FromDictionary(new Dictionary<string, object> 336ParameterView.FromDictionary(new Dictionary<string, object> 475var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 533var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 550var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 589var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 628var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 728var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 745var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 775var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 797ParameterView.FromDictionary(new Dictionary<string, object> 817ParameterView.FromDictionary(new Dictionary<string, object> 837ParameterView.FromDictionary(new Dictionary<string, object> 876ParameterView.FromDictionary(new Dictionary<string, object> 892ParameterView.FromDictionary(new Dictionary<string, object> 924ParameterView.FromDictionary(new Dictionary<string, object> 1005ParameterView.FromDictionary(new Dictionary<string, object> 1608ParameterView.FromDictionary(new Dictionary<string, object>
FormMapping\BrowserFileFromFormFileTests.cs (2)
52var reader = new FormDataReader(new Dictionary<FormKey, StringValues>(), culture, buffer, formFileCollection.Object); 89var reader = new FormDataReader(new Dictionary<FormKey, StringValues>(), culture, buffer, formFileCollection.Object);
FormMapping\Converters\NullableConverterTests.cs (4)
65var dictionary = new Dictionary<FormKey, StringValues>(); 85var dictionary = new Dictionary<FormKey, StringValues>() 109var dictionary = new Dictionary<FormKey, StringValues>() 132var dictionary = new Dictionary<FormKey, StringValues>()
HttpContextFormValueMapperTest.cs (1)
38formData.SetFormData(incomingFormName, new Dictionary<string, StringValues>(), new FormFileCollection());
ImportMapTest.cs (20)
39new Dictionary<string, string> 44new Dictionary<string, IReadOnlyDictionary<string, string>> 46["development"] = new Dictionary<string, string> 52new Dictionary<string, string> 59importMap.AdditionalAttributes = new Dictionary<string, object> { ["nonce"] = "random" }.AsReadOnly(); 85new Dictionary<string, string> 90new Dictionary<string, IReadOnlyDictionary<string, string>> 92["development"] = new Dictionary<string, string> 98new Dictionary<string, string> 130new Dictionary<string, string> 135new Dictionary<string, IReadOnlyDictionary<string, string>> 137["development"] = new Dictionary<string, string> 143new Dictionary<string, string> 150new Dictionary<string, string> 169await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 195new Dictionary<string, string> 200new Dictionary<string, IReadOnlyDictionary<string, string>> 202["development"] = new Dictionary<string, string> 208new Dictionary<string, string> 225await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
RazorComponentResultTest.cs (2)
35var paramsDict = new Dictionary<string, object> { { "First", 123 } }; 424var parameters = new Dictionary<string, object>
RazorComponentsServiceCollectionExtensionsTest.cs (1)
90return new Dictionary<Type, Type[]>()
WebRootComponentParametersTest.cs (22)
14var parameters1 = CreateParameters(new() { ["First"] = 123 }); 15var parameters2 = CreateParameters(new() { ["First"] = 123, ["Second"] = "abc" }); 28var parameters1 = CreateParameters(new() { ["First"] = 123 }); 29var parameters2 = CreateParameters(new() { ["Second"] = 123 }); 42var parameters1 = CreateParameters(new() { ["First"] = 123 }); 43var parameters2 = CreateParameters(new() { ["First"] = 456 }); 56var parameters1 = CreateParameters(new() { ["First"] = 123 }); 57var parameters2 = CreateParameters(new() { ["First"] = 123L }); 78var parameters1 = CreateParameters(new() { ["First"] = value }); 79var parameters2 = CreateParameters(new() { ["First"] = value }); 92var parameters1 = CreateParameters(new()); 93var parameters2 = CreateParameters(new()); 106var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 107var parameters2 = CreateParameters(new() { ["First"] = 456 }); 120var parameters1 = CreateParameters(new() { ["First"] = 123 }); 121var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = 456 }); 134var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 135var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 148var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 149var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = 456 }); 162var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = null }); 163var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = null });
Microsoft.AspNetCore.Components.Forms (4)
EditContext.cs (1)
20private readonly Dictionary<FieldIdentifier, FieldState> _fieldStates = new Dictionary<FieldIdentifier, FieldState>();
EditContextDataAnnotationsExtensions.cs (1)
76private readonly Dictionary<string, FieldIdentifier> _validationPathToFieldIdentifierMapping = new();
EditContextProperties.cs (1)
28_contents ??= new Dictionary<object, object>();
ValidationMessageStore.cs (1)
14private readonly Dictionary<FieldIdentifier, List<string>> _messages = new Dictionary<FieldIdentifier, List<string>>();
Microsoft.AspNetCore.Components.Forms.Tests (3)
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Performance (2)
RouteTableFactoryBenchmarks.cs (1)
22_templatesByHandler = new Dictionary<Type, string[]>
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\EventCallbackSubscribable.cs (1)
14private readonly Dictionary<EventCallbackSubscriber<T>, EventCallback<T>> _callbacks = new();
Microsoft.AspNetCore.Components.QuickGrid.Tests (3)
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Server (8)
CircuitPersistenceManagerSerializerContext.DictionaryInt32ComponentMarker.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>(),
Circuits\CircuitPersistenceManager.cs (1)
193var persistedComponents = new Dictionary<int, ComponentMarker>();
Circuits\ComponentParameterDeserializer.cs (1)
25var parametersDictionary = new Dictionary<string, object>();
Circuits\RemoteJSRuntime.cs (1)
27internal readonly Dictionary<long, RemoteJSDataStream> RemoteJSDataStreamInstances = new();
PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
src\Components\Shared\src\RenderBatchWriter.cs (1)
43_deduplicatedStringIndices = new Dictionary<string, int>();
src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new Dictionary<string, byte[]>();
Microsoft.AspNetCore.Components.Server.Tests (48)
CircuitDisconnectMiddlewareTest.cs (4)
123await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = "1234" }).CopyToAsync(memory); 157await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 195await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 234await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret }).CopyToAsync(memory);
Circuits\CircuitHostTest.cs (15)
531Dictionary<string, object> parameters = new() 557Dictionary<string, object> parameters = new() 582Dictionary<string, object> parameters = new() 608await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>() 615Dictionary<string, object> parameters = new() 647await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>() 652Dictionary<string, object> parameters = new() 682Dictionary<string, object> parameters = new() 705await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 0, new Dictionary<string, object> 709await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object> 716new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] }); 724Marker = CreateMarker(typeof(DynamicallyAddedComponent), "2", new Dictionary<string, object> 730parameters: CreateWebRootComponentParameters(new Dictionary<string, object> 746Marker = CreateMarker(typeof(DynamicallyAddedComponent), "1", new Dictionary<string, object> 752parameters: CreateWebRootComponentParameters(new Dictionary<string, object>
Circuits\CircuitPersistenceManagerTest.cs (10)
41(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object> 76new Dictionary<string, object> 95(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object> 99(RootComponentType: typeof(SecondRootComponent), Parameters: new Dictionary<string, object> 129new Dictionary<string, object> 140new Dictionary<string, object> 159(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object> 192ApplicationState = new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] }, 223(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object> 258ApplicationState = new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] },
Circuits\ComponentHubTest.cs (1)
320var items = new Dictionary<object, object>();
Circuits\DefaultInMemoryCircuitPersistenceProviderTest.cs (1)
130var circuitIds = new Dictionary<string, CircuitId>
Circuits\HybridCacheCircuitPersistenceProviderTest.cs (2)
25ApplicationState = new Dictionary<string, byte[]> { 67ApplicationState = new Dictionary<string, byte[]> {
Circuits\RemoteRendererTest.cs (6)
220ParameterView.FromDictionary(new Dictionary<string, object> 283ParameterView.FromDictionary(new Dictionary<string, object> 346ParameterView.FromDictionary(new Dictionary<string, object> 403ParameterView.FromDictionary(new Dictionary<string, object> 557var parameters = new Dictionary<string, object> { ["Name"] = "value" }; 596var parameters = new Dictionary<string, object> { ["Name"] = "value" };
Circuits\ServerComponentDeserializerTest.cs (7)
44(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = "Value" }))); 63(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = null }))); 103(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }), 104(typeof(TestComponent), new Dictionary<string, object> { ["Second"] = null }))); 133(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }), 323(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }), 402Marker = CreateMarker(typeof(DynamicallyAddedComponent), new()
src\SignalR\common\SignalR.Common\test\Internal\Protocol\HubMessageHelpers.cs (1)
18hubMessage.Headers = new Dictionary<string, string>();
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
26protected static readonly IDictionary<string, string> TestHeaders = new Dictionary<string, string>
Microsoft.AspNetCore.Components.Tests (203)
CascadingParameterStateTest.cs (1)
429var supplierParams = new Dictionary<string, object>
DynamicComponentTest.cs (6)
16var parameters = new Dictionary<string, object> 50var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 70var childParameters = new Dictionary<string, object> 78var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 108var childParameters = new Dictionary<string, object> 112var parameters = ParameterView.FromDictionary(new Dictionary<string, object>
LayoutViewTest.cs (8)
40var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 61var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 87var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 119var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 160var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 170_renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 204var setParametersTask1 = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 214var setParametersTask2 = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
NavigationManagerTest.cs (4)
159var actualUri = navigationManager.GetUriWithQueryParameters(new Dictionary<string, object> 177var actualUri = navigationManager.GetUriWithQueryParameters(new Dictionary<string, object> 191var unsupportedParameterValues = new Dictionary<string, object> 206var values = new Dictionary<string, object>
ParameterViewTest.Assignment.cs (3)
324var value = new Dictionary<string, object>(); 375{ nameof(HasCaptureUnmatchedValuesProperty.CaptureUnmatchedValues), new Dictionary<string, object>() }, 401{ nameof(HasCaptureUnmatchedValuesProperty.CaptureUnmatchedValues), new Dictionary<string, object>() },
ParameterViewTest.cs (2)
242var dictionary = new Dictionary<string, object>(); 255var dictionary = new Dictionary<string, object>
PersistentState\ComponentStatePersistenceManagerTest.cs (11)
44var state = new Dictionary<string, byte[]> 66var state = new Dictionary<string, byte[]> 88var state = new Dictionary<string, byte[]>(); 140var state = new Dictionary<string, byte[]>(); 167var state = new Dictionary<string, byte[]>(); 189var state = new Dictionary<string, byte[]>(); 219var state = new Dictionary<string, byte[]>(); 255var state = new Dictionary<string, byte[]>(); 283var state = new Dictionary<string, byte[]>(); 311var state = new Dictionary<string, byte[]>(); 360var state = new Dictionary<string, byte[]>();
PersistentState\PersistentComponentStateTest.cs (25)
18var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 19var existingState = new Dictionary<string, byte[]> 36var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 37var existingState = new Dictionary<string, byte[]> 52var currentState = new Dictionary<string, byte[]>(); 66var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 67var existingState = new Dictionary<string, byte[]> 85var currentState = new Dictionary<string, byte[]>(); 104var currentState = new Dictionary<string, byte[]>(); 121var currentState = new Dictionary<string, byte[]>(); 140var currentState = new Dictionary<string, byte[]>(); 160var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized }; 161var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 178var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized }; 179var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 195var currentState = new Dictionary<string, byte[]>(); 198applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 214var currentState = new Dictionary<string, byte[]>(); 217applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 233var currentState = new Dictionary<string, byte[]>(); 236applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 252var currentState = new Dictionary<string, byte[]>(); 255applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 271var currentState = new Dictionary<string, byte[]>(); 274applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
PersistentState\PersistentServicesRegistryTest.cs (23)
32var testStore = new TestStore(new Dictionary<string, byte[]>()); 36await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 77var testStore = new TestStore(new Dictionary<string, byte[]>()); 79await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 113var testStore = new TestStore(new Dictionary<string, byte[]>()); 146var testStore = new TestStore(new Dictionary<string, byte[]>()); 147await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 176var testStore = new TestStore(new Dictionary<string, byte[]>()); 216var testStore = new TestStore(new Dictionary<string, byte[]>()); 218await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 252var testStore = new TestStore(new Dictionary<string, byte[]>()); 332var testStore = new TestStore(new Dictionary<string, byte[]>()); 334await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 379var testStore = new TestStore(new Dictionary<string, byte[]>()); 380await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 420var testStore = new TestStore(new Dictionary<string, byte[]>()); 422await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 456var testStore = new TestStore(new Dictionary<string, byte[]>()); 458await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 492var initialStore = new TestStore(new Dictionary<string, byte[]>()); 494await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 505var updatedStore = new TestStore(new Dictionary<string, byte[]>()); 507await updatedManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
PersistentStateValueProviderKeyResolverTests.cs (8)
52var state = new Dictionary<string, byte[]>(); 90var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 107var state = new Dictionary<string, byte[]>(); 145var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 160var state = new Dictionary<string, byte[]>(); 210var state = new Dictionary<string, byte[]>(); 248var state = new Dictionary<string, byte[]>(); 287var state = new Dictionary<string, byte[]>();
PersistentStateValueProviderTests.cs (4)
21new Dictionary<string, byte[]>(), 52new Dictionary<string, byte[]>(), 78new Dictionary<string, byte[]>(), 104var dictionary = new Dictionary<string, byte[]>();
PersistentValueProviderComponentSubscriptionTests.cs (23)
23var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 24state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 45var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 46state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 69var initialState = new Dictionary<string, byte[]>(); 99var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 100state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 129var initialState = new Dictionary<string, byte[]>(); 159var initialState = new Dictionary<string, byte[]>(); 189var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 190state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 209var initialState = new Dictionary<string, byte[]>(); 243var appState = new Dictionary<string, byte[]>(); 276var newState = new Dictionary<string, byte[]> 296var initialState = new Dictionary<string, byte[]>(); 336var initialState = new Dictionary<string, byte[]>(); 396var initialState = new Dictionary<string, byte[]>(); 649var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 650state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 672var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 673state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 695var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); 696state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
RendererTest.cs (49)
239await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 241[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 258[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 283renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 299renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 398await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 400[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 417[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 442await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 444[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 461[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 486await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 488[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 519[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 2633ChildParameters = new Dictionary<string, object> 2760ChildParameters = new Dictionary<string, object> 3553var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3555[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3566[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3586var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3588[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3599[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3619var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3621[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3632[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3653var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3655[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3670[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3750var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3752[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3780[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3808var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3810[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3836[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3863var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3865[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3891[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3917var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3919[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3947[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4047var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4049[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 4060[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4081var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4083[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 4094[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4118await renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4120[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 4136[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
Rendering\RenderTreeBuilderTest.cs (3)
331builder.AddMultipleAttributes(1, new Dictionary<string, object>() 354var attributes = new Dictionary<string, object> 368var attributes = new Dictionary<string, object>
RouteViewTest.cs (8)
48var routeParams = new Dictionary<string, object> 55_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 99var routeParams = new Dictionary<string, object>(); 103_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 123var routeParams = new Dictionary<string, object>(); 127_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 146var routeParams = new Dictionary<string, object>(); 150_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Routing\RouterTest.cs (10)
189var parameters = new Dictionary<string, object> 209var parameters = new Dictionary<string, object> 235var parameters = new Dictionary<string, object> 256var parameters = new Dictionary<string, object> 289var parameters = new Dictionary<string, object> 323var parameters = new Dictionary<string, object> 370var parameters = new Dictionary<string, object> 422var parameters = new Dictionary<string, object> 459var parameters = new Dictionary<string, object> 474var parameters = new Dictionary<string, object>
Routing\RouteTableFactoryTests.cs (9)
335var expectedParameters = new Dictionary<string, object> 356var expectedParameters = new Dictionary<string, object> 403Assert.Equal(new Dictionary<string, object> 676Assert.Equal(new Dictionary<string, object> 706Assert.Equal(new Dictionary<string, object> 732Assert.Equal(new Dictionary<string, object> 757Assert.Equal(new Dictionary<string, object> 952Assert.Equal(context.Parameters, new Dictionary<string, object> 1111Assert.Equal(new Dictionary<string, object>
Routing\TemplateParserTests.cs (3)
274new Dictionary<string, object>(), 275new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(), 276new Dictionary<string, object>(),
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Web (7)
Forms\InputBase.cs (2)
345result = new Dictionary<string, object>(); 354result = new Dictionary<string, object>();
Forms\Mapping\FormMappingContext.cs (3)
97_errors ??= new Dictionary<string, FormMappingError>(); 118_errorsByFormName ??= new Dictionary<string, Dictionary<string, FormMappingError>>(); 121formErrors = new Dictionary<string, FormMappingError>();
WebRendererSerializerContext.DictionaryStringJSComponentParameterArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>(),
WebRendererSerializerContext.DictionaryStringListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>(),
Microsoft.AspNetCore.Components.Web.Tests (32)
Forms\EditFormTest.cs (1)
185AdditionalFormAttributes = new Dictionary<string, object>
Forms\InputBaseTest.cs (2)
240AdditionalAttributes = new Dictionary<string, object>() 471rootComponent.AdditionalAttributes = new Dictionary<string, object>();
Forms\InputDateTest.cs (1)
17AdditionalAttributes = new Dictionary<string, object>
Forms\InputNumberTest.cs (2)
32AdditionalAttributes = new Dictionary<string, object> 76AdditionalAttributes = new Dictionary<string, object>
Forms\InputSelectTest.cs (1)
175AdditionalAttributes = new Dictionary<string, object>
HtmlRendering\HtmlRendererTest.cs (10)
177rtb.AddMultipleAttributes(3, new Dictionary<string, object>() { { "Class", "test2" }, }); 666ParameterView.FromDictionary(new Dictionary<string, object> 763var result = await htmlRenderer.RenderComponentAsync<AsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 789var result = await htmlRenderer.RenderComponentAsync<NestedAsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 811var first = await htmlRenderer.RenderComponentAsync<SectionOutlet>(ParameterView.FromDictionary(new Dictionary<string, object> 819var second = await htmlRenderer.RenderComponentAsync<SectionContent>(ParameterView.FromDictionary(new Dictionary<string, object> 896await htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 917htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 937htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 957var content = htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
Media\FileDownloadTest.cs (4)
33await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 127var attrs = new Dictionary<string, object?> { ["href"] = "https://example.org/real", ["class"] = "btn" }; 128await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 145private static ParameterView Params(string key, string fileName) => ParameterView.FromDictionary(new Dictionary<string, object?>
Media\ImageTest.cs (8)
41await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 58await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 64await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 82await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 100await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 105await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 121await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 127await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyHostConfiguration.cs (1)
41IDictionary<string, object> IConfigurationBuilder.Properties { get; } = new Dictionary<string, object>();
PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new Dictionary<string, byte[]>();
Microsoft.AspNetCore.Components.WebAssembly.Tests (10)
Hosting\WebAssemblyHostConfigurationTest.cs (10)
15var initialData = new Dictionary<string, string>() { 41var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 65var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 83var initialData = new Dictionary<string, string>() { 110var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 127var dic1 = new Dictionary<string, string>() 134var dic2 = new Dictionary<string, string>() 141var dic3 = new Dictionary<string, string>() 186var dic1 = new Dictionary<string, string>() 190var dic2 = new Dictionary<string, string>()
Microsoft.AspNetCore.Components.WebView (5)
SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
SourceGenerationContext.IDictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
src\Components\Shared\src\RenderBatchWriter.cs (1)
43_deduplicatedStringIndices = new Dictionary<string, int>();
StaticContentProvider.cs (1)
89=> new Dictionary<string, string>()
WebViewManager.cs (1)
29private readonly Dictionary<string, RootComponent> _rootComponentsBySelector = new();
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestDocument.cs (1)
14private readonly Dictionary<long, ComponentNode> _componentsById = new();
StaticContentProviderTests.cs (1)
19new Dictionary<string, string>
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (3)
ConcurrencyLimiterEventSourceTests.cs (2)
62new Dictionary<string, string> 103new Dictionary<string, string>
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
20private readonly Dictionary<string, Channel<double>> _counters = new Dictionary<string, Channel<double>>();
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
22: this(new Dictionary<object, object?>())
Microsoft.AspNetCore.DataProtection (3)
KeyManagement\KeyRing.cs (1)
22_keyIdToKeyHolderMap = new Dictionary<Guid, KeyHolder>();
XmlEncryption\XmlEncryptionExtensions.cs (2)
35var placeholderReplacements = new Dictionary<XElement, XElement>(); 117var placeholderReplacements = new Dictionary<XElement, EncryptedXmlInfo>();
Microsoft.AspNetCore.DataProtection.Tests (11)
Internal\KeyManagementOptionsSetupTest.cs (1)
47var registryEntries = new Dictionary<string, object>()
RegistryPolicyResolverTests.cs (10)
21var registryEntries = new Dictionary<string, object>(); 37var registryEntries = new Dictionary<string, object>() 58var registryEntries = new Dictionary<string, object>() 75var registryEntries = new Dictionary<string, object>() 92var registryEntries = new Dictionary<string, object>() 116var registryEntries = new Dictionary<string, object>() 152var registryEntries = new Dictionary<string, object>() 174var registryEntries = new Dictionary<string, object>() 204var registryEntries = new Dictionary<string, object>() 226var registryEntries = new Dictionary<string, object>()
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
27private static readonly IReadOnlyDictionary<HealthStatus, int> DefaultStatusCodesMapping = new Dictionary<HealthStatus, int>
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (3)
HealthCheckMiddlewareTests.cs (3)
924ResultStatusCodes = new Dictionary<HealthStatus, int> 937new HealthCheckOptions { ResultStatusCodes = new Dictionary<HealthStatus, int>() } 950ResultStatusCodes = new Dictionary<HealthStatus, int>
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
36var parametersToRedact = new Dictionary<string, DataClassification>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (17)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
Logging\HeaderReaderTests.cs (5)
20var reader = new HeaderReader(new Dictionary<string, DataClassification>(), null!, string.Empty); 22var headers = new HeaderDictionary(new Dictionary<string, StringValues> { [HeaderNames.Accept] = MediaTypeNames.Text.Plain }); 30var reader = new HeaderReader(new Dictionary<string, DataClassification> { [HeaderNames.Accept] = DataClassification.Unknown }, null!, string.Empty); 42var headersToLog = new Dictionary<string, DataClassification> 50var headers = new Dictionary<string, StringValues>
Logging\HttpLoggingServiceExtensionsTests.cs (3)
61o.RouteParameterDataClasses = new Dictionary<string, DataClassification> 66o.RequestHeadersDataClasses = new Dictionary<string, DataClassification> 71o.ResponseHeadersDataClasses = new Dictionary<string, DataClassification>
Logging\IncomingHttpRouteUtilityTests.cs (7)
177var d = new Dictionary<string, DataClassification> 220var d = new Dictionary<string, DataClassification> 306var d = new Dictionary<string, DataClassification> 354var d = new Dictionary<string, DataClassification> 399var d = new Dictionary<string, DataClassification>(); 438var d = new Dictionary<string, DataClassification> 460var d = new Dictionary<string, DataClassification>
Logging\RequestHeadersEnricherTests.cs (1)
265HeadersDataClasses = new Dictionary<string, DataClassification>
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\Json\JsonConverterHelper.cs (1)
23internal static readonly Dictionary<string, Type> WellKnownTypeNames = new Dictionary<string, Type>
Internal\Json\MessageTypeInfoResolver.cs (1)
192var map = new Dictionary<string, FieldDescriptor>();
Internal\JsonTranscodingServerCallContext.cs (1)
21private static readonly AuthContext UnauthenticatedContext = new AuthContext(null, new Dictionary<string, List<AuthProperty>>());
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
500return new Dictionary<string, FieldDescriptor>(); 504var queryParameters = new Dictionary<string, FieldDescriptor>();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (32)
Infrastructure\TestHelpers.cs (1)
96routeParameterDescriptors ?? new Dictionary<string, RouteParameter>(),
JsonTranscodingServerCallContextTests.cs (1)
102new Dictionary<string, RouteParameter>(),
ServerStreamingServerCallHandlerTests.cs (5)
51var routeParameterDescriptors = new Dictionary<string, RouteParameter> 98var routeParameterDescriptors = new Dictionary<string, RouteParameter> 140var routeParameterDescriptors = new Dictionary<string, RouteParameter> 180var routeParameterDescriptors = new Dictionary<string, RouteParameter> 229var routeParameterDescriptors = new Dictionary<string, RouteParameter>
UnaryServerCallHandlerTests.cs (25)
55var routeParameterDescriptors = new Dictionary<string, RouteParameter> 99var routeParameterDescriptors = new Dictionary<string, RouteParameter> 133var routeParameterDescriptors = new Dictionary<string, RouteParameter> 206httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 244httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 291httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 341httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 391httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 441httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 491httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 525httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 553httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 584httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 620httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 651httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 677httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 704httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1326httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1493httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1521httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1604httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1621httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1665httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1760httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1794httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
68RouteValues = new Dictionary<string, string?>
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
500return new Dictionary<string, FieldDescriptor>(); 504var queryParameters = new Dictionary<string, FieldDescriptor>();
Microsoft.AspNetCore.HeaderParsing.Tests (3)
HeaderParsingExtensionsTests.cs (1)
66.AddInMemoryCollection(new Dictionary<string, string?>
HeaderParsingOptionsTests.cs (2)
15var defValue = new Dictionary<string, StringValues>(); 16var maxCachedValues = new Dictionary<string, int>();
Microsoft.AspNetCore.Hosting (3)
SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
SourceGenerationContext.IDictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Hosting.Tests (33)
HostingApplicationDiagnosticsTests.cs (3)
47new Dictionary<string, string> 156new Dictionary<string, string> 1189var tags = new Dictionary<string, object>();
HostingEnvironmentExtensionsTests.cs (2)
19.AddInMemoryCollection(new Dictionary<string, string>() 66.AddInMemoryCollection(new Dictionary<string, string>()
Internal\HostingEventSourceTests.cs (1)
200new Dictionary<string, string>
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
20private readonly Dictionary<string, Channel<double>> _counters = new Dictionary<string, Channel<double>>();
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (4)
711Children = new() 715Children = new() 719Children = new() { ["file.version.js"] = new() { Match = new() { ContentRoot = 0, Path = "file.js" } } }, 759Children = new Dictionary<string, ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
WebHostBuilderTests.cs (10)
296var data = new Dictionary<string, string> 511var settings = new Dictionary<string, string> 537var settings = new Dictionary<string, string> 563var settings = new Dictionary<string, string> 572var overrideSettings = new Dictionary<string, string> 598var vals = new Dictionary<string, string> 627var vals = new Dictionary<string, string> 648var vals = new Dictionary<string, string> 1481var vals = new Dictionary<string, string> 1507var vals = new Dictionary<string, string>
WebHostConfigurationsTests.cs (3)
14var parameters = new Dictionary<string, string>() 39var parameters = new Dictionary<string, string>() { { "ENVIRONMENT", Environments.Development } }; 50var parameters = new Dictionary<string, string>() { { "detailedErrors", value } };
WebHostTests.cs (9)
54var data = new Dictionary<string, string> 73var data = new Dictionary<string, string> 92var data = new Dictionary<string, string> 124var data = new Dictionary<string, string> 198var data = new Dictionary<string, string> 237var data = new Dictionary<string, string> 273var data = new Dictionary<string, string> 815var vals = new Dictionary<string, string> 838var vals = new Dictionary<string, string>
Microsoft.AspNetCore.Http (4)
Internal\ItemsDictionary.cs (2)
134_items = new Dictionary<object, object?>(); 163public static readonly IDictionary<object, object?> Dictionary = new Dictionary<object, object?>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
GetHeaderSplitBenchmark.cs (1)
16var dict = new Dictionary<string, StringValues>()
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UseMiddlewareTest.cs (2)
318private readonly Dictionary<Type, object> _services = new Dictionary<Type, object>(); 339private readonly Dictionary<object, Tuple<Type, object>> _services = new Dictionary<object, Tuple<Type, object>>();
UsePathBaseExtensionsTests.cs (1)
245private readonly Dictionary<Type, object> _services = new Dictionary<Type, object>();
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionOptions.cs (1)
46_headers = new Dictionary<string, string>();
Microsoft.AspNetCore.Http.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>(); 308var values = new Dictionary<string, StringValues>(); 350var values = new Dictionary<string, StringValues>(); 388var values = new Dictionary<string, StringValues>(); 427var values = new Dictionary<string, StringValues>(); 467var values = new Dictionary<string, StringValues>(); 530var values = new Dictionary<string, StringValues>(); 598var values = new Dictionary<string, StringValues>(); 661var values = new Dictionary<string, StringValues>(); 765var values = new Dictionary<string, StringValues>(); 907var values = new Dictionary<string, StringValues>(); 1842var values = new Dictionary<string, StringValues>(); 1894var values = new Dictionary<string, StringValues>(); 2570var values = new Dictionary<string, StringValues>(); 2630var values = new Dictionary<string, StringValues>(); 2687var values = new Dictionary<string, StringValues>(); 3703var values = new Dictionary<string, StringValues>(); 3740var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (10)
ProblemDetailsJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
ProblemDetailsJsonContext.IDictionaryStringStringArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string[]>(),
RequestDelegateFactory.cs (1)
2269var dictionary = new Dictionary<FormKey, StringValues>();
RequestDelegateFactoryContext.cs (1)
43public Dictionary<string, string> TrackedParameters { get; } = new();
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
19new Dictionary<TKey, TValue>();
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
127var result = new Dictionary<FormKey, HashSet<FormKey>>();
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
ValidatableTypesBenchmark.cs (1)
63Properties = new Dictionary<string, string>
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
486var lookupTable = new Dictionary<ParameterLookupKey, IPropertySymbol>();
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Http.Results.Tests (32)
AcceptedAtRouteOfTResultTests.cs (8)
21var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 45var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 70new Dictionary<string, string>() 75new Dictionary<string, string>() 113routeValues: new Dictionary<string, object>(), 164var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 179var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 196var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
AcceptedAtRouteResultTests.cs (3)
24new Dictionary<string, string>() 29new Dictionary<string, string>() 67routeValues: new Dictionary<string, object>());
CreatedAtRouteOfTResultTests.cs (7)
22var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 42new Dictionary<string, string>() { { "hello", "world" } } 46new RouteValueDictionary(new Dictionary<string, string>() { 82routeValues: new Dictionary<string, object>(), 136routeValues: new Dictionary<string, object>(), 151routeValues: new Dictionary<string, object>(), 167routeValues: new Dictionary<string, object>(),
CreatedAtRouteResultTests.cs (4)
25new Dictionary<string, string>() { { "hello", "world" } } 29new RouteValueDictionary(new Dictionary<string, string>() { 65routeValues: new Dictionary<string, object>()); 117routeValues: new Dictionary<string, object>());
ProblemResultTests.cs (1)
141var details = new HttpValidationProblemDetails(new Dictionary<string, string[]>
RedirectToRouteResultTests.cs (1)
21var result = new RedirectToRouteHttpResult(null, new Dictionary<string, object>());
ResultsTests.cs (5)
1256var extensions = new Dictionary<string, object> { { "test", "value" } }; 1304var extensions = (IReadOnlyDictionary<string, object>)new Dictionary<string, object> { ["test"] = "value" }; 1399var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } }; 1405var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } }; 1780(() => Results.ValidationProblem(new Dictionary<string, string[]>(), null, null, null, null, null, null), typeof(ProblemHttpResult)),
TypedResultsTests.cs (3)
1072var extensions = new Dictionary<string, object> { { "test", "value" } }; 1191var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } }; 1196var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } };
Microsoft.AspNetCore.Http.Tests (4)
DefaultHttpContextTests.cs (1)
140var items = new Dictionary<object, object>();
Internal\DefaultHttpRequestTests.cs (2)
152var query2 = new QueryCollection(new Dictionary<string, StringValues>() 185var cookies2 = new RequestCookieCollection(new Dictionary<string, string>()
QueryCollectionTests.cs (1)
13IQueryCollection query = new QueryCollection(new Dictionary<string, StringValues>());
Microsoft.AspNetCore.HttpOverrides.Tests (3)
HttpMethodOverrideMiddlewareTest.cs (3)
134req.Content = new FormUrlEncodedContent(new Dictionary<string, string>() 172req.Content = new FormUrlEncodedContent(new Dictionary<string, string>() 209req.Content = new FormUrlEncodedContent(new Dictionary<string, string>()
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
425TypedResults.ValidationProblem(new Dictionary<string, string[]> {
Microsoft.AspNetCore.Identity.FunctionalTests (23)
Extensions\HttpClientExtensions.cs (1)
16return client.SendAsync(form, submitButton, new Dictionary<string, string>());
Infrastructure\HtmlPageContext.cs (1)
10protected HtmlPageContext() : this(new Dictionary<string, object>())
Infrastructure\ServerFactory.cs (1)
92new Dictionary<UIFramework, string>()
MapIdentityApiTests.cs (1)
1347private static Dictionary<string, Action<IServiceCollection>> AddIdentityActions { get; } = new()
Pages\Account\ExternalLogin.cs (2)
29var response = await Client.SendAsync(_emailForm, new Dictionary<string, string> 41var response = await Client.SendAsync(_emailForm, new Dictionary<string, string>
Pages\Account\ForgotPassword.cs (1)
20var response = await Client.SendAsync(_forgotPasswordForm, new Dictionary<string, string>
Pages\Account\Login.cs (1)
99return await Client.SendAsync(_loginForm, _loginButton, new Dictionary<string, string>()
Pages\Account\LoginWith2fa.cs (1)
28var response = await Client.SendAsync(_twoFactorForm, new Dictionary<string, string>
Pages\Account\LoginWithRecoveryCode.cs (1)
21var response = await Client.SendAsync(_loginWithRecoveryCodeForm, new Dictionary<string, string>
Pages\Account\Manage\ChangePassword.cs (1)
21await Client.SendAsync(_changePasswordForm, new Dictionary<string, string>
Pages\Account\Manage\DeleteUser.cs (1)
32return await Client.SendAsync(_deleteForm, new Dictionary<string, string>()
Pages\Account\Manage\Email.cs (1)
48var response = await Client.SendAsync(_changeEmailForm, _changeEmailButton, new Dictionary<string, string>
Pages\Account\Manage\EnableAuthenticator.cs (1)
34var sendCodeResponse = await Client.SendAsync(_sendCodeForm, new Dictionary<string, string>
Pages\Account\Manage\ManageExternalLogin.cs (1)
21var linkedExternalLogin = await Client.SendAsync(_externalLoginForm, new Dictionary<string, string>
Pages\Account\Manage\PersonalData.cs (1)
30return await Client.SendAsync(_downloadForm, new Dictionary<string, string>());
Pages\Account\Manage\RemoveExternalLogin.cs (1)
21await Client.SendAsync(_removeLoginForm, new Dictionary<string, string>
Pages\Account\Manage\SetPassword.cs (1)
21await Client.SendAsync(_setPasswordForm, new Dictionary<string, string>
Pages\Account\Register.cs (2)
39var registered = await Client.SendAsync(_registerForm, new Dictionary<string, string>() 56var registered = await Client.SendAsync(_registerForm, new Dictionary<string, string>()
Pages\Account\ResendEmailConfirmation.cs (1)
19=> Client.SendAsync(_resendForm, new Dictionary<string, string>
Pages\Account\ResetPassword.cs (1)
28var resetPasswordResponse = await Client.SendAsync(_resetPasswordForm, new Dictionary<string, string>
Pages\Contoso\Login.cs (1)
36var contosoResponse = await Client.SendAsync(_loginForm, new Dictionary<string, string>
Microsoft.AspNetCore.Identity.InMemory.Test (3)
InMemoryStore.cs (1)
71private readonly Dictionary<string, TRole> _roles = new Dictionary<string, TRole>();
InMemoryUserStore.cs (2)
24private readonly Dictionary<string, TUser> _logins = new Dictionary<string, TUser>(); 26private readonly Dictionary<string, TUser> _users = new Dictionary<string, TUser>();
Microsoft.AspNetCore.Identity.Test (1)
SignInManagerTest.cs (1)
1739private static readonly Dictionary<string, AuthenticationScheme> _defaultCookieSchemes = new()
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
61var personalData = new Dictionary<string, string?>();
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
61var personalData = new Dictionary<string, string?>();
Microsoft.AspNetCore.InternalTesting (2)
AssemblyTestLog.cs (1)
30private static readonly Dictionary<Assembly, AssemblyTestLog> _logs = new();
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (14)
Adapters\AdapterFactoryTests.cs (1)
34IAdapter adapter = factory.Create(new Dictionary<string, string>());
CustomNamingStrategyTests.cs (1)
21var targetObject = new Dictionary<string, int>()
IntegrationTests\DictionaryIntegrationTest.cs (2)
133public IDictionary<string, int> DictionaryOfStringToInteger { get; } = new Dictionary<string, int>(); 138public IDictionary<int, Customer> DictionaryOfStringToCustomer { get; } = new Dictionary<int, Customer>();
Internal\DictionaryAdapterTest.cs (7)
39var dictionary = new Dictionary<int, object>(); 61var dictionary = new Dictionary<int, object>(); 161var dictionary = new Dictionary<Guid, object>(); 181var dictionary = new Dictionary<Guid, int>(); 279var dictionary = new Dictionary<Uri, object>(); 298var dictionary = new Dictionary<string, List<object>>(); 322var dictionary = new Dictionary<string, object>();
Internal\ObjectVisitorTest.cs (1)
17public IDictionary<string, string> CountriesAndRegions = new Dictionary<string, string>();
TestObjectModels\DynamicTestObject.cs (1)
11private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
WriteOnceDynamicTestObject.cs (1)
25private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
Microsoft.AspNetCore.JsonPatch.Tests (14)
Adapters\AdapterFactoryTests.cs (1)
38IAdapter adapter = factory.Create(new Dictionary<string, string>(), new DefaultContractResolver());
CustomNamingStrategyTests.cs (1)
97var targetObject = new Dictionary<string, int>()
IntegrationTests\DictionaryIntegrationTest.cs (2)
133public IDictionary<string, int> DictionaryOfStringToInteger { get; } = new Dictionary<string, int>(); 138public IDictionary<int, Customer> DictionaryOfStringToCustomer { get; } = new Dictionary<int, Customer>();
Internal\DictionaryAdapterTest.cs (7)
42var dictionary = new Dictionary<int, object>(); 64var dictionary = new Dictionary<int, object>(); 164var dictionary = new Dictionary<Guid, object>(); 184var dictionary = new Dictionary<Guid, int>(); 281var dictionary = new Dictionary<Uri, object>(); 300var dictionary = new Dictionary<string, List<object>>(); 324var dictionary = new Dictionary<string, object>();
Internal\ObjectVisitorTest.cs (1)
17public IDictionary<string, string> CountriesAndRegions = new Dictionary<string, string>();
TestObjectModels\DynamicTestObject.cs (1)
11private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
WriteOnceDynamicTestObject.cs (1)
25private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
Microsoft.AspNetCore.Mvc.Abstractions (5)
Abstractions\ActionDescriptor.cs (1)
21Properties = new Dictionary<object, object?>();
ApiExplorer\ApiDescription.cs (1)
38public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
ModelBinding\ModelMetadata.cs (2)
667var parameterMapping = new Dictionary<ModelMetadata, ModelMetadata>(); 668var propertyMapping = new Dictionary<ModelMetadata, ModelMetadata>();
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixAction.cs (2)
149var statusCodeConstants = new Dictionary<int, string>(); 179var statusCodes = new Dictionary<int, (int, ITypeSymbol?)>();
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (2)
145var results = new Dictionary<int, ApiResponseType>(); 230var results = new Dictionary<int, ApiResponseType>();
Microsoft.AspNetCore.Mvc.Core (16)
ApiBehaviorOptions.cs (1)
92public IDictionary<int, ClientErrorData> ClientErrorMapping { get; } = new Dictionary<int, ClientErrorData>();
ApplicationModels\ActionModel.cs (1)
39Properties = new Dictionary<object, object?>();
ApplicationModels\ApplicationModel.cs (1)
23Properties = new Dictionary<object, object?>();
ApplicationModels\ApplicationModelFactory.cs (2)
60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>(); 86var attributeRoutingConfigurationErrors = new Dictionary<MethodInfo, string>();
ApplicationModels\ControllerModel.cs (1)
38Properties = new Dictionary<object, object?>();
ApplicationModels\ParameterModelBase.cs (1)
28Properties = new Dictionary<object, object?>();
Formatters\TextOutputFormatter.cs (1)
41var cache = new Dictionary<string, string>();
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
28var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
24var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\DictionaryModelBinder.cs (1)
245return new Dictionary<TKey, TValue>();
ModelBinding\Metadata\DisplayMetadata.cs (1)
20public IDictionary<object, object> AdditionalValues { get; } = new Dictionary<object, object>();
ModelBinding\ModelBinderFactory.cs (1)
224Visited = new Dictionary<Key, IModelBinder?>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Mvc.Core.Test (176)
AcceptedAtRouteResultTests.cs (4)
62var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 87new Dictionary<string, string>() 92new Dictionary<string, string>() 134routeValues: new Dictionary<string, object>(),
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1295RouteValues = new Dictionary<string, string>() 1303RouteValues = new Dictionary<string, string>()
ApplicationParts\RelatedAssemblyPartTest.cs (1)
106public Dictionary<string, Assembly> Assemblies { get; } = new Dictionary<string, Assembly>();
Authorization\AuthorizeFilterTest.cs (1)
621var contextItems = new Dictionary<object, object>();
ControllerBaseTest.cs (10)
1406var expected = new Dictionary<string, object> 1446var expected = new Dictionary<string, object> 1467var expected = new Dictionary<string, object> 1600var expected = new Dictionary<string, object> 1625var expected = new Dictionary<string, object> 1646var expected = new Dictionary<string, object> 2444var actionResult = controller.ValidationProblem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } }); 2521var actionResult = controller.Problem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } }); 2590new Dictionary<string, object> { { "hello", "world" } }, 2594var expected2 = new Dictionary<string, object>
Controllers\ControllerBinderDelegateProviderTest.cs (2)
990var boundPropertyTypes = new Dictionary<string, Type> 998var inputPropertyValues = new Dictionary<string, object>
CreatedAtRouteResultTests.cs (3)
26new Dictionary<string, string>() { { "hello", "world" } } 30new RouteValueDictionary(new Dictionary<string, string>() { 68routeValues: new Dictionary<string, object>(),
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
232return new Dictionary<Type, Type[]>()
Filters\ResponseCacheFilterExecutorTest.cs (1)
538new Dictionary<string, object>(),
Infrastructure\ConfigureCompatibilityOptionsTest.cs (3)
19var configure = Create(CompatibilityVersion.Version_3_0, new Dictionary<string, object>()); 36new Dictionary<string, object> 59new Dictionary<string, object>
Infrastructure\ControllerActionInvokerTest.cs (26)
858var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 883var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 909var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 932var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 955var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 988var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.Echo), new Dictionary<string, object>() { { "input", inputString } }); 1015new Dictionary<string, object>() { { "input", inputString } }); 1038new Dictionary<string, object>()); 1065new Dictionary<string, object>() { { "input", inputString } }); 1091new Dictionary<string, object>()); 1118new Dictionary<string, object>() { { "input", inputString } }); 1134var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1162var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1192var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1215var actionParameters = new Dictionary<string, object> { ["value"] = 3 }; 1241var actionParameters = new Dictionary<string, object> { ["value"] = 3 }; 1271var actionParameters = new Dictionary<string, object> { { "s", inputParam2 }, { "i", inputParam1 } }; 1301var actionParameters = new Dictionary<string, object> { { "value", inputParam } }; 1330var actionParameters = new Dictionary<string, object> { { "i", "Some Invalid Value" }, { "s", inputParam2 } }; 1371new Dictionary<string, object>()); 1405.Returns(new Dictionary<object, object>()); 1455var actionParameters = new Dictionary<string, object> { { "input", inputParam }, }; 1480var actionParameters = new Dictionary<string, object> { { "input", inputParam }, }; 1504var actionParameters = new Dictionary<string, object>(); 1528var actionParameters = new Dictionary<string, object>(); 1687arguments = new Dictionary<string, object>();
Infrastructure\ModelStateInvalidFilterTest.cs (1)
77new Dictionary<string, object>(),
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
139var problemDetails = new ValidationProblemDetails(new Dictionary<string, string[]>() { { "Property", new string[] { "error0" } } }) 163var errors = new Dictionary<string, string[]>()
ModelBinding\Binders\ArrayModelBinderTest.cs (3)
75bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 109bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 155bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\Binders\CollectionModelBinderTest.cs (5)
261bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 295bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 336bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 369bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 411bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
292ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 298var binders = new Dictionary<ModelMetadata, IModelBinder>(); 344ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 349new Dictionary<ModelMetadata, IModelBinder>(), 388ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 393new Dictionary<ModelMetadata, IModelBinder>(), 1108var valueProvider = new TestValueProvider(new Dictionary<string, object>()); 1389public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>(); 1396public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string>
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (13)
352ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 358var binders = new Dictionary<ModelMetadata, IModelBinder>(); 404ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 409new Dictionary<ModelMetadata, IModelBinder>(), 448ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 453new Dictionary<ModelMetadata, IModelBinder>(), 1272var valueProvider = new TestValueProvider(new Dictionary<string, object>()); 1564public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>(); 1571public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string> 1586var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>(); 1603: this(new Dictionary<ModelMetadata, IModelBinder>()) 1608: this(new Dictionary<ModelMetadata, IModelBinder>(), allowValidatingTopLevelNodes) 1624public Dictionary<ModelMetadata, ModelBindingResult> Results { get; } = new Dictionary<ModelMetadata, ModelBindingResult>();
ModelBinding\Binders\DictionaryModelBinderTest.cs (12)
21var values = new Dictionary<string, string>() 61var values = new Dictionary<string, string>() 72var dictionary = new Dictionary<int, string>(); 268var dictionaryWithOne = new Dictionary<long, int> 272var dictionaryWithThree = new Dictionary<long, int> 319var dictionary = new Dictionary<int, ModelWithProperties> 324var stringDictionary = new Dictionary<string, string> 346new ComplexObjectModelBinder(new Dictionary<ModelMetadata, IModelBinder>() 446bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 481bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 530bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 575bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
18var formCollection = new FormCollection(new Dictionary<string, StringValues>
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
160bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 190bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\DefaultModelBindingContextTest.cs (1)
179new FormCollection(new Dictionary<string, StringValues>()),
ModelBinding\EnumerableValueProviderTest.cs (6)
11protected static Dictionary<string, StringValues> BackingStore { get; } = new Dictionary<string, StringValues> 32var backingStore = new Dictionary<string, StringValues>(); 87var expected = new Dictionary<string, string> 120var expected = new Dictionary<string, string> 142var expected = new Dictionary<string, string> 207var backingStore = new Dictionary<string, StringValues>
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
117context.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelBinding\FormFileValueProviderTest.cs (3)
19httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), formFiles); 38httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), formFiles); 57httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), formFiles);
ModelBinding\FormValueProviderFactoryTest.cs (1)
108context.Request.Form = new FormCollection(new Dictionary<string, StringValues>());
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
15private static readonly Dictionary<string, StringValues> _backingStore = new Dictionary<string, StringValues> 193context.Request.Form = new FormCollection(formValues ?? new Dictionary<string, StringValues>());
ModelBinding\JQueryFormValueProviderTest.cs (1)
23var dictionary = new Dictionary<string, StringValues>();
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (2)
14private static readonly Dictionary<string, StringValues> _backingStore = new Dictionary<string, StringValues> 87var context = CreateContext(new Dictionary<string, StringValues>());
ModelBinding\JQueryQueryStringValueProviderTest.cs (1)
23var dictionary = new Dictionary<string, StringValues>();
ModelBinding\ModelBindingHelperTest.cs (7)
62var values = new Dictionary<string, object> 104var values = new Dictionary<string, object> 175var values = new Dictionary<string, object> 255var values = new Dictionary<string, object> 306var values = new Dictionary<string, object> 505var values = new Dictionary<string, object> 580var values = new Dictionary<string, object>
ModelBinding\QueryStringValueProviderFactoryTest.cs (1)
33var queryValues = new Dictionary<string, StringValues>();
ModelBinding\RouteValueProviderTests.cs (12)
16var values = new RouteValueDictionary(new Dictionary<string, object> 33var values = new RouteValueDictionary(new Dictionary<string, object> 51var values = new RouteValueDictionary(new Dictionary<string, object> 68var values = new RouteValueDictionary(new Dictionary<string, object> 87var values = new RouteValueDictionary(new Dictionary<string, object> 104var values = new RouteValueDictionary(new Dictionary<string, object> 121var values = new RouteValueDictionary(new Dictionary<string, object> 142var values = new RouteValueDictionary(new Dictionary<string, object> 163var values = new RouteValueDictionary(new Dictionary<string, object> 182var values = new RouteValueDictionary(new Dictionary<string, object> 200var values = new RouteValueDictionary(new Dictionary<string, object> 217var values = new RouteValueDictionary(new Dictionary<string, object>
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
25new Dictionary<string, object>(), 58new Dictionary<string, object>(), 84new Dictionary<string, object>(), 108new Dictionary<string, object>(),
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (1)
49var model = new Dictionary<int, string>()
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
985var model = new Dictionary<string, string>() 1032var model = (object)new Dictionary<string, Person> { { "Joe", new Person() }, { "Mark", new Person() } };
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (1)
49var model = new Dictionary<int, string>()
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (6)
12var model = new Dictionary<int, string>() 22var strategy = new ShortFormDictionaryValidationStrategy<int, string>(new Dictionary<string, int>() 60var model = new Dictionary<int, string>() 70var strategy = new ShortFormDictionaryValidationStrategy<int, string>(new Dictionary<string, int>() 101var model = new Dictionary<int, string>() 110var strategy = new ShortFormDictionaryValidationStrategy<int, string>(new Dictionary<string, int>()
RedirectToPageResultTest.cs (1)
31var result = new RedirectToPageResult("/some-page", new Dictionary<string, object>())
RedirectToRouteResultTest.cs (3)
69var result = new RedirectToRouteResult(null, new Dictionary<string, object>()) 200new Dictionary<string, string>() { { "hello", "world" } } 204new RouteValueDictionary(new Dictionary<string, string>() {
ResponseCacheAttributeTest.cs (8)
29var cacheProfiles = new Dictionary<string, CacheProfile>(); 49var cacheProfiles = new Dictionary<string, CacheProfile>(); 92new Dictionary<string, CacheProfile> { { "TestCacheProfile", new CacheProfile 111new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile 130new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile 148new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile() } }, 189var cacheProfiles = new Dictionary<string, CacheProfile>(); 350new Dictionary<string, object>(),
Routing\UrlHelperExtensionsTest.cs (4)
58new Dictionary<string, object> 265RouteValues = new Dictionary<string, string> 499RouteValues = new Dictionary<string, string> 870RouteValues = new Dictionary<string, string>
Routing\UrlHelperTestBase.cs (5)
623var dictionary = new Dictionary<string, object>(); 668var dict = new Dictionary<string, object>(); 889var mockItems = new Dictionary<object, object> 911httpContext.Setup(h => h.Items).Returns(new Dictionary<object, object>()); 930var mockItems = new Dictionary<object, object>
ValidationProblemDetailsTest.cs (1)
79var errors = new Dictionary<string, string[]>
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
CommonFilterTest.cs (1)
198new Dictionary<string, object>(),
LinkBuilder.cs (1)
14Values = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
176var namesAndValues = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (45)
CompareAttributeAdapterTest.cs (6)
33new Dictionary<string, string>()); 76new Dictionary<string, string>()); 111new Dictionary<string, string>()); 148new Dictionary<string, string>()); 188new Dictionary<string, string>()); 221new Dictionary<string, string>());
DataAnnotationsMetadataProviderTest.cs (10)
691{ typeof(EmptyEnum), new Dictionary<string, string>() }, 692{ typeof(EmptyEnum?), new Dictionary<string, string>() }, 695new Dictionary<string, string> 707new Dictionary<string, string> 719new Dictionary<string, string> 732new Dictionary<string, string> 745new Dictionary<string, string> 756new Dictionary<string, string> 767new Dictionary<string, string> 779new Dictionary<string, string>
FileExtensionsAttributeAdapterTest.cs (4)
33var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 84var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 119var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 144var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
MaxLengthAttributeAdapterTest.cs (5)
36var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 63var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 92var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 125var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 152var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
MinLengthAttributeAdapterTest.cs (4)
36var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 63var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 91var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 117var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
NumericClientModelValidatorTest.cs (5)
24var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 58var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 90var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 116var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 139var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RangeAttributeAdapterTest.cs (3)
30var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 66var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 94var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RequiredAttributeAdapterTest.cs (3)
37var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 62var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 87var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
StringLengthAttributeAdapterTest.cs (5)
37var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 64var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 91var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 119var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 145var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerOutputFormatterTest.cs (3)
87yield return new object[] { new Dictionary<string, string>() { { "Hello", "World" } }, 369new Dictionary<string, string> { { "Hello", "world" } }, typeof(object), true }; 371new Dictionary<string, string> { { "Hello", "world" } }, typeof(Dictionary<string,string>), true };
XmlSerializerOutputFormatterTest.cs (1)
342new Dictionary<string, string> { { "Hello", "world" } }, typeof(Dictionary<string,string>), false };
Microsoft.AspNetCore.Mvc.FunctionalTests (30)
ApiBehaviorTest.cs (1)
440var expected = new Dictionary<string, string[]>
BasicTests.cs (5)
398var product = new Dictionary<string, string> 529var formContent = new Dictionary<string, string> 551var formContent = new Dictionary<string, string> 575var formContent = new Dictionary<string, string> 595var formContent = new Dictionary<string, string>
HtmlGenerationTest.cs (9)
142AssertImgElement(document.GetElementById("1"), new() 150AssertImgElement(document.GetElementById("2"), new() 158AssertImgElement(document.GetElementById("3"), new() 166AssertImgElement(document.GetElementById("4"), new() 173AssertImgElement(document.GetElementById("5"), new() 180AssertImgElement(document.GetElementById("6"), new() 187AssertImgElement(document.GetElementById("7"), new() 194AssertImgElement(document.GetElementById("8"), new() 787request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
InputParentValidationTests.cs (1)
93var result = new Dictionary<string, string[]>();
InputValidationTests.cs (2)
36var content = new FormUrlEncodedContent(new Dictionary<string, string> 76var content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorBuildTest.cs (1)
175var updateContent = new FormUrlEncodedContent(new Dictionary<string, string>
RazorPagesTest.cs (3)
788Content = new FormUrlEncodedContent(new Dictionary<string, string> 813Content = new FormUrlEncodedContent(new Dictionary<string, string> 1290Content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorPagesWithBasePathTest.cs (3)
434Content = new FormUrlEncodedContent(new Dictionary<string, string> 463Content = new FormUrlEncodedContent(new Dictionary<string, string> 491Content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorRuntimeCompilationHostingStartupTest.cs (1)
121var updateContent = new FormUrlEncodedContent(new Dictionary<string, string>
ReadFromDisconnectedClientTest.cs (1)
56request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
RemoteAttributeValidationTest.cs (1)
89var contentDictionary = new Dictionary<string, string>
TagHelpersTest.cs (2)
229var validPostValues = new Dictionary<string, string> 257var validPostValues = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.IntegrationTests (81)
ActionParametersIntegrationTest.cs (1)
1085var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
BindingSourceMetadataProviderIntegrationTest.cs (2)
36request.Form = new FormCollection(new Dictionary<string, StringValues> 125var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
BodyValidationIntegrationTests.cs (1)
895var result = new Dictionary<string, string>();
CollectionModelBinderIntegrationTest.cs (24)
597var formCollection = new FormCollection(new Dictionary<string, StringValues>() 655var formCollection = new FormCollection(new Dictionary<string, StringValues>() 732new Dictionary<string, StringValues> 741new Dictionary<string, StringValues> 751new Dictionary<string, StringValues> 761new Dictionary<string, StringValues> 770new Dictionary<string, StringValues> 779new Dictionary<string, StringValues> 789new Dictionary<string, StringValues> 798new Dictionary<string, StringValues> 808new Dictionary<string, StringValues> 817new Dictionary<string, StringValues> 827new Dictionary<string, StringValues> 836new Dictionary<string, StringValues> 846new Dictionary<string, StringValues> 854new Dictionary<string, StringValues> 862new Dictionary<string, StringValues> 870new Dictionary<string, StringValues> 878new Dictionary<string, StringValues> 886new Dictionary<string, StringValues> 894new Dictionary<string, StringValues> 902new Dictionary<string, StringValues> 910new Dictionary<string, StringValues> 918new Dictionary<string, StringValues>
ComplexRecordIntegrationTest.cs (3)
1201Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 1256Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 4223var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
ComplexTypeIntegrationTestBase.cs (3)
1219Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 1274Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 3722var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
DictionaryModelBinderIntegrationTest.cs (32)
42Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model); 82Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model); 120Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model); 173Assert.Equal(new Dictionary<string, int>() { { "key0", 10 }, }, model); 210Assert.Equal(new Dictionary<string, int>() { { "key0", 10 }, }, model); 224var impliedPrefixDictionary = new Dictionary<string, StringValues> 230var reversedImpliedPrefixDictionary = new Dictionary<string, StringValues> 236var longFormDictionary = new Dictionary<string, StringValues> 245var longerFormDictionary = new Dictionary<string, StringValues> 255var longestFormDictionary = new Dictionary<string, StringValues> 269var noPrefixDictionary = new Dictionary<string, StringValues> 275var reversedNoPrefixDictionary = new Dictionary<string, StringValues> 331var expectedDictionary = new Dictionary<string, int> 366var expectedDictionary = new Dictionary<string, int> 527Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model); 544var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } }; 582var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } }; 617var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } }; 652var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } }; 725Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model); 764Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model); 804Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 100 } }, }, model); 909var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 941var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 975var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 1014var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } }; 1053var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } }; 1160var expectedDictionary = new Dictionary<string, string> 1359var expectedDictionary = new Dictionary<DayOfWeek, string> 1394var expectedDictionary = new Dictionary<string, DayOfWeek> 1518private readonly IDictionary<string, string> _data = new Dictionary<string, string>(); 1623private readonly IDictionary<TKey, TValue> _data = new Dictionary<TKey, TValue>();
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
37request.Form = new FormCollection(new Dictionary<string, StringValues> 86request.Form = new FormCollection(new Dictionary<string, StringValues>
FormCollectionModelBindingIntegrationTest.cs (1)
160var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
FormFileModelBindingIntegrationTest.cs (2)
1207request.QueryString = QueryString.Create(new Dictionary<string, string> 1252var formCollection = new FormCollection(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelPrefixSelectionIntegrationTest.cs (4)
38request.Form = new FormCollection(new Dictionary<string, StringValues>() 87request.Form = new FormCollection(new Dictionary<string, StringValues>() 175request.Form = new FormCollection(new Dictionary<string, StringValues>() 221request.Form = new FormCollection(new Dictionary<string, StringValues>()
SimpleTypeModelBinderIntegrationTest.cs (2)
643new Dictionary<string, StringValues> 649new Dictionary<string, StringValues>
TryUpdateModelIntegrationTest.cs (3)
107request.QueryString = QueryString.Create(new Dictionary<string, string> 707request.QueryString = QueryString.Create(new Dictionary<string, string> 1277var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
TryValidateModelIntegrationTest.cs (1)
226var result = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (34)
BsonTempDataSerializerTest.cs (13)
22{ new Dictionary<string, TestItem>(), typeof(TestItem) }, 47{ new Dictionary<int, string>(), typeof(int) }, 48{ new Dictionary<Uri, Guid>(), typeof(Uri) }, 49{ new Dictionary<object, string>(), typeof(object) }, 50{ new Dictionary<TestItem, TestItem>(), typeof(TestItem) } 83{ new Dictionary<string, int>() }, 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 161var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 212var input = new Dictionary<string, object> 239var input = new Dictionary<string, object>
DependencyInjection\MvcNewtonsoftJsonOptionsExtensionsTest.cs (4)
87var dictionary = new Dictionary<string, int> 106var dictionary = new Dictionary<string, int>() 125var dictionary = new Dictionary<string, int> 197var dictionary = new Dictionary<string, int>()
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object> 54var input = new Dictionary<string, object> 76var input = new Dictionary<string, object> 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 160var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 204var input = new Dictionary<string, object> 226var input = new Dictionary<string, object> 247var input = new Dictionary<string, object> 268var input = new Dictionary<string, object> 289var input = new Dictionary<string, object> 309var value = new Dictionary<string, string> 314var input = new Dictionary<string, object> 334var value = new Dictionary<string, int> 339var input = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
170new Dictionary<string, ReportDiagnostic>
Microsoft.AspNetCore.Mvc.Razor.Test (59)
LanguageViewLocationExpanderTest.cs (3)
141viewLocationExpanderContext.Values = new Dictionary<string, string>(); 166viewLocationExpanderContext.Values = new Dictionary<string, string>(); 194viewLocationExpanderContext.Values = new Dictionary<string, string>();
RazorPageTest.cs (18)
424page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 464page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 487page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 524page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 548page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 572page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 596page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 620page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 697page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 722page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 745page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 770page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 804page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 983items: new Dictionary<object, object>(), 1025items: new Dictionary<object, object>(), 1071items: new Dictionary<object, object>(), 1114items: new Dictionary<object, object>(), 1144items: new Dictionary<object, object>(),
RazorViewEngineTest.cs (22)
23private static readonly Dictionary<string, object> _areaTestContext = new Dictionary<string, object>() 29private static readonly Dictionary<string, object> _controllerTestContext = new Dictionary<string, object>() 34private static readonly Dictionary<string, object> _pageTestContext = new Dictionary<string, object>() 546var areaContext = GetActionContext(new Dictionary<string, object>() 561var nonAreaContext = GetActionContext(new Dictionary<string, object>() 610var areaContext1 = GetActionContext(new Dictionary<string, object>() 625var areaContext2 = GetActionContext(new Dictionary<string, object>() 809var context = GetActionContext(new Dictionary<string, object>()); 1283var routeValues = new Dictionary<string, object> 1295var routesInActionDescriptor = new Dictionary<string, string>() 1324var routeValues = new Dictionary<string, object> 1328var routesInActionDescriptor = new Dictionary<string, string>() 1358var routeValues = new Dictionary<string, object> 1363var routesInActionDescriptor = new Dictionary<string, string>() 1393var routeValues = new Dictionary<string, object>() 1401new Dictionary<string, string>()); 1833var routeValues = new Dictionary<string, object> 1870var routeValues = new Dictionary<string, object> 1911var context = GetActionContext(new Dictionary<string, object>()); 1929var context = GetActionContext(new Dictionary<string, object>()); 1951var context = GetActionContext(new Dictionary<string, object>()); 1969var context = GetActionContext(new Dictionary<string, object>());
TagHelpers\TagHelperComponentTagHelperTest.cs (8)
25items: new Dictionary<object, object>(), 74items: new Dictionary<object, object>(), 130items: new Dictionary<object, object>(), 161items: new Dictionary<object, object>(), 192items: new Dictionary<object, object>(), 227items: new Dictionary<object, object>(), 260items: new Dictionary<object, object>(), 291items: new Dictionary<object, object>(),
TagHelpers\UrlResolutionTagHelperTest.cs (8)
80items: new Dictionary<object, object>(), 122items: new Dictionary<object, object>(), 182items: new Dictionary<object, object>(), 240items: new Dictionary<object, object>(), 296items: new Dictionary<object, object>(), 327items: new Dictionary<object, object>(), 376items: new Dictionary<object, object>(), 422items: new Dictionary<object, object>(),
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\PageHandlerModel.cs (1)
29Properties = new Dictionary<object, object?>();
ApplicationModels\PageRouteModel.cs (1)
37Properties = new Dictionary<object, object?>();
Builder\PageActionEndpointConventionBuilder.cs (1)
26internal IDictionary<string, object> Items { get; set; } = new Dictionary<string, object>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (35)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
27RouteValues = new Dictionary<string, string>(), 55RouteValues = new Dictionary<string, string>(), 106RouteValues = new Dictionary<string, string>(), 148RouteValues = new Dictionary<string, string>(), 410RouteValues = new Dictionary<string, string>(),
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
67new Dictionary<string, object>(), 108new Dictionary<string, object>(), 148new Dictionary<string, object>(),
Filters\PageViewDataAttributeFilterTest.cs (2)
26var context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler); 45var context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
129return new PageHandlerExecutingContext(pageContext, Array.Empty<IFilterMetadata>(), handlerMethodDescriptor, new Dictionary<string, object>(), new object());
Infrastructure\PageBinderFactoryTest.cs (13)
212var binder = new TestParameterBinder(new Dictionary<string, object> 269var binder = new TestParameterBinder(new Dictionary<string, object> 323var binder = new TestParameterBinder(new Dictionary<string, object>()); 382var binder = new TestParameterBinder(new Dictionary<string, object>() 441var binder = new TestParameterBinder(new Dictionary<string, object>() 492var binder = new TestParameterBinder(new Dictionary<string, object> 583var parameterBinder = new TestParameterBinder(new Dictionary<string, object>() 603var arguments = new Dictionary<string, object>(); 626var parameterBinder = new TestParameterBinder(new Dictionary<string, object>() 646var arguments = new Dictionary<string, object>(); 689var arguments = new Dictionary<string, object>(); 713var parameterBinder = new TestParameterBinder(new Dictionary<string, object>() 740var arguments = new Dictionary<string, object>();
Infrastructure\PageHandlerPageFilterTest.cs (4)
29new Dictionary<string, object>(), 77new Dictionary<string, object>(), 120new Dictionary<string, object>(), 153new Dictionary<string, object>(),
Infrastructure\PageViewLocationExpanderTest.cs (1)
216Values = new Dictionary<string, string>(),
PageModelTest.cs (4)
941new Dictionary<string, object> { { "hello", "world" } }, 945var expected2 = new Dictionary<string, object> 1855new Dictionary<string, object>(), 1889new Dictionary<string, object>(),
PageTest.cs (2)
1870new Dictionary<string, object> { { "hello", "world" } }, 1874var expected2 = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.TagHelpers.Test (166)
AnchorTagHelperTest.cs (16)
35items: new Dictionary<object, object>(), 95items: new Dictionary<object, object>(), 145items: new Dictionary<object, object>(), 197items: new Dictionary<object, object>(), 211var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 255items: new Dictionary<object, object>(), 269var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 292RouteValues = new Dictionary<string, string> { { "area", "Home" } } 314items: new Dictionary<object, object>(), 328var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 372items: new Dictionary<object, object>(), 423items: new Dictionary<object, object>(), 520items: new Dictionary<object, object>(), 560items: new Dictionary<object, object>(), 598items: new Dictionary<object, object>(), 636items: new Dictionary<object, object>(),
AttributeMatcherTest.cs (1)
98items: new Dictionary<object, object>(),
CacheTagHelperTest.cs (2)
495items: new Dictionary<object, object>(), 946items: new Dictionary<object, object>(),
CacheTagKeyTest.cs (1)
554items: new Dictionary<object, object>(),
ComponentTagHelperTest.cs (1)
66new Dictionary<object, object>(),
DistributedCacheTagHelperTest.cs (1)
752items: new Dictionary<object, object>(),
EnvironmentTagHelperTest.cs (1)
215items: new Dictionary<object, object>(),
FormActionTagHelperTest.cs (20)
28items: new Dictionary<object, object>(), 103items: new Dictionary<object, object>(), 173{ new Dictionary<string, string>(), null }, 175new Dictionary<string, string> { { "name", "value" } }, 176new Dictionary<string, object> { { "name", "value" } } 204items: new Dictionary<object, object>(), 264items: new Dictionary<object, object>(), 321{ "Area", new Dictionary<string, string> { { "area", "Home" } }, "Area" }, 324{ string.Empty, new Dictionary<string, string> { { "area", "Home" } }, string.Empty }, 326{ null, new Dictionary<string, string> { { "area", "Admin" } }, "Admin" }, 342items: new Dictionary<object, object>(), 352var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } }; 396items: new Dictionary<object, object>(), 406var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } }; 445items: new Dictionary<object, object>(), 543items: new Dictionary<object, object>(), 583items: new Dictionary<object, object>(), 621items: new Dictionary<object, object>(), 659items: new Dictionary<object, object>(), 697items: new Dictionary<object, object>(),
FormTagHelperTest.cs (25)
33items: new Dictionary<object, object>(), 81items: new Dictionary<object, object>(), 137items: new Dictionary<object, object>(), 191items: new Dictionary<object, object>(), 249items: new Dictionary<object, object>(), 312items: new Dictionary<object, object>(), 387items: new Dictionary<object, object>(), 441items: new Dictionary<object, object>(), 513items: new Dictionary<object, object>(), 574items: new Dictionary<object, object>(), 632items: new Dictionary<object, object>(), 644var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 689items: new Dictionary<object, object>(), 701var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 746items: new Dictionary<object, object>(), 758var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 776RouteValues = new Dictionary<string, string> { { "area", "Client" } }, 804items: new Dictionary<object, object>(), 859items: new Dictionary<object, object>(), 905items: new Dictionary<object, object>(), 990items: new Dictionary<object, object>(), 1040items: new Dictionary<object, object>(), 1076items: new Dictionary<object, object>(), 1110items: new Dictionary<object, object>(), 1144items: new Dictionary<object, object>(),
ImageTagHelperTest.cs (1)
339items: new Dictionary<object, object>(),
InputTagHelperTest.cs (38)
87items: new Dictionary<object, object>(), 135items: new Dictionary<object, object>(), 182items: new Dictionary<object, object>(), 226items: new Dictionary<object, object>(), 279var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 324var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 378var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 434var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 485var context = new TagHelperContext(expectedAttributes, new Dictionary<object, object>(), "test"); 541var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 643items: new Dictionary<object, object>(), 722items: new Dictionary<object, object>(), 793items: new Dictionary<object, object>(), 887var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 941var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1001var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1061var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1121var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1156items: new Dictionary<object, object>(), 1256items: new Dictionary<object, object>(), 1304new Dictionary<string, object> { { "type", "hidden" } })) // htmlAttributes 1364var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1422items: new Dictionary<object, object>(), 1522items: new Dictionary<object, object>(), 1634items: new Dictionary<object, object>(), 1759items: new Dictionary<object, object>(), 1783var htmlAttributes = new Dictionary<string, object> 1832items: new Dictionary<object, object>(), 1844var htmlAttributes = new Dictionary<string, object> 1901items: new Dictionary<object, object>(), 1913var htmlAttributes = new Dictionary<string, object> 1995items: new Dictionary<object, object>(), 2007var htmlAttributes = new Dictionary<string, object> 2075items: new Dictionary<object, object>(), 2137items: new Dictionary<object, object>(), 2205items: new Dictionary<object, object>(), 2271items: new Dictionary<object, object>(), 2329items: new Dictionary<object, object>(),
LabelTagHelperTest.cs (2)
186items: new Dictionary<object, object>(), 311items: new Dictionary<object, object>(),
LinkTagHelperTest.cs (1)
1150items: new Dictionary<object, object>(),
OptionTagHelperTest.cs (3)
401items: new Dictionary<object, object>(), 473items: new Dictionary<object, object>(), 537items: new Dictionary<object, object>(),
PartialTagHelperTest.cs (1)
854new Dictionary<object, object>(),
PersistComponentStateTagHelperTest.cs (1)
243new Dictionary<object, object>(),
PrerenderComponentApplicationStoreTest.cs (2)
17var state = new Dictionary<string, byte[]>() 35var expected = new Dictionary<string, ReadOnlySequence<byte>>()
ProtectedPrerenderComponentApplicationStateTest.cs (3)
24var state = new Dictionary<string, byte[]>() 40var expectedState = new Dictionary<string, byte[]>() 61var expectedState = new Dictionary<string, byte[]>()
RenderAtEndOfFormTagHelperTest.cs (2)
64new Dictionary<object, object>(), 92items: new Dictionary<object, object>(),
ScriptTagHelperTest.cs (9)
714new Dictionary<string, string> 719new Dictionary<string, IReadOnlyDictionary<string, string>> 721["development"] = new Dictionary<string, string> 727new Dictionary<string, string> 759new Dictionary<string, string> 764new Dictionary<string, IReadOnlyDictionary<string, string>> 766["development"] = new Dictionary<string, string> 772new Dictionary<string, string> 1152items: new Dictionary<object, object>(),
SelectTagHelperTest.cs (9)
202items: new Dictionary<object, object>(), 292items: new Dictionary<object, object>(), 383items: new Dictionary<object, object>(), 472items: new Dictionary<object, object>(), 560items: new Dictionary<object, object>(), 643items: new Dictionary<object, object>(), 723var context = new TagHelperContext(new TagHelperAttributeList(), new Dictionary<object, object>(), "test"); 761var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 811var tagHelperContext = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
TagHelperOutputExtensionsTest.cs (5)
342items: new Dictionary<object, object>(), 444items: new Dictionary<object, object>(), 475items: new Dictionary<object, object>(), 511items: new Dictionary<object, object>(), 542items: new Dictionary<object, object>(),
TextAreaTagHelperTest.cs (3)
124items: new Dictionary<object, object>(), 178var context = new TagHelperContext(new TagHelperAttributeList(), new Dictionary<object, object>(), "test"); 217var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
ValidationMessageTagHelperTest.cs (8)
45items: new Dictionary<object, object>(), 117new Dictionary<object, object>(), 159new Dictionary<object, object>(), 212new Dictionary<object, object>(), 262items: new Dictionary<object, object>(), 335items: new Dictionary<object, object>(), 397items: new Dictionary<object, object>(), 438items: new Dictionary<object, object>(),
ValidationSummaryTagHelperTest.cs (10)
58items: new Dictionary<object, object>(), 123items: new Dictionary<object, object>(), 191items: new Dictionary<object, object>(), 224items: new Dictionary<object, object>(), 294items: new Dictionary<object, object>(), 378items: new Dictionary<object, object>(), 434items: new Dictionary<object, object>(), 493items: new Dictionary<object, object>(), 549items: new Dictionary<object, object>(), 610items: new Dictionary<object, object>(),
Microsoft.AspNetCore.Mvc.Test (2)
MvcServiceCollectionExtensionsTest.cs (1)
475return new Dictionary<Type, Type[]>()
Routing\ActionConstraintMatcherPolicyTest.cs (1)
349new DataTokensMetadata(new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Testing (3)
CustomJsonSerializerContext.IDictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
DeferredHostBuilder.cs (1)
13public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
WebApplicationFactory.cs (1)
280config.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
35var output = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Filters\SaveTempDataPropertyFilterBase.cs (1)
33public IDictionary<PropertyInfo, object> OriginalValues { get; } = new Dictionary<PropertyInfo, object>();
HtmlHelper.cs (1)
1382var groupList = new Dictionary<string, SelectListGroup>();
Infrastructure\DefaultTempDataSerializer.cs (1)
17return new Dictionary<string, object>();
Rendering\ViewContext.cs (1)
207internal Dictionary<object, object?> Items => _items ??= new Dictionary<object, object?>();
TryGetValueProvider.cs (1)
16new Dictionary<Type, TryGetValueDelegate>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (103)
ControllerUnitTestabilityTests.cs (6)
324var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 360var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 397var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 436var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 474var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 508var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
CookieTempDataProviderTest.cs (5)
21private static readonly IDictionary<string, object> Dictionary = new Dictionary<string, object> 118var values = new Dictionary<string, object>(); 269var values = new Dictionary<string, object>(); 280tempDataProvider.SaveTempData(httpContext, new Dictionary<string, object>()); 298var input = new Dictionary<string, object>
DefaultHtmlGeneratorTest.cs (12)
116var htmlAttributes = new Dictionary<string, object> 171var htmlAttributes = new Dictionary<string, object> 201var htmlAttributes = new Dictionary<string, object> 225var htmlAttributes = new Dictionary<string, object> 249var htmlAttributes = new Dictionary<string, object> 271var htmlAttributes = new Dictionary<string, object> 293var htmlAttributes = new Dictionary<string, object> 316var htmlAttributes = new Dictionary<string, object> 369var htmlAttributes = new Dictionary<string, object> 399var htmlAttributes = new Dictionary<string, object> 424var htmlAttributes = new Dictionary<string, object> 471var htmlAttributes = new Dictionary<string, object>
Filters\ControllerSaveTempDataPropertyFilterTest.cs (4)
46new Dictionary<string, object>(), 92new Dictionary<string, object>(), 135new Dictionary<string, object>(), 174new Dictionary<string, object>(),
Filters\ControllerViewDataAttributeFilterTest.cs (2)
22var context = new ActionExecutingContext(actionContext, new IFilterMetadata[0], new Dictionary<string, object>(), controller); 40var context = new ActionExecutingContext(actionContext, new IFilterMetadata[0], new Dictionary<string, object>(), controller);
Infrastructure\DefaultTempDataSerializerTest.cs (3)
20var input = new Dictionary<string, object> 40var value = new Dictionary<string, int> 45var input = new Dictionary<string, object>
Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object> 54var input = new Dictionary<string, object> 76var input = new Dictionary<string, object> 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 160var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 204var input = new Dictionary<string, object> 226var input = new Dictionary<string, object> 247var input = new Dictionary<string, object> 268var input = new Dictionary<string, object> 289var input = new Dictionary<string, object> 309var value = new Dictionary<string, string> 314var input = new Dictionary<string, object> 334var value = new Dictionary<string, int> 339var input = new Dictionary<string, object>
Rendering\HtmlHelperCheckboxTest.cs (5)
113var attributes = new Dictionary<string, object> 502var dictionary = new Dictionary<string, object> { { "Property3", "Property3Value" } }; 528var attributes = new Dictionary<string, object> 707var attributes = new Dictionary<string, object> 732var attributes = new Dictionary<string, object> { { "Property3", "PropValue" } };
Rendering\HtmlHelperFormExtensionsTest.cs (2)
22new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "true" }, }, 34new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } },
Rendering\HtmlHelperFormTest.cs (8)
52new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 54new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } } 58new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 60new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } } 101new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 103new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } } 107new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 109new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } }
Rendering\HtmlHelperHiddenTest.cs (14)
24var htmlAttributes1 = new Dictionary<string, object> 39{ new Dictionary<string, object> { { "foo-baz", "BazValue" } }, expected2 }, 184var attributes = new Dictionary<string, object> { { "data-key", "value" } }; 310var attributes = new Dictionary<string, object> { { "baz", "BazValue" } }; 425var attributes = new Dictionary<string, object> 447var attributes = new Dictionary<string, object> 467var attributes = new Dictionary<string, object> 534var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 573var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 665var attributes = new Dictionary<string, object> { { "key", "value" } }; 731var attributes = new Dictionary<string, object> 809var attributes = new Dictionary<string, object> 876var attributes = new Dictionary<string, object> 986public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperPasswordTest.cs (5)
20new Dictionary<string, object> 185var attributes = new Dictionary<string, object> 242var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 293var attributes = new Dictionary<string, object> 533public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperTextAreaTest.cs (1)
148public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperTextBoxTest.cs (1)
166public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperValidationSummaryTest.cs (1)
19var dictionary = new Dictionary<string, object>
SessionStateTempDataProviderTest.cs (2)
14private static readonly IDictionary<string, object> Dictionary = new Dictionary<string, object> 101private readonly Dictionary<string, byte[]> _innerDictionary = new Dictionary<string, byte[]>();
TempDataDictionaryTest.cs (1)
147var data = new Dictionary<string, object>();
ViewComponentResultTest.cs (1)
216Arguments = new Dictionary<string, object> { ["name"] = "World!" },
ViewComponents\ContentViewComponentResultTest.cs (1)
59new Dictionary<string, object>(),
ViewComponents\DefaultViewComponentHelperTest.cs (1)
122var arguments = new Dictionary<string, object>
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
59new Dictionary<string, object>(),
ViewComponents\ViewComponentContextTest.cs (2)
38new Dictionary<string, object>(), 98new Dictionary<string, object>(),
ViewComponents\ViewViewComponentResultTest.cs (1)
539new Dictionary<string, object>(),
ViewComponentTests.cs (1)
268private readonly Dictionary<string, byte[]> _innerDictionary = new Dictionary<string, byte[]>();
ViewDataDictionaryTest.cs (6)
229{ typeof(Dictionary<string, object>), new Dictionary<string, object>() }, 471new { Foo = new Dictionary<string, object> { { "Bar", "Baz" } } }, 673viewData.Add("Foo", new Dictionary<string, object> { { "Bar", "Baz" } }); 687viewData.Add("Foo", new Dictionary<string, object> { { "NotBar", "Baz" } }); 701var value = new Dictionary<string, object> 703["Bar"] = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
13new Dictionary<string, IDirectoryContents>();
Microsoft.AspNetCore.OpenApi (25)
Extensions\JsonNodeSchemaExtensions.cs (1)
27private static readonly Dictionary<Type, OpenApiSchema> _simpleTypeToOpenApiSchema = new()
Extensions\JsonTypeInfoExtensions.cs (1)
14private static readonly Dictionary<Type, string> _simpleTypeToName = new()
Extensions\OpenApiDocumentExtensions.cs (1)
21document.Components.Schemas ??= new Dictionary<string, IOpenApiSchema>();
Schemas\OpenApiJsonSchema.Helpers.cs (6)
69var values = new Dictionary<string, T>(); 326schema.Discriminator.Mapping ??= new Dictionary<string, OpenApiSchemaReference>(); 333schema.Metadata ??= new Dictionary<string, object>(); 338schema.Metadata ??= new Dictionary<string, object>(); 350schema.Metadata ??= new Dictionary<string, object>(); 355schema.Metadata ??= new Dictionary<string, object>();
Services\OpenApiDocumentService.cs (12)
271var operations = new Dictionary<HttpMethod, OpenApiOperation>(); 275operation.Metadata ??= new Dictionary<string, object>(); 415Content = new Dictionary<string, OpenApiMediaType>() 573Content = new Dictionary<string, OpenApiMediaType>() 576var schema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() }; 613Properties = new Dictionary<string, IOpenApiSchema> 621schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 653Properties = new Dictionary<string, IOpenApiSchema> 673schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 683var propertySchema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() }; 695schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 747Content = new Dictionary<string, OpenApiMediaType>(),
Services\OpenApiGenerator.cs (3)
117var eligibileAnnotations = new Dictionary<int, (Type?, MediaTypeCollection)>(); 200var responseContent = new Dictionary<string, OpenApiMediaType>(); 272var requestBodyContent = new Dictionary<string, OpenApiMediaType>();
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.OpenApi.Microbenchmarks (3)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
TransformersBenchmark.cs (2)
104schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 178schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
Microsoft.AspNetCore.OpenApi.Tests (23)
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (1)
951public IDictionary<string, Parent> SelfReferenceDictionary { get; set; } = new Dictionary<string, Parent>();
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
908builder.MapGet("/", () => TypedResults.ValidationProblem(new Dictionary<string, string[]>
Transformers\CustomSchemaTransformerTests.cs (8)
33Content = new Dictionary<string, OpenApiMediaType>() 100Content = new Dictionary<string, OpenApiMediaType>() 112Content = new Dictionary<string, OpenApiMediaType>() 158schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 263Content = new Dictionary<string, OpenApiMediaType>() 349Content = new Dictionary<string, OpenApiMediaType>() 417Content = new Dictionary<string, OpenApiMediaType>() 470Content = new Dictionary<string, OpenApiMediaType>()
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
285schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
Transformers\SchemaTransformerTests.cs (11)
155schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 162schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 189schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 451builder.MapGet("/dictionary", () => new Dictionary<string, int> { { "key", 1 } }); 499schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 568schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 610schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 652schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 741schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 957schema.Extensions ??= new Dictionary<string, IOpenApiExtension>(); 1006schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
Transformers\TypeBasedTransformerLifetimeTests.cs (1)
349schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
Microsoft.AspNetCore.OutputCaching (1)
CacheVaryByRules.cs (1)
21public IDictionary<string, string> VaryByValues => _varyByValues ??= new Dictionary<string, string>();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
328private readonly Dictionary<string, byte[]?> _storage = new();
Microsoft.AspNetCore.Owin (3)
OwinEnvironment.cs (2)
407new Dictionary<string, FeatureMap> 481_contextDependentEntries = new Dictionary<string, FeatureMap>
WebSockets\WebSocketAdapter.cs (1)
45_environment = new Dictionary<string, object>();
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Owin.Tests (5)
OwinExtensionTests.cs (3)
46.Invoke(new Dictionary<string, object>()); 80.Invoke(new Dictionary<string, object>()); 113.Invoke(new Dictionary<string, object>());
OwinFeatureCollectionTests.cs (2)
25var env = new Dictionary<string, object> 44var env = new Dictionary<string, object>
Microsoft.AspNetCore.Razor.Runtime (5)
Runtime\TagHelpers\TagHelperExecutionContext.cs (2)
29items: new Dictionary<object, object>(), 240_perEncoderChildContent = new Dictionary<HtmlEncoder, TagHelperContent>();
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
65items = new Dictionary<object, object>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
Microsoft.AspNetCore.Razor.Runtime.Test (16)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (15)
21items: new Dictionary<object, object>(), 44items: new Dictionary<object, object>(), 69items: new Dictionary<object, object>(), 104items: new Dictionary<object, object>(), 123items: new Dictionary<object, object>(), 149var items = new Dictionary<object, object>(); 167var updatedItems = new Dictionary<object, object>(); 209var expectedItems = new Dictionary<object, object> 272items: new Dictionary<object, object>(), 300items: new Dictionary<object, object>(), 322items: new Dictionary<object, object>(), 349items: new Dictionary<object, object>(), 376items: new Dictionary<object, object>(), 406items: new Dictionary<object, object>(), 433items: new Dictionary<object, object>(),
Runtime\TagHelpers\TestTagHelpers\TagHelperDescriptorFactoryTagHelpers.cs (1)
403: base()
Microsoft.AspNetCore.Razor.Test (4)
TagHelpers\TagHelperContextTest.cs (4)
15var initialItems = new Dictionary<object, object> 19var expectedItems = new Dictionary<object, object> 47var expectedItems = new Dictionary<object, object> 72var expectedItems = new Dictionary<object, object>
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
369private readonly IDictionary<string, IResponseCacheEntry> _storage = new Dictionary<string, IResponseCacheEntry>();
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Rewrite (3)
ApacheModRewrite\Flags.cs (1)
22FlagDictionary = new Dictionary<FlagType, string>();
IISUrlRewrite\IISRewriteMap.cs (1)
8private readonly Dictionary<string, string> _map = new Dictionary<string, string>();
IISUrlRewrite\IISRewriteMapCollection.cs (1)
10private readonly Dictionary<string, IISRewriteMap> _rewriteMaps = new Dictionary<string, IISRewriteMap>();
Microsoft.AspNetCore.Rewrite.Tests (8)
ApacheModRewrite\FlagParserTest.cs (5)
14var dict = new Dictionary<FlagType, string>(); 25var dict = new Dictionary<FlagType, string>(); 38var dict = new Dictionary<FlagType, string>(); 79return (other ?? new Dictionary<TKey, TValue>()) 81.SequenceEqual((dictionary ?? new Dictionary<TKey, TValue>())
IISUrlRewrite\InputParserTests.cs (1)
89var variablesDict = new Dictionary<string, string>()
IISUrlRewrite\ServerVariableTests.cs (2)
63httpContext.Features.Set<IServerVariablesFeature>(new TestServerVariablesFeature(new Dictionary<string, string> 111httpContext.Features.Set<IServerVariablesFeature>(new TestServerVariablesFeature(new Dictionary<string, string>
Microsoft.AspNetCore.Routing (8)
Internal\DfaGraphWriter.cs (1)
54var visited = new Dictionary<DfaNode, int>();
Matching\DataSourceDependentMatcher.cs (1)
41var seenEndpointNames = new Dictionary<string, string?>();
Matching\DfaNode.cs (1)
42PolicyEdges = new Dictionary<object, DfaNode>();
Matching\HostMatcherPolicy.cs (1)
198var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Matching\HttpMethodMatcherPolicy.cs (1)
175var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Patterns\RoutePatternFactory.cs (2)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>()); 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>());
Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Matching\HttpMethodPolicyJumpTableBenchmark.cs (1)
14private Dictionary<string, int> _destinations = new();
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
66new Dictionary<string, object>(),
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Routing.Tests (24)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
249httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (3)
160httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 198httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>() 580httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
ConstraintMatcherTest.cs (8)
23var constraints = new Dictionary<string, IRouteConstraint> 50var constraints = new Dictionary<string, IRouteConstraint> 69var constraints = new Dictionary<string, IRouteConstraint> 84var constraints = new Dictionary<string, IRouteConstraint> 104var constraints = new Dictionary<string, IRouteConstraint> 124var constraints = new Dictionary<string, IRouteConstraint> 144var constraints = new Dictionary<string, IRouteConstraint> 164var constraints = new Dictionary<string, IRouteConstraint>
Matching\RouteMatcherBuilder.cs (1)
66new Dictionary<string, object>(),
MetadataTest.cs (1)
12var metadata = new DataTokensMetadata(new Dictionary<string, object>
RouteTest.cs (7)
308var constraints = new Dictionary<string, object>(); 1538new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } }, 1539new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } }, 1543new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } }, 1547new Dictionary<string,object>(), 1551new Dictionary<string, object>() 1555new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
Tree\TreeRouterTest.cs (3)
804var values = new Dictionary<string, object> 861var values = new Dictionary<string, object> 893var values = new Dictionary<string, object>
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Server.HttpSys (1)
StandardFeatureCollection.cs (1)
14private static readonly Dictionary<Type, Func<RequestContext, object?>> _featureFuncLookup = new()
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
RequestHeaderTests.cs (5)
116var headerDictionary = new HeaderDictionary(new Dictionary<string, StringValues> { 139var headerDictionary = new HeaderDictionary(new Dictionary<string, StringValues> { 170var headerDictionary = new HeaderDictionary(new Dictionary<string, StringValues> { 199var headerDictionary = new Dictionary<string, string> 224var headerDictionary = new Dictionary<string, string>
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Server.IntegrationTesting (3)
CachingApplicationPublisher.cs (1)
10private readonly Dictionary<DotnetPublishParameters, PublishedApplication> _publishCache = new Dictionary<DotnetPublishParameters, PublishedApplication>();
Common\DeploymentParameters.cs (2)
165public IDictionary<string, string> EnvironmentVariables { get; } = new Dictionary<string, string>(); 170public IDictionary<string, string> PublishEnvironmentVariables { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
IISDeploymentParameters.cs (2)
44public IDictionary<string, string> WebConfigBasedEnvironmentVariables { get; set; } = new Dictionary<string, string>(); 46public IDictionary<string, string> HandlerSettings { get; set; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\CertificatePathWatcher.cs (2)
23private readonly Dictionary<string, DirectoryWatchMetadata> _metadataForDirectory = new(); 25private readonly Dictionary<string, FileWatchMetadata> _metadataForFile = new();
Internal\Http2\Http2Connection.cs (1)
148internal readonly Dictionary<int, Http2Stream> _streams = new Dictionary<int, Http2Stream>();
Internal\Http3\Http3Connection.cs (3)
25internal readonly Dictionary<long, IHttp3Stream> _streams = new(); 26internal readonly Dictionary<long, Http3PendingStream> _unidentifiedStreams = new(); 73_webtransportSessions = new();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (33)
CertificatePathWatcherTests.cs (2)
521private readonly Dictionary<string, ConfigurationReloadToken> _changeTokens = new(); 522private readonly Dictionary<string, DateTimeOffset?> _lastModifiedTimes = new();
Http2\Http2HPackEncoderTests.cs (2)
579enumerator.Initialize(new Dictionary<string, StringValues>()); 593enumerator.Initialize(new Dictionary<string, StringValues>());
HttpParserTests.cs (1)
906public Dictionary<string, string> Headers { get; } = new Dictionary<string, string>();
SniOptionsSelectorTests.cs (22)
27var sniDictionary = new Dictionary<string, SniConfig> 94var sniDictionary = new Dictionary<string, SniConfig> 140var sniDictionary = new Dictionary<string, SniConfig> 188var sniDictionary = new Dictionary<string, SniConfig> 252var sniDictionary = new Dictionary<string, SniConfig> 297var sniDictionary = new Dictionary<string, SniConfig> 339new Dictionary<string, SniConfig>(), 355var sniDictionary = new Dictionary<string, SniConfig> 387var sniDictionary = new Dictionary<string, SniConfig> 414var sniDictionary = new Dictionary<string, SniConfig> 455var sniDictionary = new Dictionary<string, SniConfig> 508var sniDictionary = new Dictionary<string, SniConfig> 528var sniDictionary = new Dictionary<string, SniConfig> 552var sniDictionary = new Dictionary<string, SniConfig> 580var sniDictionary = new Dictionary<string, SniConfig> 611var sniDictionary = new Dictionary<string, SniConfig> 644var sniDictionary = new Dictionary<string, SniConfig> 674var sniDictionary = new Dictionary<string, SniConfig> 708var sniDictionary = new Dictionary<string, SniConfig> 737var sniDictionary = new Dictionary<string, SniConfig> 773var sniDictionary = new Dictionary<string, SniConfig> 954public override IDictionary<object, object> Items { get; set; } = new Dictionary<object, object>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
20new Dictionary<string, CertificateAuthority>(); 23= new Dictionary<string, CertificateAuthority>();
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (2)
962public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 963public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (2)
369public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 370public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
InMemoryTransportBenchmark.cs (1)
109new Dictionary<EndPoint, IReadOnlyList<InMemoryConnection>>();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
845var settings = new Dictionary<long, long>();
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
11private readonly Dictionary<EncodedKey, byte[]> _store = new Dictionary<EncodedKey, byte[]>();
Microsoft.AspNetCore.Shared.Tests (9)
CopyOnWriteDictionaryTest.cs (2)
63var sourceDictionary = new Dictionary<string, object> 87var sourceDictionary = new Dictionary<string, object>
runtime\Http2\HPackDecoderTest.cs (2)
962public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 963public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
runtime\Http3\QPackDecoderTest.cs (2)
369public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 370public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
786readers = new Dictionary<string, object>(); 1201invocationMessage.Headers ??= new Dictionary<string, string>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
3036new Dictionary<string, IHubProtocol>
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Parser.cs (1)
240var providerSymbols = new Dictionary<string, (ITypeSymbol, MemberAccessExpressionSyntax)>();
HubServerProxyGenerator.Parser.cs (1)
228var hubSymbols = new Dictionary<string, (ITypeSymbol, MemberAccessExpressionSyntax)>();
Microsoft.AspNetCore.SignalR.Client.Tests (3)
HttpConnectionFactoryTests.cs (2)
84var testValues = new Dictionary<string, object> 87{ $"{nameof(HttpConnectionOptions.Headers)}", new Dictionary<string, string>() },
HubConnectionTests.ConnectionLifecycle.cs (1)
28private static readonly IDictionary<string, Func<HubConnection, Task>> MethodsThatRequireActiveConnection = new Dictionary<string, Func<HubConnection, Task>>()
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Internal\Protocol\HubMessageHelpers.cs (1)
18hubMessage.Headers = new Dictionary<string, string>();
Internal\Protocol\JsonHubProtocolTestsBase.cs (1)
20public static readonly IDictionary<string, string> TestHeaders = new Dictionary<string, string>
Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
26protected static readonly IDictionary<string, string> TestHeaders = new Dictionary<string, string>
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
132var headers = new Dictionary<string, string> 262var headers = new Dictionary<string, string>
Microsoft.AspNetCore.SpaServices.Extensions (1)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
73var envVars = new Dictionary<string, string>
Microsoft.AspNetCore.Tests (17)
WebApplicationTests.cs (17)
417builder.AddInMemoryCollection(new Dictionary<string, string> 425builder.AddInMemoryCollection(new Dictionary<string, string> 433builder.AddInMemoryCollection(new Dictionary<string, string> 441builder.AddInMemoryCollection(new Dictionary<string, string> 449builder.AddInMemoryCollection(new Dictionary<string, string> 457builder.AddInMemoryCollection(new Dictionary<string, string> 1084builder.AddInMemoryCollection(new Dictionary<string, string> 1125config.AddInMemoryCollection(new Dictionary<string, string>() 1134config.AddInMemoryCollection(new Dictionary<string, string>() 1147config.AddInMemoryCollection(new Dictionary<string, string>() 1184config.AddInMemoryCollection(new Dictionary<string, string>() 1194config.AddInMemoryCollection(new Dictionary<string, string>() 1203builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1229config.AddInMemoryCollection(new Dictionary<string, string>() 1247builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1524builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> 2309builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnExpectations.cs (1)
11private readonly Dictionary<string, Expectation> _expectations = new Dictionary<string, Expectation>();
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.WebUtilities.Tests (2)
QueryHelpersTests.cs (2)
158var queryStrings = new Dictionary<string, string?>() 191var queryStrings = new Dictionary<string, StringValues>()
Microsoft.Build (93)
BackEnd\BuildManager\BuildManager.cs (6)
300_buildSubmissions = new Dictionary<int, BuildSubmissionBase>(); 304_nodeIdToKnownConfigurations = new Dictionary<int, HashSet<int>>(); 305_unnamedProjectInstanceToNames = new Dictionary<ProjectInstance, string>(); 310_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 2052new ReadOnlyDictionary<ProjectGraphNode, BuildResult>(resultsPerNode ?? new Dictionary<ProjectGraphNode, BuildResult>()))); 2082var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>();
BackEnd\BuildManager\CacheAggregator.cs (1)
69var configIdMapping = new Dictionary<int, int>();
BackEnd\BuildManager\LegacyThreadingData.cs (1)
28private readonly IDictionary<int, Tuple<AutoResetEvent, ManualResetEvent>> _legacyThreadingEventsById = new Dictionary<int, Tuple<AutoResetEvent, ManualResetEvent>>();
BackEnd\Client\MSBuildClient.cs (2)
123_serverEnvironmentVariables = new(); 503Dictionary<string, string> envVars = new();
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
39_componentEntriesByType = new Dictionary<BuildComponentType, BuildComponentEntry>();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
147_requestsByGlobalRequestId = new Dictionary<int, BuildRequestEntry>(); 624_unresolvedConfigurationsById = new Dictionary<int, BuildRequestConfiguration>(); 625_unresolvedConfigurationsByMetadata = new Dictionary<ConfigurationMetadata, BuildRequestConfiguration>();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
369_outstandingResults ??= new Dictionary<int, BuildResult>(); 508_outstandingRequests ??= new Dictionary<int, BuildRequest>(); 516_unresolvedConfigurations ??= new Dictionary<int, List<BuildRequest>>();
BackEnd\Components\Communications\NodeManager.cs (1)
78_nodeIdToProvider = new Dictionary<int, INodeProvider>();
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
210_nodeIdToPacketFactory = new Dictionary<int, INodePacketFactory>(); 211_nodeIdToPacketHandler = new Dictionary<int, INodePacketHandler>();
BackEnd\Components\Logging\LoggingService.cs (1)
309_eventSinkDictionary = new Dictionary<int, IBuildEventSink>();
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
812Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties)
BackEnd\Components\Logging\ProjectTelemetry.cs (4)
42private readonly Dictionary<string, int> _msbuildTaskSubclassUsage = new(); 182Dictionary<string, string> properties = new(); 219Dictionary<string, string> properties = new(); 243Dictionary<string, string> properties = new();
BackEnd\Components\RequestBuilder\Lookup.cs (2)
857modifiesOfType = new Dictionary<ProjectItemInstance, MetadataModifications>(); 890_cloneTable ??= new Dictionary<ProjectItemInstance, ProjectItemInstance>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1019results = new Dictionary<int, BuildResult>();
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
137_requestsWeAreBlockedBy = new Dictionary<BlockingRequestKey, SchedulableRequest>();
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
37private Dictionary<string, PlanConfigData> _configPathToData = new Dictionary<string, PlanConfigData>(); 42private Dictionary<int, PlanConfigData> _configIdToData = new Dictionary<int, PlanConfigData>(); 47private Dictionary<int, List<Stack<PlanConfigData>>> _configIdToPaths = new Dictionary<int, List<Stack<PlanConfigData>>>(); 110Dictionary<int, double> accumulatedTimeByConfiguration = new Dictionary<int, double>();
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
431_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 489_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>();
BackEnd\Shared\BuildAbortedException.cs (1)
79return new Dictionary<string, string>()
BackEnd\Shared\BuildResult.cs (1)
660Dictionary<string, string> additionalEntries = new();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1771Dictionary<string, string> taskHostParameters = new Dictionary<string, string>
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (2)
29_eventHandlersFull = new() 47_eventHandlersRestore = new()
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
546private readonly Dictionary<int, HashSet<string>> _deferredProjectEvalIdToImportedProjects = new(); 660private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new();
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
53Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(); 152Dictionary<string, TaskInvocationCheckData.TaskParameter> taskParameters = new();
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
164var filteredConfig = new Dictionary<string, string>();
BuildCheck\Infrastructure\TracingReporter.cs (1)
32=> new Dictionary<string, TimeSpan>()
Collections\ItemDictionary.cs (2)
57_nodes = new Dictionary<T, LinkedListNode<T>>(); 78_nodes = new Dictionary<T, LinkedListNode<T>>();
Collections\MultiDictionary.cs (1)
158_backing = new Dictionary<K, SmallList<V>>();
Construction\Solution\SolutionFile.cs (2)
361_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 772_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>();
Construction\Solution\SolutionProjectGenerator.cs (1)
249new Dictionary<string, string>
CoreCLRAssemblyLoader.cs (1)
23private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
Definition\ToolsetConfigurationReader.cs (2)
217kindToPathsCache = new Dictionary<string, ProjectImportPathMatch>(); 235var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
53return new Dictionary<string, ProjectImportPathMatch>();
Errors\InternalLoggerException.cs (1)
147return new Dictionary<string, string>()
Errors\InvalidProjectFileException.cs (1)
134return new Dictionary<string, string>()
Errors\InvalidToolsetDefinitionException.cs (1)
115return new Dictionary<string, string>()
Evaluation\Evaluator.cs (1)
256_projectSupportsReturnsAttribute = new Dictionary<ProjectRootElement, bool>();
Evaluation\Expander.cs (1)
2452private static readonly FrozenDictionary<string, string> s_itemSpecModifiers = new Dictionary<string, string>()
Evaluation\LazyItemEvaluator.cs (2)
43new Dictionary<string, LazyItemList>() : 239_cache = new Dictionary<ISet<string>, OrderedItemDataCollection>();
Evaluation\Preprocessor.cs (1)
56private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>();
Evaluation\Profiler\EvaluationProfiler.cs (1)
23private readonly Dictionary<EvaluationLocation, ProfiledLocation> _timeSpent = new Dictionary<EvaluationLocation, ProfiledLocation>();
Graph\GraphBuilder.cs (3)
202var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 312Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 444var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>();
Instance\HostServices.cs (1)
313var hostObjectMap = new Dictionary<string, HostObjects>();
Instance\ProjectInstance.cs (2)
592thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>(); 593thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>();
Instance\TaskFactories\TaskHostTask.cs (1)
188_setParameters = new Dictionary<string, object>();
Instance\TaskRegistry.cs (2)
155private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>(); 1492_taskFactoryParameters ??= new();
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
640globalProperties = ReadStringDictionary() ?? new Dictionary<string, string>(); 1260var rawTracingData = ReadStringDictionary() ?? new Dictionary<string, string>();
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
75private readonly Dictionary<HashKey, int> stringHashes = new Dictionary<HashKey, int>(); 80private readonly Dictionary<HashKey, int> nameValueListHashes = new Dictionary<HashKey, int>();
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
30internal Dictionary<(int nodeId, int contextId), string> propertyOutputMap = new Dictionary<(int nodeId, int contextId), string>(); 207propertyOutputMap = new Dictionary<(int, int), string>(); 424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1706? new Dictionary<BuildEventContext, object>()
Logging\ProfilerLogger.cs (2)
132var mergeMap = new Dictionary<long, long>(); 218var result = new Dictionary<EvaluationLocation, ProfiledLocation>();
Logging\TerminalLogger\TerminalLogger.cs (2)
104private readonly Dictionary<ProjectContext, TerminalProjectInfo> _projects = new(); 106private readonly Dictionary<EvalContext, EvalProjectInfo> _evals = new();
LogMessagePacketBase.cs (1)
279private static readonly Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (1)
207_globalParameters = globalParameters ?? new Dictionary<string, string>();
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
Microsoft.Build.BuildCheck.UnitTests (28)
CheckConfiguration_Test.cs (5)
27var buildConfig = CheckConfiguration.Create(new Dictionary<string, string>()); 47var config = new Dictionary<string, string>() 67var config = new Dictionary<string, string>() 87var config = new Dictionary<string, string>() 106var config = new Dictionary<string, string>()
ConfigurationProvider_Tests.cs (1)
36configs.ShouldBe(new Dictionary<string, string>());
CustomConfigurationData_Tests.cs (9)
53var config1 = new Dictionary<string, string>() 58var config2 = new Dictionary<string, string>() 72var config = new Dictionary<string, string>() 85var config1 = new Dictionary<string, string>() 90var config2 = new Dictionary<string, string>() 104var config1 = new Dictionary<string, string>() 109var config2 = new Dictionary<string, string>() 123var config1 = new Dictionary<string, string>() 129var config2 = new Dictionary<string, string>()
DoubleWritesAnalyzer_Tests.cs (3)
41_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData("Copy", new Dictionary<string, TaskInvocationCheckData.TaskParameter> 46_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData("Copy", new Dictionary<string, TaskInvocationCheckData.TaskParameter> 64_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData(taskName, new Dictionary<string, TaskInvocationCheckData.TaskParameter>
ExecCliBuildCheck_Tests.cs (2)
71_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData("Exec", new Dictionary<string, TaskInvocationCheckData.TaskParameter> 84_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData("Exec", new Dictionary<string, TaskInvocationCheckData.TaskParameter>
SharedOutputPathCheck_Tests.cs (7)
33evaluatedProperties ?? new Dictionary<string, string>(), 34new Dictionary<string, string>()); 44new Dictionary<string, string> { 54new Dictionary<string, string> { 73new Dictionary<string, string> { 81new Dictionary<string, string> { 112var evaluatedProperties = new Dictionary<string, string> {
TaskInvocationAnalysisDataTests.cs (1)
89var request = new BuildRequestData(testProject.ProjectFile, new Dictionary<string, string?>(), MSBuildConstants.CurrentToolsVersion, [], null, BuildRequestDataFlags.None);
Microsoft.Build.CommandLine.UnitTests (3)
XMake_Tests.cs (3)
1609IDictionary<string, string> environmentVars = new Dictionary<string, string> 2386IDictionary<string, string> preExistingProps = new Dictionary<string, string> 2433IDictionary<string, string> preExistingProps = new Dictionary<string, string>
Microsoft.Build.Engine.OM.UnitTests (75)
Definition\DefinitionEditing_Tests.cs (2)
615Dictionary<string, string> metadata = new Dictionary<string, string>() { { "m", "m1" } }; 2532Dictionary<string, string> metadata = new Dictionary<string, string>() { { "m", "m1" } };
Definition\Project_Tests.cs (5)
1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
Definition\ProjectCollection_Tests.cs (2)
395var globals = new Dictionary<string, string> { { "Configuration", "Debug" } }; 456new Dictionary<string, string> { { "Configuration", "Release" }, { "Platform", "Win32" } };
Definition\ProjectItem_Tests.cs (52)
1153ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1173ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 2214var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2274var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2723new Dictionary<string, string> 2733new Dictionary<string, string> 2760var expectedInitial = new Dictionary<string, string> 2765var expectedUpdateFromTrue = new Dictionary<string, string> 2802var expectedInitial = new Dictionary<string, string> 2807var expectedUpdateFromUnconditionedElement = new Dictionary<string, string> 2835var expectedUpdate = new Dictionary<string, string> 2871Dictionary<string, string> expectedUpdatei = new Dictionary<string, string> 2875Dictionary<string, string> expectedUpdatej = new Dictionary<string, string> 2942var expectedMetadata = new Dictionary<string, string> 2972var expectedMetadata = new Dictionary<string, string> 3026var expectedMetadataX = new Dictionary<string, string> 3031var expectedMetadataA = new Dictionary<string, string> 3038var expectedMetadataB = new Dictionary<string, string> 3072var expectedMetadataA = new Dictionary<string, string> 3079var expectedMetadataB = new Dictionary<string, string> 3086var expectedMetadataC = new Dictionary<string, string> 3138? new Dictionary<string, string> 3142: new Dictionary<string, string> 3166var expectedMetadataA = new Dictionary<string, string> 3185var expectedMetadataA = new Dictionary<string, string> 3212var expectedMetadataA = new Dictionary<string, string> 3252var expectedMetadataX = new Dictionary<string, string> 3260var expectedMetadata2 = new Dictionary<string, string> 3268var expectedMetadataCCC = new Dictionary<string, string> 3276var expectedMetadata1 = new Dictionary<string, string> 3285var expectedMetadataD = new Dictionary<string, string> 3293var expectedMetadataY = new Dictionary<string, string> 3343var expectedMetadataB = new Dictionary<string, string> 3348var expectedMetadataA = new Dictionary<string, string>() 3353var expectedMetadataC = new Dictionary<string, string>(); 3408var expectedInitialMetadata = new Dictionary<string, string> 3414var expectedUpdatedMetadata = new Dictionary<string, string> 3450var expected_i1 = new Dictionary<string, string> 3456var expected_i2_a = new Dictionary<string, string> 3462var expected_i2_y = new Dictionary<string, string> 3499var expectedInitial = new Dictionary<string, string> 3505var expectedUpdated = new Dictionary<string, string> 3534var expectedUpdated = new Dictionary<string, string> 3549new Dictionary<string, string> {{"m", "contents"}}, 3550new Dictionary<string, string> {{"m", "updated"}} 3618new Dictionary<string, string> {{"m", "contents"}}, 3619new Dictionary<string, string> {{"m", "contents"}}, 3620new Dictionary<string, string> {{"m", "contents"}}, 3621new Dictionary<string, string> {{"m", "updated"}} 3658return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 3687var expectedUpdated = new Dictionary<string, string> 3754var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Definition\ProjectMetadata_Tests.cs (1)
505var metadata = new Dictionary<string, string>
Instance\ProjectItemInstance_Tests.cs (5)
108((IMetadataContainer)item).ImportMetadata(new Dictionary<string, string> 131((IMetadataContainer)item).ImportMetadata(new Dictionary<string, string> 248IDictionary<string, string> metadata = new Dictionary<string, string>(); 1137var expectedInitial = new Dictionary<string, string> 1142var expectedUpdateFromTrue = new Dictionary<string, string>
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (1)
205var result = new Dictionary<ProjectCollectionLinker, HashSet<Project>>();
ObjectModelRemoting\RemoteProjectsProviderMock\CollectionsHelpers.cs (2)
112Dictionary<TKey, TValue> result = new Dictionary<TKey, TValue>(); 131Dictionary<TKey, RMock> result = new Dictionary<TKey, RMock>();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
84private static Dictionary<Type, ExporterFactory> knownTypes = new Dictionary<Type, ExporterFactory>();
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
151private Dictionary<UInt32, ExternalConnection> imported = new Dictionary<UInt32, ExternalConnection>();
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (3)
34private static Dictionary<UInt32, LinkedObjectsMap<KeyType>> collections = new Dictionary<UInt32, LinkedObjectsMap<KeyType>>(); 36private Dictionary<UInt32, WeakHolder> activeLinks = new Dictionary<UInt32, WeakHolder>(); 37private Dictionary<KeyType, WeakHolder> indexByKey = new Dictionary<KeyType, WeakHolder>();
Microsoft.Build.Engine.UnitTests (485)
BackEnd\AssemblyTaskFactory_Tests.cs (8)
60taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 72taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 84taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 96taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 110taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 124taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 722factoryParameters ??= new Dictionary<string, string>(); 725_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BinaryTranslator_Tests.cs (1)
921Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>();
BackEnd\BuildManager_Logging_Tests.cs (1)
107new Dictionary<string, string>(),
BackEnd\BuildManager_Tests.cs (41)
178new Dictionary<int, int[]> 201new Dictionary<string, string>(), 496ItemFilters = new Dictionary<string, List<string>> 650var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 703var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 773var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 833var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 900var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 931var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 1098BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1108GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1118BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1128GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1152var globalProperties = new Dictionary<string, string>(); 1217BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1230GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1246new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1880var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 2411var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2472var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2530var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2578var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2667var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices()); 2737var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 2834var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 2934var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 3020var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 3089var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 3374var data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "BaseTest" }, services); 3382data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "MovedTest" }, services); 3513BuildRequestData data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "One", "Two", "Three" }, services); 3705var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3729var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3799new Dictionary<string, string>(), 3856var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, 3956new Dictionary<string, string>(), 4045var buildRequestData = new BuildRequestData(entryFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "EntryTarget" }, null); 4101var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null); 4102var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null); 4344var graph = Helpers.CreateProjectGraph(env: _env, dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } }); 4353new Dictionary<string, string>() { {"property1", "value1" } }) },
BackEnd\BuildRequestConfiguration_Tests.cs (19)
44BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 58BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 66BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 74BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 81BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 90BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 173Dictionary<string, string> props = new Dictionary<string, string>(); 182BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 196BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 204BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 205BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0"); 206BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 207BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 208BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 219BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 221BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 224BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 227BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0");
BackEnd\BuildRequestEngine_Tests.cs (5)
330BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 361BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 389BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 442BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 448BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (10)
23BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 44BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 92BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 114BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 144BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 181BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 197BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 214BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 238BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 258BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (11)
76configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 77configCache.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13")); 98configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 127configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 149configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 157configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 193configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 211configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 212configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13")); 223configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path3", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "e", "f" }, null), "13")); 224configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path4", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "g", "h" }, null), "13"));
BackEnd\CacheSerialization_Tests.cs (3)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1", "target2" }, null), 32new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null), 36new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigCache_Tests.cs (6)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null), 37new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null), 46new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null), 74new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null), 78new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null), 82new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigurationMetadata_Tests.cs (5)
60BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 86BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 102BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 111data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 116data = new BuildRequestData("file", new Dictionary<string, string>(), "3.0", Array.Empty<string>(), null);
BackEnd\FullyQualifiedBuildRequest_Tests.cs (4)
19BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null); 24BuildRequestData data3 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null); 42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true); 48BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
BackEnd\IntrinsicTask_Tests.cs (3)
3957BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0")); 3987var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c); 3992var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\LoggingService_Tests.cs (1)
963BuildRequestData buildRequestData = new BuildRequestData("projectFile", new Dictionary<string, string>(), "Current", new[] { "Build" }, null);
BackEnd\LoggingServicesLogMethod_Tests.cs (3)
1261properties: new Dictionary<string, string>()); 1270IDictionary<string, string> eventProperties = new Dictionary<string, string> 1293Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties),
BackEnd\MockRunningObjectTable.cs (1)
15private readonly Dictionary<string, object> _dictionary = new Dictionary<string, object>();
BackEnd\NodeEndpointInProc_Tests.cs (1)
358_linkStatusTable = new Dictionary<INodeEndpoint, LinkStatusContext>();
BackEnd\NodePackets_Tests.cs (7)
81BuildSubmissionStartedEventArgs buildSubmissionStarted = new(new Dictionary<string, string> { { "Value1", "Value2" } }, ["Path1"], ["TargetName"], BuildRequestDataFlags.ReplaceExistingProjectInstance, 123); 176return new Dictionary<string, string> 296ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 302ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 308ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 314ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 320ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
BackEnd\NullMetadataTask.cs (1)
26IDictionary<string, string> metadata = new Dictionary<string, string>();
BackEnd\RequestBuilder_Tests.cs (2)
226BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("testName", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"); 269new Dictionary<string, string>(),
BackEnd\RequestedProjectState_Tests.cs (7)
44Dictionary<string, List<string>> items = new() 66Dictionary<string, List<string>> items = new() 96state1.ItemFilters = new Dictionary<string, List<string>>() 140ItemFilters = new Dictionary<string, List<string>>() 147ItemFilters = new Dictionary<string, List<string>>() 176ItemFilters = new Dictionary<string, List<string>>() 183ItemFilters = new Dictionary<string, List<string>>()
BackEnd\Scheduler_Tests.cs (2)
551BuildRequest request1 = CreateProxyBuildRequest(1, 1, new ProxyTargets(new Dictionary<string, string> { { "foo", "bar" } }), null); 738BuildRequestData data = new(projectFullPath, new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null);
BackEnd\SdkResolverService_Tests.cs (1)
737return factory.IndicateSuccess("envresolver", "1.0.0", null, null, environmentVariablesToAdd: new Dictionary<string, string>
BackEnd\SdkResultItemComparison_Tests.cs (1)
33var sdkResultItem1 = new SdkResultItem("anyspec", new Dictionary<string, string>());
BackEnd\SdkResultOutOfProc_Tests.cs (2)
245propertiesToAdd: new Dictionary<string, string>() 247itemsToAdd: new Dictionary<string, SdkResultItem>()
BackEnd\TargetBuilder_Tests.cs (1)
1675BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TargetEntry_Tests.cs (6)
86BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 101BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 115BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 767new Dictionary<string, string>(), 917BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 935BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TaskExecutionHost_Tests.cs (1)
1290_bucket = new ItemBucket(FrozenSet<string>.Empty, new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskHost_Tests.cs (2)
76BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("Nothing", new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null), "2.0"); 716Dictionary<string, string> globalProperties = new Dictionary<string, string>
BackEnd\TaskHostConfiguration_Tests.cs (8)
234IDictionary<string, object> parameters = new Dictionary<string, object>(); 261IDictionary<string, object> parameters2 = new Dictionary<string, object>(); 332var expectedGlobalProperties = new Dictionary<string, string> 455taskParameters: new Dictionary<string, object>(), 456globalParameters: new Dictionary<string, string>(), 483IDictionary<string, object> parameters = new Dictionary<string, object>(); 533IDictionary<string, object> parameters = new Dictionary<string, object>(); 581IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskHostTaskComplete_Tests.cs (6)
73IDictionary<string, object> parameters = new Dictionary<string, object>(); 81IDictionary<string, object> parameters2 = new Dictionary<string, object>(); 136new OutOfProcTaskHostTaskResult(TaskCompleteType.Success, new Dictionary<string, object>()), 158IDictionary<string, object> parameters = new Dictionary<string, object>(); 186IDictionary<string, object> parameters = new Dictionary<string, object>(); 212IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskRegistry_Tests.cs (3)
671new Dictionary<string, string>(), 1894new Dictionary<string, SubToolset> 1901new Dictionary<string, ProjectImportPathMatch>
BinaryLogger_Tests.cs (3)
259Dictionary<string, string> embedFiles1 = new(); 260Dictionary<string, string> embedFiles2 = new(); 584new BuildRequestData(entryProject.ProjectFile, new Dictionary<string, string>(), null, new string[] { "BuildSelf" }, null))
BuildEventArgsDataEnumeration.cs (6)
28GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 55GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 62new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })), 93GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 100new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })), 104new Dictionary<string, string>() { { "metadat41", "val41" }, { "metadat42", "val42" } })),
BuildEventArgsSerialization_Tests.cs (11)
72new Dictionary<string, string> 115var globalVariables = new Dictionary<string, string> 163globalProperties: new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 345ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 418ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 494ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 557Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } }; 582ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 677ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 769GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 792ProfilerResult = new ProfilerResult(new Dictionary<EvaluationLocation, ProfiledLocation>
Collections\OMcollections_tests.cs (3)
252var backing = new Dictionary<string, string>(); 268Dictionary<string, string> values = new Dictionary<string, string>(); 273Dictionary<string, int> convertedValues = new Dictionary<string, int>();
ConsoleLogger_Tests.cs (1)
126_environment = new Dictionary<string, string>();
Construction\SolutionFilter_Tests.cs (1)
131ProjectGraphEntryPoint entryPoint = new(filterFile.Path, new Dictionary<string, string>());
Construction\SolutionProjectGenerator_Tests.cs (11)
1665IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1727Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 1778IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1796IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1913IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 2104Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2202Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2290Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2367Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2549var globalProperties = new Dictionary<string, string> { { "ImportByWildcardBeforeSolution", "false" } }; 2790Dictionary<string, string> globalProperties = new Dictionary<string, string>();
Definition\Project_Internal_Tests.cs (1)
237using ProjectFromString projectFromString = new(projectContents, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection, ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition);
Definition\ProjectEvaluationContext_Tests.cs (4)
35new Dictionary<string, SdkResult> 121new Dictionary<string, int> 179new Dictionary<string, int> 185new Dictionary<string, int>
Definition\Toolset_Tests.cs (9)
107subToolsets, "c:\\foo", "4.0", new Dictionary<string, ProjectImportPathMatch> 245IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 297IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 317IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 325IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>(); 345IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 388IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 433IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 441IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>();
EscapingInProjects_Tests.cs (1)
846ProjectItem item = project.AddItem("None", "MetadataTests", new Dictionary<string, string> {
Evaluation\Evaluator_Tests.cs (4)
65using ProjectCollection collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default); 4163IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4223IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4275IDictionary<string, string> globalProperties = new Dictionary<string, string>();
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (5)
575using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 636using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 706using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 771using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 830using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
Evaluation\ItemEvaluation_Tests.cs (23)
61var mI2_1 = new Dictionary<string, string> 70var mI2_2 = new Dictionary<string, string> 110var expectedMetadata = new Dictionary<string, string> 154new Dictionary<string, string>(), 155new Dictionary<string, string> { ["m1"] = "m1_updated" }, 156new Dictionary<string, string>(), 184var a = new Dictionary<string, string> 192var b = new Dictionary<string, string> 200var c = new Dictionary<string, string> 211var metadataForI2 = new Dictionary<string, string> 249new Dictionary<string, string> 278new Dictionary<string, string> 305new Dictionary<string, string>() 328new Dictionary<string, string>() 353new Dictionary<string, string> 422new Dictionary<string, string>(), 423new Dictionary<string, string> 428new Dictionary<string, string> 433new Dictionary<string, string> 490var i1BaseMetadata = new Dictionary<string, string> 501new Dictionary<string, string>() 510new Dictionary<string, string> 719new Dictionary<string, string>
Evaluation\ItemSpec_Tests.cs (4)
30var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } })); 51var itemSpecFromAbsolute = CreateItemSpecFrom(absoluteSpec, CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile)); 52var itemSpecFromRelative = CreateItemSpecFrom("s.cs", CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile)); 64var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } }));
Evaluation\Preprocessor_Tests.cs (2)
852var projectOptions = SdkUtilities.CreateProjectOptionsWithResolver(new SdkUtilities.FileBasedMockSdkResolver(new Dictionary<string, string> 1059var projectOptions = SdkUtilities.CreateProjectOptionsWithResolver(new SdkUtilities.FileBasedMockSdkResolver(new Dictionary<string, string>
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
350var mapping = new Dictionary<string, string> { { SdkName, _testSdkDirectory } }; 653(projectOptions.GlobalProperties ??= new Dictionary<string, string>()).Add(name, value);
Evaluation\SdkResultEvaluation_Tests.cs (4)
454Dictionary<string, string> propertiesToAdd = new Dictionary<string, string>() 459Dictionary<string, SdkResultItem> itemsToAdd = new Dictionary<string, SdkResultItem>() 463new SdkResultItem(itemSpec: "ItemValue" + specialString, new Dictionary<string, string>() 503factory.IndicateSuccess(Path.Combine(_testFolder, "Sdk"), "1.0.0", null, null, null, environmentVariablesToAdd: new Dictionary<string, string>
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
30= new Dictionary<string, string>(); 57= new Dictionary<string, string>();
ExpressionTree_Tests.cs (1)
333Dictionary<string, List<string>> conditionedProperties = new Dictionary<string, List<string>>();
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
431ProjectGraphEntryPoint entryPoint = new(solutionFile.Path, new Dictionary<string, string>());
Graph\GraphLoadedFromSolution_tests.cs (33)
95new Dictionary<int, int[]>() 100new Dictionary<int, int[]> 108new Dictionary<int, int[]> 117new Dictionary<int, int[]> 125new Dictionary<int, int[]> 134new Dictionary<int, int[]> 142new Dictionary<int, int[]> 151new Dictionary<int, int[]> 161new Dictionary<int, int[]> 228Projects = new Dictionary<string, string> 233ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> 236"1", new Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution> 264new Dictionary<int, int[]> // graph nodes and ProjectReference edges 276new Dictionary<int, int[]> 288new Dictionary<int, int[]> 303new Dictionary<int, int[]> 318new Dictionary<int, int[]> 333new Dictionary<int, int[]> 344new Dictionary<int, int[]> 355new Dictionary<int, int[]> 366new Dictionary<int, int[]> 381new Dictionary<int, int[]> 396new Dictionary<int, int[]> 411new Dictionary<int, int[]> 426new Dictionary<int, int[]> 439new Dictionary<int, int[]> 452new Dictionary<int, int[]> 465new Dictionary<int, int[]> 486new Dictionary<string, string>() 590new Dictionary<int, int[]>() 609Projects = new Dictionary<string, string> 674? new Dictionary<string, string> 680: new Dictionary<string, string>();
Graph\GraphTestingUtilities.cs (2)
20public static readonly ImmutableDictionary<string, string> EmptyGlobalProperties = new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "true" } }.ToImmutableDictionary(); 92additionalGlobalProperties ??= new Dictionary<string, string>();
Graph\IsolateProjects_Tests.cs (3)
323new Dictionary<string, string>(), 325var expectedOutput = new ExpectedNodeBuildOutput(); 326var outputCaches = new OutputCacheDictionary();
Graph\ParallelWorkSet_Tests.cs (4)
130ExpectedCompletedWork = new Dictionary<string, string> 162ExpectedCompletedWork = new Dictionary<string, string> 195ExpectedCompletedWork = new Dictionary<string, string> 228ExpectedCompletedWork = new Dictionary<string, string>
Graph\ProjectGraph_Tests.cs (91)
76new Dictionary<int, int[]>() 357var entryPoint1 = new ProjectGraphEntryPoint(entryFile1.Path, new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC" }); 370var globalPropertiesFor1 = new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC", ["IsGraphBuild"] = "true" }; 377var globalPropertiesFor2 = new Dictionary<string, string> { ["IsGraphBuild"] = "true" }; 497new Dictionary<string, string> { { "Foo", "Bar" } }); 598var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } }); 599var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } }); 637var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } }); 638var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } }); 919TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }); 920CreateProjectFile(env: env, projectNumber: 2, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "C" } } }); 921CreateProjectFile(env: env, projectNumber: 3, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "D" } } }); 939var projectReferenceTargets = new Dictionary<string, string[]> 966var projectReferenceTargets = new Dictionary<string, string[]> 1002TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A"); 1020TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A"); 1040TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: string.Empty); 1063TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { " ; ; " } } }, defaultTargets: string.Empty); 1391TransientTestFile entryProject = CreateProjectFile(env, 1, new[] { 2 }, new Dictionary<string, string[]> { { "A", new[] { ".default" } } }, defaultTargets: "A"); 1413projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "A", ".default" } } }); 1430var projectReferenceTargets = new Dictionary<string, string[]> 1477projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "Build" } } }); 1483new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T2" } } }, 1491new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T3" } } }, 1499new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T4" } } }, 1522dependencyEdges: new Dictionary<int, int[]> 1526extraContentPerProjectNumber: new Dictionary<int, string> 1559expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(), 1560outputCaches: new Dictionary<ProjectGraphNode, string>(), 1574dependencyEdges: new Dictionary<int, int[]> 1578extraContentPerProjectNumber: new Dictionary<int, string> 1609expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(), 1610outputCaches: new Dictionary<ProjectGraphNode, string>(), 1644new Dictionary<int, int[]>() 1649new Dictionary<int, int[]> 1657new Dictionary<int, int[]> 1666new Dictionary<int, int[]> 1674new Dictionary<int, int[]> 1683new Dictionary<int, int[]> 1692new Dictionary<int, int[]> 1700new Dictionary<int, int[]> 1709new Dictionary<int, int[]> 1719new Dictionary<int, int[]> 1729new Dictionary<int, int[]> 1738new Dictionary<int, int[]> 1747new Dictionary<int, int[]> 1758new Dictionary<int, int[]> 1768new Dictionary<int, int[]> 1779new Dictionary<int, int[]> 1792new Dictionary<int, int[]> 1835globalProperties: new Dictionary<string, string> { { "a", "b" } }, 1840projectReferenceTargets: new Dictionary<string, string[]> 2031AssertInnerBuildEvaluation(graph.GraphRoots.First(), false, new Dictionary<string, string>()); 2044var graph = new ProjectGraph(root, new Dictionary<string, string> { { InnerBuildPropertyName, "foo" } }); 2050AssertInnerBuildEvaluation(graph.GraphRoots.First(), true, new Dictionary<string, string>()); 2125var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2164var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2191var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2245new Dictionary<string, string>(), 2246new Dictionary<string, string> 2253var graph1 = new Dictionary<int, int[]> 2261var graph2 = new Dictionary<int, int[]> 2275new Dictionary<int, int[]>(), 2282new Dictionary<int, int[]> 2348new Dictionary<int, int[]> { { 1, null } }, 2349new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "xyz" } }); 2378new Dictionary<int, int[]> 2384new Dictionary<int, string>(), 2385new Dictionary<int, int[]> 2394new Dictionary<int, int[]> 2400new Dictionary<int, string> 2404new Dictionary<int, int[]> 2415new Dictionary<int, int[]> 2421new Dictionary<int, string> 2425new Dictionary<int, int[]> 2434new Dictionary<int, int[]> 2440new Dictionary<int, string> 2445new Dictionary<int, int[]> 2453new Dictionary<int, int[]> 2461new Dictionary<int, string> 2467new Dictionary<int, int[]> 2500dependencyEdges: new Dictionary<int, int[]> 2508extraContentPerProjectNumber: new Dictionary<int, string> 2563dependencyEdges: new Dictionary<int, int[]>() 2568extraContentPerProjectNumber: new Dictionary<int, string>() 2669dependencyEdges: new Dictionary<int, int[]>() 2673extraContentPerProjectNumber: new Dictionary<int, string>() 2711dependencyEdges: new Dictionary<int, int[]>() 2715extraContentPerProjectNumber: new Dictionary<int, string>() 2754dependencyEdges: new Dictionary<int, int[]>() 2758globalProperties: new Dictionary<string, string> { { "BuildProjectReferences", "false" } },
Graph\ResultCacheBasedBuilds_Tests.cs (19)
182new Dictionary<int, int[]> 190new Dictionary<int, int[]> 199new Dictionary<int, int[]> 207new Dictionary<int, int[]> 216new Dictionary<int, int[]> 225new Dictionary<int, int[]> 233new Dictionary<int, int[]> 243new Dictionary<int, int[]> 253new Dictionary<int, int[]> 262new Dictionary<int, int[]> 271new Dictionary<int, int[]> 296var expectedOutput = new ExpectedNodeBuildOutput(); 298var outputCaches = new OutputCacheDictionary(); 338dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } }, 343var expectedOutput = new ExpectedNodeBuildOutput(); 345var outputCaches = new OutputCacheDictionary(); 376dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } }, 381var expectedOutput = new ExpectedNodeBuildOutput(); 383var outputCaches = new OutputCacheDictionary();
HashTableUtility_Tests.cs (4)
28Dictionary<string, string> h1 = new Dictionary<string, string>(); 30Dictionary<string, string> h2 = new Dictionary<string, string>(); 41Dictionary<string, string> h1 = new Dictionary<string, string>(); 42Dictionary<string, string> h2 = new Dictionary<string, string>();
Instance\HostServices_Tests.cs (1)
482using ProjectFromString projectFromString = new(contents, new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion);
Instance\ProjectTaskInstance_Internal_Tests.cs (4)
32new Dictionary<string, (string, MockElementLocation)>(), 38new Dictionary<string, (string, MockElementLocation)> 50new Dictionary<string, (string, MockElementLocation)> 70parameters ??= new Dictionary<string, (string, MockElementLocation)>();
InstanceFromRemote\ProjectInstance_FromImmutableProjectLink_Tests.cs (3)
70new FakeProjectItemLink(project, "Compile", "File1.cs", @"Q:\FakeFolder\Project\Project.proj", new Dictionary<string, string> { { "Metadata1", "Value1" } }), 71new FakeProjectItemLink(project, "Compile", "File2.cs", @"Q:\FakeFolder\Project\a.props", new Dictionary<string, string> { { "Metadata2", "Value2" } }) 105new FakeProjectItemLink(project, "Compile", "File1.cs", @"Q:\FakeFolder\Project\Project.proj", new Dictionary<string, string> { { "Metadata1", "Value1" } }),
InternalEngineHelpers.cs (1)
48_resultMap = new Dictionary<string, SdkResult> { [result.SdkReference.Name] = result };
ProjectCache\ProjectCacheTests.cs (39)
123NonCacheMissResults = nonCacheMissResults ?? new Dictionary<int, CacheResult>(); 137new Dictionary<string, string> 154new Dictionary<string, string> 356new Dictionary<int, int[]?> 362new Dictionary<int, int[]?> 366new Dictionary<int, CacheResult> 372new Dictionary<int, int[]?> 376new Dictionary<int, CacheResult> 382new Dictionary<int, int[]?> 388new Dictionary<int, int[]?> 392new Dictionary<int, CacheResult> 398new Dictionary<int, int[]?> 402new Dictionary<int, CacheResult> 408new Dictionary<int, int[]?> 412new Dictionary<int, CacheResult> 419new Dictionary<int, int[]?> 514var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 546new Dictionary<int, int[]?> 550extraContentPerProjectNumber: new Dictionary<int, string>() 566var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 606new Dictionary<string, string> 685graphEdges: new Dictionary<int, int[]?> 705var globalProperties = new Dictionary<string, string> 749new Dictionary<int, int[]?> 753new Dictionary<int, CacheResult> 929new Dictionary<int, int[]?> 960new Dictionary<int, int[]?> 984new Dictionary<int, int[]?> 988new Dictionary<int, CacheResult> 1000new Dictionary<string, string> 1042new Dictionary<int, int[]?> 1074dependencyEdges: new Dictionary<int, int[]?> 1078extraContentPerProjectNumber: new Dictionary<int, string> 1250new Dictionary<int, int[]?> 1381new Dictionary<int, int[]?> 1474new Dictionary<int, int[]?> 1504new Dictionary<string, string> 1537new Dictionary<int, int[]?> 1624new ProxyTargets(new Dictionary<string, string> { { proxyTarget, cacheHitTarget } })));
Telemetry\Telemetry_Tests.cs (2)
233new Dictionary<string, string?>(), 242new Dictionary<string, string?>(),
TerminalLogger_Tests.cs (5)
210return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>()) 347Properties = properties?.ToDictionary(k => k.Item1, v => v.Item2) ?? new Dictionary<string, string>(), 611new Dictionary<string, string?>() { { "displayName", "testName1" }, { "localizedResult", "passed" } })); 616new Dictionary<string, string?>() { { "displayName", "testName2" }, { "localizedResult", "skipped" } })); 621new Dictionary<string, string?>() { { "total", "10" }, { "passed", "7" }, { "skipped", "2" }, { "failed", "1" } }));
WarningsAsMessagesAndErrors_Tests.cs (2)
85customProperties: new Dictionary<string, string> 171customProperties: new Dictionary<string, string>
Microsoft.Build.Framework (21)
BinaryReaderExtensions.cs (1)
112data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (1)
640additionalEntries = new();
BuildCheck\BuildCheckTracingData.cs (2)
24: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), []) 28: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), executionData)
BuildException\BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
BuildSubmissionStartedEventArgs.cs (1)
20GlobalProperties = new Dictionary<string, string?>();
Features.cs (1)
39private static readonly Dictionary<string, FeatureStatus> _featureStatusMap = new Dictionary<string, FeatureStatus>
LoggerException.cs (1)
116return new Dictionary<string, string?>()
Profiler\EvaluationLocation.cs (1)
63new Dictionary<EvaluationPass, string>
TaskItemData.cs (2)
19private static readonly Dictionary<string, string> _emptyMetadata = new Dictionary<string, string>(); 41var dictionary = new Dictionary<string, string>();
Telemetry\BuildCheckTelemetry.cs (3)
25var properties = new Dictionary<string, string>(); 53var properties = new Dictionary<string, string>(); 64properties = new Dictionary<string, string>();
Telemetry\BuildTelemetry.cs (1)
105var properties = new Dictionary<string, string>();
Telemetry\LoggingConfigurationTelemetry.cs (1)
86var properties = new Dictionary<string, string>();
Telemetry\WorkerNodeTelemetryData.cs (2)
54: this(new Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats>(), new Dictionary<TaskOrTargetTelemetryKey, bool>())
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
43Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksExecutionData = new(); 54Dictionary<TaskOrTargetTelemetryKey, bool> targetsExecutionData = new();
TelemetryEventArgs.cs (1)
25public IDictionary<string, string?> Properties { get; set; } = new Dictionary<string, string?>();
Microsoft.Build.Framework.UnitTests (13)
BuildCheckTracingEventArgs_Tests.cs (1)
25Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } };
BuildSubmissionStartedEventArgs_Tests.cs (1)
17var globalVariables = new Dictionary<string, string?>
CustomEventArgSerialization_Tests.cs (4)
983TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = "Good", Properties = new Dictionary<string, string> { { "Key", "Value" } } }; 1003genericEvent.Properties = new Dictionary<string, string>(); 1013TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = null, Properties = new Dictionary<string, string> { { "Key", "Value" } } }; 1026TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = "Good", Properties = new Dictionary<string, string> { { "Key", null } } };
ExtendedBuildEventArgs_Tests.cs (5)
28ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 66ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 105ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 143ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 180ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
WorkerNodeTelemetryEventArgs_Tests.cs (2)
19new Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats>() 25new Dictionary<TaskOrTargetTelemetryKey, bool>() { { (TaskOrTargetTelemetryKey)"target1", false }, { (TaskOrTargetTelemetryKey)"target2", true }, });
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
92var rootByItemSpec = new Dictionary<string, ITaskItem>(); 123var topLevelMappedPaths = new Dictionary<string, string>();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
92var rootByItemSpec = new Dictionary<string, ITaskItem>(); 123var topLevelMappedPaths = new Dictionary<string, string>();
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (4)
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (4)
128new Dictionary<string, string> 160new Dictionary<string, string> 199new Dictionary<string, string> 238new Dictionary<string, string>
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (58)
GenerateMSBuildEditorConfigTests.cs (31)
37ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } }); 38ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 57ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 77ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 78ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 79ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } }); 106ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/{f*i?le1}.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 107ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/f,ile#2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 108ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/f;i!le[3].cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } }); 134ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 135ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 156ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" } }); 176ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { }); 177ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" } }); 178ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "MetadataName", "ToRetrieve" } }); 197ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 198ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 199ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } }); 200ITaskItem item4 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "jkl012" } }); 202ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } }); 203ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } }); 311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 339ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:\\file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 359ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } }); 360ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
IntegrationTests.cs (3)
27private Dictionary<string, string> SimpleMsBuildFiles => new Dictionary<string, string> { 335private Dictionary<string, string> ReportAnalyzerMsBuildFiles => new Dictionary<string, string> { 519new Dictionary<string, string>
MapSourceRootTests.cs (16)
39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string> 43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 89new TaskItem(@"****/", new Dictionary<string, string> 93new TaskItem(@"****\|||:;\", new Dictionary<string, string> 161new TaskItem(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string> 166new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 171new TaskItem(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string> 250new TaskItem(path1, new Dictionary<string, string> 255new TaskItem(path2, new Dictionary<string, string> 293new TaskItem(path1, new Dictionary<string, string> 302new TaskItem(path1, new Dictionary<string, string> 311new TaskItem(path2, new Dictionary<string, string> 316new TaskItem(path2, new Dictionary<string, string> 365new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 427new TaskItem(path1, new Dictionary<string, string>
TargetTests.cs (3)
933addTask(proj, "WriteLinesToFile", new() 942addTask(proj, "MakeDir", new() 948addTask(proj, "Message", new()
TestUtilities\DotNetSdkTestBase.cs (1)
180EnvironmentVariables = new Dictionary<string, string>()
TestUtilities\IntegrationTestBase.cs (4)
128new Dictionary<string, string> 160new Dictionary<string, string> 199new Dictionary<string, string> 238new Dictionary<string, string>
Microsoft.Build.Tasks.Core (25)
AssemblyDependency\GenerateBindingRedirects.cs (1)
363var map = new Dictionary<AssemblyName, string>();
AssemblyDependency\ReferenceTable.cs (2)
1385var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 3024Dictionary<string, string> removedMetadata = new Dictionary<string, string>();
AssemblyDependency\ResolveAssemblyReference.cs (1)
1188_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>()
BootstrapperUtil\BootstrapperBuilder.cs (2)
272var builtProducts = new Dictionary<string, ProductBuilder>(); 273var productsAndIncludes = new Dictionary<string, Product>();
ManifestUtil\ApplicationManifest.cs (3)
433var clsidList = new Dictionary<string, ComInfo>(); 434var tlbidList = new Dictionary<string, ComInfo>(); 642var targetPathList = new Dictionary<string, bool>();
ManifestUtil\AssemblyIdentity.cs (1)
402var redistDictionary = new Dictionary<string, RedistList>();
ManifestUtil\Manifest.cs (1)
624var identityList = new Dictionary<string, bool>();
ManifestUtil\Util.cs (1)
413var list = new Dictionary<string, ITaskItem>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
ResGenDependencies.cs (2)
32internal IDictionary<string, ResXFile> resXFiles = new Dictionary<string, ResXFile>(); 37internal IDictionary<string, PortableLibraryFile> portableLibraries = new Dictionary<string, PortableLibraryFile>();
ResolveManifestFiles.cs (3)
835private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 836private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 948private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResourceHandling\MSBuildResXReader.cs (1)
24var aliases = new Dictionary<string, string>();
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
WriteCodeFragment.cs (3)
38private static readonly IReadOnlyDictionary<string, ParameterType> EmptyParameterTypes = new Dictionary<string, ParameterType>(); 328parameterTypes = new(); 358parameterTypes = new();
Microsoft.Build.Tasks.UnitTests (41)
AssemblyDependency\Node\RarNodeExecuteResponse_Tests.cs (7)
25new Dictionary<string, string>() 33new Dictionary<string, string>() 64new Dictionary<string, string>() 73new Dictionary<string, string>() 80new Dictionary<string, string>() 87new Dictionary<string, string>() 99new Dictionary<string, string>()
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (3)
102Dictionary<string, SystemState.FileState> cache = new() { 145Dictionary<string, SystemState.FileState> cache = new() { 174Dictionary<string, SystemState.FileState> cache = new() {
AssemblyDependency\SuggestedRedirects.cs (2)
360new TaskItem("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 361new TaskItem("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
AssignTargetPath_Tests.cs (1)
94Dictionary<string, string> metaData = new Dictionary<string, string>();
CreateItem_Tests.cs (1)
205BuildRequestData data = new BuildRequestData(projectFileFullPath, new Dictionary<string, string>(), null, new string[] { "Repro" }, null);
Exec_Tests.cs (2)
962new Dictionary<string, string>(), 1019new Dictionary<string, string>(),
FindInvalidProjectReferences_Tests.cs (4)
28Dictionary<string, string> proj1 = new Dictionary<string, string>(); 31Dictionary<string, string> proj2 = new Dictionary<string, string>(); 34Dictionary<string, string> proj3 = new Dictionary<string, string>(); 37Dictionary<string, string> proj4 = new Dictionary<string, string>();
GetInstalledSDKLocations_Tests.cs (1)
288Dictionary<string, string> sdksAndVersions = new Dictionary<string, string>();
GetSDKReference_Tests.cs (2)
265Dictionary<string, GetSDKReferenceFiles.SdkReferenceInfo> pathToReferenceMetadata = new(); 268Dictionary<string, List<string>> directoryToFileList = new();
MockUnmanagedMemoryHelper.cs (1)
25private Dictionary<IntPtr, List<IntPtr>> _dependentAllocations = new Dictionary<IntPtr, List<IntPtr>>();
RARPrecomputedCache_Tests.cs (3)
30t._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() { 65rarWriterTask._cache.instanceLocalFileStateCache = new() { 117rarWriterTask._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() {
ResolveSDKReference_Tests.cs (13)
332Dictionary<string, string> dict = new Dictionary<string, string>(); 3815IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 3824targetResults = new Dictionary<string, TargetResult>(); 3958IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 3967targetResults = new Dictionary<string, TargetResult>(); 4067IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 4076targetResults = new Dictionary<string, TargetResult>(); 4164IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 4175targetResults = new Dictionary<string, TargetResult>(); 4198SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2"); 4200new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } }, 4333IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
ResourceHandling\GenerateResource_Tests.cs (1)
3634Dictionary<string, object> valuesFromResource = new Dictionary<string, object>();
Microsoft.Build.UnitTests.Shared (9)
ObjectModelHelpers.cs (8)
124return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 259expectedDirectMetadata = new Dictionary<string, string>(); 469expected ??= new Dictionary<string, string>(); 1018BuildRequestData data = new BuildRequestData(projectFileFullPath, globalProperties ?? new Dictionary<string, string>(), null, targets, null); 1440new Dictionary<string, string>(), 1767var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>(); 1816globalProperties ?? new Dictionary<string, string>(), 2121globalProperties ?? new Dictionary<string, string>(),
TestEnvironment.cs (1)
637var tempPaths = new TempPaths
Microsoft.Build.Utilities.Core (10)
MuxLogger.cs (2)
58private readonly Dictionary<int, SubmissionRecord> _submissionRecords = new Dictionary<int, SubmissionRecord>(); 93private readonly Dictionary<int, int> _submissionProjectsInProgress = new Dictionary<int, int>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
SDKManifest.cs (2)
379_frameworkIdentities = new Dictionary<string, string>(); 390_appxLocations = new Dictionary<string, string>();
ToolLocationHelper.cs (3)
623var filteredExtensionSdks = new Dictionary<string, string>(); 1418s_vsInstallFolders = new Dictionary<string, string[]>(); 2465var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
Microsoft.Build.Utilities.UnitTests (7)
TaskItem_Tests.cs (2)
307IDictionary<string, string> metadata = new Dictionary<string, string>(); 329Dictionary<string, string> metadata = new()
ToolLocationHelper_Tests.cs (5)
3080var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3092var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3107var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3788var targetPlatforms = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 4057var targetPlatforms = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
Microsoft.Cci.Extensions (6)
Extensions\TypeExtensions.cs (1)
448private static Dictionary<string, string> s_tokenNames = new Dictionary<string, string>()
Filters\BaselineDifferenceFilter.cs (1)
14private readonly Dictionary<string, bool> _ignoreDifferences = new Dictionary<string, bool>();
Mappings\AssemblyMapping.cs (1)
30_properties = new Dictionary<string, ElementMapping<AssemblyProperty>>();
Mappings\AttributesMapping.cs (1)
29_attributes = new Dictionary<string, ElementMapping<AttributeGroup>>();
SRMetadataPEReaderCache.cs (1)
25_cache = new Dictionary<string, (FileStream, PEReader)>();
Traversers\DocIdToTypeMappingTraverser.cs (1)
15_typesIdMap = new Dictionary<string, ITypeDefinition>();
Microsoft.CodeAnalysis (67)
CodeGen\CompilationTestData.cs (1)
68var map = new Dictionary<string, MethodData>();
Collections\KeyedStack.cs (1)
18private readonly Dictionary<T, Stack<R>> _dict = new Dictionary<T, Stack<R>>();
Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
CommandLine\SarifV1ErrorLogger.cs (1)
235private readonly Dictionary<string, int> _counters = new Dictionary<string, int>();
Compilation\CommonModuleCompilationState.cs (1)
48Interlocked.CompareExchange(ref _lazyStateMachineTypes, new Dictionary<TMethodSymbol, TNamedTypeSymbol>(), null);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (6)
46_completedSyntaxAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 47_completedSemanticAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 48_completedSyntaxAnalyzersByAdditionalFile = new Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>>(); 340lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 353allDiagnostics = new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 375_nonLocalDiagnosticsOpt = _nonLocalDiagnosticsOpt ?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
422_lazyGeneratedCodeSymbolsForTreeMap = new Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>>();
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (3)
150_lazySymbolScopeTasks ??= new Dictionary<ISymbol, Task<HostSymbolStartAnalysisScope>>(); 170_lazyPendingMemberSymbolsMap ??= new Dictionary<ISymbol, HashSet<ISymbol>?>(); 473_lazyPendingSymbolEndActionsMap ??= new Dictionary<ISymbol, (ImmutableArray<SymbolEndAnalyzerAction>, SymbolDeclaredCompilationEvent)>();
DiagnosticAnalyzer\AnalyzerManager.cs (1)
45var analyzerExecutionContextMap = new Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext>();
DiagnosticAnalyzer\CompilationAnalysisValueProviderFactory.cs (1)
21Interlocked.CompareExchange(ref _lazySharedStateProviderMap, new Dictionary<object, object>(), null);
DiagnosticAnalyzer\DiagnosticQueue.cs (1)
134lazyDiagnosticsMap ??= new Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>();
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (3)
46private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>(); 47private readonly Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>> _globalSymbolSuppressions = new Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>>(); 63suppressions = new Dictionary<string, SuppressMessageInfo>() { { info.Id, info } };
Emit\EditAndContinue\DefinitionMap.cs (3)
67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 248var declaratorToIndex = new Dictionary<SyntaxNode, int>(); 557var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>();
Emit\EditAndContinue\DeltaMetadataWriter.cs (4)
113_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 116_firstParamRowMap = new Dictionary<MethodDefinitionHandle, int>(); 182var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 1594_map = new Dictionary<int, T>();
Emit\EditAndContinue\EmitBaseline.cs (15)
176generationOrdinals: new Dictionary<Cci.IDefinition, int>(), 177typesAdded: new Dictionary<Cci.ITypeDefinition, int>(), 178eventsAdded: new Dictionary<Cci.IEventDefinition, int>(), 179fieldsAdded: new Dictionary<Cci.IFieldDefinition, int>(), 180methodsAdded: new Dictionary<Cci.IMethodDefinition, int>(), 181firstParamRowMap: new Dictionary<MethodDefinitionHandle, int>(), 182propertiesAdded: new Dictionary<Cci.IPropertyDefinition, int>(), 183eventMapAdded: new Dictionary<int, int>(), 184propertyMapAdded: new Dictionary<int, int>(), 185methodImplsAdded: new Dictionary<MethodImplKey, int>(), 186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(), 195methodsAddedOrChanged: new Dictionary<int, AddedOrChangedMethodInfo>(), 503var result = new Dictionary<int, int>(); 518var result = new Dictionary<int, int>(); 533var result = new Dictionary<MethodImplKey, int>();
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
83var previousLocalInfoToSlot = new Dictionary<EncLocalInfo, int>();
Emit\EditAndContinue\SymbolChanges.cs (3)
357var changesBuilder = new Dictionary<ISymbolInternal, SymbolChange>(); 358var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>>(); 387lazyDeletedMembersBuilder ??= new();
Emit\EditAndContinue\SymbolMatcher.cs (1)
97var result = new Dictionary<int, AddedOrChangedMethodInfo>();
InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
MetadataReader\PEModule.cs (4)
50private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>(); 51private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(); 676Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?>(); 3881typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
NativePdbWriter\PdbWriter.cs (1)
48_documentIndex = new Dictionary<DebugSourceDocument, int>();
PEWriter\MetadataWriter.cs (3)
438private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 447private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 4271: this(writer, new Dictionary<T, int>(), lastRowId)
PEWriter\MetadataWriter.PortablePdb.cs (1)
54private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>();
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
620lazyAliasMap = new Dictionary<MetadataReference, MergedAliases>(); 829localBoundReferenceDirectives = new Dictionary<(string, string), MetadataReference>();
ReferenceManager\CommonReferenceManager.State.cs (2)
202this.ObservedMetadata = observedMetadata ?? new Dictionary<MetadataReference, MetadataOrDiagnostic>(); 504(mergedAssemblyReferencesMapOpt ??= new Dictionary<MetadataReference, ImmutableArray<MetadataReference>>()).Add(reference, referenceMap[i].MergedReferences);
RuleSet\RuleSet.cs (2)
108var effectiveSpecificOptions = new Dictionary<string, ReportDiagnostic>(); 290diagnosticOptions = new Dictionary<string, ReportDiagnostic>();
SourceGeneration\Nodes\GeneratorRunStateTable.cs (2)
34_namedSteps = new Dictionary<string, HashSet<IncrementalGeneratorRunStep>>(); 35_outputSteps = new Dictionary<string, HashSet<IncrementalGeneratorRunStep>>();
Microsoft.CodeAnalysis.Analyzers (26)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
195var newText = await UpdateEntriesInUnshippedFileAsync(unshippedDataDocument, new Dictionary<string, string>() { { ruleId, entryToUpdate } }, cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
146var entriesToUpdate = new Dictionary<string, string>();
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
100var fixInfoMap = new Dictionary<TextDocument, List<FixInfo>>();
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
51var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
95var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.BannedApiAnalyzers (22)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
SymbolIsBannedAnalyzer.cs (1)
112var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>();
Microsoft.CodeAnalysis.CodeStyle (13)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
81var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
288var canEditMap = new Dictionary<DocumentId, bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder.QueryTranslationState.cs (1)
50public readonly Dictionary<RangeVariableSymbol, ArrayBuilder<string>> allRangeVariables = new Dictionary<RangeVariableSymbol, ArrayBuilder<string>>();
Binder\OpenTypeVisitor.cs (1)
45_allowedMap ??= new Dictionary<GenericNameSyntax, bool>();
Binder\PatternExplainer.cs (3)
288constraints = new Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>>(); 289evaluations = new Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>>(); 573var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (2)
240_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 505_localEscapeScopes ??= new Dictionary<LocalSymbol, (SafeContext RefEscapeScope, SafeContext ValEscapeScope)>();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
902Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMap = new Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>>();
Binder\SwitchBinder.cs (1)
456var result = new Dictionary<SyntaxNode, LabelSymbol>();
BoundTree\BoundNode_Source.cs (1)
22appendSourceCore(this, indent: 0, tempIdentifiers: new Dictionary<SynthesizedLocal, int>());
CodeGen\EmitStatement.cs (1)
2041_labelClones = labelClones = new Dictionary<LabelSymbol, GeneratedLabelSymbol>();
CommandLine\CSharpCommandLineParser.cs (3)
121var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(); 122var noWarns = new Dictionary<string, ReportDiagnostic>(); 123var warnAsErrors = new Dictionary<string, ReportDiagnostic>();
Compilation\MemberSemanticModel.cs (3)
33private readonly Dictionary<SyntaxNode, OneOrMany<BoundNode>> _guardedBoundNodeMap = new Dictionary<SyntaxNode, OneOrMany<BoundNode>>(); 34private readonly Dictionary<SyntaxNode, IOperation> _guardedIOperationNodeMap = new Dictionary<SyntaxNode, IOperation>(); 1454_lazyGuardedSynthesizedStatementsMap = new Dictionary<SyntaxNode, BoundStatement>();
Compiler\ClsComplianceChecker.cs (1)
1075containingTypes = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>();
Compiler\TypeCompilationState.cs (1)
156_wrappers = new Dictionary<MethodSymbol, MethodSymbol>();
Emitter\EditAndContinue\CSharpDefinitionMap.cs (2)
64var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 155var map = new Dictionary<EncLocalInfo, int>();
Emitter\Model\PEModuleBuilder.cs (1)
1617Interlocked.CompareExchange(ref _fixedImplementationTypes, new Dictionary<FieldSymbol, NamedTypeSymbol>(), null);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
896_labelsInInterestingTry = labelsInInterestingTry = new Dictionary<BoundTryStatement, HashSet<LabelSymbol>>(); 1042this.proxyLabels = proxyLabels = new Dictionary<LabelSymbol, LabelSymbol>(); 1123_hoistedLocals = new Dictionary<LocalSymbol, LocalSymbol>();
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
103_placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (2)
24private readonly Dictionary<LocalSymbol, LocalSymbol> localMap = new Dictionary<LocalSymbol, LocalSymbol>(); 27private readonly Dictionary<BoundValuePlaceholderBase, BoundValuePlaceholderBase> _placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundValuePlaceholderBase>();
Lowering\ClosureConversion\ClosureConversion.cs (3)
85private readonly Dictionary<ParameterSymbol, ParameterSymbol> _parameterMap = new Dictionary<ParameterSymbol, ParameterSymbol>(); 88private readonly Dictionary<BoundNode, Analysis.ClosureEnvironment> _frames = new Dictionary<BoundNode, Analysis.ClosureEnvironment>(); 92private readonly Dictionary<NamedTypeSymbol, Symbol> _framePointers = new Dictionary<NamedTypeSymbol, Symbol>();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
21private readonly Dictionary<ParameterSymbol, BoundExpression> _parameterMap = new Dictionary<ParameterSymbol, BoundExpression>();
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.IteratorFinallyFrame.cs (2)
84this.knownStates = knownStates = new Dictionary<StateMachineState, IteratorFinallyFrame>(); 109this.proxyLabels = proxyLabels = new Dictionary<LabelSymbol, LabelSymbol>();
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
77_labelsInYieldingTrys = yieldingTryLabels = new Dictionary<BoundTryStatement, HashSet<LabelSymbol>>();
Lowering\LocalRewriter\LocalRewriter.cs (1)
537_placeholderReplacementMapDoNotUseDirectly = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
179_lazyUnmatchedLabelCache = new Dictionary<BoundNode, HashSet<LabelSymbol>>();
Lowering\MethodToClassRewriter.cs (1)
24protected Dictionary<Symbol, CapturedSymbolReplacement> proxies = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
44private readonly Dictionary<LocalSymbol, BoundExpression> _boundRefLocalInitializers = new Dictionary<LocalSymbol, BoundExpression>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new Dictionary<LabelSymbol, List<StateMachineState>>(); 238_dispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>(); 746oldDispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>();
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
114initialParameters = new Dictionary<Symbol, CapturedSymbolReplacement>(); 142var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\SynthesizedSubmissionFields.cs (1)
77_previousSubmissionFieldMap = new Dictionary<ImplicitNamedTypeSymbol, FieldSymbol>();
Symbols\ReferenceManager.cs (1)
849missingAssemblies = new Dictionary<AssemblyIdentity, MissingAssemblySymbol>();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
50new Dictionary<AssemblySymbol, DestinationData>();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1342var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
664var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (28)
CommandLineTests.cs (28)
481var parser = new TestCommandLineParser(responseFiles: new Dictionary<string, string>() 595patterns: new Dictionary<string, string[]>() 599recursivePatterns: new Dictionary<string, string[]>() 2437var expectedEmbeddedMap = new Dictionary<string, string>(); 9871Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "false" }, { "Key", "value" } })); 9875Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "true" } })); 13932ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true); 13973ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true); 14014ValidateEmbeddedSources_Portable(new Dictionary<string, string> 14098ValidateWrittenSources(new() 14100{ Path.Combine(generatedDir.Path, generatorPrefix, expectedDir), new() { { expectedFileName, generatedSource } } } 14124ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource1 } } } }); 14131ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource2 } } } }); 14161ValidateWrittenSources(new() 14163{ generator1Prefix, new() { { source1Name, source1 } } }, 14164{ generator2Prefix, new() { { source2Name, source2 } } } 14200ValidateWrittenSources(new() 14202{ Path.Combine(generatedDir.Path, generatorPrefix, expectedDir), new() { { generatedFileName, generatedSource } } } 14252ValidateWrittenSources(new() 14255{ Path.Combine(generatedDir.Path, "generator", "TestGenerator"), new() { { "generatedSource.cs", "//from version 2.0.0.0" } } } 14273ValidateWrittenSources(new() { { generatedDir.Path, new() } }); 14317ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource } } } }); 14629ValidateWrittenSources(new() 14631{ generatorPrefix, new() { { "Generated.cs", generatedSource } } },
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
CodeActions\AddUsing\AddUsingTests.cs (1)
2153var resolver = new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>()
Formatting\CodeCleanupTests.cs (1)
825var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>{
MoveToNamespace\MoveToNamespaceTests.cs (27)
106expectedSymbolChanges: new Dictionary<string, string>() 133expectedSymbolChanges: new Dictionary<string, string>() 160expectedSymbolChanges: new Dictionary<string, string>() 187expectedSymbolChanges: new Dictionary<string, string>() 215expectedSymbolChanges: new Dictionary<string, string>() 293expectedSymbolChanges: new Dictionary<string, string>() 361expectedSymbolChanges: new Dictionary<string, string>() 441expectedSymbolChanges: new Dictionary<string, string>() 467expectedSymbolChanges: new Dictionary<string, string>() 503expectedSymbolChanges: new Dictionary<string, string>() 541expectedSymbolChanges: new Dictionary<string, string>() 577expectedSymbolChanges: new Dictionary<string, string>() 615expectedSymbolChanges: new Dictionary<string, string>() 662expectedSymbolChanges: new Dictionary<string, string>() 709expectedSymbolChanges: new Dictionary<string, string>() 756expectedSymbolChanges: new Dictionary<string, string>() 803expectedSymbolChanges: new Dictionary<string, string>() 870expectedSymbolChanges: new Dictionary<string, string>() 927expectedSymbolChanges: new Dictionary<string, string>() 1048expectedSymbolChanges: new Dictionary<string, string>() 1105expectedSymbolChanges: new Dictionary<string, string>() 1162expectedSymbolChanges: new Dictionary<string, string>() 1259expectedSymbolChanges: new Dictionary<string, string>() 1307expectedSymbolChanges: new Dictionary<string, string>() 1480expectedSymbolChanges: new Dictionary<string, string>() 1524expectedSymbolChanges: new Dictionary<string, string>() 1554expectedSymbolChanges: new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
Recommendations\FromKeywordRecommenderTests.cs (1)
196var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable
Recommendations\IsKeywordRecommenderTests.cs (1)
113var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4748var warnings = new System.Collections.Generic.Dictionary<string, ReportDiagnostic>();
Emit\EmitErrorTests.cs (1)
304var warnOpts = new System.Collections.Generic.Dictionary<string, ReportDiagnostic>();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Attributes\AttributeTests_Assembly.cs (3)
182var warnings = new Dictionary<string, ReportDiagnostic>(); 214var warnings = new Dictionary<string, ReportDiagnostic>(); 430var warnings = new Dictionary<string, ReportDiagnostic>();
Attributes\AttributeTests_MarshalAs.cs (21)
230var blobs = new Dictionary<string, byte[]> 327var blobs = new Dictionary<string, byte[]> 374var blobs = new Dictionary<string, byte[]> 461var blobs = new Dictionary<string, byte[]> 486var expectedBlobs = new Dictionary<string, byte[]>(); 594var blobs = new Dictionary<string, byte[]> 632var expectedBlobs = new Dictionary<string, byte[]>(); 760var blobs = new Dictionary<string, byte[]> 800var blobs = new Dictionary<string, byte[]> 832var cciBlobs = new Dictionary<string, byte[]> 913var blobs = new Dictionary<string, byte[]> 1032var blobs = new Dictionary<string, byte[]> 1140var blobs = new Dictionary<string, byte[]>() 1185var blobs = new Dictionary<string, byte[]>() 1220var blobs = new Dictionary<string, byte[]>() 1251CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1278CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1299CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1321CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1349CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1493CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2814var visitedEntryPoints = new Dictionary<string, bool>();
Diagnostics\DiagnosticAnalyzerTests.cs (11)
317var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 332specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 344specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 459var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 531var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 540specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 1141var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 1283specificOptions = specificOptions ?? new Dictionary<string, ReportDiagnostic>(); 1303var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } }; 1324var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } }; 1347var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
FlowAnalysis\FlowDiagnosticTests.cs (1)
383Dictionary<int, int> warnings = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CSharp.Features (4)
ChangeSignature\CSharpChangeSignatureService.cs (1)
827var dictionary = new Dictionary<string, XmlElementSyntax>();
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
22private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new()
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
697var replacements = new Dictionary<SyntaxNode, SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
96var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.CodeBlockSuggestions.cs (1)
65private static readonly Dictionary<string, object[]> s_codeBlockSuggestions = new()
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (1)
181var implementationMap = new Dictionary<string, string>
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
450var experimentalFeatures = new Dictionary<string, string>(); // no experimental features to enable 499var featuresToEnable = new Dictionary<string, string>() { { feature, "enabled" } };
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
1086var builtInTypeMap = new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
36Dictionary<IBlockOperation, IdentifierGenerator> scopeMap = new();
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
163files: new Dictionary<string, PortableExecutableReference> { { @"C:\dir\x.dll", (PortableExecutableReference)SystemCoreRef } }));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
583var obj = new Dictionary<string, int>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InteractiveUsingTests.cs (3)
358var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string> 429var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string> 479var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string>
Semantics\MethodBodyModelTests.cs (1)
126Dictionary<int, int> errors = new Dictionary<int, int>();
Semantics\NullableTests.cs (5)
712var zeros = new Dictionary<string, string>() 730var ones = new Dictionary<string, string>() 1147var twos = new Dictionary<string, string>() 1163var ones = new Dictionary<string, string>() 1180var names = new Dictionary<string, string>()
Semantics\SemanticErrorTests.cs (2)
2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 11082var noWarns = new Dictionary<string, ReportDiagnostic>();
Semantics\UnsafeTests.cs (1)
10579private static readonly Dictionary<SpecialType, int> s_specialTypeSizeOfMap = new Dictionary<SpecialType, int>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Compilation\CompilationAPITests.cs (1)
589new TestMetadataReferenceResolver(files: new Dictionary<string, PortableExecutableReference>()
Compilation\CSharpCompilationOptionsTests.cs (3)
87new Dictionary<string, ReportDiagnostic> { { "CS0001", ReportDiagnostic.Error } }.ToImmutableDictionary()); 126new Dictionary<string, ReportDiagnostic> { { "CS0001", ReportDiagnostic.Error } }.ToImmutableDictionary()); 228var warnings = new Dictionary<string, ReportDiagnostic>
Compilation\ReferenceManagerTests.cs (25)
871assemblyNames: new Dictionary<string, PortableExecutableReference> { { "Lib", r3 } }, 872files: new Dictionary<string, PortableExecutableReference> { { p2, r2 }, { p3, r3 } })) 1368files: new Dictionary<string, PortableExecutableReference>() 2328new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>() 2357new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>() 2530var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2552var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2587var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2639var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2675var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2706var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>()); 2722var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>()); 2747var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2772var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2803var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2838var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2879var resolverA = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2890var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2945var resolverA = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2956var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3008var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3054var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3120var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3184var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3224var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
6814var warnDict = new Dictionary<string, ReportDiagnostic> { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_MissingXMLComment), ReportDiagnostic.Suppress } };
Symbols\PartialPropertiesTests.cs (1)
841var visitedEntryPoints = new Dictionary<string, bool>();
Symbols\SymbolErrorTests.cs (1)
108options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (44)
Diagnostics\DiagnosticTest.cs (26)
574IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 618IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 678IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 729IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 785IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 841IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 899IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 957IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1016IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1086IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1157IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1222IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1275IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1329IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1379IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1430var warnings = new Dictionary<string, ReportDiagnostic>(); 1486IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1503warnings = new Dictionary<string, ReportDiagnostic>(); 1553IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1603IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1659IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1706IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1743IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1776IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1825var warnings = new Dictionary<string, ReportDiagnostic>(); 2249var warnings = new Dictionary<string, ReportDiagnostic>();
LexicalAndXml\XmlDocCommentTests.cs (13)
1731VerifyXmlAttributes(xmlElement.StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } }); 1768VerifyXmlAttributes((firstComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1771VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } }); 1814VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } }); 1849VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1884VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1919VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1954VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2065VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2097VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2131VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2267new Dictionary<string, string>() { { "attr1", "a" }, { "attr2", "b" }, { "attr3", "test" } }); 2309VerifyXmlAttributes(thirdLevelTrivia.StartTag.Attributes, new Dictionary<string, string>() { { "attr", "a" } });
Parsing\CSharpParseOptionsTests.cs (2)
61var options1 = CSharpParseOptions.Default.WithFeatures(new Dictionary<string, string>() { { "F1", "V1" }, { "F2", "V2" } }); 62var options2 = CSharpParseOptions.Default.WithFeatures(new Dictionary<string, string>() { { "f2", "V2" }, { "F1", "V1" } });
Syntax\SyntaxAnnotationTests.cs (2)
435var nodeOrTokenMap = new Dictionary<SyntaxNodeOrToken, SyntaxNodeOrToken>(); 456var triviaMap = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
Syntax\SyntaxNodeTests.cs (1)
4022var tests = new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
64public static readonly CSharpParseOptions Regular6WithV7SwitchBinder = Regular6.WithFeatures(new Dictionary<string, string>() { { "testV7SwitchBinder", "true" } });
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
664var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.EditorFeatures (2)
LanguageServer\RazorInProcLanguageClient.cs (1)
76vsServerCapabilities.Experimental ??= new Dictionary<string, bool>();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
604var bufferToChanges = new Dictionary<ITextBuffer, DiffResult>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\EditorTestWorkspace.cs (1)
442var tempMappedMarkupSpans = new Dictionary<string, PooledObjects.ArrayBuilder<TextSpan>>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
731var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>() 781var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>()
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
100var expectedMap = new Dictionary<string, string>();
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (5)
49var libraries = new Dictionary<string, ProjectAssetsLibrary>(); 61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>(); 68Compile = new Dictionary<string, ProjectAssetsTargetLibraryCompile>() { { Path.ChangeExtension(reference.ItemSpecification, "dll"), new ProjectAssetsTargetLibraryCompile() } }, 74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } }; 98Frameworks = new Dictionary<string, ProjectAssetsProjectFramework>() { { targetFramework, new ProjectAssetsProjectFramework() } }
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
82var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
46var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
82var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
46var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null;
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.Features (46)
ChangeSignature\AbstractChangeSignatureService.cs (5)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 255var definitionToUse = new Dictionary<SyntaxNode, ISymbol>(); 376var updatedRoots = new Dictionary<DocumentId, SyntaxNode>(); 482var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>(); 483var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
CodeFixes\Service\CodeFixService.cs (2)
505var uniqueDiagnosticToEquivalenceKeysMap = new Dictionary<Diagnostic, PooledHashSet<string?>>(); 510var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
50var currentDiagnosticSpans = new Dictionary<Diagnostic, TextSpan>();
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
31new()
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
392var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>();
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
382var parameterToPropMap = new Dictionary<string, ISymbol>();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
302var documentToEditorMap = new Dictionary<Document, SyntaxEditor>();
Copilot\ICopilotChangeAnalysisService.cs (10)
181var idToCount = new Dictionary<string, int>(); 182var categoryToCount = new Dictionary<string, int>(); 183var severityToCount = new Dictionary<DiagnosticSeverity, int>(); 243var diagnosticIdToCount = new Dictionary<string, int>(); 244var diagnosticIdToApplicationTime = new Dictionary<string, TimeSpan>(); 245var diagnosticIdToProviderName = new Dictionary<string, HashSet<string>>(); 246var providerNameToApplicationTime = new Dictionary<string, TimeSpan>(); 247var providerNameToHasConflict = new Dictionary<string, bool>(); 248var providerNameToTotalCount = new Dictionary<string, int>(); 249var providerNameToSuccessCount = new Dictionary<string, int>();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1629var map = new Dictionary<SyntaxNode, SyntaxNode>();
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
25new()
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
195var statMap = new Dictionary<string, List<int>>();
ExtractMethod\AbstractSyntaxTriviaService.cs (3)
74var map = new Dictionary<SyntaxToken, SyntaxToken>(); 97var triviaList = new Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> 110var tokens = new Dictionary<TriviaLocation, SyntaxToken>
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
59var map = new Dictionary<SyntaxToken, SyntaxToken>(); 177var map = new Dictionary<SyntaxToken, LeadingTrailingTriviaPair>(); 213var tokenPairs = new Dictionary<TriviaLocation, PreviousNextTokenPair>
ExtractMethod\ExtractMethodFlowControlInformation.cs (1)
62var flowValues = new Dictionary<FlowControlKind, object?>();
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
359var renameTable = new Dictionary<ISymbol, string>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
277var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); 235var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 487var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (2)
125var anonymousTypeToName = new Dictionary<INamedTypeSymbol, string>(); 189var transitiveReferences = new Dictionary<INamedTypeSymbol, (int order, int count)>();
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
413var nodesToUpdate = new Dictionary<SyntaxNode, SyntaxNode>();
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
81var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
288var canEditMap = new Dictionary<DocumentId, bool>();
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
60var builtReferences = new Dictionary<string, ReferenceInfo?>();
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\ActiveStatementsDescription.cs (2)
44var oldDocumentMap = new Dictionary<string, List<ActiveStatement>>(); 138var map = new Dictionary<string, List<ActiveStatement>>();
EditAndContinue\EditAndContinueTestVerifier.cs (1)
543var result = new Dictionary<SyntaxNode, SyntaxNode>();
EditAndContinue\SourceMarkers.cs (1)
52var tagMap = new Dictionary<(int major, int minor), (int start, int end)>();
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\ActiveStatementsMapTests.cs (3)
126var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 183var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 236var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>();
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
511var initialNonRemappableRegions = new Dictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
179var runningProjects1 = new Dictionary<ProjectId, RunningProjectOptions>
Microsoft.CodeAnalysis.LanguageServer (3)
BrokeredServices\Services\Descriptors.cs (1)
40public static ImmutableDictionary<ServiceMoniker, ServiceRegistration> RemoteServicesToRegister = new Dictionary<ServiceMoniker, ServiceRegistration>
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
114var fileCounts = new Dictionary<string, int>();
Testing\RunTestsHandler.cs (1)
59EnvironmentVariables = new()
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
Extensions\ProtocolConversions.cs (2)
55public static readonly ImmutableDictionary<string, ImmutableArray<LSP.CompletionItemKind>> RoslynTagToCompletionItemKinds = new Dictionary<string, ImmutableArray<LSP.CompletionItemKind>>() 102public static readonly ImmutableDictionary<string, ImmutableArray<LSP.CompletionItemTag>> RoslynTagToCompletionItemTags = new Dictionary<string, ImmutableArray<LSP.CompletionItemTag>>()
Handler\Completion\CompletionResultFactory.cs (1)
280var commitCharacterReferences = new Dictionary<object, int>();
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
267var fieldOffsets = new Dictionary<SnippetFieldPart, ImmutableArray<TextSpan>>();
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
180var fieldNameToSnippetIndex = new Dictionary<string, int>();
Handler\SemanticTokens\CustomLspSemanticTokenNames.cs (1)
84public static ImmutableDictionary<string, string> ClassificationTypeNameToCustomTokenName = new Dictionary<string, string>
Handler\SemanticTokens\SemanticTokensSchema.cs (4)
23private static readonly ImmutableDictionary<string, string> s_vsDirectTypeMap = new Dictionary<string, string>() 38private static readonly ImmutableDictionary<string, string> s_pureLspDirectTypeMap = s_vsDirectTypeMap.Concat(new Dictionary<string, string> 81public static readonly ImmutableDictionary<string, TokenModifiers> AdditiveClassificationTypeToTokenModifier = new Dictionary<string, TokenModifiers>() 118var tokenTypeToIndex = new Dictionary<string, int>();
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (1)
140var result = new Dictionary<Document, PreviousPullResult>();
LanguageInfoProvider.cs (1)
25private static readonly Dictionary<string, LanguageInformation> s_extensionToLanguageInformation = new()
LspServices\LspServices.cs (1)
41var serviceMap = new Dictionary<string, Lazy<ILspService, LspServiceMetadataView>>();
RoslynLanguageServer.cs (1)
77var baseServiceMap = new Dictionary<string, object>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
96var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 103var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>();
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Utilities\AbstractLanguageServerClientTests.cs (2)
64Dictionary<DocumentUri, SourceText> files = new() { [codeUri] = text }; 97var locations = new Dictionary<string, IList<LSP.Location>>();
WorkspaceProjectFactoryServiceTests.cs (1)
37new WorkspaceProjectCreationInfo(LanguageNames.CSharp, "DisplayName", FilePath: null, new Dictionary<string, string>()),
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (21)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (2)
AnnotatePublicApiFix.cs (2)
74SourceText newSourceText = AnnotateSymbolNamesInSourceText(sourceText, new Dictionary<string, string> { [oldSymbolName] = newSymbolName }); 128var allChanges = new Dictionary<string, Dictionary<string, string>>();
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\TestUtils.cs (2)
160var map = new Dictionary<Checksum, object>(); 171var map = new Dictionary<Checksum, object>();
Services\SourceGeneration\RemoteSourceGenerationService.cs (1)
75private static readonly Dictionary<string, (AnalyzerReferenceMap analyzerReferenceMap, AnalyzerReferenceMap.CreateValueCallback callback)> s_languageToAnalyzerReferenceMap = new()
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.Scripting (5)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (3)
88_assembliesLoadedFromLocationByFullPath = new Dictionary<string, AssemblyAndLocation>(); 89_assembliesLoadedFromLocation = new Dictionary<Assembly, LoadedAssembly>(); 91_dependenciesWithLocationBySimpleName = new Dictionary<string, List<AssemblyIdentityAndLocation>>();
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
52private readonly Dictionary<FileKey, CacheEntry<MetadataShadowCopy>> _shadowCopies = new Dictionary<FileKey, CacheEntry<MetadataShadowCopy>>(); 56private readonly Dictionary<FileKey, CacheEntry<Metadata>> _noShadowCopyCache = new Dictionary<FileKey, CacheEntry<Metadata>>();
Microsoft.CodeAnalysis.Test.Utilities (18)
CommonTestBase.cs (1)
603var map = new Dictionary<IOperation, IOperation?>();
Compilation\CompilationExtensions.cs (1)
324var explicitNodeMap = new Dictionary<SyntaxNode, IOperation>();
Compilation\OperationTreeVerifier.cs (2)
45_explicitNodeMap = new Dictionary<SyntaxNode, IOperation>(); 46_labelIdMap = new Dictionary<ILabelSymbol, uint>();
Compilation\TestOperationVisitor.cs (1)
193var explicitNodeMap = new Dictionary<SyntaxNode, IOperation>();
CompilationVerifier.cs (1)
103var map = new Dictionary<string, ICSharpCode.Decompiler.TypeSystem.IMethod>();
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
54new Dictionary<string, string> { { "Key1", "Value1" }, { "Key2", "Value2" } }.ToImmutableDictionary();
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
47Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes = new Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>>(); 54Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes = new Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>>();
Diagnostics\OptionsDiagnosticAnalyzer.cs (1)
19private readonly Dictionary<string, AnalyzerOptions> _mismatchedOptions = new Dictionary<string, AnalyzerOptions>();
InstrumentationChecker.cs (1)
279private readonly Dictionary<int /*method*/, MethodChecker> _spanExpectations = new Dictionary<int, MethodChecker>();
MarkedSource\MarkupTestFile.cs (1)
56var tempSpans = new Dictionary<string, ArrayBuilder<TextSpan>>();
Metadata\ILValidation.cs (2)
398var result = new Dictionary<int, string>(); 429var result = new Dictionary<int, string>();
Mocks\TestMetadataReferenceResolver.cs (2)
27_assemblyNames = assemblyNames ?? new Dictionary<string, PortableExecutableReference>(); 28_files = files ?? new Dictionary<string, PortableExecutableReference>();
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
157Dictionary<string, string> kvp = new Dictionary<string, string>();
TestableFileSystem.cs (1)
72public static TestableFileSystem CreateForMap() => CreateForMap(new());
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableDictionaryTestBase.cs (2)
60var template = new Dictionary<string, int> 68var changes = new Dictionary<string, int>
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (2)
140builder.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }); 151.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } })
Collections\ImmutableSegmentedDictionaryTest.cs (5)
80ImmutableSegmentedDictionary<int, string?> dictionary = new Dictionary<int, string?> 92IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "b" } }; 115IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "B" } }; 269ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int> 280ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int>
Diagnostics\DiagnosticLocalizationTests.cs (4)
130var defaultCultureResources = new Dictionary<string, string>() 138var arResources = new Dictionary<string, string>() 146var resourceSetMap = new Dictionary<string, Dictionary<string, string>>() 166_resourceSetMap = new Dictionary<string, CustomResourceSet>();
Microsoft.CodeAnalysis.VisualBasic (16)
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
45Me._byRefLocalsInitializers = New Dictionary(Of LocalSymbol, BoundExpression)()
Binding\BackstopBinder.vb (1)
235Private Shared ReadOnly s_defaultXmlNamespaces As New Dictionary(Of String, String) From {
Binding\Binder_XmlLiterals.vb (1)
1122namespaces = New Dictionary(Of String, String)
Binding\GetTypeBinder.vb (1)
67_allowedMap = New Dictionary(Of GenericNameSyntax, Boolean)()
Compilation\DocumentationComments\DocumentationCommentCompiler.Event.vb (1)
47Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.Field.vb (1)
44Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.Method.vb (1)
70Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (1)
85Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.Property.vb (1)
48Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Lowering\Diagnostics\DiagnosticsPass.vb (1)
170_withExpressionPlaceholderMap = New Dictionary(Of BoundValuePlaceholderBase, BoundWithStatement)()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
38Private ReadOnly _parameterMap As Dictionary(Of ParameterSymbol, BoundExpression) = New Dictionary(Of ParameterSymbol, BoundExpression)()
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
50Friend blockParent As Dictionary(Of BoundNode, BoundNode) = New Dictionary(Of BoundNode, BoundNode)() 68Friend gotoBlock As Dictionary(Of BoundGotoStatement, BoundNode) = New Dictionary(Of BoundGotoStatement, BoundNode)()
Lowering\SynthesizedSubmissionFields.vb (1)
67_previousSubmissionFieldMap = New Dictionary(Of ImplicitNamedTypeSymbol, FieldSymbol)()
Symbols\Metadata\PE\PENamespaceSymbol.vb (1)
258noPiaLocalTypes = New Dictionary(Of String, TypeDefinitionHandle)()
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
51Private ReadOnly _retargetingAssemblyMap As New Dictionary(Of AssemblySymbol, DestinationData)()
Microsoft.CodeAnalysis.Workspaces (38)
CodeCleanup\AbstractCodeCleanerService.cs (1)
276var tokenAnnotationMap = new Dictionary<SyntaxToken, List<SyntaxAnnotation>>();
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
50var docIdToTextMerger = new Dictionary<DocumentId, TextChangeMerger>();
Differencing\Match.LongestCommonSubsequence.cs (1)
29var result = new Dictionary<TNode, TNode>();
ExtensionManager\IExtensionManagerExtensions.cs (2)
93var map = new Dictionary<Type, ImmutableArray<TExtension>>(); 117var map = new Dictionary<int, ImmutableArray<TExtension>>();
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
107var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>();
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
47var hasInheritanceRelationshipCache = new Dictionary<(ISymbol searchSymbol, ISymbol candidateSymbol), bool>();
FindSymbols\ReferenceLocationExtensions.cs (1)
22var result = new Dictionary<ISymbol, List<Location>>();
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
264var documentIdErrorStateLookup = new Dictionary<DocumentId, bool>(); 344var reverseMappedLocations = new Dictionary<Location, Location>();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
85var queryToStatement = new Dictionary<string, SqlStatement>();
Utilities\Documentation\XmlDocumentationProvider.cs (1)
68var comments = new Dictionary<string, string>();
Workspace\Solution\Project.cs (1)
264Interlocked.CompareExchange(ref idMap, new Dictionary<DocumentId, TDocument>(), null);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
494var metadataReferenceToProjectId = new Dictionary<MetadataReference, ProjectId>();
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
48private static readonly Dictionary<string, AnalyzerReferenceMap> s_languageToAnalyzerReferenceMap = new()
Workspace\Workspace.cs (1)
1478var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Workspace\Workspace_EventsLegacy.cs (1)
17private readonly Dictionary<(object eventHandler, WorkspaceEventType eventType), (int adviseCount, IDisposable disposer)> _disposableEventHandlers = new();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Build\ProjectBuildManager.cs (1)
28private static readonly ImmutableDictionary<string, string> s_defaultGlobalProperties = new Dictionary<string, string>()
MSBuild\ProjectFile\ProjectFile.cs (4)
303_documents = new Dictionary<string, MSB.Evaluation.ProjectItem>(); 368metadata = new Dictionary<string, string> 404var metadata = new Dictionary<string, string>(); 478var metadata = new Dictionary<string, string>
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
MSBuildWorkspaceTestBase.cs (1)
185var properties = new Dictionary<string, string>();
NetCoreTests.cs (1)
38var environmentVariables = new Dictionary<string, string>()
NewlyCreatedProjectsFromDotNetNew.cs (1)
255Dictionary<string, string> additionalEnvironmentVars = new()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Options\NamingStyleTestUtilities.cs (1)
51var guidMap = new Dictionary<Guid, int>();
Workspaces\TestHostDocument.cs (1)
69public IDictionary<string, ImmutableArray<TextSpan>> AnnotatedSpans { get; } = new Dictionary<string, ImmutableArray<TextSpan>>();
Workspaces\TestWorkspace`1.cs (2)
615var projectNameToTestHostProject = new Dictionary<string, TProject>(); 616var projectElementToProjectName = new Dictionary<XElement, string>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (28)
EditorConfigStorageLocation\NamingStylePreferenceEditorConfigStorageLocationTests.cs (1)
25var options = StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(new Dictionary<string, string>()
FunctionIdTests.cs (1)
17var map = new Dictionary<FunctionId, string>();
Options\EditorConfigNamingStyleParserTests.cs (19)
21var dictionary = new Dictionary<string, string>() 69var dictionary = new Dictionary<string, string>() 90var dictionary = new Dictionary<string, string>() 132var dictionary = new Dictionary<string, string>() 149var dictionary = new Dictionary<string, string>() 197var dictionary = new Dictionary<string, string>() 239var dictionary = new Dictionary<string, string>() 282var dictionary = new Dictionary<string, string>() 321var dictionary = new Dictionary<string, string>() 346var rule = new Dictionary<string, string>() 377var rule = new Dictionary<string, string>() 397var charpRule = new Dictionary<string, string>() 405var vbRule = new Dictionary<string, string>() 426var rule = new Dictionary<string, string>() 483var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>() 519var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>() 555var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>() 580var dictionary = new Dictionary<string, string>() 649var dictionary = new Dictionary<string, string>()
Remote\ServiceDescriptorTests.cs (1)
65var types = new Dictionary<Type, MemberInfo>();
SolutionTests\ProjectDependencyGraphTests.cs (2)
678var references = new Dictionary<string, IEnumerable<string>>(); 718var referencesByTargetProject = new Dictionary<string, List<ProjectReference>>();
UtilityTest\DictionaryExtensionsTests.cs (4)
16var dictionary = new Dictionary<int, string>(); 24var dictionary = new Dictionary<int, string> 42var dictionary = new Dictionary<int, string> 60var dictionary = new Dictionary<int, string>
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
HandlerProvider.cs (1)
50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>();
RequestExecutionQueue.cs (2)
96var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 103var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>();
Microsoft.CSharp (9)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
40_DictionaryOfParameters = new Dictionary<ExprCall, Expression>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
18private static readonly Dictionary<Key, Symbol> s_dictionary = new Dictionary<Key, Symbol>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
82new Dictionary<TypeArrayKey, TypeArray>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
19new Dictionary<(Assembly, Assembly), bool>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
52new Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType>(); 55new Dictionary<KeyPair<CType, int>, ArrayType>(); 58new Dictionary<KeyPair<CType, bool>, ParameterModifierType>(); 61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>(); 62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (3)
DataFrame.IO.cs (1)
394var names = new Dictionary<string, int>();
DataFrame.Join.cs (1)
255var shrinkedOccurences = new Dictionary<long, ICollection<long>>();
DataFrameColumn.cs (1)
280var ret = new Dictionary<long, ICollection<long>>();
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
80data.Add(new Dictionary<string, object>
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.cs (7)
1120df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: true); 1124ret = df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: false); 1129df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: true); 1136ret = df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: false); 1144df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: true); 1150ret = df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: false); 1172Assert.Throws<FormatException>(() => df.Append(new Dictionary<string, object> { { "Column2", "str" } }, inPlace: true));
Microsoft.DotNet.ApiCompat.IntegrationTests (5)
Task\ValidatePackageTargetIntegrationTests.cs (5)
177Dictionary<NuGetFramework, IEnumerable<string>> references = new() 209Dictionary<NuGetFramework, IEnumerable<string>> references = new() 250Dictionary<NuGetFramework, IEnumerable<string>> references = new() 279Dictionary<NuGetFramework, IEnumerable<string>> references = new() 303Dictionary<NuGetFramework, IEnumerable<string>> references = new()
Microsoft.DotNet.ApiCompat.Task (1)
TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
Microsoft.DotNet.ApiDiff (1)
SyntaxRewriter\PrimitiveSimplificationRewriter.cs (1)
14private static readonly Dictionary<string, SyntaxKind> s_primitives = new() {
Microsoft.DotNet.ApiDiff.Tests (15)
Diff.Assembly.Tests.cs (3)
19expected: new Dictionary<string, string>() { 48expected: new Dictionary<string, string>() { 78expected: new Dictionary<string, string>() {
Diff.Base.Tests.cs (1)
30expected: new() { { AssemblyName, expectedCode } },
Diff.Disk.Tests.cs (9)
73private readonly Dictionary<string, string[]> DefaultBeforeAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [BeforeCode] } }; 74private readonly Dictionary<string, string[]> DefaultAfterAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [AfterCode] } }; 75private readonly Dictionary<string, string> DefaultExpectedAssemblyMarkdowns = new() { { DefaultAssemblyName, DefaultExpectedMarkdown } }; 184Dictionary<string, string[]> beforeAssemblyAndCodeFiles = new() 190Dictionary<string, string[]> afterAssemblyAndCodeFiles = new() 196Dictionary<string, string> expectedAssemblyMarkdowns = new() 362Dictionary<string, string[]> beforeAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [beforeCode1, beforeCode2] } }; 363Dictionary<string, string[]> afterAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [afterCode1, afterCode2] } }; 364Dictionary<string, string> expectedAssemblyMarkdowns = new() { { DefaultAssemblyName, expectedMarkdown } };
TestAssemblyLoaderFactory.cs (2)
24new Dictionary<string, IAssemblySymbol>()); 31Dictionary<string, IAssemblySymbol> assemblySymbols = new();
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
75new Dictionary<string, IAssemblySymbol>());
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
65var runtimeItems = new Dictionary<string, IEnumerable<KeyValuePair<string, string>>>();
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (2)
27new TaskItem(NormalizePath(@"C:\temp\A\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://A-git/commitsha/*" } }), 29new TaskItem(NormalizePath(@"C:\temp\A\B\C\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://C-git/commitsha/*?var=value" } }),
GetAssemblyFullNameTests.cs (2)
24new TaskItem("Item", new Dictionary<string, string> { { "SomePath", objectAssembly.Location } }), 25new TaskItem("Item", new Dictionary<string, string> { { "SomePath", thisAssembly.Location } }),
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }), 22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }), 23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }), 24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }), 25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.ArcadeLogging (2)
PipelinesLogger.cs (2)
22private readonly Dictionary<Guid, ProjectInfo> _projectInfoMap = new Dictionary<Guid, ProjectInfo>(); 23private readonly Dictionary<Guid, TelemetryTaskInfo> _taskTelemetryInfoMap = new Dictionary<Guid, TelemetryTaskInfo>();
Microsoft.DotNet.Build.Manifest (3)
ArtifactModel.cs (1)
15public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildIdentity.cs (1)
37public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
VersionIdentifier.cs (1)
102Dictionary<int,string> majorMinorPatchDictionary = new Dictionary<int, string>();
Microsoft.DotNet.Build.Manifest.Tests (20)
BuildModelFactoryTests.cs (20)
111new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 118new TaskItem(bopSnupkg, new Dictionary<string, string> 127new TaskItem(zipArtifact, new Dictionary<string, string> 133new TaskItem(localPackagePath, new Dictionary<string, string>() 141new TaskItem(pdbArtifact, new Dictionary<string, string> 232new TaskItem(localPackagePath, new Dictionary<string, string>() 285new TaskItem(zipArtifact, new Dictionary<string, string> 321new TaskItem(pdbArtifact, new Dictionary<string, string> 354new TaskItem(localPackagePath, new Dictionary<string, string> 391new TaskItem(localPackagePath, new Dictionary<string, string> 445new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 452new TaskItem(bopSnupkg, new Dictionary<string, string> 461new TaskItem(zipArtifact, new Dictionary<string, string> 467new TaskItem(localPackagePath, new Dictionary<string, string>() 475new TaskItem(pdbArtifact, new Dictionary<string, string> 592new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 603new TaskItem(zipArtifact, new Dictionary<string, string> 609new TaskItem(localPackagePath, new Dictionary<string, string>() 618new TaskItem(pdbArtifact, new Dictionary<string, string> 694new TaskItem("missingKindArtifact.nupkg", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Feed (11)
src\common\AzureStorageUtils.cs (2)
27private static readonly Dictionary<string, string> MimeMappings = new Dictionary<string, string>() 33private static readonly Dictionary<string, string> CacheMappings = new Dictionary<string, string>()
src\common\GeneralUtils.cs (1)
197var whichCategory = new Dictionary<string, string>()
src\common\LatestLinksManager.cs (1)
25private static Dictionary<string, string> AccountsWithCdns { get; } = new()
src\PublishArtifactsInManifestBase.cs (4)
191new Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>>(); 194new Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>>(); 197new Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>>(); 341Dictionary<string, Asset> buildAssets = new Dictionary<string, Asset>();
src\PublishBuildToMaestro.cs (3)
262var builds = new Dictionary<int, bool>(); 263var assetCache = new Dictionary<(string name, string version, string commit), int>(); 264var buildCache = new Dictionary<int, ProductConstructionService.Client.Models.Build>();
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
DownloadFileTests.cs (5)
70Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>> 139Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>> 215Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>> 340Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>> 414Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
PublishToSymbolServerTest.cs (1)
193var symbolPackages = new Dictionary<string, Asset>()
PushToBuildStorageTests.cs (18)
46new TaskItem(PACKAGE_A, new Dictionary<string, string> 53new TaskItem(PACKAGE_B, new Dictionary<string, string> 59new TaskItem(BLOB_A, new Dictionary<string, string> 291new TaskItem(PDB_A, new Dictionary<string, string> 296new TaskItem(PDB_B, new Dictionary<string, string> 346new TaskItem(PDB_A, new Dictionary<string, string> 351new TaskItem(PDB_B, new Dictionary<string, string> 477new TaskItem(PACKAGE_A, new Dictionary<string, string> 482new TaskItem(PACKAGE_B, new Dictionary<string, string> 486new TaskItem(BLOB_A, new Dictionary<string, string> 492new TaskItem(PDB_A, new Dictionary<string, string> 593new TaskItem(PACKAGE_A, new Dictionary<string, string> 598new TaskItem(PACKAGE_B, new Dictionary<string, string> 602new TaskItem(BLOB_A, new Dictionary<string, string> 608new TaskItem(PDB_A, new Dictionary<string, string> 766new TaskItem(PDB_A, new Dictionary<string, string> 807new TaskItem(PDB_A, new Dictionary<string, string> 812new TaskItem(PDB_B, new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Packaging (30)
ApplyBaseLine.cs (1)
61Dictionary<string, SortedSet<Version>> baseLineVersions = new Dictionary<string, SortedSet<Version>>();
ApplyMetaPackages.cs (2)
58var suppressMetaPackages = new Dictionary<string, HashSet<string>>(); 95Dictionary<string, HashSet<NuGetFramework>> metaPackagesToAdd = new Dictionary<string, HashSet<NuGetFramework>>();
ApplyPreReleaseSuffix.cs (1)
118_stablePackageVersions = new Dictionary<string, Version>();
GeneratePackageReport.cs (3)
87SupportedFrameworks = new Dictionary<string, string>() 285var packageItems = new Dictionary<string, List<PackageItem>>(); 319_targetPathToPackageItem = new Dictionary<string, PackageItem>();
GenerateRuntimeDependencies.cs (1)
75Dictionary<string, string> packageAliases = new Dictionary<string, string>();
GetApplicableAssetsFromPackages.cs (2)
149_packageToPackageItems = new Dictionary<string, List<PackageItem>>(); 176_targetPathToPackageItem = new Dictionary<string, PackageItem>();
GetLastStablePackage.cs (3)
74Dictionary<string, ITaskItem> originalItems = new Dictionary<string, ITaskItem>(); 75Dictionary<string, Version> latestPackages = new Dictionary<string, Version>(); 76Dictionary<string, Version> lastStablePackages = new Dictionary<string, Version>();
GetPackageDescription.cs (2)
16private static Dictionary<string, Dictionary<string, string>> s_descriptionCache = new Dictionary<string, Dictionary<string, string>>(); 92Dictionary<string, string> descriptions = new Dictionary<string, string>();
GetPackageFromModule.cs (1)
50modulesToPackages = new Dictionary<string, string>();
HarvestPackage.cs (1)
116private Dictionary<string, string> _packageFolders = new Dictionary<string, string>();
NuGetAssetResolver.cs (5)
172_packages = new Dictionary<string, ContentItemCollection>(); 192Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 243Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 261Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 276Dictionary<string, IEnumerable<ContentItemGroup>> resolvedAssets = new Dictionary<string, IEnumerable<ContentItemGroup>>();
NugetPropertyStringProvider.cs (1)
19var propertyDictionary = new Dictionary<string, string>();
PackageIndex.cs (1)
746private Dictionary<string, string> packageToMetaPackage = new Dictionary<string, string>();
PackageReport.cs (1)
22Targets = new Dictionary<string, Target>();
SplitReferences.cs (2)
57Dictionary<string, ITaskItem> packageReferences = new Dictionary<string, ITaskItem>(); 58Dictionary<string, ITaskItem> assemblyReferences = new Dictionary<string, ITaskItem>();
ValidatePackage.cs (2)
302Dictionary<string, PackageAsset> implementationFiles = new Dictionary<string, PackageAsset>(); 455_frameworks = new Dictionary<NuGetFramework, ValidationFramework>();
ValidationTask.cs (1)
99_suppressions = new Dictionary<Suppression, HashSet<string>>();
Microsoft.DotNet.Build.Tasks.Packaging.Tests (9)
NugetPropertyStringProviderTests.cs (6)
18var expectedDictionary = new Dictionary<string, string>{ {"a", "b"} }; 26var expectedDictionary = new Dictionary<string, string> { { "a", "=b=" } }; 35var expectedDictionary = new Dictionary<string, string> { { "a", multiLineString } }; 38expectedDictionary = new Dictionary<string, string> { { multiLineString, "b" } }; 41expectedDictionary = new Dictionary<string, string> { { multiLineString, multiLineString } }; 54var expectedDictionary = new Dictionary<string, string>();
ValidateHarvestVersionIsLatestForReleaseTests.cs (3)
23Targets = new Dictionary<string, Target> 87Targets = new Dictionary<string, Target> 128Targets = new Dictionary<string, Target>
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
19private static readonly Dictionary<string, TargetFrameworkResolver> s_targetFrameworkResolverCache = new();
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
21new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }), 22new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }), 23new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character 24new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character 25new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped
Microsoft.DotNet.Build.Tasks.Workloads (15)
BuildData.wix.cs (1)
26public Dictionary<string, HashSet<ReleaseVersion>> FeatureBands = new();
CreateVisualStudioWorkload.wix.cs (5)
27private Dictionary<ReleaseVersion, bool> _supportsMachineArch = new(); 140Dictionary<string, BuildData> buildData = new(); 141Dictionary<string, WorkloadPackGroupPackage> packGroupPackages = new(); 166Dictionary<string, WorkloadManifestMsi> manifestMsisByPlatform = new(); 204Dictionary<string, List<WorkloadPackPackage>> packsInWorkloadByPlatform = new();
EmbeddedTemplates.cs (2)
12private static readonly Dictionary<string, string> s_templateResources = new(); 68s_templateResources = new()
Msi\MsiBase.wix.cs (1)
118public Dictionary<string, string> NuGetPackageFiles { get; set; } = new();
Msi\MsiPayloadPackageProject.wix.cs (1)
31public Dictionary<string, string> PackageContents { get; set; } = new();
Msi\WorkloadPackGroupMsi.wix.cs (2)
36Dictionary<string, string> sourceDirectoryNamesAndValues = new(); 157public Dictionary<string, MsiDirectory> Subdirectories { get; } = new();
ProjectTemplateBase.cs (1)
57} = new();
Wix\HarvesterToolTask.cs (1)
20private static readonly Dictionary<HeatSuppressions, string> s_SuppressionArguments = new()
WorkloadPackGroupPackage.wix.cs (1)
17public Dictionary<string, List<WorkloadManifestPackage>> ManifestsPerPlatform { get; } = new();
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
SwixComponentTests.cs (2)
105new TaskItem("Microsoft.NET.Runtime", new Dictionary<string, string> { { Metadata.Replacement, "MSFT" } }) 147new TaskItem("microsoft-net-sdk-blazorwebassembly-aot", new Dictionary<string, string> {
Microsoft.DotNet.GenAPI.Task (1)
TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
Microsoft.DotNet.GenAPI.Tests (2)
TestAssemblyLoaderFactory.cs (2)
24new Dictionary<string, IAssemblySymbol>()); 31Dictionary<string, IAssemblySymbol> assemblySymbols = new();
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
145var typeTable = new Dictionary<string, IList<string>>();
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
107var props = new Dictionary<string, string>();
Microsoft.DotNet.Helix.JobSender (3)
JobDefinition.cs (2)
31_properties = new Dictionary<string, string>(); 48public IDictionary<IPayload, string> CorrelationPayloads { get; } = new Dictionary<IPayload, string>();
JobListEntry.cs (1)
11public Dictionary<string, string> CorrelationPayloadUrisWithDestinations { get; set; } = new Dictionary<string, string>();
Microsoft.DotNet.Helix.Sdk (6)
CreateXUnitWorkItems.cs (1)
148var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
LoggerExtensions.cs (1)
39log.LogTelemetry(EventName, new Dictionary<string, string> {{CategoryKey, currentCategory}});
ProvisioningProfileProvider.cs (2)
45private static readonly IReadOnlyDictionary<ApplePlatform, string> s_targetNames = new Dictionary<ApplePlatform, string>() 59private readonly Dictionary<ApplePlatform, string> _downloadedProfiles = new();
SendHelixJob.cs (1)
504return def.WithCorrelationPayloadUris(new Dictionary<Uri, string>() { { new Uri(uri), destination } });
XharnessTaskBase.cs (1)
112return new(workItemName, new Dictionary<string, string>()
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
86Dictionary<string, string> metadata = new Dictionary<string, string>() 137Dictionary<string, string> metadata = new Dictionary<string, string>()
Microsoft.DotNet.HotReload.Client.Tests (2)
EnvironmentUtilitiesTests.cs (2)
13var builder = new Dictionary<string, string>(); 24var builder = new Dictionary<string, string>();
Microsoft.DotNet.MSBuildSdkResolver (20)
CachingWorkloadResolver.cs (3)
162var itemsToAdd = new Dictionary<string, SdkResultItem>(); 165metadata: new Dictionary<string, string>() 170Dictionary<string, string> propertiesToAdd = new();
MSBuildSdkResolver.cs (3)
243propertiesToAdd ??= new Dictionary<string, string?>(); 261propertiesToAdd ??= new Dictionary<string, string?>(); 287propertiesToAdd ??= new Dictionary<string, string?>();
SdkDirectoryWorkloadManifestProvider.cs (2)
99_knownManifestIdsAndOrder = new Dictionary<string, int>(); 529Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadManifestReader.cs (6)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
WorkloadResolver.cs (4)
18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 780public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
74var packages = new Dictionary<string, PackageInfo>();
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiTestBase.cs (1)
98return new Dictionary<string, Tuple<string, ContentDispositionHeaderValue>> {
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.DotNet.PackageInstall.Tests (4)
NuGetPackageInstallerTests.cs (2)
180var dictionary = new Dictionary<string, IReadOnlyList<string>> 201var dictionary = new Dictionary<string, IReadOnlyList<string>>
ToolPackageDownloaderTests.cs (1)
894var frameworksMap = new Dictionary<PackageId, IEnumerable<NuGetFramework>>()
ToolPackageUninstallerTests.cs (1)
85var packagedShimsMap = new Dictionary<PackageId, IReadOnlyList<FilePath>>
Microsoft.DotNet.PackageTesting (5)
GetCompatiblePackageTargetFrameworks.cs (1)
17private static Dictionary<NuGetFramework, HashSet<NuGetFramework>> packageTfmMapping = new();
VerifyClosure.cs (2)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>();
VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
Microsoft.DotNet.RemoteExecutor (1)
RemoteInvokeOptions.cs (1)
45public IDictionary<string, object> RuntimeConfigurationOptions { get; } = new Dictionary<string, object>();
Microsoft.DotNet.SharedFramework.Sdk (4)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>();
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
Microsoft.DotNet.SignCheckLibrary (8)
Verification\ArchiveVerifier.cs (1)
85Dictionary<string, string> archiveMap = new Dictionary<string, string>();
Verification\Exclusion.cs (4)
21private Dictionary<string, HashSet<string>> _fileExcludedCache = new(); 22private Dictionary<string, HashSet<string>> _fileNotExcludedCache = new(); 23private Dictionary<string, HashSet<string>> _parentExcludedCache = new(); 24private Dictionary<string, HashSet<string>> _parentNotExcludedCache = new();
Verification\Exclusions.cs (1)
18private Dictionary<string, Regex> _regexCache = new Dictionary<string, Regex>();
Verification\SignatureVerificationManager.cs (1)
306_fileVerifiers = new Dictionary<string, FileVerifier>();
Verification\SignatureVerificationResult.cs (1)
29_detail = new Dictionary<string, string>();
Microsoft.DotNet.SignTool (15)
src\BatchSignUtil.cs (1)
167Dictionary<SignedFileContentKey, FileSignInfo> engines = new Dictionary<SignedFileContentKey, FileSignInfo>();
src\Configuration.cs (7)
139_zipDataMap = new Dictionary<SignedFileContentKey, ZipData>(); 140_filesByContentKey = new Dictionary<SignedFileContentKey, FileSignInfo>(); 142_additionalCertificateInformation = additionalCertificateInformation == null ? new() : additionalCertificateInformation; 143_whichPackagesTheFileIsIn = new Dictionary<SignedFileContentKey, HashSet<string>>(); 144_errors = new Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>>(); 146_hashToCollisionIdMap = new Dictionary<SignedFileContentKey, string>(); 806var nestedParts = new Dictionary<string, ZipPart>();
src\SignTool.cs (2)
69var zipPaths = new Dictionary<string, string>(); 154var originalFileBackups = new Dictionary<string, string>();
src\SignToolTask.cs (1)
544var map = new Dictionary<ExplicitCertificateKey, string>();
src\Telemetry.cs (2)
15private static readonly Dictionary<string, string> s_properties = new Dictionary<string, string>() 27_metrics = new Dictionary<string, double>();
src\ZipData.cs (2)
722scripts.Add(new TaskItem(file, new Dictionary<string, string> { { "Kind", kind } })); 739Requires = requireNames != null ? requireNames.Zip(requireVersions, (name, version) => new TaskItem($"{name}", new Dictionary<string, string> { { "Version", version } })).Where(t => !t.ItemSpec.StartsWith("rpmlib")).ToArray() : [],
Microsoft.DotNet.SignTool.Tests (170)
SignToolTests.cs (170)
29private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfo = new Dictionary<string, List<SignInfo>>() 53new Dictionary<string, List<SignInfo>>() 82new TaskItem(".jar", new Dictionary<string, string> { 86new TaskItem(".ps1", new Dictionary<string, string> { 90new TaskItem(".psd1", new Dictionary<string, string> { 94new TaskItem(".psm1", new Dictionary<string, string> { 98new TaskItem(".psc1", new Dictionary<string, string> { 102new TaskItem(".dylib", new Dictionary<string, string> { 106new TaskItem(".deb", new Dictionary<string, string> { 110new TaskItem(".dll", new Dictionary<string, string> { 114new TaskItem(".exe", new Dictionary<string, string> { 118new TaskItem(".zip", new Dictionary<string, string> { 122new TaskItem(".tgz", new Dictionary<string, string> { 126new TaskItem(".pkg", new Dictionary<string, string> { 130new TaskItem(".app", new Dictionary<string, string> { 134new TaskItem(".nupkg", new Dictionary<string, string> { 138new TaskItem(".vsix", new Dictionary<string, string> { 142new TaskItem(".jar", new Dictionary<string, string> { 146new TaskItem(".ps1", new Dictionary<string, string> { 150new TaskItem(".psd1", new Dictionary<string, string> { 154new TaskItem(".dll", new Dictionary<string, string> { 158new TaskItem(".nupkg", new Dictionary<string, string> { 162new TaskItem(".vsix", new Dictionary<string, string> { 532var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 534var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 595var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 601var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 630var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 636var fileSignInfo = new Dictionary<ExplicitCertificateKey, string> 663var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 669var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 684var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 690var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 708var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 714var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 732var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 738var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 760var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 766var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 768ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 773ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 793var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 799var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 835var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 841var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 875var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 881var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 903var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 910var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 915ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 921ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 941var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 946var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 963var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 968var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 988var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 989var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 1010var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 1011var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 1032var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1038var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1083var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1089var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1161var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1168var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 1244var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1250var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1298var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1301var explicitCertKeys = new Dictionary<ExplicitCertificateKey, string>() 1308var additionalCertificateInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 1387var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1393var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1421var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1427var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1478var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1484var additionalCertificateInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 1494var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 1554var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1560var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1606var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1612var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1652var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1658var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1704var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1710var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1756var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1762var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1810var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1813var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1854var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1857var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1882var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1885var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1925var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1928var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1956var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1959var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1988var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1991var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2056var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2062var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2105var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2111var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2157var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2163var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2224var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2230var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2259var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2265var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2320var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2326var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2381var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2387var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2439var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2445var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2499var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2505var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2537var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 2539var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 2561var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 2564var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2583fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string> 2588fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string>{ 2602fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string> 2607fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string>{ 2610fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string> 2624fileExtensionSignInfo.Add(new TaskItem(".tar.gz", new Dictionary<string, string> 2650ValidateFileSignInfos(itemsToSign, new Dictionary<string, List<SignInfo>>(), new Dictionary<ExplicitCertificateKey, string>(), s_fileExtensionSignInfoWithCollisionId, new[] 2676new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 2681new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 2686new TaskItem(GetResourcePath("test.zip"), new Dictionary<string, string> 2694new TaskItem("ArcadeStrongTest", new Dictionary<string, string> 2705new TaskItem("ProjectOne.dll", new Dictionary<string, string> 2712new TaskItem("SignedLibrary.dll", new Dictionary<string, string> 2719new TaskItem("test.zip", new Dictionary<string, string> 2729new TaskItem("DualSignCertificate", new Dictionary<string, string> 2734new TaskItem("MacDeveloperHardenWithNotarization", new Dictionary<string, string> 2740new TaskItem("DetachedArchiveCert", new Dictionary<string, string> 2814var additionalCertInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 2819var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2824var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2843var additionalCertInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 2852var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2857var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2872var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2878var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2904var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2910var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2955var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2961var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 2984var certificatesSignInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 3041var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 3044var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 3127new Dictionary<string, List<SignInfo>>(), 3128new Dictionary<ExplicitCertificateKey, string>(), 3129new Dictionary<string, List<SignInfo>>(), 3130new(), 3166var extensionSignInfo = new Dictionary<string, List<SignInfo>>() 3178new Dictionary<string, List<SignInfo>>(), 3179new Dictionary<ExplicitCertificateKey, string>(), 3181new(), 3202new Dictionary<string, List<SignInfo>>(), 3203new Dictionary<ExplicitCertificateKey, 3210new Dictionary<string, List<SignInfo>>(), 3211new Dictionary<ExplicitCertificateKey, string>(), 3478new TaskItem("dotnet.exe", new Dictionary<string, string>() 3483new TaskItem("dotnet", new Dictionary<string, string>() 3488new TaskItem("dotnet", new Dictionary<string, string>() 3513new TaskItem("test.exe", new Dictionary<string, string>()
Microsoft.DotNet.SourceBuild.Tasks (1)
src\ReadNuGetPackageInfos.cs (1)
34new Dictionary<string, string>
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Modeler\ServiceClientModelFactory.cs (2)
36private readonly Dictionary<string, EnumTypeModel> _enumTypeModels = new Dictionary<string, EnumTypeModel>(); 45private readonly Dictionary<string, TypeModel> _types = new Dictionary<string, TypeModel>();
ServiceClientCodeFactory.cs (1)
18private Dictionary<string, CodeFile> _files = new Dictionary<string, CodeFile>();
Microsoft.DotNet.TemplateLocator (14)
SdkDirectoryWorkloadManifestProvider.cs (2)
99_knownManifestIdsAndOrder = new Dictionary<string, int>(); 529Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadManifestReader.cs (6)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
WorkloadResolver.cs (4)
18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 780public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.DotNet.Tools.Tests.ComponentMocks (5)
MockFeedPackage.cs (1)
18public Dictionary<string, string> AdditionalFiles { get; } = new();
ToolPackageDownloaderMock.cs (3)
69_warningsMap = warningsMap ?? new Dictionary<PackageId, IEnumerable<string>>(); 70_packagedShimsMap = packagedShimsMap ?? new Dictionary<PackageId, IReadOnlyList<FilePath>>(); 71_frameworksMap = frameworksMap ?? new Dictionary<PackageId, IEnumerable<NuGetFramework>>();
ToolPackageStoreMock.cs (1)
26_frameworksMap = frameworksMap ?? new Dictionary<PackageId, IEnumerable<NuGetFramework>>();
Microsoft.DotNet.XliffTasks (3)
Model\XlfDocument.cs (2)
78Dictionary<string, TranslatableNode> nodesById = new(); 262Dictionary<string, string> dictionary = new();
Tasks\TranslateSource.cs (1)
34? new Dictionary<string, string>()
Microsoft.DotNet.XliffTasks.Tests (8)
JsonDocumentTests.cs (1)
23Dictionary<string, string> translations = new()
ResxDocumentTests.cs (1)
26Dictionary<string, string> translations = new()
UnstructuredDocumentTests.cs (2)
22Dictionary<string, string> translations = new() 48Dictionary<string, string> translations = new()
VsctDocumentTests.cs (2)
36Dictionary<string, string> translations = new() 154Dictionary<string, string> translations = new()
XamlRuleDocumentTests.cs (2)
125Dictionary<string, string> translations = new() 293Dictionary<string, string> translations = new()
Microsoft.DotNet.XUnitAssert.Tests (111)
CollectionAssertsTests.cs (60)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } }; 1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1306 var expected = new Dictionary<string, int> 1315 var actual = new Dictionary<string, int> 1340 var expected = new Dictionary<string, IEnumerable<string>> 1345 var actual = new Dictionary<string, IEnumerable<string>> 1358 var expected = new Dictionary<string, IEnumerable<string>> 1363 var actual = new Dictionary<string, IEnumerable<string>> 1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } }; 1421 var expected = new Dictionary<string, object>() 1423 ["key"] = new Dictionary<string, object>() 1427 new Dictionary<string, object>() 1434 var actual = new Dictionary<string, object>() 1436 ["key"] = new Dictionary<string, object>() 1440 new Dictionary<string, object>() 1454 var expected = new Dictionary<string, object>() 1456 ["key"] = new Dictionary<string, object>() 1460 new Dictionary<string, object>() 1467 var actual = new Dictionary<string, object>() 1469 ["key"] = new Dictionary<string, object>() 1473 new Dictionary<string, object>() 1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } }; 1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1981 var expected = new Dictionary<string, int> 1990 var actual = new Dictionary<string, int> 2007 var expected = new Dictionary<string, IEnumerable<string>> 2012 var actual = new Dictionary<string, IEnumerable<string>> 2033 var expected = new Dictionary<string, IEnumerable<string>> 2038 var actual = new Dictionary<string, IEnumerable<string>> 2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } }; 2088 var expected = new Dictionary<string, object>() 2090 ["key"] = new Dictionary<string, object>() 2094 new Dictionary<string, object>() 2101 var actual = new Dictionary<string, object>() 2103 ["key"] = new Dictionary<string, object>() 2107 new Dictionary<string, object>() 2129 var expected = new Dictionary<string, object>() 2131 ["key"] = new Dictionary<string, object>() 2135 new Dictionary<string, object>() 2142 var actual = new Dictionary<string, object>() 2144 ["key"] = new Dictionary<string, object>() 2148 new Dictionary<string, object>()
DictionaryAssertsTests.cs (2)
36 var dictionary = new Dictionary<string, int>() 70 var dictionary = new Dictionary<string, int>()
EqualityAssertsTests.cs (20)
1124 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1125 var actual = new Dictionary<string, string> { ["foo"] = "bar" }; 1135 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1136 var actual = new Dictionary<string, string> { ["foo"] = "baz" }; 1159 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1169 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1192 var expected = new Dictionary<string, int?> { { "two", null } }; 1193 var actual = new Dictionary<string, int?> { { "two", null } }; 1201 var expected = new Dictionary<string, int?> { { "two", null } }; 1202 var actual = new Dictionary<string, int?> { { "two", 1 } }; 3353 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3354 var actual = new Dictionary<string, string> { ["foo"] = "bar" }; 3377 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3378 var actual = new Dictionary<string, string> { ["foo"] = "baz" }; 3388 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3411 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3421 var expected = new Dictionary<string, int?> { { "two", null } }; 3422 var actual = new Dictionary<string, int?> { { "two", null } }; 3438 var expected = new Dictionary<string, int?> { { "two", null } }; 3439 var actual = new Dictionary<string, int?> { { "two", 1 } };
EquivalenceAssertsTests.cs (28)
1158 var expected = new Dictionary<string, int> { ["Foo"] = 42 }; 1159 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1167 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 } }; 1168 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } }; 1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } }; 1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1185 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 42 } }; 1186 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1194 var expected = new Dictionary<string, int> { ["Foo"] = 16 }; 1195 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1211 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 16 } }; 1212 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } }; 1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } }; 1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1245 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } }; 1246 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1265 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 }; 1266 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1274 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } }; 1275 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1283 var expected = new Dictionary<string, int> { ["Foo"] = 16 }; 1284 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1300 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 }; 1301 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 }; 1317 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } }; 1318 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1334 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } }; 1335 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 } };
Sdk\ArgumentFormatterTests.cs (1)
329 var value = new Dictionary<object, List<object>>
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTheoryDiscoverer.cs (1)
29private readonly Dictionary<IMethodInfo, string> _conditionCache = new();
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (2)
490private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new(); 583private static readonly Dictionary<Type, Func<JsonNumberHandling, JsonSchema>> _simpleTypeSchemaFactories = new()
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (2)
28private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 29private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
Microsoft.Extensions.AI.Abstractions.Tests (18)
AdditionalPropertiesDictionaryTests.cs (2)
18d = new(new Dictionary<string, object?> { ["key1"] = "value1" }); 21d = new((IEnumerable<KeyValuePair<string, object?>>)new Dictionary<string, object?> { ["key1"] = "value1", ["key2"] = "value2" });
ChatCompletion\ChatMessageTests.cs (1)
271new FunctionCallContent("function-id", "plugin-name-function-name", new Dictionary<string, object?> { ["parameter"] = "argument" }),
Contents\FunctionCallContentTests.cs (2)
81var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) { Exception = ex }; 104["d"] = new ReadOnlyDictionary<string, string>((new Dictionary<string, string>
Contents\McpServerToolCallContentTests.cs (1)
43IReadOnlyDictionary<string, object?> args = new Dictionary<string, object?>();
Functions\AIFunctionArgumentsTests.cs (5)
28var args = new AIFunctionArguments(new Dictionary<string, object?>()); 39var args = new AIFunctionArguments(new Dictionary<string, object?> 71IReadOnlyDictionary<string, object?> args = new AIFunctionArguments(new Dictionary<string, object?> 109IDictionary<string, object?> args = new AIFunctionArguments(new Dictionary<string, object?> 208var originalArgs = new Dictionary<string, object?>
test\Shared\JsonSchemaExporter\TestTypes.cs (4)
515Value: new() { Name = "name", ExtensionData = new() { ["x"] = 42 } }, 827Value: new() { ["one"] = 1, ["two"] = 2, ["three"] = 3 }, 839Value: new() 862Value: new() { ["one"] = 1, ["two"] = "two", ["three"] = 3.14 },
Utilities\AIJsonUtilitiesTests.cs (3)
1080string key5 = AIJsonUtilities.HashDataToString([new Dictionary<string, object> { ["key1"] = 1, ["key2"] = 2 }], options); 1081string key6 = AIJsonUtilities.HashDataToString([new Dictionary<string, object> { ["key2"] = 2, ["key1"] = 1 }], options); 1097Dictionary<string, object> dict = new() { ["key1"] = 1, ["key2"] = 2 };
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
379new Dictionary<string, BinaryData>
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
1269AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1361AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
Microsoft.Extensions.AI.Evaluation (3)
EvaluationMetricExtensions.cs (2)
30metric.Context ??= new Dictionary<string, EvaluationContext>(); 117metric.Metadata ??= new Dictionary<string, string>();
EvaluationResult.cs (1)
53var metricsDictionary = new Dictionary<string, EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Safety (10)
CodeVulnerabilityEvaluator.cs (1)
37metricNames: new Dictionary<string, string> { ["code_vulnerability"] = CodeVulnerabilityMetricName })
ContentHarmEvaluator.cs (1)
38new Dictionary<string, string>
GroundednessProEvaluator.cs (1)
38metricNames: new Dictionary<string, string> { ["generic_groundedness"] = GroundednessProMetricName })
HateAndUnfairnessEvaluator.cs (1)
25metricNames: new Dictionary<string, string> { ["hate_fairness"] = HateAndUnfairnessMetricName })
IndirectAttackEvaluator.cs (1)
48metricNames: new Dictionary<string, string> { ["xpia"] = IndirectAttackMetricName })
ProtectedMaterialEvaluator.cs (1)
33new Dictionary<string, string>
SelfHarmEvaluator.cs (1)
24: ContentHarmEvaluator(metricNames: new Dictionary<string, string> { ["self_harm"] = SelfHarmMetricName })
SexualEvaluator.cs (1)
24: ContentHarmEvaluator(metricNames: new Dictionary<string, string> { ["sexual"] = SexualMetricName })
UngroundedAttributesEvaluator.cs (1)
42new Dictionary<string, string> { ["inference_sensitive_attributes"] = UngroundedAttributesMetricName })
ViolenceEvaluator.cs (1)
24: ContentHarmEvaluator(metricNames: new Dictionary<string, string> { ["violence"] = ViolenceMetricName })
Microsoft.Extensions.AI.Integration.Tests (3)
ChatClientIntegrationTests.cs (3)
138["stream_options"] = new Dictionary<string, object> { ["include_usage"] = true, }, 426aiFuncOptions.AdditionalProperties = new Dictionary<string, object?> { ["strictJsonSchema"] = true }; 434Dictionary<string, object?> additionalProperties = new();
Microsoft.Extensions.AI.OpenAI.Tests (24)
OpenAIChatClientTests.cs (11)
174Assert.Equal(new Dictionary<string, long> 848Assert.Equal(new Dictionary<string, long> 945Assert.Equal(new Dictionary<string, long> 1043Assert.Equal(new Dictionary<string, long> 1155Assert.Equal(new Dictionary<string, long> 1168AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1239Assert.Equal(new Dictionary<string, long> 1348AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1355Assert.Equal(new Dictionary<string, long> 1496Assert.Equal(new Dictionary<string, long> 1611Assert.Equal(new Dictionary<string, long>
OpenAIConversionTests.cs (13)
166new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?> 207Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?> 235new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?> 263Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?> 438new FunctionCallContent("call123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" }) 527var complexArgs = new Dictionary<string, object?> 533["nestedObject"] = new Dictionary<string, object?> 726var functionCallContent = new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> 764var functionCall1 = new FunctionCallContent("call-1", "Function1", new Dictionary<string, object?> { ["param1"] = "value1" }); 765var functionCall2 = new FunctionCallContent("call-2", "Function2", new Dictionary<string, object?> { ["param2"] = "value2" }); 798new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }), 1040new FunctionCallContent("call-123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" }) 1075new FunctionCallContent("call-456", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })
Microsoft.Extensions.AI.Tests (83)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
51Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?> 254new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }), 265Contents = [new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" })],
ChatCompletion\FunctionInvocationContextTests.cs (1)
55FunctionCallContent callContent = new(string.Empty, string.Empty, new Dictionary<string, object?>());
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (40)
41new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 49new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 77new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 85new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 121new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 129new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 156new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 161new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 168new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 179new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 210new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 218new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 226new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" }, 238new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" }, 266new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 271new FunctionApprovalResponseContent("callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 278new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 293new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 325new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 330new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 337new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 349new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 357new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 389new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 394new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 401new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 407new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })]), 412new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 416new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })) 443new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 448new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 450new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 465new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 536new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 543new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 554new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 582new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 598new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 649new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }) 725new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
ChatCompletion\FunctionInvokingChatClientTests.cs (34)
95new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 97new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 129new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 131new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 162new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 164new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 194new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }), 195new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }), 205new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }), 253new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 254new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 297new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 298new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 331new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 333new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 529arguments: new Dictionary<string, object?> { { "shouldThrow", callShouldThrow }, { "callIndex", thisCallIndex } })); 554new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 556new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]), 611new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 668new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 710JsonSerializer.Serialize(new Dictionary<string, object?> { ["arg1"] = "value1" }, AIJsonUtilities.DefaultOptions), 760new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] }, 761new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] } 862new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["i"] = 41 })]), 864new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["i"] = 42 })]), 872new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "Func1", new Dictionary<string, object?> { ["i"] = 43 })]), 933new FunctionCallContent("callId2", "Search", new Dictionary<string, object?> { { "result", "birds" } }), 1018new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1048new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg"] = "value1" }), 1049new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["arg"] = "value2" }), 1101new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }), 1102new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 }) 1120new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }), 1121new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 })
ChatReduction\MessageCountingChatReducerTests.cs (1)
128new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" })]),
ChatReduction\SummarizingChatReducerTests.cs (1)
95new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" })]),
Functions\AIFunctionFactoryTest.cs (3)
241IReadOnlyDictionary<string, object?> metadata = new Dictionary<string, object?> { ["a"] = "b" }; 613Context = new Dictionary<object, object?>(), 620Context = new Dictionary<object, object?>
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataExtensionsTests.cs (2)
73.AddInMemoryCollection(new Dictionary<string, string?> 99.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.ApiDescription.Client.Tests (14)
GetOpenApiReferenceMetadataTest.cs (13)
26var inputMetadata = new Dictionary<string, string> { { "CodeGenerator", "NSwagCSharp" } }; 81var inputMetadata = new Dictionary<string, string> 141var inputMetadata = new Dictionary<string, string> 201var inputMetadata = new Dictionary<string, string> 263var inputMetadata1 = new Dictionary<string, string> 267var inputMetadata2 = new Dictionary<string, string> 308var inputMetadata1 = new Dictionary<string, string> 313var inputMetadata2 = new Dictionary<string, string> 354var inputMetadata = new Dictionary<string, string> 418var inputMetadata = new Dictionary<string, string> 479var inputMetadata1 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } }; 480var inputMetadata2 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator2 } }; 481var inputMetadata3 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.Caching.Hybrid.Tests (2)
SerializerTests.cs (1)
189Dictionary<string, (int id, string who, DateTime when)> source = new()
TestEventListener.cs (1)
49var args = new Dictionary<string, string?>
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
36var memoryConfigurationData = new Dictionary<string, string>
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Classification\DataClassificationTypeConverterTests.cs (2)
52var expected = new Dictionary<string, DataClassification> 180public IDictionary<string, DataClassification> Facts { get; set; } = new Dictionary<string, DataClassification>();
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
21.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
16.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Configuration (2)
ConfigurationBuilder.cs (1)
25public IDictionary<string, object> Properties { get; } = new Dictionary<string, object>();
ConfigurationManager.cs (1)
265private readonly Dictionary<string, object> _properties = new();
Microsoft.Extensions.DependencyInjection (4)
ServiceLookup\CallSiteChain.cs (1)
17_callSiteChain = new Dictionary<ServiceIdentifier, ChainItemInfo>();
ServiceLookup\CallSiteFactory.cs (1)
19private readonly Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem> _descriptorLookup = new Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem>();
ServiceLookup\ServiceProviderEngineScope.cs (1)
25ResolvedServices = new Dictionary<ServiceCacheKey, object?>();
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.DependencyModel (2)
DependencyContextJsonReader.cs (2)
20private readonly Dictionary<string, string> _stringPool = new Dictionary<string, string>(); 648var libraries = new Dictionary<string, LibraryStub>();
Microsoft.Extensions.Diagnostics (2)
Metrics\DefaultMeterFactory.cs (1)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new();
Metrics\ListenerSubscription.cs (1)
16private readonly Dictionary<Instrument, object?> _instruments = new();
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
HealthCheckResult.cs (1)
14private static readonly IReadOnlyDictionary<string, object> _emptyReadOnlyDictionary = new Dictionary<string, object>();
HealthReportEntry.cs (1)
15private static readonly IReadOnlyDictionary<string, object> _emptyReadOnlyDictionary = new Dictionary<string, object>();
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
73var configurationDict = new Dictionary<string, string?>
TelemetryHealthChecksPublisherTests.cs (1)
154var healthStatusRecords = new Dictionary<string, HealthReportEntry>();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
DefaultHealthCheckServiceTest.cs (4)
67var data = new Dictionary<string, object>() 170var data = new Dictionary<string, object> 700var data = new Dictionary<string, object>() 736return Task.FromResult(HealthCheckResult.Healthy(data: new Dictionary<string, object> { { "self", this } }));
HealthReportTest.cs (2)
20var result = new HealthReport(new Dictionary<string, HealthReportEntry>() 39var result = new HealthReport(new Dictionary<string, HealthReportEntry>()
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
KubernetesProbesExtensionsTests.cs (1)
95.AddInMemoryCollection(new Dictionary<string, string?>
MockHealthCheckService.cs (1)
26var healthStatusRecords = new Dictionary<string, HealthReportEntry> { { "id", entry } };
TcpEndpointProbesExtensionsTests.cs (2)
105.AddInMemoryCollection(new Dictionary<string, string?> 130.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Disk\WindowsDiskMetrics.cs (1)
26private readonly Dictionary<string, WindowsDiskIoRatePerfCounter> _diskIoRateCounters = new();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (60)
Linux\AcceptanceTest.cs (5)
114.AddSingleton<IFileSystem>(new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 163.AddSingleton<IFileSystem>(new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 197var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 295var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 401var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\Disk\DiskStatsReaderTests.cs (3)
38var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 99var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 144var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\Disk\LinuxSystemDiskMetricsTests.cs (1)
52var diskStatsReader = new FakeDiskStatsReader(new Dictionary<string, List<DiskStats>>
Linux\LinuxCountersTests.cs (2)
23var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 119var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxNetworkUtilizationParserTests.cs (1)
34var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV1Tests.cs (15)
83var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 109var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 128var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 155var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 175var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 200var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 227var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 248var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 277var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 293var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 307var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 328var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 345var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 360var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 364var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV2Tests.cs (28)
87var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 111var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 128var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 146var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 161var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 177var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 188f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 204var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 230var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 248var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 273var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 290var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 308var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 323var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 349var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 364var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 390var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 404var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 420var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 439var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 460var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 477var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 494var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 512var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 528var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 545var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 559var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 563var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationProviderTests.cs (4)
38var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 119var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 187var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 233var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
ResourceMonitoringExtensionsTests.cs (1)
158.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\CollectedMeasurement.cs (1)
28var d = new Dictionary<string, object?>();
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
55.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
98var dict = new Dictionary<string, List<string>>();
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (1)
170hostBuilderContext = new HostBuilderContext(new Dictionary<object, object>())
HostBuilder.cs (1)
54public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
Microsoft.Extensions.Hosting.Testing.Tests (1)
FakeHostBuilderTests.cs (1)
88IDictionary<object, object> properties = new Dictionary<object, object>();
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientMappingRegistry.cs (2)
16public Dictionary<string, Type> NamedClientRegistrations { get; } = new(); 18public Dictionary<string, HttpClientKeyedLifetime> KeyedLifetimeMap { get; } = new();
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Http.Diagnostics (14)
Latency\Internal\HttpRequestLatencyListener.cs (10)
114private static readonly Dictionary<string, string> _socketMap = new() 120private static readonly Dictionary<string, string> _nameResolutionMap = new() 126private static readonly Dictionary<string, string> _httpMap = new() 140private static readonly Dictionary<string, string> _httpMeasureMap = new() 150Dictionary<string, CheckpointToken> socket = new(); 156Dictionary<string, CheckpointToken> nameResolution = new(); 162Dictionary<string, CheckpointToken> http = new(); 168Dictionary<string, MeasureToken> httpMeasures = new(); 174_eventToCheckpointTokenMap = new Dictionary<string, FrozenDictionary<string, CheckpointToken>> 181_eventToMeasureTokenMap = new Dictionary<string, FrozenDictionary<string, MeasureToken>>
Logging\LoggingOptions.cs (4)
51public IDictionary<string, DataClassification> RequestQueryParametersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 111public IDictionary<string, DataClassification> RequestHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 124public IDictionary<string, DataClassification> ResponseHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 151public IDictionary<string, DataClassification> RouteParameterDataClasses { get; set; } = new Dictionary<string, DataClassification>();
Microsoft.Extensions.Http.Diagnostics.Tests (51)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
111.AddInMemoryCollection(new Dictionary<string, string?>
Logging\AcceptanceTests.cs (10)
453options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } }; 460options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } }; 489options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } }; 496options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } }; 523options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } }; 529options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } }; 535options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test3", FakeTaxonomy.PrivateData } }; 541options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test4", FakeTaxonomy.PrivateData } }; 547options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test5", FakeTaxonomy.PrivateData } }; 552options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test6", FakeTaxonomy.PrivateData } };
Logging\HttpClientLoggerTest.cs (12)
204ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } }, 205RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } }, 297ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 298RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 406ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 407RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 503ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 504RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 618ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 619RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 889ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 890RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
Logging\HttpHeadersReaderTest.cs (4)
52RequestHeadersDataClasses = new Dictionary<string, DataClassification> 57ResponseHeadersDataClasses = new Dictionary<string, DataClassification> 114RequestHeadersDataClasses = new Dictionary<string, DataClassification> 120ResponseHeadersDataClasses = new Dictionary<string, DataClassification>
Logging\HttpRequestReaderTest.cs (20)
64RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 65ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 194RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 195ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 269RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 270ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 344RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 403RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 404ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 476RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 477ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 545RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 546ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 600RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 645RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>() // No data classification 672RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 703RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 740RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 793RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 834RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
Logging\Internal\TestConfiguration.cs (1)
19.AddInMemoryCollection(new Dictionary<string, string?>
Logging\LoggingOptionsTest.cs (3)
73var testHeaders = new Dictionary<string, DataClassification> 87var testHeaders = new Dictionary<string, DataClassification> 122var paramsToRedacts = new Dictionary<string, DataClassification>
Microsoft.Extensions.Http.Resilience.Tests (15)
Hedging\StandardHedgingTests.cs (5)
95var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 131var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 152var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 242new() 260reloadAction(new() { { "standard:Hedging:MaxHedgedAttempts", "6" } });
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (4)
65new Dictionary<string, string?> 75new Dictionary<string, string?> 230new() 255reloadAction(new() { { "standard:Retry:MaxRetryAttempts", "10" } });
Routing\OrderedRoutingStrategyTest.cs (3)
38new() 42new() 52routingBuilder.ConfigureOrderedGroups(GetSection(new Dictionary<string, string>
Routing\WeightedRoutingStrategyTest.cs (3)
52new() 57new() 68routingBuilder.ConfigureWeightedGroups(GetSection(new Dictionary<string, string>
Microsoft.Extensions.Identity.Core (2)
TokenOptions.cs (1)
36public Dictionary<string, TokenProviderDescriptor> ProviderMap { get; set; } = new Dictionary<string, TokenProviderDescriptor>();
UserManager.cs (1)
45new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerSettings.cs (1)
32public IDictionary<string, LogLevel> Switches { get; set; } = new Dictionary<string, LogLevel>();
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.Extensions.Options (1)
StartupValidatorOptions.cs (1)
12public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>();
Microsoft.Extensions.Options.SourceGeneration (4)
Emitter.cs (2)
61var staticValidationAttributesDict = new Dictionary<string, StaticFieldInfo>(); 62var staticValidatorsDict = new Dictionary<string, StaticFieldInfo>();
Model\ValidationAttributeInfo.cs (1)
11public Dictionary<string, string> Properties { get; } = new();
OptionsSourceGenContext.cs (1)
26internal Dictionary<string, HashSet<object>?> AttributesToGenerate { get; set; } = new Dictionary<string, HashSet<object>?>();
Microsoft.Extensions.SecretManager.Tools.Tests (2)
SetCommandTest.cs (1)
96return new Dictionary<string, string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Logging\LoggerMessageHelperTests.cs (4)
28var d0 = new Dictionary<string, string> 34var d1 = new Dictionary<string, string> 48var d3 = new Dictionary<string, int> 56var d4 = new Dictionary<int, string>
Microsoft.Extensions.Telemetry.Tests (27)
Http\HttpParserTests.cs (11)
21Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 38Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 57Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 77Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 123Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 155Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 226Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 280Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } }; 347Dictionary<string, DataClassification> parametersToRedact = new() 391Dictionary<string, DataClassification> parametersToRedact = new() 437Dictionary<string, DataClassification> parametersToRedact = new()
Http\HttpRouteFormatterTests.cs (13)
20var parametersToRedact = new Dictionary<string, DataClassification>(); 93Dictionary<string, DataClassification> parametersToRedact = new() 136Dictionary<string, DataClassification> parametersToRedact = new() 157Dictionary<string, DataClassification> parametersToRedact = new() 218Dictionary<string, DataClassification> parametersToRedact = new() 239Dictionary<string, DataClassification> parametersToRedact = new() 257Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 324Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 353Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 373Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } }; 415Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 435Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 451Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
Latency\Internal\TagCollectionTests.cs (1)
30Dictionary<string, int> namesNumTimes = new Dictionary<string, int>
Latency\LatencyConsoleExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
Latency\LatencyContextExtensionTests.cs (1)
123.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Validation.Tests (16)
ValidatableParameterInfoTests.cs (3)
151var typeMapping = new Dictionary<Type, ValidatableTypeInfo> 191var typeMapping = new Dictionary<Type, ValidatableTypeInfo> 312ValidationOptions = new TestValidationOptions(typeMapping ?? new Dictionary<Type, ValidatableTypeInfo>())
ValidatableTypeInfoTests.cs (13)
40var validationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 141ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 193ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 258ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 309ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 340var validationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 392ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 427ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 474ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 515ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 543ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 565context.ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo> 612ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
GeneratorTests.cs (3)
57? new() { ["build_property.ComplianceReportOutputPath"] = Directory.GetCurrentDirectory() } 121var options = new Dictionary<string, string> 148var options = new Dictionary<string, string>
Microsoft.Gen.Logging (2)
Parsing\Parser.cs (1)
48var parameterSymbols = new Dictionary<LoggingMethodParameter, IParameterSymbol>();
Parsing\Parser.LogProperties.cs (1)
104var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
Microsoft.Gen.Logging.Generated.Tests (42)
LogMethodTests.cs (1)
880new Dictionary<string, int>
LogPropertiesRedactionTests.cs (6)
33var expectedState = new Dictionary<string, string?> 59var expectedState = new Dictionary<string, string?> 82var expectedState = new Dictionary<string, string?> 113var expectedState = new Dictionary<string, string?> 142var expectedState = new Dictionary<string, string?> 168var expectedState = new Dictionary<string, string?>
LogPropertiesTests.cs (14)
33P7 = new Dictionary<string, int> 231var expectedState = new Dictionary<string, string?> 305var expectedState = new Dictionary<string, string?> 325var expectedState = new Dictionary<string, string?> 345var expectedState = new Dictionary<string, string?> 368var expectedState = new Dictionary<string, string?> 392var expectedState = new Dictionary<string, string?> 422var expectedState = new Dictionary<string, string?> 451var expectedState = new Dictionary<string, string?> 477var expectedState = new Dictionary<string, string?> 504var expectedState = new Dictionary<string, string?> 528var expectedState = new Dictionary<string, string?> 553var expectedState = new Dictionary<string, string?> 579var expectedState = new Dictionary<string, string?>
TagNameTests.cs (2)
20logger.Collector.LatestRecord.StructuredState.Should().NotBeNull().And.Equal(new Dictionary<string, string?> 27logger.Collector.LatestRecord.StructuredState.Should().NotBeNull().And.Equal(new Dictionary<string, string?>
TagProviderTests.cs (15)
37var expectedState = new Dictionary<string, string?> 60var expectedState = new Dictionary<string, string?> 87var expectedState = new Dictionary<string, string?> 110var expectedState = new Dictionary<string, string?> 142var expectedState = new Dictionary<string, string?> 211var expectedState = new Dictionary<string, string?> 230var expectedState = new Dictionary<string, string?> 250var expectedState = new Dictionary<string, string?> 272var expectedState = new Dictionary<string, string?> 293var expectedState = new Dictionary<string, string?> 313var expectedState = new Dictionary<string, string?> 334var expectedState = new Dictionary<string, string?> 361var expectedState = new Dictionary<string, string?> 399var expectedState = new Dictionary<string, string?> 424var expectedState = new Dictionary<string, string?>
TransitiveTests.cs (4)
22var expectedState = new Dictionary<string, string?> 32expectedState = new Dictionary<string, string?> 49var expectedState = new Dictionary<string, string?> 60expectedState = new Dictionary<string, string?>
Microsoft.Gen.Logging.Unit.Tests (1)
SymbolLoaderTests.cs (1)
31new Dictionary<string, string>(),
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
281var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
GeneratorTests.cs (4)
74? new() { ["build_property.MetadataReportOutputPath"] = Directory.GetCurrentDirectory() } 125var options = new Dictionary<string, string> 146var options = new Dictionary<string, string> 176var options = new Dictionary<string, string>
Microsoft.Gen.Metrics (1)
Parser.cs (1)
281var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
281var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetricsReports.Unit.Tests (6)
EmitterTests.cs (2)
29DimensionsDescriptions = new Dictionary<string, string> 72DimensionsDescriptions = new Dictionary<string, string>
GeneratorTests.cs (4)
39? new() { ["build_property.MetricsReportOutputPath"] = Directory.GetCurrentDirectory() } 86var options = new Dictionary<string, string> 102var options = new Dictionary<string, string> 129var options = new Dictionary<string, string>
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceContext.cs (2)
32Dictionary<string, ComInterfaceInfo> nameToInterfaceInfoMap = new(); 38Dictionary<string, DiagnosticOr<ComInterfaceContext>> nameToContextCache = new();
ComInterfaceGenerator.cs (1)
93Dictionary<ComMethodInfo, IMethodSymbol> methodSymbols = new();
ComMethodContext.cs (1)
178var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeFixer.cs (1)
32Dictionary<(INamedTypeSymbol marshallerType, ITypeSymbol managedType, bool isLinearCollectionMarshaller), HashSet<string>> uniqueMarshallersToFix = new();
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (1)
163Dictionary<MarshalMode, CustomTypeMarshallerData> modes = new();
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
41=> ImmutableDictionary.CreateRange(new Dictionary<ManagedTypeInfo, string>
Microsoft.JSInterop.Tests (2)
JSInProcessRuntimeTest.cs (1)
44new Dictionary<string, object>
JSRuntimeTest.cs (1)
275new Dictionary<string, object>
Microsoft.Maui (9)
Animations\Lerp.cs (1)
9 public static readonly Dictionary<Type, Lerp> Lerps = new Dictionary<Type, Lerp>()
Extensions\EnumerableExtensions.cs (1)
39 var result = new Dictionary<TKey, List<TSource>>();
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
32 var result = new Dictionary<string, string>();
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
15 private readonly Dictionary<Type, Type> _concreteTypeMapping = new(); 16 private readonly Dictionary<Type, Type> _interfaceTypeMapping = new();
Hosting\Internal\MauiServiceCollection.cs (1)
12 readonly Dictionary<Type, ServiceDescriptor> _descriptorDictionary = new Dictionary<Type, ServiceDescriptor>();
HotReload\HotReloadHelper.cs (1)
118 static Dictionary<IHotReloadableView, object[]> currentViews = new Dictionary<IHotReloadableView, object[]>();
Layouts\GridLayoutManager.cs (1)
83 readonly Dictionary<SpanKey, Span> _spans = new();
VisualDiagnostics\VisualDiagnosticsOverlay.Standard.cs (1)
7 readonly Dictionary<IScrollView, object> _scrollViews = new();
Microsoft.Maui.Controls (27)
AnimationExtensions.cs (2)
60 s_animations = new Dictionary<AnimatableKey, Info>(); 61 s_kinetics = new Dictionary<AnimatableKey, int>();
BindableObject.cs (1)
41 internal Dictionary<TriggerBase, SetterSpecificity> _triggerSpecificity = new Dictionary<TriggerBase, SetterSpecificity>();
BindableProperty.cs (3)
43 internal static readonly Dictionary<Type, TypeConverter> KnownTypeConverters = new Dictionary<Type, TypeConverter> 51 internal static readonly Dictionary<Type, IValueConverter> KnownIValueConverters = new Dictionary<Type, IValueConverter> 58 internal static readonly Dictionary<Type, Type[]> SimpleConvertTypes = new Dictionary<Type, Type[]>
DataTemplate.cs (2)
41 public IDictionary<BindableProperty, BindingBase> Bindings { get; } = new Dictionary<BindableProperty, BindingBase>(); 44 public IDictionary<BindableProperty, object> Values { get; } = new Dictionary<BindableProperty, object>();
DataTemplateSelector.cs (1)
10 Dictionary<Type, DataTemplate> _dataTemplates = new Dictionary<Type, DataTemplate>();
DependencyService.cs (1)
20 static readonly Dictionary<Type, DependencyData> DependencyImplementations = new Dictionary<Type, DependencyData>();
Element\Element.cs (1)
369 Dictionary<BindableProperty, (string, SetterSpecificity)> DynamicResources => _dynamicResources ?? (_dynamicResources = new Dictionary<BindableProperty, (string, SetterSpecificity)>());
Hosting\Effects\AppHostBuilderExtensions.cs (1)
72 internal Dictionary<Type, Func<PlatformEffect>> RegisteredEffects { get; } = new Dictionary<Type, Func<PlatformEffect>>();
Internals\NameScope.cs (1)
18 readonly Dictionary<object, string> _values = new Dictionary<object, string>();
Layout\AbsoluteLayout.cs (1)
21 readonly Dictionary<IView, AbsoluteLayoutInfo> _viewInfo = new();
Layout\FlexLayout.cs (1)
256 readonly Dictionary<IView, FlexInfo> _viewInfo = new();
Layout\Grid.cs (1)
12 readonly Dictionary<IView, GridInfo> _viewInfo = new();
LegacyLayouts\RelativeLayout.cs (1)
70 var solveTable = new Dictionary<View, bool>();
ListProxy.cs (1)
316 _items = new Dictionary<int, object>();
MessagingCenter.cs (1)
108 new Dictionary<Sender, List<Subscription>>();
PlatformConfigurationRegistry.cs (1)
12 readonly Dictionary<Type, object> _platformSpecifics = new Dictionary<Type, object>();
Registrar.cs (2)
45 readonly Dictionary<Type, Dictionary<Type, HandlerType>> _handlers = new Dictionary<Type, Dictionary<Type, HandlerType>>(); 64 visualRenderers = new Dictionary<Type, HandlerType>();
Shell\ShellNavigationQueryParameters.cs (1)
10 Dictionary<string, object> _internal = new Dictionary<string, object>();
StyleSheets\Style.cs (1)
18 Dictionary<KeyValuePair<string, string>, object> convertedValues = new Dictionary<KeyValuePair<string, string>, object>();
StyleSheets\StyleSheet.cs (1)
21 internal IDictionary<Selector, Style> Styles { get; set; } = new Dictionary<Selector, Style>();
TemplatedItemsList.cs (1)
1231 readonly Dictionary<TemplatedItemsList<TView, TItem>, string> _oldNames = new Dictionary<TemplatedItemsList<TView, TItem>, string>();
VisualElement\VisualElement.cs (1)
503 readonly Dictionary<Size, SizeRequest> _measureCache = new Dictionary<Size, SizeRequest>();
Microsoft.Maui.Controls.Build.Tasks (14)
ILContext.cs (4)
16 Values = new Dictionary<IValueNode, object>(); 17 Variables = new Dictionary<IElementNode, VariableDefinition>(); 18 Scopes = new Dictionary<INode, Tuple<VariableDefinition, IList<string>>>(); 19 TypeExtensions = new Dictionary<INode, TypeReference>();
SetPropertiesVisitor.cs (3)
867 var locs = new Dictionary<TypeReference, VariableDefinition>(); 963 var locs = new Dictionary<TypeReference, VariableDefinition>(); 1096 var locs = new Dictionary<TypeReference, VariableDefinition>();
XamlCache.cs (7)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new(); 15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new(); 16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new(); 17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new(); 18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new(); 19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new(); 20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new();
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (1)
244 return new Dictionary<XmlType, string>();
src\Controls\src\Xaml\XamlNode.cs (1)
161 Properties = new Dictionary<XmlName, INode>();
Microsoft.Maui.Controls.Xaml (6)
HydrationContext.cs (2)
11 Values = new Dictionary<INode, object>(); 12 Types = new Dictionary<IElementNode, Type>();
NamescopingVisitor.cs (1)
8 readonly Dictionary<INode, NameScopeRef> _scopes = new Dictionary<INode, NameScopeRef>();
XamlLoader.cs (1)
259 static readonly Dictionary<Type, string> XamlResources = new Dictionary<Type, string>();
XamlNode.cs (1)
161 Properties = new Dictionary<XmlName, INode>();
XamlServiceProvider.cs (1)
14 readonly Dictionary<Type, object> services = new Dictionary<Type, object>();
Microsoft.Maui.Essentials (1)
FilePicker\FilePicker.shared.cs (1)
140 fileTypes = new Dictionary<DevicePlatform, IEnumerable<string>>();
Microsoft.Maui.Resizetizer (3)
DetectInvalidResourceOutputFilenamesTask.cs (1)
25 var tempInvalidItems = new Dictionary<ITaskItem, string>();
ResizetizeImages.cs (1)
132 var imagesPairs = new Dictionary<string, ResizeImageInfo>();
TizenSplashUpdater.cs (1)
19 static public Dictionary<(string Resolution, string Orientation), string> splashDpiMap = new Dictionary<(string, string), string>();
Microsoft.ML.AutoML (21)
API\Pipeline.cs (1)
48Properties = properties ?? new Dictionary<string, object>();
ColumnInference\ColumnInformationUtil.cs (1)
147var result = new Dictionary<ColumnPurpose, int>();
EstimatorExtensions\EstimatorExtensionCatalog.cs (1)
31Dictionary<EstimatorName, Type>()
EstimatorExtensions\EstimatorExtensions.cs (2)
304var pipelineNodeProperty = new Dictionary<string, object>() 329var pipelineNodeProperty = new Dictionary<string, object>()
SweepableEstimator\MultiModelPipeline.cs (1)
22_estimators = new Dictionary<string, SweepableEstimator>();
SweepableEstimator\SweepablePipeline.cs (2)
21private readonly Dictionary<string, SweepableEstimator> _estimators = new Dictionary<string, SweepableEstimator>(); 68_estimators = new Dictionary<string, SweepableEstimator>();
Sweepers\ISweeper.cs (1)
85_parameterValues = new Dictionary<string, IParameterValue>();
TrainerExtensions\BinaryTrainerExtensions.cs (1)
53additionalProperties = new Dictionary<string, object>()
TrainerExtensions\RankingTrainerExtensions.cs (1)
54var property = new Dictionary<string, object>();
TrainerExtensions\RecommendationTrainerExtensions.cs (1)
27var property = new Dictionary<string, object>();
TrainerExtensions\TrainerExtensionCatalog.cs (1)
14new Dictionary<TrainerName, Type>()
TrainerExtensions\TrainerExtensionUtil.cs (3)
107Properties = new Dictionary<string, object>() 144var props = new Dictionary<string, object>(); 166props = new Dictionary<string, object>();
Tuner\AutoZeroTuner.cs (1)
24private readonly Dictionary<int, Config> _configLookBook = new Dictionary<int, Config>();
Tuner\CostFrugalTuner.cs (2)
17private readonly Dictionary<int, SearchThread> _searchThreadPool = new Dictionary<int, SearchThread>(); 19private readonly Dictionary<int, int> _trialProposedBy = new Dictionary<int, int>();
Tuner\EciCfoTuner.cs (1)
28_tuners = new Dictionary<string, ITuner>();
Tuner\PipelineProposer.cs (1)
50_estimatorCost = new Dictionary<EstimatorType, double>()
Microsoft.ML.AutoML.Tests (9)
EstimatorExtensionTests.cs (1)
29Properties = new Dictionary<string, object> { }
TrainerExtensionsTests.cs (3)
312var props = new Dictionary<string, object>() 318Properties = new Dictionary<string, object>() 343var props = new Dictionary<string, object>()
TunerTests.cs (4)
37var tunerCandidates = new Dictionary<string, ITuner>() 243var tunerCandidates = new Dictionary<string, ITuner>() 298var tunerCandidates = new Dictionary<string, ITuner>() 347var tunerCandidates = new Dictionary<string, ITuner>()
Utils\TaskAgnosticIterationResult.cs (1)
16internal Dictionary<string, double> MetricValues = new Dictionary<string, double>();
Microsoft.ML.CodeGenerator (15)
CodeGenerator\CSharp\CodeGeneratorSettings.cs (1)
18OnnxInputMapping = new Dictionary<string, ColumnMapping>();
CodeGenerator\CSharp\TrainerGeneratorBase.cs (1)
41_arguments = new Dictionary<string, object>();
CodeGenerator\CSharp\TrainerGenerators.cs (13)
24new Dictionary<string, string>() 95new Dictionary<string, string>() 126new Dictionary<string, string>() 238new Dictionary<string, string>() 265new Dictionary<string, string>() 324new Dictionary<string, string>() 358new Dictionary<string, string>() 388new Dictionary<string, string>() 418new Dictionary<string, string>() 489new Dictionary<string, string>() 522new Dictionary<string, string>() 600new Dictionary<string, string>(); 619new Dictionary<string, string>()
Microsoft.ML.CodeGenerator.Tests (65)
ApprovalTests\ConsoleCodeGeneratorTests.cs (7)
545var hyperParam = new Dictionary<string, object>() 684new Dictionary<string, object>() 723var hyperParam = new Dictionary<string, object>() 772new Dictionary<string, object>() 851var mapping = new Dictionary<string, CodeGeneratorSettings.ColumnMapping>() 982new Dictionary<string, object>() 1019var mapping = new Dictionary<string, CodeGeneratorSettings.ColumnMapping>()
ApprovalTests\TemplateTest.cs (1)
37SampleData = new Dictionary<string, string>()
CodeGenTests.cs (6)
28var elementProperties = new Dictionary<string, object>() 48var elementProperties = new Dictionary<string, object>() 68var elementProperties = new Dictionary<string, object>(); 82var elementProperties = new Dictionary<string, object>(); 123var elementProperties = new Dictionary<string, object>() 125{"Booster", new CustomProperty(){Properties= new Dictionary<string, object>(), Name = "TreeBooster"} },
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>() 58var elementProperties = new Dictionary<string, object>() 79var elementProperties = new Dictionary<string, object>() 102var elementProperties = new Dictionary<string, object>(); 119var elementProperties = new Dictionary<string, object>() 139var elementProperties = new Dictionary<string, object>(); 156var elementProperties = new Dictionary<string, object>() 176var elementProperties = new Dictionary<string, object>(); 193var elementProperties = new Dictionary<string, object>() 213var elementProperties = new Dictionary<string, object>(); 230var elementProperties = new Dictionary<string, object>() 250var elementProperties = new Dictionary<string, object>(); 267var elementProperties = new Dictionary<string, object>() 286var elementProperties = new Dictionary<string, object>(); 300var elementProperties = new Dictionary<string, object>() 327var elementProperties = new Dictionary<string, object>(); 344var elementProperties = new Dictionary<string, object>() 364var elementProperties = new Dictionary<string, object>(); 381var elementProperties = new Dictionary<string, object>() 401var elementProperties = new Dictionary<string, object>(); 418var elementProperties = new Dictionary<string, object>() 438var elementProperties = new Dictionary<string, object>(); 455var elementProperties = new Dictionary<string, object>() 475var elementProperties = new Dictionary<string, object>(); 492var elementProperties = new Dictionary<string, object>() 512var elementProperties = new Dictionary<string, object>(); 529var elementProperties = new Dictionary<string, object>() 550var elementProperties = new Dictionary<string, object>(); 567var elementProperties = new Dictionary<string, object>() 588var elementProperties = new Dictionary<string, object>(); 605var elementProperties = new Dictionary<string, object>() 626var elementProperties = new Dictionary<string, object>(); 643var elementProperties = new Dictionary<string, object>() 664var elementProperties = new Dictionary<string, object>(); 680var elementProperties = new Dictionary<string, object>() 701var elementProperties = new Dictionary<string, object>(); 718var elementProperties = new Dictionary<string, object>() 739var elementProperties = new Dictionary<string, object>(); 756var elementProperties = new Dictionary<string, object>() 774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical 39var elementProperties = new Dictionary<string, object>();//categorical 53var elementProperties = new Dictionary<string, object>(); 67var elementProperties = new Dictionary<string, object>(); 81var elementProperties = new Dictionary<string, object>();//nume to num feature 2 95var elementProperties = new Dictionary<string, object>(); 109var elementProperties = new Dictionary<string, object>();//numeric feature 123var elementProperties = new Dictionary<string, object>(); 137var elementProperties = new Dictionary<string, object>(); 151var elementProperties = new Dictionary<string, object>(); 165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (12)
CommandLine\CmdParser.cs (1)
468var map = new Dictionary<string, Argument>();
ComponentModel\ComponentCatalog.cs (5)
77_classesByKey = new Dictionary<LoadableClassInfo.Key, LoadableClassInfo>(); 79_signatures = new Dictionary<Type, bool>(); 82_entryPointMap = new Dictionary<string, EntryPointInfo>(); 83_componentMap = new Dictionary<string, ComponentInfo>(); 86_extensionsMap = new Dictionary<(Type AttributeType, string ContractName), Type>();
Data\Repository.cs (1)
469_entries = new Dictionary<string, ZipArchiveEntry>();
Data\RoleMappedSchema.cs (1)
219var map = new Dictionary<string, List<DataViewSchema.Column>>();
Data\ServerChannel.cs (1)
134_toPublish = new Dictionary<string, Delegate>();
Utilities\Tree.cs (1)
88_children = new Dictionary<TKey, Tree<TKey, TValue>>();
Utilities\Utils.cs (2)
161map = new Dictionary<TKey, TValue>(); 169map = new Dictionary<TKey, TValue>();
Microsoft.ML.Core.Tests (5)
UnitTests\ColumnTypes.cs (1)
23var dict = new Dictionary<DataViewType, string>();
UnitTests\TestEntryPoints.cs (4)
3350var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3351var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 3402var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3403var inputMap = new Dictionary<ParameterBinding, VariableBinding>();
Microsoft.ML.CpuMath.UnitTests (2)
UnitTests.cs (2)
100_disableAvxEnvironmentVariables = new Dictionary<string, string>() 105_disableAvxAndSseEnvironmentVariables = new Dictionary<string, string>()
Microsoft.ML.Data (58)
Commands\DataCommand.cs (2)
155Dictionary<string, double> averageMetric = new Dictionary<string, double>(); 196Dictionary<string, double> newAverageMetric = new Dictionary<string, double>();
Commands\TypeInfoCommand.cs (1)
85var srcToDstMap = new Dictionary<InternalDataKind, HashSet<InternalDataKind>>();
Data\Conversion.cs (8)
105_delegatesStd = new Dictionary<(Type src, Type dst), Delegate>(); 106_delegatesAll = new Dictionary<(Type src, Type dst), Delegate>(); 107_isNADelegates = new Dictionary<Type, Delegate>(); 108_hasNADelegates = new Dictionary<Type, Delegate>(); 109_isDefaultDelegates = new Dictionary<Type, Delegate>(); 110_hasZeroDelegates = new Dictionary<Type, Delegate>(); 111_getNADelegates = new Dictionary<Type, Delegate>(); 112_tryParseDelegates = new Dictionary<Type, Delegate>();
Data\DataViewTypeManager.cs (2)
39private static readonly Dictionary<TypeWithAttributes, DataViewType> _rawTypeToDataViewTypeMap = new Dictionary<TypeWithAttributes, DataViewType>(); 44private static readonly Dictionary<DataViewType, TypeWithAttributes> _dataViewTypeToRawTypeMap = new Dictionary<DataViewType, TypeWithAttributes>();
Data\SchemaDefinition.cs (1)
245AnnotationInfos = new Dictionary<string, AnnotationInfo>();
DataLoadSave\Binary\BinaryLoader.cs (1)
330var map = new Dictionary<string, MetadataTableOfContentsEntry>();
DataLoadSave\Binary\CodecFactory.cs (2)
45_loadNameToCodecCreator = new Dictionary<string, GetCodecFromStreamDelegate>(); 46_simpleCodecTypeMap = new Dictionary<Type, IValueCodec>();
DataLoadSave\Binary\UnsafeTypeOps.cs (1)
32_type2ops = new Dictionary<Type, object>();
DataLoadSave\Text\TextLoaderParser.cs (2)
693var mapOne = new Dictionary<InternalDataKind, Func<RowSet, ColumnPipe>>(); 694var mapVec = new Dictionary<InternalDataKind, Func<RowSet, ColumnPipe>>();
DataView\ArrayDataViewBuilder.cs (2)
43_getSlotNames = new Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>>(); 44_getKeyValues = new Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>>();
DataView\InternalSchemaDefinition.cs (1)
76Annotations = metadataInfos == null ? new Dictionary<string, AnnotationInfo>()
DataView\Transposer.cs (2)
107_nameToICol = new Dictionary<string, int>(); 753var nameToCol = new Dictionary<string, int>();
Deprecated\Instances\HeaderSchema.cs (2)
212var dict = new Dictionary<int, string>(); 280var lookup = new Dictionary<string, int>();
EntryPoints\EntryPointNode.cs (7)
273_vars = new Dictionary<string, EntryPointVariable>(); 487_inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 488_inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 510_outputMap = new Dictionary<string, string>(); 603var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 604var inputParamBindingMap = new Dictionary<ParameterBinding, VariableBinding>(); 748var toModify = new Dictionary<string, string>();
EntryPoints\InputBuilder.cs (3)
382result.Add(attr.Input.Name ?? field.Name, builder.GetJsonObject(instanceVal, new Dictionary<string, List<ParameterBinding>>(), 383new Dictionary<ParameterBinding, VariableBinding>())); 593var dict = new Dictionary<string, T>();
Evaluators\AnomalyDetectionEvaluator.cs (1)
204var result = new Dictionary<string, IDataView>();
Evaluators\BinaryClassifierEvaluator.cs (1)
369var result = new Dictionary<string, IDataView>();
Evaluators\ClusteringEvaluator.cs (1)
214var result = new Dictionary<string, IDataView>
Evaluators\EvaluatorBase.cs (1)
410_dict = new Dictionary<TStrat, TAgg>();
Evaluators\EvaluatorUtils.cs (7)
39var tmp = new Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> 466var slotNames = new Dictionary<string, int>(); 611var keyNames = new Dictionary<ReadOnlyMemory<char>, int>(); 679var keyNames = new Dictionary<ReadOnlyMemory<char>, int>(); 813var vectorSizes = new Dictionary<string, int>(); 814var firstDvSlotNames = new Dictionary<string, VBuffer<ReadOnlyMemory<char>>>(); 817var firstDvKeyNoNamesColumns = new Dictionary<string, ulong>();
Evaluators\MulticlassClassificationEvaluator.cs (1)
246var result = new Dictionary<string, IDataView>
Evaluators\MultiOutputRegressionEvaluator.cs (1)
160var result = new Dictionary<string, IDataView>();
Evaluators\RankingEvaluator.cs (1)
238var result = new Dictionary<string, IDataView>();
Evaluators\RegressionEvaluatorBase.cs (1)
108var result = new Dictionary<string, IDataView>();
Model\Pfa\BoundPfaContext.cs (1)
53_nameToVarName = new Dictionary<string, string>();
Transforms\ColumnSelecting.cs (1)
566var columnDict = new Dictionary<string, List<int>>();
Transforms\InvertHashUtils.cs (1)
182_slotToValueSet = new Dictionary<int, HashSet<Pair>>();
Transforms\OneToOneTransformerBase.cs (1)
101ColMapNewToOld = new Dictionary<int, int>();
Transforms\ValueMapping.cs (2)
319Dictionary<TValue, uint> keyTypeValueMapping = new Dictionary<TValue, uint>(); 844return new Dictionary<TKey, TValue>();
Microsoft.ML.DataView (2)
DataViewSchema.cs (2)
431var nameMap = new Dictionary<string, int>(); 453_nameMap = new Dictionary<string, int>();
Microsoft.ML.EntryPoints (41)
CrossValidationMacro.cs (13)
179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 180var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 185var outputMap = new Dictionary<string, string>(); 208var mapping = new Dictionary<string, string>(); 239inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 240inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 247outputMap = new Dictionary<string, string>(); 255inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 256inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 266outputMap = new Dictionary<string, string>(); 318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 319var combineInputMap = new Dictionary<ParameterBinding, VariableBinding>(); 337var combineOutputMap = new Dictionary<string, string>();
MacroUtils.cs (6)
124var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 125var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 135var outputMap = new Dictionary<string, string>(); 147var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 148var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 158var outputMap = new Dictionary<string, string>();
OneVersusAllMacro.cs (7)
60var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 61var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 66var outputMap = new Dictionary<string, string>(); 78var mapping = new Dictionary<string, string>(); 172var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 173var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 182var outputMap = new Dictionary<string, string>();
TrainTestMacro.cs (15)
168inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 169inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 179outputMap = new Dictionary<string, string>(); 191inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 192inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 203outputMap = new Dictionary<string, string>(); 225inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 226inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 237outputMap = new Dictionary<string, string>(); 248inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 249inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 255outputMap = new Dictionary<string, string>(); 270inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 271inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 277outputMap = new Dictionary<string, string>();
Microsoft.ML.Fairlearn (4)
Metrics\FairlearnMetricCatalog.cs (4)
118Dictionary<string, double> metricsDict = new Dictionary<string, double> 187var groupMetric = new Dictionary<object, RegressionMetrics>(); 244Dictionary<string, double> diffDict = new Dictionary<string, double>(); 259Dictionary<string, double> metricsDict = new Dictionary<string, double>
Microsoft.ML.FastTree (10)
Dataset\Dataset.cs (4)
338Dictionary<string, DatasetSkeletonQueryDocData> newAuxData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 455AuxiliaryData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 487AuxiliaryData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 806Dictionary<string, bool> auxNames = new Dictionary<string, bool>();
Dataset\DatasetUtils.cs (1)
48Dictionary<uint, int> uvalToOrder = new Dictionary<uint, int>();
FastTree.cs (1)
3301var keyValues = new Dictionary<string, object>();
Training\ScoreTracker.cs (2)
144private static readonly Dictionary<int, Dictionary<int, double>> _treeMultiplierMap = new Dictionary<int, Dictionary<int, double>>(); 154_treeMultiplierMap[t] = new Dictionary<int, double>();
TreeEnsemble\InternalRegressionTree.cs (1)
1174Dictionary<int, int> categoricalSplitNodeToId = new Dictionary<int, int>();
TreeEnsemble\InternalTreeEnsemble.cs (1)
119Dictionary<int, int> featureToID = new Dictionary<int, int>(); //Mapping from feature to ini input id
Microsoft.ML.GenAI.Core (4)
Extension\ModuleExtension.cs (4)
33return new(); 37var dict = new Dictionary<string, long>(); 176var deviceMap = new Dictionary<string, string>(); 219var deviceMap = new Dictionary<string, string>();
Microsoft.ML.GenAI.Core.Tests (2)
QuantizedLinearTests.cs (2)
84model.load_state_dict(new Dictionary<string, Tensor> 112model.load_state_dict(new Dictionary<string, Tensor>
Microsoft.ML.GenAI.LLaMA (2)
LlamaTextCompletionService.cs (1)
27public IReadOnlyDictionary<string, object?> Attributes => new Dictionary<string, object?>()
LlamaTokenizerHelper.cs (1)
27private static readonly Dictionary<string, int> _specialTokens = new()
Microsoft.ML.GenAI.Mistral (2)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
171var propertiesSchemas = new Dictionary<string, JsonSchema>();
MistralTokenizerHelper.cs (1)
63var specialTokens = new Dictionary<string, int>
Microsoft.ML.GenAI.Phi (3)
Phi2\Phi2ForCausalLM.cs (1)
62var loadedParameters = new Dictionary<string, bool>();
Phi3\Phi3CausalLMTextGenerationService.cs (1)
23public IReadOnlyDictionary<string, object?> Attributes => new Dictionary<string, object?>()
Phi3\Phi3TokenizerHelper.cs (1)
40specialTokens: new Dictionary<string, int>
Microsoft.ML.GenAI.Samples (1)
Mistral\Mistral_7B_Instruct.cs (1)
135functionMap: new Dictionary<string, Func<string, Task<string>>>
Microsoft.ML.IntegrationTests (2)
Common.cs (2)
29var types = new Dictionary<string, Type>(); 30var counts = new Dictionary<string, int>();
Microsoft.ML.LightGbm (6)
LightGbmArguments.cs (1)
37private protected static Dictionary<string, string> NameMapping = new Dictionary<string, string>()
LightGbmTrainerBase.cs (3)
54private protected static Dictionary<string, string> NameMapping = new Dictionary<string, string>() 284Dictionary<string, object> res = new Dictionary<string, object>(); 891Dictionary<int, float> ivPair = new Dictionary<int, float>();
WrappedLightGbmBooster.cs (2)
203Dictionary<string, string> parameters = new Dictionary<string, string>(); 233Dictionary<string, string> kvPairs = new Dictionary<string, string>();
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
27Dictionary<string, string> packageVersions = new Dictionary<string, string>();
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
52_columnNameMap = new Dictionary<string, string>();
Microsoft.ML.OnnxTransformer (7)
OnnxTransform.cs (2)
247var shapeDictionary = new Dictionary<string, int[]>(); 671Outputs = new Dictionary<string, DisposableNamedOnnxValue>();
OnnxUtils.cs (5)
262var inputTypePool = new Dictionary<string, DataViewType>(); 266var initializerTypePool = new Dictionary<string, DataViewType>(); 270var outputTypePool = new Dictionary<string, DataViewType>(); 272var casterPool = new Dictionary<string, Func<NamedOnnxValue, object>>(); 511new Dictionary<Type, InternalDataKind>
Microsoft.ML.OnnxTransformerTest (9)
OnnxTransformTests.cs (9)
843var inputDict0 = new Dictionary<int, float> { { 0, 94.17f }, { 1, 17.36f } }; 844var inputDict1 = new Dictionary<int, float> { { 0, 12.28f }, { 1, 75.12f } }; 853output.Output = new Dictionary<int, float>(); 898var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } }; 983var shapeDictionary = new Dictionary<string, int[]>() { 998shapeDictionary = new Dictionary<string, int[]>() { 1014shapeDictionary = new Dictionary<string, int[]>() { 1029shapeDictionary = new Dictionary<string, int[]>() { 1068var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } };
Microsoft.ML.ResultProcessor (9)
ResultProcessor.cs (9)
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>(); 70SameHeaderValues = new Dictionary<string, object>(); 162return new Dictionary<string, string>(); 792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>(); 890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>(); 892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>(); 927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>(); 938metricDict = new Dictionary<int, float>(); 985Dictionary<string, float> valuesDict = new Dictionary<string, float>();
Microsoft.ML.Samples (27)
Dynamic\Transforms\Conversion\MapValue.cs (3)
31var timeframeMap = new Dictionary<string, string>(); 40var timeframeKeyMap = new Dictionary<string, uint>(); 48var scoreMap = new Dictionary<int, string>();
Dynamic\Transforms\Conversion\MapValueToArray.cs (1)
35var timeframeMap = new Dictionary<string, int[]>();
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (10)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 48Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 54Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 60Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 66Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 72Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 78Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 84Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 90Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (13)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object> 56Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 62Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 68Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 74Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 80Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 86Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 92Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 98Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 104Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 110Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 116Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (5)
Option\NestOption.cs (1)
18private readonly Dictionary<string, OptionBase> _options = new Dictionary<string, OptionBase>();
Parameter.cs (1)
221var parameter = new Parameter(new Dictionary<string, Parameter>(), ParameterType.Object);
SearchSpace.cs (3)
51_options = new Dictionary<string, OptionBase>(); 196var res = new Dictionary<string, OptionBase>(); 243var res = new Dictionary<string, OptionBase>();
Microsoft.ML.Sweeper (3)
Algorithms\KdoSweeper.cs (2)
356Dictionary<string, int> labelToIndex = new Dictionary<string, int>(); 399Dictionary<string, int> labelToIndex = new Dictionary<string, int>();
ISweeper.cs (1)
114_parameterValues = new Dictionary<string, IParameterValue>();
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
683Outputs = new Dictionary<string, Tensor>();
Microsoft.ML.Tests (94)
OnnxConversionTest.cs (92)
1247pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, int> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1248pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, long> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1249pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, short> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1250pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, uint> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1251pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ushort> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1252pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ulong> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1253pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, string> { { 3, "True" }, { 23, "False" } }, "Keys", treatValuesAsKeyType)); 1254pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, float> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1255pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, double> { { 3, 698 }, { 23, 7908 } }, "Keys", treatValuesAsKeyType)); 1256pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, bool> { { 3, false }, { 23, true } }, "Keys", treatValuesAsKeyType)); 1260pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1261pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1262pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1263pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1264pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1265pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, float> { { 3, 6 }, { 23, 46 } }, "Keys")); 1266pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, long> { { 3, 698 }, { 23, 7908 } }, "Keys")); 1267pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, double> { { 3, 698 }, { 23, 7908 } }, "Keys")); 1268pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, bool> { { 3, true }, { 23, false } }, "Keys")); 1272pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, int> { { true, 6 }, { false, 46 } }, "Keys")); 1273pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, short> { { true, 6 }, { false, 46 } }, "Keys")); 1274pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, uint> { { true, 6 }, { false, 46 } }, "Keys")); 1275pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ushort> { { true, 6 }, { false, 46 } }, "Keys")); 1276pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ulong> { { true, 6 }, { false, 46 } }, "Keys")); 1277pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, string> { { true, "True" }, { false, "False" } }, "Keys")); 1278pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, float> { { true, 6 }, { false, 46 } }, "Keys")); 1279pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, long> { { true, 698 }, { false, 7908 } }, "Keys")); 1280pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, double> { { true, 698 }, { false, 7908 } }, "Keys")); 1281pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, bool> { { false, true }, { true, false } }, "Keys")); 1285pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, int> { { "3", 3 }, { "23", 23 } }, "Keys")); 1286pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, short> { { "3", 3 }, { "23", 23 } }, "Keys")); 1287pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, uint> { { "3", 6 }, { "23", 46 } }, "Keys")); 1288pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ushort> { { "3", 6 }, { "23", 46 } }, "Keys")); 1289pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ulong> { { "3", 6 }, { "23", 46 } }, "Keys")); 1290pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, float> { { "3", 6 }, { "23", 23 } }, "Keys")); 1291pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, double> { { "3", 6 }, { "23", 23 } }, "Keys")); 1292pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, long> { { "3", 3 }, { "23", 23 } }, "Keys")); 1293pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, bool> { { "3", true }, { "23", false } }, "Keys")); 1297pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1298pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1299pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1300pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1301pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1302pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1303pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1304pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1305pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1309pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1310pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1311pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1312pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1313pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1314pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1315pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1316pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1317pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1321pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1322pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1323pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1324pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1325pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1326pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1327pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1328pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1329pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1333pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1334pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1335pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1336pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1337pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1338pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1339pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1340pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1341pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1345pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1346pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1347pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1348pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1349pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1350pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1351pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1352pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1353pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1357pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1358pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1359pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1360pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1361pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1362pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1363pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1364pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1365pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
TextLoaderTests.cs (2)
735var irisFirstRow = new Dictionary<string, float>(); 844var irisFirstRow = new Dictionary<string, float>();
Microsoft.ML.TimeSeries (9)
PolynomialUtils.cs (1)
285var hash = new Dictionary<Complex, FactorMultiplicity>();
RootCauseAnalyzer.cs (6)
202Dictionary<string, int> pointDistribution = new Dictionary<string, int>(); 251Dictionary<BestDimension, double> entroyGainRatioMap = new Dictionary<BestDimension, double>(); 293Dictionary<BestDimension, double> entropyRatioMap = new Dictionary<BestDimension, double>(); 762ChildrenNodes = new Dictionary<string, List<TimeSeriesPoint>>(); 776AnomalyDis = new Dictionary<string, int>(); 777PointDis = new Dictionary<string, int>();
STL\InnerStl.cs (1)
285_xValuesPool = new Dictionary<int, List<double>>();
STL\Loess.cs (1)
58_neighbors = new Dictionary<int, LocalRegression>();
Microsoft.ML.TimeSeries.Tests (30)
TimeSeriesDirectApi.cs (30)
970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 1015expectedDim = new Dictionary<string, Object>(); 1047Dictionary<string, object> expectedDim = new Dictionary<string, object> 1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 1164Dictionary<string, Object> dim = new Dictionary<string, Object>(); 1197Dictionary<string, int> expectedDim = new Dictionary<string, int> 1231Dictionary<string, object> dic1 = new Dictionary<string, object>(); 1237Dictionary<string, object> dic2 = new Dictionary<string, object>(); 1243Dictionary<string, object> dic3 = new Dictionary<string, object>(); 1249Dictionary<string, object> dic4 = new Dictionary<string, object>(); 1255Dictionary<string, object> dic5 = new Dictionary<string, object>(); 1261Dictionary<string, object> dic6 = new Dictionary<string, object>(); 1267Dictionary<string, object> dic7 = new Dictionary<string, object>(); 1273Dictionary<string, object> dic8 = new Dictionary<string, object>(); 1279Dictionary<string, object> dic9 = new Dictionary<string, object>(); 1285Dictionary<string, object> dic10 = new Dictionary<string, object>(); 1291Dictionary<string, object> dic11 = new Dictionary<string, object>(); 1297Dictionary<string, object> dic12 = new Dictionary<string, object>();
Microsoft.ML.Tokenizers (27)
Model\BPETokenizer.cs (3)
319_vocab = vocab ?? new Dictionary<StringSpanOrdinalKey, int>(); 363Merges = new(); 1175private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\CodeGenTokenizer.cs (2)
1704internal static readonly Dictionary<string, int> CodeGenSpecialTokens = new() 1769var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\EnglishRobertaTokenizer.cs (3)
239var vocab = new Dictionary<string, int>(); 1113_idToIndex = new Dictionary<int, int>(); 1115_stringSymbolToIndexMapping = new Dictionary<string, int>();
Model\SentencePieceBaseModel.cs (2)
41InternalSpecialTokens = new Dictionary<StringSpanOrdinalKey, int>(); 42SpecialTokensReverse = new Dictionary<int, string>();
Model\SentencePieceBpeModel.cs (4)
22private readonly Dictionary<StringSpanOrdinalKey, (int Id, float Score, byte Type)> _vocab = new(); 23private readonly Dictionary<int, string> _vocabReverse = new(); 51var vocab = new Dictionary<string, int>(); 1210revMerge ??= new();
Model\TiktokenTokenizer.cs (8)
1164new Dictionary<string, int> 1198new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 }, { IMStart, 100264 }, 1201new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 } }, 1205return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName); 1208return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName); 1211return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName); 1214return (new Dictionary<string, int> 1218return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Model\WordPieceTokenizer.cs (2)
99Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>(); 100Dictionary<int, string> vocabReverse = new Dictionary<int, string>();
ModelSourceGenerationContext.DictionaryStringSpanOrdinalKeyInt32.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>(),
Utils\LruCache.cs (1)
17private readonly Dictionary<StringSpanOrdinalKey, LinkedListNode<KeyValuePair<string, TValue>>> _cache = new();
Utils\TokenizerExtensions.cs (1)
37Dictionary<TValue, TKey> dictionary = new Dictionary<TValue, TKey>();
Microsoft.ML.Tokenizers.Tests (20)
BertTokenizerTests.cs (1)
26Dictionary<string, int> specialTokens = new() {
BpeTests.cs (14)
27new Dictionary<string, int>() { { UnknownToken, 0 }, { "!", 5 }, { ",", 6 }, { ".", 7 }, { "B", 8 }, { "H", 9 }, { "T", 10 }, { "W", 11 }, { "a", 12 }, { "b", 13 }, { "c", 14 }, { "d", 15 }, { "e", 16 }, 53new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 68new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } }, 83new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } }, 98new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 113new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 128new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "ab", 3 }, { UnknownToken, 4} }, 143new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "ab", 4 }, { "abc", 5 } }, 158new Dictionary<string, int>(){ { UnknownToken, 0} }, 173new Dictionary<string, int>(){ { UnknownToken, 0} }, 188new Dictionary<string, int>() { { UnknownToken, 0}, { "H", 1 }, { "e", 2 }, { "l", 3 }, { "o", 4 }, { "!", 5 }, { "He", 6 }, { "lo", 7}, { "llo", 8 }, 525IReadOnlyDictionary<string, int> specialTokens = new Dictionary<string, int>() 898SpecialTokens = new Dictionary<string, int> // SpecialTokens not part of the original vocab.json 1077Dictionary<string, int> specialTokens = new Dictionary<string, int>();
LlamaTests.cs (1)
48specialTokens: new Dictionary<string, int>
TiktokenTests.cs (2)
26private static readonly Dictionary<string, int> _specialTokens = new Dictionary<string, int> 791new Dictionary<string, int>
UnigramTests.cs (1)
60new Dictionary<string, int>
WordPieceTests.cs (1)
184Dictionary<string, int> specialTokens = new Dictionary<string, int>
Microsoft.ML.TorchSharp (10)
AutoFormerV2\Attention.cs (1)
73var attentionOffsets = new Dictionary<Tuple<int, int>, int>();
AutoFormerV2\ObjectDetectionMetrics.cs (2)
99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 100Dictionary<string, int> groundTruthBoxes = new();
NasBert\Models\NasBertEncoder.cs (1)
207new Dictionary<string, object> { { PositionalEmbedding.PositionKey, positions } });
NasBert\Modules\IncrementalState.cs (1)
51private static Dictionary<string, torch.Tensor> EmptyIncrementalState => new Dictionary<string, torch.Tensor>();
NasBert\Modules\MultiHeadAttention.cs (1)
316return GetIncrementalState(this, incrementalState, AttentionStateKey) ?? new Dictionary<string, torch.Tensor>();
NasBert\Modules\TransformerCell.cs (2)
65return (Operations[arch] as Layer)!.forward(x, new Dictionary<string, object> 130return Operation.forward(x, new Dictionary<string, object>
Roberta\QATrainer.cs (1)
443var mapping = new Dictionary<int, int>();
Utils\DefaultDictionary.cs (1)
27_dictionary = new Dictionary<TKey, TValue>();
Microsoft.ML.Transforms (18)
Dracula\CMCountTable.cs (3)
232_tables[iLabel][iDepth] = new Dictionary<int, double>(); 249_tables[iLabel][iDepth] = new Dictionary<int, double>(); 271tables[iLabel][iDepth] = new Dictionary<int, float>();
Dracula\DictCountTable.cs (4)
77Tables[iTable] = new Dictionary<long, float>(); 176_tables[i] = new Dictionary<long, double>(); 187_tables[i] = new Dictionary<long, double>(); 204singleTables[iTable] = new Dictionary<long, float>();
Expression\KeyWordTable.cs (2)
37_mpnstrtidWord = new Dictionary<NormStr, KeyWordKind>(); 38_mpnstrtidPunc = new Dictionary<NormStr, TokKind>();
Expression\LambdaParser.cs (1)
243_mapTidStr = new Dictionary<TokKind, string>();
Expression\MethodGenerator.cs (1)
172_locals = new Dictionary<LocalKey, List<LocalBuilder>>();
MissingValueReplacingUtils.cs (1)
382_valueCounts = new Dictionary<TType, int>();
PermutationFeatureImportanceExtensions.cs (1)
708var output = new Dictionary<string, TResult>();
Text\StopWordsRemovingTransformer.cs (1)
364_colMapNewToOld = new Dictionary<int, int>();
Text\TextNormalizing.cs (1)
311var combinedDiacriticsMap = new Dictionary<char, char>();
Text\WordEmbeddingsExtractor.cs (3)
95private static readonly Dictionary<string, WeakReference<Model>> _vocab = new Dictionary<string, WeakReference<Model>>(); 605private static readonly Dictionary<WordEmbeddingEstimator.PretrainedModelKind, string> _modelsMetaData = new Dictionary<WordEmbeddingEstimator.PretrainedModelKind, string>() 619private static readonly Dictionary<WordEmbeddingEstimator.PretrainedModelKind, int> _linesToSkipInModels = new Dictionary<WordEmbeddingEstimator.PretrainedModelKind, int>()
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (2)
538_idvToTfMapping = new Dictionary<string, string>(); 851Outputs = new Dictionary<string, Tensor>();
ImageClassificationTrainer.cs (2)
101internal static IReadOnlyDictionary<Architecture, string> ModelFileName = new Dictionary<Architecture, string> 113new Dictionary<Architecture, Tuple<int, int>>
Microsoft.NET.Build.Containers (1)
Tasks\ComputeDotnetBaseImageAndTag.cs (1)
352var telemetryProperties = new Dictionary<string, string?>
Microsoft.NET.Build.Containers.IntegrationTests (14)
FullFramework\CreateNewImageToolTaskTests.cs (14)
218new TaskItem("Valid1", new Dictionary<string, string>() {{ "Value", "Val1" }}), 219new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "Val2" }}), 220new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "" }}), 221new TaskItem("Valid3", new Dictionary<string, string>() {{ "Value", "has space" }}), 222new TaskItem("Valid4", new Dictionary<string, string>() {{ "Value", "has\"quotes\"" }}) 264new TaskItem("Valid1", new Dictionary<string, string>() {{ "Value", "Val1" }}), 265new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "Val2" }}), 266new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "" }}), 267new TaskItem("Valid3", new Dictionary<string, string>() {{ "Value", "has space" }}), 268new TaskItem("Valid4", new Dictionary<string, string>() {{ "Value", "has\"quotes\"" }}) 496new TaskItem("1501", new Dictionary<string, string>() {{ "Type", "udp" }}), 497new TaskItem("1501", new Dictionary<string, string>() {{ "Type", "tcp" }}), 498new TaskItem("1502", new Dictionary<string, string>() {{ "Type", "tcp" }}), 499new TaskItem("1503", new Dictionary<string, string>() {{ "Type", "" }})
Microsoft.NET.Build.Containers.UnitTests (8)
AuthHandshakeMessageHandlerTests.cs (7)
94queryParameters: new()) 101formParameters: new() 116formParameters: new() 131formParameters: new() 144queryParameters: new() 203=> ServerWithBearerAuth(authenticateParameters, requestUri, HttpMethod.Get, queryParameters, new(), new AuthenticationHeaderValue("Basic", GetUserPasswordBase64(username, password))); 206=> ServerWithBearerAuth(authenticateParameters, requestUri, HttpMethod.Post, new(), formParameters, null);
RegistryTests.cs (1)
537var environment = new Dictionary<string, string>();
Microsoft.NET.Build.Extensions.Tasks (2)
ConflictResolver.cs (1)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new();
TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
Microsoft.NET.Build.Extensions.Tasks.UnitTests (2)
GivenAGetDependsOnNETStandardTask.cs (1)
40new Dictionary<string, string>
MockBuildEngine.cs (1)
78public Dictionary<object, object> RegisteredTaskObjects { get; } = new Dictionary<object, object>();
Microsoft.NET.Build.Tasks (39)
ApplyImplicitVersions.cs (1)
66var result = new Dictionary<string, ImplicitPackageReferenceVersion>();
ConflictResolver.cs (1)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new();
CreateWindowsSdkKnownFrameworkReferences.cs (1)
71var knownFrameworkReferencesByWindowsSdkVersion = new Dictionary<Version, List<(Version minimumNetVersion, TaskItem[] knownFrameworkReferences)>>();
DependencyContextBuilder.cs (5)
139_dependencyLibraries = new Dictionary<string, DependencyLibrary>(); 140_libraryDependencies = new Dictionary<string, List<LibraryDependency>>(); 155_referenceLibraryNames = new Dictionary<ReferenceInfo, string>(); 224_runtimePackAssets = new Dictionary<string, List<RuntimePackAssetInfo>>(); 328var referenceNameToRealName = new Dictionary<string, string>();
FileGroup.cs (1)
28private static readonly IDictionary<string, string> _emptyProperties = new Dictionary<string, string>();
GenerateDepsFile.cs (1)
124filteredPackages = new Dictionary<PackageIdentity, string>();
GenerateSupportedTargetFrameworkAlias.cs (1)
52convertedTfms.Add(new TaskItem(targetFrameworkAlias, new Dictionary<string, string>() { { "DisplayName", displayName } }));
GetAssemblyAttributes.cs (2)
25AssemblyAttributes = FormatToAttributes(AssemblyAttributesNameByFieldInFileVersionInfo: new Dictionary<string, string> 42AssemblyAttributesNameByFieldInFileVersionInfo = new Dictionary<string, string>();
GetPackagesToPrune.cs (1)
123Dictionary<string, NuGetVersion> packagesToPrune = new();
NugetContentAssetPreprocessor.cs (2)
13private Dictionary<string, string> _preprocessorValues = new(); 18_preprocessorValues = preprocessorValues ?? new Dictionary<string, string>();
ParseTargetManifests.cs (1)
28var runtimeStorePackages = new Dictionary<PackageIdentity, StringBuilder>();
ReferenceInfo.cs (1)
128Dictionary<string, ReferenceInfo> directReferences = new();
ResolveAppHosts.cs (1)
104var packagesToDownload = new Dictionary<string, string>();
ResolvePackageAssets.cs (2)
1532var result = new Dictionary<string, LogLevel>(); 1994Dictionary<string, string> paths = new();
RuntimeOptions.cs (1)
27public IDictionary<string, JToken> RawOptions { get; } = new Dictionary<string, JToken>();
SdkDirectoryWorkloadManifestProvider.cs (2)
99_knownManifestIdsAndOrder = new Dictionary<string, int>(); 529Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
TypeLibraryDictionaryBuilder.cs (2)
34typeLibraryIdMap = new Dictionary<int, string> { { id, typeLibraries[0].ItemSpec } }; 37typeLibraryIdMap = new Dictionary<int, string>();
WorkloadManifestReader.cs (6)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
WorkloadResolver.cs (4)
18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 780public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.NET.Build.Tasks.UnitTests (90)
GetPublishItemsOutputGroupOutputsTests.cs (2)
13new Dictionary<string, string> 24new Dictionary<string, string>
GivenACompilationOptionsConverter.cs (2)
38metadata: new Dictionary<string, string> 72metadata: new Dictionary<string, string>
GivenAConflictResolver.cs (2)
369new MockTaskItem("Platform", new Dictionary<string, string> 400new MockTaskItem("Platform", new Dictionary<string, string>
GivenADependencyContextBuilder.cs (14)
109new Dictionary<string, string> 116new Dictionary<string, string> 234new MockTaskItem($"/usr/Path/{reference}.dll", new Dictionary<string, string> { 252Dictionary<string, SingleProjectInfo> referenceProjectInfos = new(); 277[new MockTaskItem($"{kvp.Key}.resource", new Dictionary<string, string>() { 308DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() { 321DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() { 334DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() { 349DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() 364DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() 381DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() 416new Dictionary<string, string> 424new Dictionary<string, string> 432new Dictionary<string, string>
GivenAGenerateRuntimeConfigurationFiles.cs (7)
47new Dictionary<string, string> 88new Dictionary<string, string> 95new Dictionary<string, string> 102new Dictionary<string, string> 148new Dictionary<string, string> 155new Dictionary<string, string> 195new Dictionary<string, string>
GivenAPackageOverrideResolver.cs (3)
21new MockTaskItem("Platform", new Dictionary<string, string> 25new MockTaskItem("Platform", new Dictionary<string, string> 58new MockTaskItem("FakePlatform", new Dictionary<string, string>
GivenAProduceContentsAssetsTask.cs (7)
22var preprocessorValues = new Dictionary<string, string>() 73var preprocessorValues = new Dictionary<string, string>() 129var preprocessorValues = new Dictionary<string, string>() 208var preprocessorValues = new Dictionary<string, string>() 286var preprocessorValues = new Dictionary<string, string>() 491metadata: new Dictionary<string, string> { { "Value", kvp.Value } })).ToArray(); 498metadata: new Dictionary<string, string>
GivenARemoveDuplicatePackageReferences.cs (1)
17metadata: new Dictionary<string, string> { { "Version", kvp.Version.ToString() } })).ToArray();
GivenAResolvePackageDependenciesTask.cs (2)
359var expectedTypes = new Dictionary<string, string>() 406var expectedFileGroups = new Dictionary<string, string>()
GivenAResolveRuntimePackAssetsTask.cs (1)
32new Dictionary<string, string> {
GivenAResolveTargetingPackAssetsTask.cs (5)
59new MockTaskItem("RuntimeFramework1", new Dictionary<string, string>{ ["FrameworkName"] = "Microsoft.Windows.SDK.NET.Ref"}), 60new MockTaskItem("RuntimeFramework2", new Dictionary<string, string>{ ["FrameworkName"] = "Microsoft.Windows.SDK.NET.Ref"}), 159new Dictionary<string, string>() 171new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) 307runtimeFrameworks: new[] { new MockTaskItem("RuntimeFramework1", new Dictionary<string, string>()) },
GivenThatWeWantToGenerateSupportedTargetFrameworkAlias.cs (1)
97Func<List<(string, string)>, ITaskItem[]> convertToItems = (List<(string, string)> list) => list.Select(item => new TaskItem(item.Item1, new Dictionary<string, string>() { { "DisplayName", item.Item2 } })).ToArray();
GivenUnresolvedSDKProjectItemsAndImplicitPackages.cs (6)
18metadata: new Dictionary<string, string> 25metadata: new Dictionary<string, string> 32metadata: new Dictionary<string, string> 41metadata: new Dictionary<string, string> 49metadata: new Dictionary<string, string> 56metadata: new Dictionary<string, string>
LockFileSnippets.cs (3)
292metadata: new Dictionary<string, string>() { {"locale", "de"} }) 297metadata: new Dictionary<string, string>() { 304metadata: new Dictionary<string, string>() {
Mocks\MockBuildEngine.cs (1)
78public Dictionary<object, object> RegisteredTaskObjects { get; } = new Dictionary<object, object>();
Mocks\MockContentAssetPreprocessor.cs (2)
12private Dictionary<string, string> _preprocessorValues = new(); 27_preprocessorValues = preprocessorValues ?? new Dictionary<string, string>();
ProcessFrameworkReferencesTests.cs (31)
82additionalMetadata: new Dictionary<string, string> { 98var metadata = new Dictionary<string, string> 121return new MockTaskItem("Microsoft.DotNet.ILCompiler", new Dictionary<string, string> 219ToolsetInfo.CurrentTargetFramework, "1.9.5", additionalMetadata: new Dictionary<string, string> 231FrameworkReferences = new[] { new MockTaskItem("Microsoft.AspNetCore.App", new Dictionary<string, string>()) }, 254FrameworkReferences = new[] { new MockTaskItem("Microsoft.AspNetCore.App", new Dictionary<string, string>()) }, 270additionalMetadata: new Dictionary<string, string> { 283FrameworkReferences = new[] { new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) }, 327new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()), 328new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) 361new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()), 362new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) 401FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) }, 437FrameworkReferences = new[] { new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) }, 468new Dictionary<string, string> { 473var nativeAOTRuntimePack = new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string> 483var ilLinkPack = new MockTaskItem("Microsoft.NET.ILLink.Tasks", new Dictionary<string, string> 489var ilCompilerPack = new MockTaskItem("Microsoft.DotNet.ILCompiler", new Dictionary<string, string> 517new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string> { ["IsImplicitlyDefined"] = "true" }), 518new MockTaskItem("Microsoft.macOS", new Dictionary<string, string> { ["IsImplicitlyDefined"] = "true" }) 553FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) }, 583FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) }, 609FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) }, 635new Dictionary<string, string> { ["Profile"] = "iOS" }); 646new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()), 647new MockTaskItem("Microsoft.iOS", new Dictionary<string, string>()) 676FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) }, 700new Dictionary<string, string> { 714new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()), 715new MockTaskItem($"Microsoft.{platformId}", new Dictionary<string, string>()) 751FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
Microsoft.NET.Build.Tests (21)
GivenFrameworkReferences.cs (6)
1176var trimInfo = new Dictionary<string, List<(string asset, string isTrimmable)>>(); 1192public Dictionary<string, string> RuntimeFramework { get; } = new Dictionary<string, string>(); 1193public Dictionary<string, string> PackageDownload { get; } = new Dictionary<string, string>(); 1194public Dictionary<string, string> TargetingPack { get; } = new Dictionary<string, string>(); 1195public Dictionary<string, string> RuntimePack { get; } = new Dictionary<string, string>(); 1196public Dictionary<string, string> AppHostPack { get; } = new Dictionary<string, string>();
GivenThatWeWantACustomTFM.cs (1)
36var expectedValues = new Dictionary<string, string>
GivenThatWeWantToBuildACppCliProject.cs (1)
252var propertyValues = new Dictionary<string, string>();
GivenThatWeWantToBuildADesktopExe.cs (1)
117var project = collection.LoadProject(fileLocation, new Dictionary<string, string>(), null);
GivenThatWeWantToBuildAnAppWithLibrary.cs (1)
103Dictionary<string, string> cultureValueMap = new()
GivenThatWeWantToBuildANetCoreApp.cs (4)
962new Dictionary<string, string>() 973new Dictionary<string, string>() 1028new Dictionary<string, string>() 1037new Dictionary<string, string>()
GivenThatWeWantToBuildASelfContainedApp.cs (1)
189new Dictionary<string, string>()
GivenThatWeWantToGenerateGlobalUsings_DotNet.cs (1)
68testProject.AddItem("Using", new Dictionary<string, string> { ["Remove"] = "System.IO" });
GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs (1)
58var expectedItems = new Dictionary<string, List<string>>()
GivenThatWeWantToTargetEolFrameworks.cs (2)
128testProject.AddItem("EolWorkload", new() 159testProject.AddItem("EolWorkload", new()
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (2)
182new Dictionary<string, string> { { "DisableImplicitAssetTargetFallback", "true" } }); 198new Dictionary<string, string> { ["CopyLocalLockFileAssemblies"] = "true" });
Microsoft.NET.Publish.Tests (3)
GivenThatWeWantToPreserveCompilationContext.cs (1)
223Dictionary<string, string> CompileLibraryNames = new()
GivenThatWeWantToPublishAnAotApp.cs (1)
394testProject.AddItem("PackageDownload", new Dictionary<string, string>
GivenThatWeWantToRunILLink.cs (1)
1969testProject.AddItem("EmbeddedResource", new Dictionary<string, string>
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (4)
BootJsonData.cs (4)
174public ResourceHashesByNameDictionary coreAssembly { get; set; } = new ResourceHashesByNameDictionary(); 179public ResourceHashesByNameDictionary assembly { get; set; } = new ResourceHashesByNameDictionary(); 427var result = new Dictionary<string, ResourceHashesByNameDictionary>(); 436return vfsAssets?.ToDictionary(a => a.virtualPath, a => new ResourceHashesByNameDictionary
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (7)
BootJsonData.cs (2)
65public ResourceHashesByNameDictionary runtime { get; set; } = new ResourceHashesByNameDictionary(); 70public ResourceHashesByNameDictionary assembly { get; set; } = new ResourceHashesByNameDictionary();
GenerateBlazorWebAssemblyBootJson50.cs (3)
105resourceData.lazyAssembly ??= new ResourceHashesByNameDictionary(); 115resourceList = new ResourceHashesByNameDictionary(); 121resourceData.pdb ??= new ResourceHashesByNameDictionary();
StaticWebAsset.cs (1)
1257var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>();
StaticWebAssetPathPattern.cs (1)
224var dictionary = new Dictionary<string, string>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (6)
BlazorReadSatelliteAssemblyFileTest.cs (2)
24new TaskItem("Resources.fr.wasm", new Dictionary<string, string> 29new TaskItem("Resources.ja-jp.wasm", new Dictionary<string, string>
BootJsonData.cs (4)
174public ResourceHashesByNameDictionary coreAssembly { get; set; } = new ResourceHashesByNameDictionary(); 179public ResourceHashesByNameDictionary assembly { get; set; } = new ResourceHashesByNameDictionary(); 427var result = new Dictionary<string, ResourceHashesByNameDictionary>(); 436return vfsAssets?.ToDictionary(a => a.virtualPath, a => new ResourceHashesByNameDictionary
Microsoft.NET.Sdk.Publish.Tasks (2)
AppSettingsTransform.cs (1)
44appSettingsModel.ConnectionStrings = new Dictionary<string, string>();
MsDeploy\CommonUtility.cs (1)
1800Dictionary<string, string> versionsList = new();
Microsoft.NET.Sdk.Publish.Tasks.Tests (9)
AppSettingsTransformTests.cs (3)
81private static readonly ITaskItem DefaultConnectionTaskItem = new TaskItem("DefaultConnection", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=defaultDB;Trusted_Connection=True;MultipleActiveResultSets=true" } }); 82private static readonly ITaskItem CarConnectionTaskItem = new TaskItem("CarConnection", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=CarDB;Trusted_Connection=True;MultipleActiveResultSets=true" } }); 83private static readonly ITaskItem PersonConnectionTaskItem = new TaskItem("PersonConnection", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=PersonDb;Trusted_Connection=True;MultipleActiveResultSets=true" } });
Tasks\GenerateEFSQLScriptsTests.cs (3)
11private static readonly ITaskItem DefaultContext = new TaskItem("DefaultContext", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=defaultDB;Trusted_Connection=True;MultipleActiveResultSets=true" } }); 12private static readonly ITaskItem CarContext = new TaskItem("CarContext", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=CarDB;Trusted_Connection=True;MultipleActiveResultSets=true" } }); 13private static readonly ITaskItem PersonContext = new TaskItem("PersonContext", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=PersonDb;Trusted_Connection=True;MultipleActiveResultSets=true" } });
Tasks\TransformAppSettingsTests.cs (3)
15private static readonly ITaskItem DefaultConnectionTaskItem = new TaskItem("DefaultConnection", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=defaultDB;Trusted_Connection=True;MultipleActiveResultSets=true" } }); 16private static readonly ITaskItem CarConnectionTaskItem = new TaskItem("CarConnection", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=CarDB;Trusted_Connection=True;MultipleActiveResultSets=true" } }); 17private static readonly ITaskItem PersonConnectionTaskItem = new TaskItem("PersonConnection", new Dictionary<string, string>() { { "Value", @"Server=(localdb)\mssqllocaldb; Database=PersonDb;Trusted_Connection=True;MultipleActiveResultSets=true" } });
Microsoft.NET.Sdk.Razor.Tasks (1)
ReferenceResolver.cs (1)
23_classifications = new Dictionary<AssemblyItem, Classification>();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (15)
CollectStaticWebAssetsToCopy.cs (1)
70copyToOutputFolder.Add(new TaskItem(source, new Dictionary<string, string>
Compression\ResolveCompressedAssets.cs (1)
198var existingCompressionFormatsByAssetItemSpec = new Dictionary<string, HashSet<string>>();
Data\ContentTypeProvider.cs (1)
14new()
Data\StaticWebAsset.cs (1)
1257var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>();
Data\StaticWebAssetPathPattern.cs (1)
224var dictionary = new Dictionary<string, string>();
DefineStaticWebAssets.Cache.cs (2)
202var remainingCandidates = new Dictionary<string, ITaskItem>(); 272internal ITaskItem ToTaskItem() => new TaskItem(Identity, new Dictionary<string, string> { ["TargetPath"] = TargetPath });
FilterStaticWebAssetEndpoints.cs (1)
37var endpointFoundMatchingAsset = new Dictionary<string, StaticWebAsset>();
GenerateStaticWebAssetsDevelopmentManifest.cs (1)
173var contentRootIndex = new Dictionary<string, int>();
JSModules\ApplyJsModules.cs (1)
31var jsModulesByRazorItem = new Dictionary<string, IList<ITaskItem>>();
MergeConfigurationProperties.cs (1)
43var entry = new TaskItem(configuration.ItemSpec, new Dictionary<string, string>
OverrideHtmlAssetPlaceholders.cs (3)
235Dictionary<string, string>? imports = new(); 236Dictionary<string, Dictionary<string, string>>? scopes = new(); 237Dictionary<string, string>? integrity = new();
ScopedCss\ApplyCssScopes.cs (1)
34var scopedCssByRazorItem = new Dictionary<string, IList<ITaskItem>>();
Microsoft.NET.Sdk.StaticWebAssets.Tests (107)
JsModulesIntegrationTest.cs (1)
152var thumbprintLookup = new Dictionary<string, FileThumbPrint>();
ScopedCssIntegrationTests.cs (1)
364var thumbprintLookup = new Dictionary<string, FileThumbPrint>();
StaticWebAssets\ApplyCssScopesTest.cs (30)
27new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 28new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 56new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 57new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 86new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 87new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }) 115new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 116new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }) 143new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 144new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 145new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string> { ["CssScope"] = "profile-scope" }), 171new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 172new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 173new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "profile-scope" }), 198new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string> 227new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string> 257new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 258new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 259new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string> 289new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 290new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 291new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string> 325new TaskItem("TestFiles/Pages/Home.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "home-scope" }), 326new TaskItem("TestFiles/Pages/_Host.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "_host-scope" }), 327new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 328new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }), 364new TaskItem("TestFiles/Pages/Home.razor.css", new Dictionary<string, string> { ["CssScope"] = "home-scope" }), 365new TaskItem("TestFiles/Pages/_Host.razor.css", new Dictionary<string, string> { ["CssScope"] = "_host-scope" }), 366new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }), 367new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
StaticWebAssets\ComputeCssScopesTests.cs (1)
121new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string,string>{ ["CssScope"] = "b-predefined" }), },
StaticWebAssets\ConcatenateFilesTest.cs (1)
112new Dictionary<string, string>
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (4)
396new Dictionary<string, string> 449new Dictionary<string, string> 501new Dictionary<string, string> 630return new TaskItem(contentType, new Dictionary<string, string>
StaticWebAssets\DiscoverDefaultScopedCssItemsTests.cs (1)
89new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string,string>{ ["Scoped"] = "false" }),
StaticWebAssets\DiscoverStaticWebAssetsTest.cs (8)
92task.FingerprintPatterns = [new TaskItem("CssFile", new Dictionary<string, string> { ["Pattern"] = "*.css", ["Expression"] = expression })]; 187FingerprintPatterns = [new TaskItem("JsModule", new Dictionary<string, string> { ["Pattern"] = "*.lib.module.js", ["Expression"] = expression })], 708new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}), 710new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}) 748new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}), 750new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}) 787new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}), 847return new TaskItem(itemSpec, new Dictionary<string, string>
StaticWebAssets\FilterStaticWebAssetEndpointsTest.cs (7)
76new TaskItem("Property", new Dictionary<string,string>{ 112new TaskItem("Header", new Dictionary<string,string>{ 146new TaskItem("Standalone", new Dictionary<string,string>{ }) 182new TaskItem("Selector", new Dictionary<string,string>{ 219new TaskItem("Header", new Dictionary<string,string>{ 223new TaskItem("Property", new Dictionary<string,string>{ 263return new TaskItem(contentType, new Dictionary<string, string>
StaticWebAssets\FingerprintPatternMatcherTest.cs (1)
76[new TaskItem("ScopedCSS", new Dictionary<string, string> { ["Pattern"] = "*.bundle.scp.css", ["Expression"] = "#[.{fingerprint}]!" })])
StaticWebAssets\GenerateStaticWebAssetsPropsFileTest.cs (12)
30CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 63CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 96CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 129CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 162CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 206CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 222CreateItem(Path.Combine("wwwroot","css","site.css"), new Dictionary<string,string> 267CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 283CreateItem(Path.Combine("wwwroot","css","site.css"), new Dictionary<string,string> 350CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 451CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string> 472CreateItem(Path.Combine("wwwroot","App.styles.css"), new Dictionary<string,string>
StaticWebAssets\GenerateV1StaticWebAssetsManifestTest.cs (7)
29CreateItem(Path.Combine("wwwroot", "sample.js"), new Dictionary<string,string> 59CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string> 92CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string> 98CreateItem(Path.Combine("wwwroot", "otherLib.js"), new Dictionary<string,string> 180CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string> 225CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string> 233CreateItem(Path.Combine("wwwroot, site.css"), new Dictionary<string,string>
StaticWebAssets\MergeConfigurationPropertiesTest.cs (2)
265return new TaskItem(Path.GetFullPath(project), new Dictionary<string, string> 287return new TaskItem(project, new Dictionary<string, string>
StaticWebAssets\ResolveAllScopedCssAssetsTest.cs (8)
19new TaskItem("TestFiles/Pages/Counter.razor.rz.scp.css", new Dictionary<string,string> 23new TaskItem("site.css", new Dictionary<string,string> 47new TaskItem("TestFiles/Pages/Counter.razor.rz.scp.css", new Dictionary<string,string> 51new TaskItem("site.css", new Dictionary<string,string> 75new TaskItem("Folder/Project.bundle.scp.css", new Dictionary<string,string> 79new TaskItem("site.css", new Dictionary<string,string> 103new TaskItem("Folder/Project.styles.css", new Dictionary<string,string> 107new TaskItem("site.css", new Dictionary<string,string>
StaticWebAssets\ResolveFingerprintedStaticWebAssetEndpointsForAssetsTest.cs (1)
289return new TaskItem(contentType, new Dictionary<string, string>
StaticWebAssets\UpdateExternallyDefinedStaticWebAssetsTest.cs (8)
29new Dictionary<string, string> 48new Dictionary<string, string> 103new Dictionary<string, string> 122new Dictionary<string, string> 147new Dictionary<string, string> 189new Dictionary<string, string> 208new Dictionary<string, string> 231new Dictionary<string, string>
StaticWebAssets\UpdateStaticWebAssetEndpointsTest.cs (2)
297return new TaskItem(type, new Dictionary<string, string> 327return new TaskItem(contentType, new Dictionary<string, string>
StaticWebAssets\ValidateStaticWebAssetsUniquePathsTest.cs (11)
29CreateItem(Path.Combine("wwroot", "js", "project-transitive-dep.js"), new Dictionary<string,string> 39CreateItem(Path.Combine("wwwroot", "_content", "ClassLibrary", "js", "project-transitive-dep.js"), new Dictionary<string,string> 70CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string> 77CreateItem(Path.Combine("wwwroot", "otherLib.js"), new Dictionary<string,string> 103CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string> 110CreateItem(Path.Combine("wwwroot", "otherLib.js"), new Dictionary<string,string> 142CreateItem(Path.Combine(".", "Library", "wwwroot", "sample.js"), new Dictionary<string,string> 147CreateItem(Path.Combine(".", "Library", "bin", "dist", "sample.js"), new Dictionary<string,string> 176CreateItem(Path.Combine(".", "Library", "wwwroot", "sample.js"), new Dictionary<string,string> 181CreateItem(Path.Combine(".", "Library", "wwwroot", "sample.js"), new Dictionary<string,string> 189CreateItem(Path.Combine(".", "App", "wwwroot", "sample.js"), new Dictionary<string,string>
StaticWebAssetsPackIntegrationTest.cs (1)
1644var thumbPrints = new Dictionary<string, FileThumbPrint>();
Microsoft.NET.Sdk.WorkloadManifestReader (14)
SdkDirectoryWorkloadManifestProvider.cs (2)
99_knownManifestIdsAndOrder = new Dictionary<string, int>(); 529Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadManifestReader.cs (6)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
WorkloadResolver.cs (4)
18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 780public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.NET.Sdk.WorkloadManifestReader.Tests (2)
SdkDirectoryWorkloadManifestProviderTests.cs (1)
53installState.Manifests = new Dictionary<string, string>()
WorkloadPackGroupTests.cs (1)
124var ret = new Dictionary<WorkloadPackId, List<WorkloadId>>();
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
CachingWorkloadResolver.cs (3)
162var itemsToAdd = new Dictionary<string, SdkResultItem>(); 165metadata: new Dictionary<string, string>() 170Dictionary<string, string> propertiesToAdd = new();
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
Microsoft.NET.StringTools.net35 (2)
WeakStringCache.Locking.cs (1)
22_stringsByHashCode = new Dictionary<int, StringWeakHandle>();
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
Microsoft.NET.TestFramework (10)
Commands\GetValuesCommand.cs (3)
28public Dictionary<string, string> Properties { get; } = new Dictionary<string, string>(); 164return (value: line, metadata: new Dictionary<string, string>()); 170var dict = new Dictionary<string, string>();
Commands\SdkCommandSpec.cs (1)
14public Dictionary<string, string> Environment { get; set; } = new Dictionary<string, string>();
Commands\TestCommand.cs (1)
12private Dictionary<string, string> _environment = new();
ProjectConstruction\TestProject.cs (5)
71public Dictionary<string, string> SourceFiles { get; } = new Dictionary<string, string>(); 73public Dictionary<string, string> EmbeddedResources { get; } = new Dictionary<string, string>(); 78public Dictionary<string, string> AdditionalProperties { get; } = new Dictionary<string, string>(); 481AddItem(itemName, new Dictionary<string, string>() { { attributeName, attributeValue } }); 500var propertyValues = new Dictionary<string, string>();
Microsoft.NET.ToolPack.Tests (3)
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (2)
348additionalProperty: new Dictionary<string, string>() 372additionalProperty: new Dictionary<string, string>()
PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs (1)
28= new();
Microsoft.TemplateEngine.Cli (30)
Alias\AliasModel.cs (1)
11: this(new Dictionary<string, IReadOnlyList<string>>())
CliTemplateInfo.cs (1)
95Dictionary<string, CliTemplateParameter> parameters = new();
Commands\BaseCommand.cs (1)
132Dictionary<FilterOptionDefinition, Option> options = new();
Commands\BaseFilterableArgs.cs (1)
55Dictionary<FilterOptionDefinition, OptionResult> filterValues = new();
Commands\create\InvalidTemplateOptionResult.cs (1)
131Dictionary<string, ParameterChoice> validChoices = new();
Commands\create\TemplateCommand.cs (1)
26private Dictionary<string, TemplateOption> _templateSpecificOptions = new();
Commands\create\TemplateCommandArgs.cs (1)
12private Dictionary<string, OptionResult> _templateOptions = new();
Commands\NewCommand.Legacy.cs (2)
45internal IReadOnlyDictionary<FilterOptionDefinition, Option> LegacyFilters { get; private set; } = new Dictionary<FilterOptionDefinition, Option>(); 142Dictionary<FilterOptionDefinition, Option> options = new();
Help\HelpBuilder.cs (1)
73_customizationsBySymbol ??= new();
HostSpecificTemplateData.cs (4)
19var symbolsInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>(); 41var symbolProperties = new Dictionary<string, string>(); 115Dictionary<string, string> map = new(); 133Dictionary<string, string> map = new();
NuGet\NugetApiManager.cs (1)
28_sourceRepositories = new Dictionary<PackageSource, SourceRepository>();
TabularOutput\TabularOutput.cs (2)
78Dictionary<int, int> columnWidthLookup = new(); 364private readonly IDictionary<TextAlign, Func<string, int, StringBuilder, StringBuilder>> _alignRules = new Dictionary<TextAlign, Func<string, int, StringBuilder, StringBuilder>>()
TemplateInvoker.cs (1)
84new Dictionary<string, string?>
TemplatePackageCoordinator.cs (3)
193TelemetryEventEntry.TrackEvent(TelemetryConstants.InstallEvent, new Dictionary<string, string?> { { TelemetryConstants.ToInstallCount, args.TemplatePackages.Count.ToString() } }); 195var details = new Dictionary<string, string>(); 663var packagesToUninstall = new Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>();
TemplatePackageDisplay.cs (1)
23private readonly IReadOnlyDictionary<int, string> _vulnerabilitySeverityToColorMap = new Dictionary<int, string>
TemplateResolution\TemplateGroupMatchInfo.cs (1)
266Dictionary<string, ParameterChoice> validChoices = new();
TemplateResolution\TemplateResolutionResult.cs (1)
263Dictionary<string, string?> parameterList = new();
TemplateSearch\CliHostSearchCacheData.cs (1)
29Dictionary<string, HostSpecificTemplateData> cliData = new();
TemplateSearch\CliSearchFiltersFactory.cs (2)
19Dictionary<string, string?> filterData = new(); 100Dictionary<string, HostSpecificTemplateData> hostSpecificData = new();
TemplateSearch\CliTemplateSearchCoordinatorFactory.cs (1)
14Dictionary<string, Func<object, object>> dataReaders = new()
WideTable.cs (1)
18_lookup = new Dictionary<Unicode, uint[,]>();
ZeroTable.cs (1)
18_lookup = new Dictionary<Unicode, uint[,]>();
Microsoft.TemplateEngine.Cli.UnitTests (74)
CliTestHostFactory.cs (2)
69HostParamDefaults = new Dictionary<string, string>(); 78internal Dictionary<string, string> HostParamDefaults { get; set; } = new Dictionary<string, string>();
HostDataLoaderTests.cs (8)
119var symbolInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>() 123new Dictionary<string, string>() 132new Dictionary<string, string>() 141new Dictionary<string, string>() 162var symbolInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>() 166new Dictionary<string, string>() 175new Dictionary<string, string>() 184new Dictionary<string, string>()
ParserTests\HelpTests.cs (2)
418new Dictionary<string, IReadOnlyDictionary<string, string>>() 421"Choice", new Dictionary<string, string>()
ParserTests\HelpTests.Resolution.cs (2)
75var defaultParams = new Dictionary<string, string> 105var defaultParams = new Dictionary<string, string>
ParserTests\InstantiateTests.cs (6)
31private readonly IReadOnlyDictionary<string, IReadOnlyList<MockTemplateInfo>> _testSets = new Dictionary<string, IReadOnlyList<MockTemplateInfo>>() 217var defaultParams = new Dictionary<string, string>(); 604var defaultParams = new Dictionary<string, string>() 632var defaultParams = new Dictionary<string, string>() 662var defaultParams = new Dictionary<string, string>() 692var defaultParams = new Dictionary<string, string>()
ParserTests\InstantiateTests.Subcommand.cs (1)
41var defaultParams = new Dictionary<string, string>();
ParserTests\ListTests.cs (1)
12private static readonly Dictionary<string, FilterOptionDefinition> _stringToFilterDefMap = new()
ParserTests\MiscTests.cs (3)
68Dictionary<string, Func<GlobalArgs, bool>> optionsMap = new() 98Dictionary<string, Func<GlobalArgs, bool>> optionsMap = new() 128Dictionary<string, Func<GlobalArgs, bool>> optionsMap = new()
ParserTests\SearchTests.cs (1)
12private static Dictionary<string, FilterOptionDefinition> _stringToFilterDefMap = new()
ParserTests\TemplateCommandTests.cs (2)
24var paramSymbolInfo = new Dictionary<string, string>() 29var symbolInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>
PostActionDispatcherTests.cs (7)
294Args = new Dictionary<string, string>() 326Args = new Dictionary<string, string>() 357Args = new Dictionary<string, string>() 390Args = new Dictionary<string, string>() 421Args = new Dictionary<string, string>() 460Args = new Dictionary<string, string>() 503Args = new Dictionary<string, string>()
PostActionTests\AddJsonPropertyPostActionTests.cs (12)
37Args = new Dictionary<string, string> 78Args = new Dictionary<string, string> 255Args = new Dictionary<string, string> 287Args = new Dictionary<string, string> 321Args = new Dictionary<string, string> 450new Dictionary<string, string> 465new Dictionary<string, string> 480new Dictionary<string, string> 502new Dictionary<string, string> 527new Dictionary<string, string> 541new Dictionary<string, string> 555new Dictionary<string, string>()
TelemetryHelperTests.cs (17)
22Dictionary<string, string?> parameterValues = new() 40Dictionary<string, string?> parameterValues = new() 56choices: new Dictionary<string, ParameterChoice>() 65Dictionary<string, string?> parameterValues = new() 81choices: new Dictionary<string, ParameterChoice>() 90Dictionary<string, string?> parameterValues = new() 106choices: new Dictionary<string, ParameterChoice>() 114Dictionary<string, string?> parameterValues = new() 130choices: new Dictionary<string, ParameterChoice>() 140Dictionary<string, string?> parameterValues = new() 164Dictionary<string, string?> parameterValues = new() 180choices: new Dictionary<string, ParameterChoice>() 190Dictionary<string, string?> parameterValues = new() 206choices: new Dictionary<string, ParameterChoice>() 216Dictionary<string, string?> parameterValues = new() 232choices: new Dictionary<string, ParameterChoice>() 242Dictionary<string, string?> parameterValues = new()
TemplatePackageCoordinatorTests.cs (2)
33.Returns(new Dictionary<string, string> 60.Returns(new Dictionary<string, string> { });
TemplateSearchCoordinatorTests.cs (8)
511Dictionary<string, PackToTemplateEntry> packToTemplateMap = new(); 532Dictionary<string, object> additionalData = new(); 536Dictionary<string, string> frameworkParamSymbolInfo = new() 543new Dictionary<string, IReadOnlyDictionary<string, string>>() 549Dictionary<string, HostSpecificTemplateData> cliHostData = new() 567Dictionary<string, string> frameworkParamSymbolInfo = new() 574new Dictionary<string, IReadOnlyDictionary<string, string>>() 580Dictionary<string, object> additionalData = new()
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
19_dict = New Dictionary(Of TKey, KeyInfo)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1568Private ReadOnly _dict As New Dictionary(Of T, LinkedListNode(Of T))
Microsoft.VisualStudio.LanguageServices (9)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
109var parameterNameOverlapMap = new Dictionary<string, List<ParameterViewModel>>();
Implementation\VsRefactorNotifyService.cs (1)
171var hierarchyToItemIDsMap = new Dictionary<IVsHierarchy, List<uint>>();
Interactive\VsInteractiveWindowProvider.cs (1)
164var interactiveCommandMap = new Dictionary<string, int>();
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
595var visitedAssemblies = new Dictionary<string, AssemblyIdentity>();
Options\VisualStudioOptionStorage.cs (1)
103public static readonly IReadOnlyDictionary<string, VisualStudioOptionStorage> Storages = new Dictionary<string, VisualStudioOptionStorage>()
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
127var specificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>();
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
470var latestDocumentDiagnosticsMap = filterStaleDiagnostics ? new Dictionary<DocumentId, ImmutableHashSet<DiagnosticData>>() : null;
Telemetry\CodeMarkerLogger.cs (2)
19= new() 114= new()
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
71ruleSetSpecificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>();
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Logging\VSCodeTelemetryLogger.cs (1)
151var kvp = new Dictionary<string, string>
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\AbstractCodeModelService.cs (1)
105var nameOrdinalMap = new Dictionary<string, int>();
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
74var commitCharactersCache = new Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>>();
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
71var documentToPreviousResultId = new Dictionary<Document, string?>();
Microsoft.WebTools.AspireService.Tests (1)
Mocks\Mocks.cs (1)
11private readonly Dictionary<Type, IMockFactory> _mockFactories = new();
MSBuild (6)
LogMessagePacketBase.cs (1)
279private static readonly Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
OutOfProcTaskHostNode.cs (1)
486Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties),
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (1)
207_globalParameters = globalParameters ?? new Dictionary<string, string>();
MSBuildTaskHost (10)
BinaryReaderExtensions.cs (1)
112data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (1)
640additionalEntries = new();
BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
Immutable\ImmutableDictionary.cs (1)
174_backing = new Dictionary<K, V>();
LogMessagePacketBase.cs (2)
273private static readonly Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 279private static readonly Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (1)
207_globalParameters = globalParameters ?? new Dictionary<string, string>();
OpenIdConnectSample (1)
Startup.cs (1)
253var pairs = new Dictionary<string, string>()
PresentationBuildTasks (17)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
177Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>(); 292Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
61_compatTable = new Dictionary<string,string>(); 62_compatTableReverse = new Dictionary<string,string>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>(); 909_knownNamespaces = new Dictionary<string, object>(); 1835_ignorables = new Dictionary<string, object>(); 1845_processContents = new Dictionary<string, ProcessContentSet>(); 1862_preserveElements = new Dictionary<string, PreserveItemSet>(); 1879_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2050_names = new Dictionary<string, string>(); 2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (32)
MS\Internal\DeferredElementTreeState.cs (2)
122private Dictionary<DependencyObject, DependencyObject> _oldCoreParents = new Dictionary<DependencyObject, DependencyObject>(); 123private Dictionary<DependencyObject, DependencyObject> _oldLogicalParents = new Dictionary<DependencyObject, DependencyObject>();
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
595_cmap = new Dictionary<int, ushort>();
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
41Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>();
MS\Internal\Ink\Renderer.cs (2)
186_visuals = new Dictionary<Stroke, StrokeVisual>(); 657_highlighters = new Dictionary<Color, HighlighterContainerVisual>();
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
250Dictionary<Edge, EdgeInfo> adjInformation = new Dictionary<Edge, EdgeInfo>();
MS\Internal\Shaping\TypefaceMap.cs (1)
38private IDictionary<CultureInfo, IntMap> _intMaps = new Dictionary<CultureInfo, IntMap>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
135_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
49_nodeLookup = new Dictionary<K, Node>();
System\Windows\Ink\StrokeCollection2.cs (1)
353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>();
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
172private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (3)
195private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 198new Dictionary<HidUsage, Guid>() 206new Dictionary<HidUsage, Guid>()
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (1)
63private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
112} = new Dictionary<PresentationSource, PointerStylusPlugInManager>();
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
27private static Dictionary<byte, short> _hidExponentMap = new Dictionary<byte, short>()
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
29private Dictionary<uint, PointerStylusDevice> _stylusDeviceMap = new Dictionary<uint, PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (2)
21private Dictionary<IntPtr, PointerTabletDevice> _tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>(); 77_tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
3733private Dictionary<StylusDeviceBase, RawStylusInputReport> _lastMovesQueued = new Dictionary<StylusDeviceBase, RawStylusInputReport>(); 3737private Dictionary<StylusDeviceBase, RawStylusInputReport> _coalescedMoves = new Dictionary<StylusDeviceBase, RawStylusInputReport>();
System\Windows\Media\FontEmbeddingManager.cs (1)
52glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>();
System\Windows\Media\HostVisual.cs (1)
557private Dictionary<DUCE.Channel, Dispatcher> _connectedChannels = new Dictionary<DUCE.Channel, Dispatcher>();
System\Windows\Media\Knowncolors.cs (1)
833private static Dictionary<uint, SolidColorBrush> s_solidColorBrushCache = new Dictionary<uint, SolidColorBrush>();
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
404Dictionary<char,bool> dict = new Dictionary<char,bool>();
System\Windows\Media\UniqueEventHelper.cs (1)
99_delegates = new Dictionary<TEventHandler, int>() { { handler, 1 } };
System\Windows\Media\Visual.cs (2)
825channelsToCyclicBrushMap = new Dictionary<DUCE.Channel, int>(); 856cyclicBrushToChannelsMap = new Dictionary<ICyclicBrush, int>();
System\Windows\Media3D\Visual3DCollection.cs (1)
540Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>();
PresentationFramework (85)
MS\Internal\Annotations\AnnotationMap.cs (1)
105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
553private static readonly Dictionary<Type, int> s_ZLevel = new(); 558private static readonly Dictionary<int, ZRange> s_ZRanges = new();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
288private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\ObservableDictionary.cs (1)
40_nameValues = new Dictionary<string, string>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
108Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 169Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 282private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\Annotations\XmlElementCollection.cs (1)
39_xmlDocsRefCounts = new Dictionary<XmlDocument, int>();
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
67s_xmlTokeFullNames = new Dictionary<XmlToken, string>(); 84_cachedXmlElements = new Dictionary<XmlToken, object>();
MS\Internal\Data\AccessorTable.cs (1)
167private readonly Dictionary<AccessorTableKey, AccessorInfo> _table = new Dictionary<AccessorTableKey, AccessorInfo>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
519_nameToGroupMap ??= new Dictionary<object, WeakReference>();
MS\Internal\Data\CommitManager.cs (1)
153: base()
MS\Internal\Data\DataBindEngine.cs (1)
696private Dictionary<ValueConverterTableKey, IValueConverter> _valueConverterTable = new Dictionary<ValueConverterTableKey, IValueConverter>();
MS\Internal\Ink\ClipboardProcessor.cs (2)
57_preferredClipboardData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>(); 263Dictionary<InkCanvasClipboardFormat, ClipboardData> preferredData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>();
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
101private static Dictionary<string, DllModule> _cache = new System.Collections.Generic.Dictionary<string, DllModule>();
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
12private static readonly Dictionary<Type, Type> CustomTypeToHelperTypeMappings = new Dictionary<Type, Type>(); 13private static readonly Dictionary<Type, Type> CustomAbiTypeToTypeMappings = new Dictionary<Type, Type>(); 14private static readonly Dictionary<string, Type> CustomAbiTypeNameToTypeMappings = new Dictionary<string, Type>(); 15private static readonly Dictionary<Type, string> CustomTypeToAbiTypeNameMappings = new Dictionary<Type, string>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
110Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> newChildren = new Dictionary<DateTimeCalendarModePair,DateTimeAutomationPeer>(); 654private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> _dataChildren = new Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer>(); 655private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
System\Windows\Controls\DataGrid.cs (1)
8624= new Dictionary<DataGridColumn, CellAutomationValueHolder>(); // Holds the content of edited cells. Required for raising Automation events.
System\Windows\Controls\DataGridColumnCollection.cs (2)
471Dictionary<int, int> assignedDisplayIndexMap = new Dictionary<int, int>(); // <DisplayIndex, ColumnIndex> 1465_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>();
System\Windows\Controls\DataGridHelper.cs (1)
436propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
57_itemStorageMap = new Dictionary<object, Dictionary<DependencyProperty, object>>(); 68map = new Dictionary<DependencyProperty, object>();
System\Windows\Data\BindingGroup.cs (1)
1538private Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
206_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 434_resultCache = new Dictionary<WeakReferenceKey<StaticResourceExtension>, WeakReference<ResourceDictionary>>();
System\Windows\Documents\DocumentSequence.cs (1)
654_asyncOps = new Dictionary<Object,GetPageAsyncRequest>();
System\Windows\Documents\FixedDocument.cs (2)
828_highlights = new Dictionary<FixedPage, ArrayList>(); 829_asyncOps = new Dictionary<Object, GetPageAsyncRequest>();
System\Windows\Documents\FixedDSBuilder.cs (1)
39_nameHashTable = new Dictionary<String, NameHashFixedNode>();
System\Windows\Documents\FixedTextView.cs (1)
236Dictionary<FixedPage, ArrayList> highlights = new Dictionary<FixedPage,ArrayList>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
640private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
38new Dictionary<string, SpellCheckerCreationHelper>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
52private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\Speller.cs (1)
419_uriMap = new Dictionary<Uri, DictionaryInfo>();
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
85private static readonly Dictionary<Actions, long> _timeLimits100Ns = new Dictionary<Actions, long> 153CumulativeCallTime100Ns = new Dictionary<Actions, long>(), 154NumCallsMeasured = new Dictionary<Actions, long>()
System\Windows\Documents\WinRTSpellerInterop.cs (2)
51_spellCheckers = new Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>>(); 52_customDictionaryFiles = new Dictionary<string, List<string>>();
System\Windows\FrameworkTemplate.cs (1)
1515private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
33private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 34private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 2737_freezeCache = new Dictionary<string, Freezable>();
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
44_namespaces = new Dictionary<string, string>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
658private readonly Dictionary<string, short[]> _bamlXmlnsMappings = new Dictionary<string, short[]>();
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
321_constructors = new Dictionary<int, Baml6ConstructorInfo>();
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
59private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
System\Windows\Markup\BamlReader.cs (1)
177_reverseXmlnsTable = new Dictionary<String, List<String>>();
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
140_dictionary = new Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource>();
System\Windows\Markup\ParserContext.cs (2)
702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 789_freezeCache = new Dictionary<string, Freezable>();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
85constructorArguments = new Dictionary<string, string>(); 688_keyTypeMap = new Dictionary<Type, Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
490Dictionary<string, string> writtenAttributes = new Dictionary<string, string>(); 1390_uriToPrefix = new Dictionary<string, string>(); 1392_prefixToUri = new Dictionary<string, string>(); 1550private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>(); 1551private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>(); 1564namespaceToUri = new Dictionary<string, string>();
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
38private static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>();
System\Windows\Markup\XamlTypeMapper.cs (2)
310Dictionary<string, string> newDict = new Dictionary<string, string>(); 4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
38_nsDefinitions = new Dictionary<string, FrugalObjectList<string>>(); 201_piNamespaces = new Dictionary<string, string>(); 311_allowedInternalTypes = new Dictionary<Type, XamlType>();
System\Windows\Markup\XmlnsCache.cs (2)
130_compatTable = new Dictionary<string, string>(); 131_compatTableReverse = new Dictionary<string, string>();
System\Windows\ResourceDictionary.cs (1)
1810this._weakDeferredResourceReferencesMap ??= new();
System\Windows\Shell\JumpList.cs (1)
252private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>();
System\Windows\Standard\MessageWindow.cs (1)
23private static readonly Dictionary<IntPtr, MessageWindow> s_windowLookup = new Dictionary<IntPtr, MessageWindow>();
System\Windows\SystemResources.cs (2)
1027_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>(); 1028_hwndNotifyHook = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapperHook>();
System\Windows\TemplateContent.cs (1)
1545_namedTypes = new Dictionary<string, XamlType>();
System\Windows\VisualStateManager.cs (2)
667Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 676Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>();
PresentationUI (8)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
573new Dictionary<Uri, WriteableOnDemandPackagePart>();
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
335new Dictionary<X509Certificate2, CertificatePriorityStatus>(); 391new Dictionary<Guid, XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
42_digSigSigResources = new Dictionary<SignatureResources, DigitalSignature>(); 213new Dictionary<X509Certificate2, CertificatePriorityStatus>();
MS\Internal\Documents\RightsManagementManager.cs (1)
48_userMap = new Dictionary<string, RightsManagementUser>();
MS\Internal\Documents\RightsManagementProvider.cs (2)
502new Dictionary<RightsManagementUser, IList<ContentGrant>>(); 682new Dictionary<RightsManagementUser, RightsManagementLicense>();
Publishers.AppHost (1)
Program.cs (1)
11builder.Configuration.AddCommandLine(args, new Dictionary<string, string> { ["--target"] = "Deployment:Target" });
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
15private readonly Dictionary<string, TestFileInfo> _content = new Dictionary<string, TestFileInfo>()
ReachFramework (71)
packaging\XpsDigitalSignature.cs (5)
65Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 315Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 364Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>(); 380relHash = new Dictionary<string, int>(); 422_optionalSignedTypes = new Dictionary<string, string>();
Packaging\XpsDocument.cs (1)
854Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> ();
Packaging\XpsFixedPageReaderWriter.cs (4)
470_colorContextCache = new Dictionary<Uri, XpsColorContext>(); 471_resourceDictionaryCache = new Dictionary<Uri, XpsResourceDictionary>(); 472_imageCache = new Dictionary<Uri, XpsImage>(); 473_resourceCache = new Dictionary<Uri, XpsResource>();
Packaging\XpsManager.cs (1)
171_packageCache = new Dictionary<Uri,int>();
Packaging\XpsResourcePolicy.cs (1)
310Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
PrintConfig\PrintSchemaShim.cs (3)
681private static IDictionary<short, PaperSourceOption> paperSourceOptions = new Dictionary<short, PaperSourceOption>() { 916private static IDictionary<uint, MediaTypeOption> mediaTypeOptions = new Dictionary<uint, MediaTypeOption>() { 1035private static IDictionary<short, OutputQualityOption> outputQualityOptions = new Dictionary<short, OutputQualityOption>() {
PrintConfig\PrtTicket_Public_Simple.cs (2)
250_setterCache = new Dictionary<CapabilityName, object>(); 274_setterCache = new Dictionary<CapabilityName, object>();
Serialization\Manager\ReachDocumentPageSerializer.cs (4)
45((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 50((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 69((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
51((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 137((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializer.cs (6)
61((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 63((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 68((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 98((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 100((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 105((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (6)
90((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 92((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 97((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 127((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 129((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 134((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializer.cs (6)
69((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 79((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>(); 109((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 114((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 119((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
106((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 111((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 141((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 146((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
42((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 44((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 49((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (2)
79((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 81((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>();
Serialization\Manager\ReachSerializationUtils.cs (5)
467_serializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 469_serializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 474_serializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 554_serializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 558_serializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
68_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 73_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
51_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 53_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 58_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (3)
68_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 70_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 75_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
77_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 82_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 87_xpsOMSerializationManager.ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMHierarchySimulator.cs (3)
75_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 77_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 82_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\TreeWalkProgress.cs (1)
43private IDictionary<ICyclicBrush, EmptyStruct> _cyclicBrushes = new Dictionary<ICyclicBrush, EmptyStruct>();
Serialization\VisualTreeFlattener.cs (1)
499_nameList = new Dictionary<String, int>();
Roslyn.Diagnostics.Analyzers (21)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
664var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1195var tokenToSourceMapping = new Dictionary<uint, PdbTokenLine>();
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\DataModel.cs (1)
27var features = new Dictionary<string, ActivityLevel>();
Roslyn.VisualStudio.Next.UnitTests (13)
Services\AssetProviderTests.cs (1)
51var assetSource = new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), new Dictionary<Checksum, object>() { { checksum, data } });
Services\PerformanceTrackerServiceTests.cs (1)
189var matrix = new Dictionary<string, double[]>();
Services\SolutionServiceTests.cs (11)
546var map = new Dictionary<Checksum, object>(); 587var map = new Dictionary<Checksum, object>(); 629var map = new Dictionary<Checksum, object>(); 662var map = new Dictionary<Checksum, object>(); 704var map = new Dictionary<Checksum, object>(); 744var map = new Dictionary<Checksum, object>(); 782var map = new Dictionary<Checksum, object>(); 815var map = new Dictionary<Checksum, object>(); 870var map = new Dictionary<Checksum, object>(); 939var map = new Dictionary<Checksum, object>(); 1274var map = new Dictionary<Checksum, object>();
RunTests (2)
ProcessTestExecutor.cs (1)
130var environmentVariables = new Dictionary<string, string>();
TestHistoryManager.cs (1)
83Dictionary<string, TimeSpan> testInfos = new();
rzc (1)
DefaultExtensionAssemblyLoader.cs (1)
31_loadedByIdentity = new Dictionary<AssemblyIdentity, Assembly>();
Sample (4)
artifacts\obj\Sample\Release\net10.0\generated\Microsoft.AspNetCore.OpenApi.SourceGenerators\Microsoft.AspNetCore.OpenApi.SourceGenerators.XmlCommentGenerator\OpenApiXmlCommentSupport.generated.cs (1)
71var cache = new Dictionary<string, XmlComment>();
Endpoints\MapSchemasEndpoints.cs (2)
29schemas.MapGet("/dictionary-of-ints", () => new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }); 30schemas.MapGet("/frozen-dictionary-of-ints", () => ImmutableDictionary.CreateRange(new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }));
Transformers\AddBearerSecuritySchemeTransformer.cs (1)
16var requirements = new Dictionary<string, IOpenApiSecurityScheme>
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
600_headers = new Dictionary<string, string>();
Shared.Tests (5)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
49var dictionary = new Dictionary<T, T>();
JsonSchemaExporter\TestTypes.cs (4)
515Value: new() { Name = "name", ExtensionData = new() { ["x"] = 42 } }, 827Value: new() { ["one"] = 1, ["two"] = 2, ["three"] = 3 }, 839Value: new() 862Value: new() { ["one"] = 1, ["two"] = "two", ["three"] = 3.14 },
SimpleWebSite (1)
Controllers\HomeController.cs (1)
10return new Dictionary<string, string> {
SocialSample (1)
Startup.cs (1)
322var pairs = new Dictionary<string, string>()
SocialWeather (2)
FormatterResolver.cs (2)
11= new Dictionary<string, Dictionary<Type, Type>>(); 24typeFormatters = _formatters[formatType] = new Dictionary<Type, Type>();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
49public static Dictionary<string, Func<ListenOptions>> ConnectionMiddlewareData { get; } = new Dictionary<string, Func<ListenOptions>>
Swaggatherer (1)
SwaggathererApplication.cs (1)
82var routesByPrecedence = new Dictionary<decimal, List<RouteEntry>>();
System.CodeDom (1)
System\CodeDom\Compiler\CompilerInfo.cs (1)
12internal readonly IDictionary<string, string> _providerOptions = new Dictionary<string, string>();
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (1)
164var controlParameters = new Dictionary<string, object?>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
213var propertyStoreItems = new Dictionary<string, PropertyStoreItem>();
System\ComponentModel\DataAnnotations\ValidationContext.cs (2)
97_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>(); 133_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>();
System.ComponentModel.Composition (20)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
120var metadata = new Dictionary<string, object?>();
System\ComponentModel\Composition\ContractNameServices.cs (1)
29private static Dictionary<Type, string> TypeIdentityCache => field ??= new();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
39private readonly Dictionary<ComposablePartDefinition, CatalogPart> _activatedParts = new Dictionary<ComposablePartDefinition, CatalogPart>();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (3)
259dictionary = new Dictionary<string, object?>(); 502metadata = new Dictionary<string, object?>(); 518metadata ??= new Dictionary<string, object?>();
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
756_assemblyCatalogs = new Dictionary<string, AssemblyCatalog>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (1)
36_exportersIndex = new Dictionary<string, List<ComposablePartDefinition>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (1)
42_importersIndex = new Dictionary<string, List<ComposablePartDefinition>>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (2)
105_importCache ??= new Dictionary<ImportDefinition, Export[]?>(); 174_importedDisposableExports ??= new Dictionary<ImportDefinition, List<IDisposable>>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
22private readonly Dictionary<string, WeakReferenceCollection<PartManager>> _partManagerIndex = new Dictionary<string, WeakReferenceCollection<PartManager>>();
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
69private static readonly Dictionary<Type, MetadataViewFactory> _metadataViewFactories = new Dictionary<Type, MetadataViewFactory>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (3)
175Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>(); 176Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>(); 240Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>();
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
25private static Dictionary<Type, Func<Export, object>?> CastSingleValueCache => field ??= new();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (3)
72value = new Dictionary<ImportDefinition, object?>(); 93value = new Dictionary<ImportDefinition, ImportingItem>(); 570_exportsCache ??= new Dictionary<int, ExportingMember>();
System.ComponentModel.Composition.Registration (3)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
123_importBuilders ??= new Dictionary<ParameterInfo, Action<ImportBuilder>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (2)
26private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 27private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
System.ComponentModel.TypeConverter (5)
System\ComponentModel\AttributeCollection.cs (1)
249s_defaultAttributes ??= new Dictionary<Type, Attribute?>();
System\ComponentModel\ComponentResourceManager.cs (1)
109_resourceSets = new Dictionary<CultureInfo, SortedList<string, object?>?>();
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
29private readonly Dictionary<RelationshipEntry, RelationshipEntry> _relationships = new Dictionary<RelationshipEntry, RelationshipEntry>();
System\ComponentModel\LicenseManager.LicenseInteropHelper.cs (1)
65private readonly Dictionary<string, string> _savedLicenseKeys = new Dictionary<string, string>();
System\ComponentModel\MemberDescriptor.cs (1)
345var map = new Dictionary<object, int>();
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (2)
19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 20private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
181_importBuilders ??= new Dictionary<ParameterInfo, Action<ImportConventionBuilder>>();
System.Composition.Hosting (3)
System\Composition\Hosting\Core\ExportDescriptorProvider.cs (1)
26protected static readonly IDictionary<string, object> NoMetadata = new ReadOnlyDictionary<string, object>(new Dictionary<string, object>());
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (1)
13private volatile Dictionary<CompositionContract, ExportDescriptor[]> _partDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>();
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
15private readonly Dictionary<CompositionContract, UpdateResult> _updateResults = new Dictionary<CompositionContract, UpdateResult>();
System.Composition.Runtime (1)
System\Composition\CompositionContext.cs (1)
181new Dictionary<string, object> { { ImportManyImportMetadataConstraintName, true } });
System.Composition.TypedParts (10)
System\Composition\Hosting\SinglePartExportDescriptorProvider.cs (1)
19Metadata = metadata ?? new Dictionary<string, object>();
System\Composition\TypedParts\ContractHelpers.cs (3)
50importMetadata ??= new Dictionary<string, object>(); 60importMetadata ??= new Dictionary<string, object>(); 75importMetadata ??= new Dictionary<string, object>();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
36private static readonly IDictionary<string, object> s_noMetadata = new Dictionary<string, object>(); 210var partMetadata = new Dictionary<string, object>();
System\Composition\TypedParts\Discovery\TypeInspector.cs (3)
16private static readonly IDictionary<string, object> s_noMetadata = new Dictionary<string, object>(); 57IDictionary<string, object> metadata = new Dictionary<string, object>(); 83IDictionary<string, object> metadata = new Dictionary<string, object>();
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
16private readonly Dictionary<CompositionContract, ICollection<DiscoveredExport>> _discoveredParts = new Dictionary<CompositionContract, ICollection<DiscoveredExport>>();
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElement.cs (1)
793s_perTypeValidators ??= new Dictionary<Type, ConfigurationValidatorBase>();
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434var parsetable = new Dictionary<string, string>();
System\Data\Common\DbConnectionOptions.cs (1)
39_parsetable = new Dictionary<string, string?>();
System\Data\DataColumnCollection.cs (1)
41_columnFromName = new Dictionary<string, DataColumn?>();
System\Data\DataView.cs (1)
911_findIndexes ??= new Dictionary<string, Index>();
System\Data\XMLSchema.cs (1)
687_tableDictionary = new Dictionary<DataTable, List<DataTable>>();
System.Data.Odbc (3)
Common\System\Data\Common\DbConnectionOptions.cs (1)
47_parsetable = new Dictionary<string, string?>();
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434var parsetable = new Dictionary<string, string>();
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (1)
31_connectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>();
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (1)
1137Interlocked.CompareExchange(ref _customProperties, new Dictionary<string, object>(), null);
System\Diagnostics\Metrics\AggregationManager.cs (1)
27private Dictionary<Instrument, bool> _instruments = new();
System\Diagnostics\Metrics\Meter.cs (1)
20private Dictionary<string, List<Instrument>> _nonObservableInstrumentsCache = new();
System\Diagnostics\Metrics\MeterListener.cs (1)
271callbacksArguments = new Dictionary<Instrument, object?>();
System.Diagnostics.Process (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
87new Dictionary<int, ProcessWaitState>(); 93new Dictionary<int, ProcessWaitState>();
System.Drawing.Common (1)
System\Drawing\Gdiplus.cs (1)
18internal static IDictionary<object, object> ThreadData => t_threadData ??= new Dictionary<object, object>();
System.Drawing.Common.Tests (1)
System\Drawing\Printing\MarginsConverterTests.cs (1)
49IDictionary values = new Dictionary<string, int>
System.Formats.Nrbf (1)
System\Formats\Nrbf\RecordMap.cs (1)
14private readonly Dictionary<SerializationRecordId, SerializationRecord> _map = new();
System.Formats.Tar (4)
System\Formats\Tar\TarHeader.cs (2)
78internal Dictionary<string, string> ExtendedAttributes => _ea ??= new Dictionary<string, string>(); 131_ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarWriter.Unix.cs (2)
15private readonly Dictionary<uint, string> _userIdentifiers = new Dictionary<uint, string>(); 16private readonly Dictionary<uint, string> _groupIdentifiers = new Dictionary<uint, string>();
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
190_entriesDictionary = new Dictionary<string, ZipArchiveEntry>();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
281private readonly Dictionary<int, WatchedDirectory> _wdToPathMap = new Dictionary<int, WatchedDirectory>();
System.IO.Packaging (11)
System\IO\Packaging\ContentType.cs (2)
144(_parameterDictionary ??= new Dictionary<string, string>()).GetEnumerator(); 335(_parameterDictionary ??= new Dictionary<string, string>()).Add(
System\IO\Packaging\XmlCompatibilityReader.cs (9)
820_subsumingNamespaces ??= new Dictionary<string, object?>(); 846_knownNamespaces ??= new Dictionary<string, object?>(); 1647_ignorables ??= new Dictionary<string, object?>(); 1653_processContents ??= new Dictionary<string, ProcessContentSet>(); 1665_preserveElements ??= new Dictionary<string, PreserveItemSet>(); 1677_preserveAttributes ??= new Dictionary<string, PreserveItemSet>(); 1833private readonly Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 1835private readonly Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 1836private readonly Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
236private static readonly Dictionary<string, SharedServer> s_servers = new Dictionary<string, SharedServer>();
System.Linq.Expressions (25)
System\Dynamic\ExpandoClass.cs (1)
92_transitions ??= new Dictionary<int, List<WeakReference>>();
System\Linq\Expressions\Compiler\AnalyzedTree.cs (2)
10internal readonly Dictionary<object, CompilerScope> Scopes = new Dictionary<object, CompilerScope>(); 11internal readonly Dictionary<LambdaExpression, BoundConstants> Constants = new Dictionary<LambdaExpression, BoundConstants>();
System\Linq\Expressions\Compiler\BoundConstants.cs (2)
65private readonly Dictionary<TypedConstant, int> _references = new Dictionary<TypedConstant, int>(); 70private readonly Dictionary<TypedConstant, LocalBuilder> _cache = new Dictionary<TypedConstant, LocalBuilder>();
System\Linq\Expressions\Compiler\CompilerScope.cs (2)
64internal readonly Dictionary<ParameterExpression, VariableStorageKind> Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(); 94private readonly Dictionary<ParameterExpression, Storage> _locals = new Dictionary<ParameterExpression, Storage>();
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
72curTypeInfo.TypeChain ??= new Dictionary<Type, TypeInfo>();
System\Linq\Expressions\Compiler\KeyedStack.cs (1)
14private readonly Dictionary<TKey, Stack<TValue>> _data = new Dictionary<TKey, Stack<TValue>>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
384_labels ??= new Dictionary<LabelTarget, LabelInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
49private readonly Dictionary<LabelTarget, LabelInfo> _labelInfo = new Dictionary<LabelTarget, LabelInfo>();
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
222referenceScope.ReferenceCount ??= new Dictionary<ParameterExpression, int>();
System\Linq\Expressions\DebugViewWriter.cs (1)
80ids = new Dictionary<T, int>();
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
38_ids ??= new Dictionary<object, int>();
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
851private static readonly Dictionary<FieldInfo, Instruction> s_loadFields = new Dictionary<FieldInfo, Instruction>();
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
1634var caseDict = new Dictionary<T, int>(); 1676var caseDict = new Dictionary<string, int>(); 2775var mapping = new Dictionary<ParameterExpression, LocalVariable>(); 2788private readonly Dictionary<ParameterExpression, int> _definedParameters = new Dictionary<ParameterExpression, int>();
System\Linq\Expressions\Interpreter\LightLambda.cs (3)
39private readonly Dictionary<int, int> _tryStart = new Dictionary<int, int>(); 40private readonly Dictionary<int, string> _handlerEnter = new Dictionary<int, string>(); 41private readonly Dictionary<int, int> _handlerExit = new Dictionary<int, int>();
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
160_closureVariables ??= new Dictionary<ParameterExpression, LocalVariable>();
System\Linq\Expressions\Interpreter\Utilities.cs (1)
321_dict = new Dictionary<TKey, TValue>();
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
205Interlocked.CompareExchange(ref Cache, new Dictionary<Type, object>(), null);
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
152_equivalentTypeCache ??= new Dictionary<Type, Type> 422_targetCache = new Dictionary<LabelTarget, LabelTarget>();
System.Net.Http (6)
System\Net\Http\HttpRequestOptions.cs (1)
17private Dictionary<string, object?> Options { get; } = new Dictionary<string, object?>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
827altSvcBlocklist = new Dictionary<HttpAuthority, Exception?>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
144_httpStreams = new Dictionary<int, Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
29private readonly Dictionary<QuicStream, Http3RequestStream> _activeRequests = new Dictionary<QuicStream, Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (1)
25_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>();
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
433_settings._properties ??= new Dictionary<string, object?>();
System.Net.HttpListener (5)
System\Net\Managed\HttpEndPointListener.cs (1)
72_prefixes = new Dictionary<ListenerPrefix, HttpListener>();
System\Net\Managed\HttpEndPointManager.cs (2)
40private static readonly Dictionary<IPAddress, Dictionary<int, HttpEndPointListener>> s_ipEndPoints = new Dictionary<IPAddress, Dictionary<int, HttpEndPointListener>>(); 144p = new Dictionary<int, HttpEndPointListener>();
System\Net\Managed\HttpListener.Managed.cs (2)
15private readonly Dictionary<HttpListenerContext, HttpListenerContext> _listenerContexts = new Dictionary<HttpListenerContext, HttpListenerContext>(); 18private readonly Dictionary<HttpConnection, HttpConnection> _connections = new Dictionary<HttpConnection, HttpConnection>();
System.Net.Mail (7)
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
11private readonly Dictionary<object, NetworkCredential> _sessions = new Dictionary<object, NetworkCredential>();
System\Net\Mail\SmtpNegotiateAuthenticationModule.cs (1)
15private readonly Dictionary<object, NegotiateAuthentication> _sessions = new Dictionary<object, NegotiateAuthentication>();
System\Net\Mail\SmtpNtlmAuthenticationModule.cs (1)
12private readonly Dictionary<object, NegotiateAuthentication> _sessions = new Dictionary<object, NegotiateAuthentication>();
System\Net\Mime\ContentDisposition.cs (1)
43new Dictionary<string, TrackingValidationObjectDictionary.ValidateAndParseValue>() {
System\Net\Mime\SmtpDateTime.cs (1)
62internal static readonly Dictionary<string, TimeSpan> s_timeZoneOffsetLookup = new Dictionary<string, TimeSpan>()
System\Net\TrackingValidationObjectDictionary.cs (2)
66_internalObjects ??= new Dictionary<string, object>(); 136_internalObjects ??= new Dictionary<string, object>();
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
712private static readonly Dictionary<object, Task> s_tasks = new Dictionary<object, Task>();
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
14new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(); 18new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>();
System.Net.Primitives (2)
System\Net\CredentialCache.cs (2)
44_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>(); 70_cacheForHosts ??= new Dictionary<CredentialHostKey, NetworkCredential>();
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
162_sslSessions = new Dictionary<string, IntPtr>();
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
25private static readonly Dictionary<IntPtr, Delegate> s_delegates = new Dictionary<IntPtr, Delegate>();
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
64Interlocked.CompareExchange(ref s_dataStore, new Dictionary<string, object?>(), null); 159Interlocked.CompareExchange(ref s_switches, new Dictionary<string, bool>(), null);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
34public static ReadOnlyDictionary<TKey, TValue> Empty { get; } = new ReadOnlyDictionary<TKey, TValue>(new Dictionary<TKey, TValue>());
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
72_metadata ??= new Dictionary<string, string?>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (13)
2687commandArgs.Arguments ??= new Dictionary<string, string?>(); 3172eventData = new Dictionary<int, EventMetadata>(); 3664eventsByName ??= new Dictionary<string, string>(); 3916private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3918private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 4526Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>(); 5340opcodeTab = new Dictionary<int, string>(); 5341stringTab = new Dictionary<string, string>(); 5343perEventByteArrayArgIndices = new Dictionary<string, List<int>>(); 5379taskTab ??= new Dictionary<int, string>(); 5402keywordTab ??= new Dictionary<ulong, string>(); 5546mapsTab ??= new Dictionary<string, Type>(); 5944taskTab ??= new Dictionary<int, string>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
143Dictionary<Type, TraceLoggingTypeInfo> cache = threadCache ??= new Dictionary<Type, TraceLoggingTypeInfo>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
51private static readonly Dictionary<char, string> seq_mapping = new Dictionary<char, string>()
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
961private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
447var newTable = new Dictionary<string, CultureData>(); 683var newTable = new Dictionary<string, CultureData>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
1127cache = new Dictionary<string, CultureInfo>(); 1142cache = new Dictionary<int, CultureInfo>();
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
22private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 23private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (3)
179_resourceSets = new Dictionary<string, ResourceSet>(); 246_resourceSets = new Dictionary<string, ResourceSet>(); 294_resourceSets = new Dictionary<string, ResourceSet>();
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
30_table = new Dictionary<object, object?>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
23return new Dictionary<int, List<Token>>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (2)
313private readonly Dictionary<int, DelayedType> _lazyData = new(); 367private readonly Dictionary<int, DelayedTypeCollection> _lazyData = new();
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
39Interlocked.CompareExchange(ref s_allContexts, new Dictionary<long, WeakReference<AssemblyLoadContext>>(), null) ??
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
43_nameToIndex = new Dictionary<string, int>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
74_children = new Dictionary<char, int>();
src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
102Dictionary<int, EncodingInfo> result = new Dictionary<int, EncodingInfo>();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
189Interlocked.CompareExchange(ref s_currentActiveTasks, new Dictionary<int, Task>(), null) ??
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
683nameToSlotMap = new Dictionary<string, LocalDataStoreSlot>();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
615private readonly Dictionary<int, bool> _usedIdToTracksAllValuesMap = new Dictionary<int, bool>();
src\System\GC.CoreCLR.cs (1)
919Configurations = new Dictionary<string, object>()
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
71_typeBuilderDict = new Dictionary<string, Type>();
src\System\RuntimeType.CoreCLR.cs (2)
1148new Dictionary<string, RuntimeEventInfo>(); 1258new Dictionary<string, List<RuntimePropertyInfo>>();
System.Private.CoreLib.Generators (4)
NativeRuntimeEventSourceGenerator.cs (4)
239var templateDict = new Dictionary<string, XElement>(); 390private static readonly Dictionary<string, string> manifestsToGenerate = new() 395private static readonly Dictionary<string, string> providerNameToClassNameMap = new() 400private static readonly Dictionary<string, string> manifestTypeToCSharpTypeMap = new()
System.Private.DataContractSerialization (33)
System\Runtime\Serialization\ClassDataContract.cs (3)
802Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1220_knownDataContracts ??= new DataContractDictionary(); 1361boundContracts ??= new Dictionary<DataContract, DataContract>();
System\Runtime\Serialization\CollectionDataContract.cs (2)
708_knownDataContracts ??= new DataContractDictionary(); 1401boundContracts ??= new Dictionary<DataContract, DataContract>();
System\Runtime\Serialization\DataContract.cs (6)
613s_nameToBuiltInContract ??= new Dictionary<XmlQualifiedName, DataContract?>(); 636s_typeNameToBuiltInContract ??= new Dictionary<string, DataContract?>(); 928s_clrTypeStrings = new Dictionary<string, XmlDictionaryString>(); 1960Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2053knownDataContracts ??= new DataContractDictionary(); 2079nameToDataContractTable = new DataContractDictionary();
System\Runtime\Serialization\DataContractSet.cs (4)
58_contracts ??= new DataContractDictionary(); 61_processedContracts ??= new Dictionary<DataContract, object>(); 317_referencedTypesDictionary = new Dictionary<XmlQualifiedName, object>(); 341_referencedCollectionTypesDictionary = new Dictionary<XmlQualifiedName, object>();
System\Runtime\Serialization\EnumDataContract.cs (3)
78private static readonly Dictionary<Type, XmlQualifiedName> s_typeToName = new Dictionary<Type, XmlQualifiedName>(); 79private static readonly Dictionary<XmlQualifiedName, Type> s_nameToType = new Dictionary<XmlQualifiedName, Type>(); 219Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>();
System\Runtime\Serialization\HybridObjectCache.cs (2)
22_objectDictionary ??= new Dictionary<string, object?>(); 36_referencedObjectDictionary ??= new Dictionary<string, object?>();
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
291_knownDataContracts ??= new DataContractDictionary(); 317private static readonly Dictionary<DataContract, JsonReadWriteDelegates> s_jsonDelegates = new Dictionary<DataContract, JsonReadWriteDelegates>();
System\Runtime\Serialization\ObjectReferenceStack.cs (1)
36_objectDictionary ??= new Dictionary<object, object?>();
System\Runtime\Serialization\ReflectionReader.cs (1)
503object newGenericDict = new Dictionary<object, object>();
System\Runtime\Serialization\SchemaImporter.cs (3)
186Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 224DataContractDictionary knownDataContracts = new DataContractDictionary(); 242SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary();
System\Runtime\Serialization\XmlDataContract.cs (1)
198_knownDataContracts ??= new DataContractDictionary();
System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
193DataContractDictionary dataContracts = new DataContractDictionary(); 194Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>();
System\Xml\XmlBinaryReaderSession.cs (1)
35_stringDict ??= new Dictionary<int, XmlDictionaryString>();
System\Xml\XmlBinaryWriterSession.cs (1)
183_dictionary = new Dictionary<K, V>();
System\Xml\XmlDictionary.cs (1)
26_lookup = new Dictionary<string, XmlDictionaryString>();
System.Private.Xml (73)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
347_namespaces = new Dictionary<string, NamespaceDecl>(); 1815Dictionary<string, string> nstable = new Dictionary<string, string>();
System\Xml\Core\QueryOutputWriter.cs (1)
59_lookupCDataElems = new Dictionary<XmlQualifiedName, int>();
System\Xml\Core\QueryOutputWriterV1.cs (1)
73_lookupCDataElems = new Dictionary<XmlQualifiedName, XmlQualifiedName?>();
System\Xml\Core\XmlSubtreeReader.cs (1)
1218return new Dictionary<string, string>();
System\Xml\Core\XmlTextWriter.cs (1)
1537_nsHashtable = new Dictionary<string, int>();
System\Xml\Core\XmlWellFormedWriter.cs (2)
1765_nsHashtable = new Dictionary<string, int>(); 2119_attrHashTable ??= new Dictionary<string, int>();
System\Xml\Dom\XmlNodeReader.cs (1)
987Dictionary<string, string> dict = new Dictionary<string, string>();
System\Xml\Schema\ContentValidator.cs (3)
50_names = new Dictionary<XmlQualifiedName, int>(); 117_wildcards ??= new Dictionary<string, int>(); 1445Dictionary<BitSet, int> stateTable = new();
System\Xml\Schema\DtdParser.cs (1)
1352_undeclaredNotations ??= new Dictionary<string, UndeclaredNotation>();
System\Xml\Schema\SchemaElementDecl.cs (2)
13private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attdefs = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 22private readonly Dictionary<XmlQualifiedName, XmlQualifiedName> _prohibitedAttributes = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
System\Xml\Schema\SchemaInfo.cs (8)
27private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 28private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 38private readonly Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>(); 39private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 42private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 74_generalEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>(); 77_parameterEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>(); 101_notations ??= new Dictionary<string, SchemaNotation>();
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
12private readonly Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>();
System\Xml\Serialization\CodeGenerator.cs (4)
93_freeLocals = new Dictionary<(Type, string), Queue<LocalBuilder>>(); 94_argList = new Dictionary<string, ArgBuilder>(); 149private readonly Dictionary<Type, LocalBuilder> _tmpLocals = new Dictionary<Type, LocalBuilder>(); 1563_locals = new Dictionary<string, LocalBuilder>();
System\Xml\Serialization\Compilation.cs (4)
442var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 513var serializers = new Dictionary<string, string>(); 693private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 728: new Dictionary<TempAssemblyCacheKey, TempAssembly>();
System\Xml\Serialization\Models.cs (2)
21private readonly Dictionary<Type, TypeModel> _models = new Dictionary<Type, TypeModel>(); 22private readonly Dictionary<Type, TypeModel> _arrayModels = new Dictionary<Type, TypeModel>();
System\Xml\Serialization\NameTable.cs (1)
41private readonly Dictionary<NameKey, object?> _table = new Dictionary<NameKey, object?>();
System\Xml\Serialization\Types.cs (1)
1217replaceList ??= new Dictionary<string, MemberInfo>();
System\Xml\Serialization\XmlAttributeOverrides.cs (2)
19private readonly Dictionary<Type, Dictionary<string, XmlAttributes?>> _types = new Dictionary<Type, Dictionary<string, XmlAttributes?>>(); 37members = new Dictionary<string, XmlAttributes?>();
System\Xml\Serialization\XmlSerializationILGen.cs (4)
19private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>(); 21private readonly Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 23internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 25internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
23private readonly Dictionary<string, string> _idNames = new Dictionary<string, string>(); 25private readonly Dictionary<string, FieldBuilder> _idNameFields = new Dictionary<string, FieldBuilder>(); 28internal Dictionary<string, EnumMapping> Enums => field ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (2)
711typedMappingTable = s_xmlSerializerTable.GetOrCreateValue(type, _ => new Dictionary<XmlSerializerMappingKey, XmlSerializer>()); 715var pendingKeys = new Dictionary<XmlSerializerMappingKey, int>();
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
103private Dictionary<string, XmlQualifiedName> NamespacesInternal => _namespaces ??= new Dictionary<string, XmlQualifiedName>();
System\Xml\XPath\XPathDocument.cs (2)
387_mapNmsp ??= new Dictionary<XPathNodeRef, XPathNodeRef>(); 417_idValueMap ??= new Dictionary<string, XPathNodeRef>();
System\Xml\XPath\XPathNavigator.cs (1)
481Dictionary<string, string> dict = new Dictionary<string, string>();
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
20private readonly Dictionary<T, int> _lookup = new Dictionary<T, int>();
System\Xml\Xsl\QIL\QilVisitor.cs (1)
439private readonly Dictionary<QilNode, bool> _visitedRef = new Dictionary<QilNode, bool>();
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
26_table = new Dictionary<XmlExtensionFunction, XmlExtensionFunction>();
System\Xml\Xsl\Runtime\XmlILIndex.cs (1)
24_table = new Dictionary<string, XmlQueryNodeSequence>();
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
55private readonly Dictionary<string, string> _usedPrefixes = new Dictionary<string, string>(); //The prefies that used in the current scope
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
165_decimalFormats ??= new Dictionary<XmlQualifiedName, DecimalFormat>();
System\Xml\Xsl\Xslt\Compiler.cs (5)
55public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>(); 56public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>(); 57public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>(); 58public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>(); 60private readonly Dictionary<string, int> _moduleOrder = new Dictionary<string, int>();
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
261public Dictionary<QilName, List<Pattern>> FixedNamePatterns = new Dictionary<QilName, List<Pattern>>();
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
579paramToTemplate = new Dictionary<VarPar, Template>(); 580paramToFunction = new Dictionary<VarPar, QilFunction>();
System\Xml\Xsl\Xslt\Scripts.cs (1)
51private readonly Dictionary<string, Type?> _backingDictionary = new Dictionary<string, Type?>();
System\Xml\Xsl\Xslt\Stylesheet.cs (4)
21public Dictionary<QilName, XslFlags> ModeFlags = new Dictionary<QilName, XslFlags>(); 23public Dictionary<QilName, List<QilFunction>> ApplyFunctions = new Dictionary<QilName, List<QilFunction>>(); 33public Dictionary<QilName, AttributeSet>? AttributeSets = new Dictionary<QilName, AttributeSet>(); 47public Dictionary<QilName, List<TemplateMatch>> TemplateMatches = new Dictionary<QilName, List<TemplateMatch>>();
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (3)
40private Dictionary<Template, Stylesheet>? _fwdApplyImportsGraph = new Dictionary<Template, Stylesheet>(); 41private Dictionary<QilName, List<ProtoTemplate>>? _revApplyTemplatesGraph = new Dictionary<QilName, List<ProtoTemplate>>(); 47private readonly Dictionary<ModeName, VarPar> _applyTemplatesParams = new Dictionary<ModeName, VarPar>();
System.Reflection.DispatchProxy (4)
System\Reflection\DispatchProxyGenerator.cs (4)
109private readonly Dictionary<Type, Dictionary<Type, GeneratedTypeInfo>> _baseTypeAndInterfaceToGeneratedProxyType = new Dictionary<Type, Dictionary<Type, GeneratedTypeInfo>>(); 153interfaceToProxy = new Dictionary<Type, GeneratedTypeInfo>(); 322var propertyMap = new Dictionary<MethodInfo, PropertyAccessorInfo>(); 332var eventMap = new Dictionary<MethodInfo, EventAccessorInfo>();
System.Reflection.Emit (7)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
35private Dictionary<SymbolDocumentWriter, List<SequencePoint>> _documentToSequencePoints = new();
System\Reflection\Emit\ModuleBuilderImpl.cs (5)
22private readonly Dictionary<Assembly, AssemblyReferenceHandle> _assemblyReferences = new(); 23private readonly Dictionary<Type, EntityHandle> _typeReferences = new(); 24private readonly Dictionary<object, EntityHandle> _memberReferences = new(); 29private Dictionary<SymbolDocumentWriter, DocumentHandle> _docHandles = new(); 668_moduleReferences ??= new Dictionary<string, ModuleReferenceHandle>();
System\Reflection\Emit\TypeBuilderImpl.cs (1)
311_methodOverrides ??= new();
System.Reflection.Metadata (7)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
50private readonly Dictionary<Guid, GuidHandle> _guids = new Dictionary<Guid, GuidHandle>();
System\Reflection\Metadata\Internal\NamespaceCache.cs (3)
114var namespaceBuilderTable = new Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder>(); 140var namespaceTable = new Dictionary<NamespaceDefinitionHandle, NamespaceData>(); 169var namespaces = new Dictionary<string, NamespaceDataBuilder>();
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
43_blobs = new Dictionary<uint, PinnedBlob>();
System\Reflection\Metadata\MetadataReader.cs (2)
1439var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1469var nestedTypesMap = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>();
System.Runtime.Caching (3)
System\Runtime\Caching\MemoryCache.cs (2)
497Dictionary<string, object> h = new Dictionary<string, object>(); 794values ??= new Dictionary<string, object>();
System\Runtime\Caching\MemoryCacheEntry.cs (1)
167_fields._dependents ??= new Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor>();
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationObjectManager.cs (1)
21_objectSeenTable = new Dictionary<object, object>();
System.Runtime.Serialization.Schema (6)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
47_namespaces = new Dictionary<string, string>(); 226ExportClassDataContractHierarchy(dataContract.XmlName, dataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object?>()); 927return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>()); 987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 1612Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System\Runtime\Serialization\Schema\ImportOptions.cs (1)
56public IDictionary<string, string> Namespaces => field ??= new Dictionary<string, string>();
System.Security.Claims (2)
System\Security\Claims\Claim.cs (2)
265_properties = new Dictionary<string, string>(); 344public IDictionary<string, string> Properties => _properties ??= new Dictionary<string, string>();
System.Security.Cryptography (11)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\OidLookup.cs (1)
105new Dictionary<string, string>
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
18private readonly Dictionary<CoseHeaderLabel, CoseHeaderValue> _headerParameters = new Dictionary<CoseHeaderLabel, CoseHeaderValue>();
System.Security.Cryptography.Pkcs (11)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
17new Dictionary<string, CmsSignature>();
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpTransportSecurityHelpers.cs (1)
18private static Dictionary<string, int> s_targetNameCounter = new Dictionary<string, int>();
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\ConnectionPool.cs (3)
31_endpointPools = new Dictionary<TKey, EndpointConnectionPool>(); 682readonly Dictionary<Uri, string> _forwardTable = new Dictionary<Uri, string>(); 683readonly Dictionary<string, ICollection<Uri>> _reverseTable = new Dictionary<string, ICollection<Uri>>();
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
17_registry = new Dictionary<string, List<ConnectionPool>>();
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
106_connectionMapping = new Dictionary<TItem, IdlingConnectionSettings>();
System.ServiceModel.Primitives (33)
Internals\System\Runtime\GeneratedXmlSerializers.cs (1)
12private static Dictionary<string, Type> s_generatedSerializers = new Dictionary<string, Type>();
Internals\System\Runtime\MruCache.cs (1)
61_items = new Dictionary<TKey, CacheEntry>();
Internals\System\Xml\XmlMtomReader.cs (4)
452_mimeParts = new Dictionary<string, MimePart>(); 2227private Dictionary<string, MimeHeader> headers = new Dictionary<string, MimeHeader>(); 2406parameters = new Dictionary<string, string>(); 2417parameters = new Dictionary<string, string>();
System\IdentityModel\CryptoHelper.cs (1)
21private static Dictionary<string, Func<object>> s_algorithmDelegateDictionary = new Dictionary<string, Func<object>>();
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
23_properties = new Dictionary<string, object>();
System\IdentityModel\SecurityUtils.cs (1)
332Dictionary<string, object> properties = new Dictionary<string, object>();
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
33_properties = new Dictionary<string, object>();
System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
139Dictionary<string, int> myHeaders = new Dictionary<string, int>(); 142Dictionary<string, int> otherHeaders = new Dictionary<string, int>();
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
61items = new Dictionary<Int64, ItemType>();
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
480private Dictionary<IReliableChannelBinder, TState> _faultList = new Dictionary<IReliableChannelBinder, TState>();
System\ServiceModel\Channels\SecurityBindingElement.cs (4)
44_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 45_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 64_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 70_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>();
System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
190Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>();
System\ServiceModel\Description\TypeLoader.cs (2)
52_contracts = new Dictionary<Type, ContractDescription>(); 53_messages = new Dictionary<Type, MessageDescriptionItems>();
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
752_xmlMappings = new Dictionary<string, XmlMembersMapping>();
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
36_operations = new Dictionary<string, ProxyOperationRuntime>();
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
42_operationMap = new Dictionary<IntPtr, string>();
System\ServiceModel\MessageHeaderT.cs (1)
67private static Dictionary<Type, TypedHeaderManager> s_cache = new Dictionary<Type, TypedHeaderManager>();
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
264_tokenPoliciesMapping = new Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>>();
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (2)
20_actionParts = new Dictionary<string, MessagePartSpecification>(); 203_readOnlyNormalizedActionParts = new Dictionary<string, MessagePartSpecification>();
System\ServiceModel\Security\SecurityProtocol.cs (2)
260_mergedSupportingTokenProvidersMap = new Dictionary<string, Collection<SupportingTokenProviderSpecification>>(); 301ScopedSupportingTokenProviderSpecification = new Dictionary<string, ICollection<SupportingTokenProviderSpecification>>();
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (1)
132_securityTokenMappedToIdentifierClause = new Dictionary<SecurityToken, SecurityKeyIdentifierClause>();
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (2)
25ScopedCertificates = new Dictionary<Uri, X509Certificate2>(); 37ScopedCertificates = new Dictionary<Uri, X509Certificate2>();
System.ServiceModel.Primitives.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
146Dictionary<string, string> properties = new Dictionary<string, string>(); 147Dictionary<string, List<string>> headers = new Dictionary<string, List<string>>();
System.ServiceModel.Syndication (4)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
555attrs ??= new Dictionary<XmlQualifiedName, string>();
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
19_attributeExtensions = new Dictionary<XmlQualifiedName, string>(); 41get => _attributeExtensions ??= new Dictionary<XmlQualifiedName, string>();
System\ServiceModel\Syndication\SyndicationContent.cs (1)
23get => _attributeExtensions ??= new Dictionary<XmlQualifiedName, string>();
System.Text.Encoding.CodePages (4)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System\Text\EncodingTable.cs (3)
13private static readonly Dictionary<int, string> s_codePageToWebNameCache = new Dictionary<int, string>(); 14private static readonly Dictionary<int, string> s_codePageToEnglishNameCache = new Dictionary<int, string>(); 15private static readonly Dictionary<int, (ushort FamilyCodePage, byte CodePageFlags)> s_codePageToItemCache = new Dictionary<int, (ushort FamilyCodePage, byte CodePageFlags)>();
System.Text.Json (8)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
414private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new();
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
112jsonTypeInfo.CreateObject = () => new Dictionary<string, object?>();
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
60jsonTypeInfo.CreateObject = () => new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (1)
37state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
41state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1440(state.IgnoredProperties ??= new())[memberName] = jsonPropertyInfo;
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
55if (!(_discriminatorIdtoType ??= new()).TryAdd(typeDiscriminator, derivedTypeInfoHolder))
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
27_referenceIdToObjectMap = new Dictionary<string, object>();
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Emitter.cs (2)
81private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 88private readonly Dictionary<string, string> _propertyNames = new();
JsonSourceGenerator.Parser.cs (1)
1096(state.IgnoredMembers ??= new())[memberName] = memberInfo;
System.Text.RegularExpressions (15)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System\Text\RegularExpressions\RegexWriter.cs (1)
41_stringTable = new Dictionary<string, int>();
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
202var idmap = new Dictionary<BDD, long>
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (1)
17private readonly Dictionary<BDD, (uint, uint)[]> _rangeCache = new Dictionary<BDD, (uint, uint)[]>();
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (3)
30private readonly Dictionary<(int ordinal, BDD? one, BDD? zero), BDD> _bddCache = new(); 36private readonly Dictionary<(int op, BDD a, BDD? b), BDD> _operationCache = new(); // op is BooleanOperation; using int to reuse generic instantiation with _bddCache 358return ReplaceTrueImpl(bdd, leaf, new Dictionary<BDD, BDD>());
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
335_setBddCache ??= new Dictionary<string, BDD>();
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (5)
40private readonly Dictionary<TSet, SymbolicRegexNode<TSet>> _singletonCache = new(); 47internal readonly Dictionary<NodeCacheKey, SymbolicRegexNode<TSet>> _nodeCache = new(); 95internal readonly Dictionary<(SymbolicRegexNode<TSet>, TSet elem, uint context), SymbolicRegexNode<TSet>> _derivativeCache = new(); 103internal readonly Dictionary<(SymbolicRegexNode<TSet>, uint), SymbolicRegexNode<TSet>> _pruneLowerPriorityThanNullabilityCache = new(); 111internal readonly Dictionary<(SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>), bool> _subsumptionCache = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (1)
146Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> result = new();
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
41var catMap = new Dictionary<UnicodeCategory, Ranges>();
System.Text.RegularExpressions.Generator (6)
RegexGenerator.cs (3)
108Dictionary<string, string[]> requiredHelpers = new(); 169var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 175Dictionary<string, string[]> requiredHelpers = new();
RegexGenerator.Emitter.cs (2)
1603Dictionary<string, int> usedNames = new(); 1616Dictionary<string, string[]> additionalLocalFunctions = new();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System.Threading.Tasks.Dataflow (3)
Internal\QueuedMap.cs (1)
162_mapKeyToIndex = new Dictionary<TKey, int>();
Internal\ReorderingBuffer.cs (1)
44private readonly Dictionary<long, KeyValuePair<bool, TOutput>> _reorderingBuffer = new Dictionary<long, KeyValuePair<bool, TOutput>>();
Internal\TargetRegistry.cs (1)
77_targetInformation = new Dictionary<ITargetBlock<T>, LinkedTargetInfo>();
System.Windows.Controls.Ribbon (8)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (1)
124propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
Microsoft\Windows\Controls\KeyTipService.cs (3)
269Dictionary<DependencyObject, bool> processedElements = new Dictionary<DependencyObject, bool>(); 341elementToScopeMap = new Dictionary<DependencyObject, DependencyObject>(); 921Current._cultureCache = cultureCache = new Dictionary<XmlLanguage, CultureInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
465private Dictionary<int, int> _childIndexToStarLayoutIndexMap = new Dictionary<int, int>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
181Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>();
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
62private Dictionary<int, int> _tabIndexToDisplayIndexMap = new Dictionary<int, int>(); // A map from collection index to display index of tab items. 63private Dictionary<int, int> _tabDisplayIndexToIndexMap = new Dictionary<int, int>(); // A map from display index to collection index of tab items.
System.Windows.Forms (2)
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (1)
13private static readonly Dictionary<AccessibleRole, UIA_CONTROLTYPE_ID> s_map = new()
System\Windows\Forms\Control.cs (1)
1962_dpiFonts ??= new Dictionary<int, Font>
System.Windows.Forms.Analyzers.CSharp.Tests (7)
ProjectFileReaderTests.cs (7)
44Dictionary<string, string> properties = new() 70Dictionary<string, string> properties = new() 108Dictionary<string, string> properties = new() 145Dictionary<string, string> properties = new() 167Dictionary<string, string> properties = new() 187Dictionary<string, string> properties = new() 205Dictionary<string, string> properties = new()
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
90defaultValues ??= new Dictionary<string, object>();
System.Windows.Forms.Design.Tests (56)
ButtonBaseDesignerTests.cs (1)
21new Dictionary<string, object>()
ControlDesignerTests.cs (2)
336Dictionary<string, object> defaultValues = new() 356Dictionary<string, object> defaultValues = new()
System\ComponentModel\Design\ComponentDesignerTests.cs (45)
74Dictionary<string, PropertyDescriptor> properties = new() 2254yield return new object[] { new Dictionary<int, int>() }; 2299yield return new object[] { new Dictionary<string, object>() }; 2300yield return new object[] { new Dictionary<string, object> { { "SettingsKey", new object() } } }; 2301yield return new object[] { new Dictionary<string, object> { { "SettingsKey", null } } }; 2309Dictionary<string, PropertyDescriptor> properties = new() 2329Dictionary<string, PropertyDescriptor> properties = new() 2362Dictionary<string, PropertyDescriptor> properties = new() 2383yield return new object[] { null, new Dictionary<Type, object>(), null }; 2385yield return new object[] { InheritanceAttribute.Default, new Dictionary<Type, object>(), null }; 2387yield return new object[] { InheritanceAttribute.Inherited, new Dictionary<Type, object>(), InheritanceAttribute.Inherited }; 2389yield return new object[] { InheritanceAttribute.InheritedReadOnly, new Dictionary<Type, object>(), InheritanceAttribute.InheritedReadOnly }; 2391yield return new object[] { InheritanceAttribute.NotInherited, new Dictionary<Type, object>(), null }; 2406yield return new object[] { new Dictionary<Type, object>(), InheritanceAttribute.Default }; 2407yield return new object[] { new Dictionary<Type, object> { { typeof(InheritanceAttribute), null } }, InheritanceAttribute.Default }; 2408yield return new object[] { new Dictionary<Type, object> { { typeof(InheritanceAttribute), new object() } }, InheritanceAttribute.Default }; 2410yield return new object[] { new Dictionary<Type, object> { { typeof(InheritanceAttribute), attribute } }, attribute }; 2436Dictionary<object, object> events = new() { { "key1", descriptor }, { "Key2", null } }; 2445Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null }, { "Event", result } }, events); 2449Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null } }, events); 2456yield return new object[] { null, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2457yield return new object[] { InheritanceAttribute.Default, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2458yield return new object[] { InheritanceAttribute.Default, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2460yield return new object[] { InheritanceAttribute.Inherited, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2462yield return new object[] { InheritanceAttribute.InheritedReadOnly, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2464yield return new object[] { InheritanceAttribute.NotInherited, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2480Assert.Throws<ArrayTypeMismatchException>(() => designer.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } })); 2713filter.PreFilterAttributes(new Dictionary<string, object>()); 2728filter.PreFilterEvents(new Dictionary<string, object>()); 2739Dictionary<string, PropertyDescriptor> properties = new() 2760Dictionary<string, PropertyDescriptor> properties = new() 2795Dictionary<string, PropertyDescriptor> properties = new() 2826filter.PreFilterProperties(new Dictionary<string, object>()); 2865filter.PostFilterAttributes(new Dictionary<string, object>()); 2875Dictionary<object, object> events = new() { { "key1", descriptor }, { "Key2", null } }; 2885Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null }, { "Event", result } }, events); 2889Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null } }, events); 2908Assert.Throws<ArrayTypeMismatchException>(() => filter.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } })); 2925filter.PostFilterEvents(new Dictionary<string, object>());
System\Windows\Forms\Design\BindingNavigatorDesignerTests.cs (2)
56Dictionary<string, object> defaultValues = new(); 70Dictionary<string, object> defaultValues = new();
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (1)
145Dictionary<string, PropertyDescriptor> properties = new()
System\Windows\Forms\Design\ListBoxDesignerTests.cs (1)
137designer.InitializeNewComponent(new Dictionary<int, int>());
System\Windows\Forms\Design\ParentControlDesignerTests.cs (1)
122Dictionary<string, object> defaultValues = new()
System\Windows\Forms\Design\RichTextBoxDesignerTests.cs (1)
27_designer.InitializeNewComponent(new Dictionary<string, string>());
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
167Dictionary<string, object> defaultValues = new();
ToolStripMenuItemDesignerTest.cs (1)
116Dictionary<string, PropertyDescriptor> property = new()
System.Windows.Forms.Primitives.TestUtilities (1)
SystemCOLORs.cs (1)
10private static readonly Dictionary<SYS_COLOR_INDEX, string> s_names = new()
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
203var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Windows.Forms.Tests (42)
misc\CollectionHelperTests.cs (4)
58Dictionary<string, string> source = new() 71Dictionary<string, string> source = new() 94Dictionary<string, string> source = new() 117Dictionary<string, string> source = new()
System\Resources\ResXResourceWriterTests.cs (1)
34var dictionary = new Dictionary<object, object>();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1355var typeDefaultValues = new Dictionary<Type, string>
System\Windows\Forms\LinkAreaConverterTests.cs (7)
120null, new Dictionary<string, object> 139new Dictionary<string, object> 147new Dictionary<string, object> 155new Dictionary<string, object> 163new Dictionary<string, object> 171new Dictionary<string, object> 179new Dictionary<string, object>
System\Windows\Forms\ListBindingHelperTests.cs (1)
135yield return new object[] { new Dictionary<int, string> { { 1, "string" } }, typeof(KeyValuePair<int, string>) };
System\Windows\Forms\MonthCalendar.SelectionRangeConverterTests.cs (1)
24private static IDictionary CreatePropertyValues(object start, object end) => new Dictionary<string, object>
System\Windows\Forms\PaddingConverterTests.cs (18)
148mockContext.Object, new Dictionary<string, object> 165null, new Dictionary<string, object> 187new Dictionary<string, object> 198new Dictionary<string, object> 209new Dictionary<string, object> 220new Dictionary<string, object> 231new Dictionary<string, object> 242new Dictionary<string, object> 253new Dictionary<string, object> 264new Dictionary<string, object> 275new Dictionary<string, object> 286new Dictionary<string, object> 297new Dictionary<string, object> 308new Dictionary<string, object> 319new Dictionary<string, object> 330new Dictionary<string, object> 341new Dictionary<string, object> 379var propertyValues = new Dictionary<string, object>
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (9)
210TableLayoutPanelCellPosition position = Assert.IsType<TableLayoutPanelCellPosition>(converter.CreateInstance(null, new Dictionary<string, object> 229new Dictionary<string, object> 237new Dictionary<string, object> 245new Dictionary<string, object> 253new Dictionary<string, object> 261new Dictionary<string, object> 269new Dictionary<string, object> 288Assert.Throws<ArgumentOutOfRangeException>("column", () => converter.CreateInstance(null, new Dictionary<string, object> 299Assert.Throws<ArgumentOutOfRangeException>("row", () => converter.CreateInstance(null, new Dictionary<string, object>
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
604this.manipulatorStates = new Dictionary<int, ManipulatorState>();
System.Xaml (38)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
135_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>(); 909_knownNamespaces = new Dictionary<string, object>(); 1835_ignorables = new Dictionary<string, object>(); 1845_processContents = new Dictionary<string, ProcessContentSet>(); 1862_preserveElements = new Dictionary<string, PreserveItemSet>(); 1879_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2050_names = new Dictionary<string, string>(); 2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\AttachablePropertyServices.cs (1)
183instanceProperties = new Dictionary<AttachableMemberIdentifier, object>();
System\Xaml\Context\ObjectWriterFrame.cs (1)
170_preconstructionPropertyValues = new Dictionary<XamlMember, object>();
System\Xaml\Context\XamlCommonFrame.cs (1)
19_namespaces = new Dictionary<string, string>();
System\Xaml\Context\XamlParserContext.cs (2)
25_prescopeNamespaces = new Dictionary<string, string>(); 150_prescopeNamespaces = new Dictionary<string, string>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
218_pendingCollectionAdds = new Dictionary<object, List<PendingCollectionAdd>>(); 228_pendingKeyConversionContexts = new Dictionary<object, ObjectWriterContext>();
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
210xmlnsDictionary = new Dictionary<string, string>();
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
69_propertyGetDelegates = new Dictionary<MethodInfo, PropertyGetDelegate>(); 82_propertySetDelegates = new Dictionary<MethodInfo, PropertySetDelegate>(); 95_factoryDelegates = new Dictionary<MethodBase, FactoryDelegate>(); 108_converterInstances = new Dictionary<Type, object>(); 121_delegateCreators = new Dictionary<Type, DelegateCreator>();
System\Xaml\Schema\Reflector.cs (2)
151Dictionary<char, char> bracketCharacterAttributeList = new Dictionary<char, char>(); 427Dictionary<char, char> bracketCharacterList = new Dictionary<char, char>();
System\Xaml\Schema\TypeReflector.cs (3)
738getters = new Dictionary<string, List<MethodInfo>>(); 739setters = new Dictionary<string, List<MethodInfo>>(); 740adders = new Dictionary<string, List<MethodInfo>>();
System\Xaml\Schema\XamlTypeInvoker.cs (1)
165Dictionary<XamlType, MethodInfo> addMethods = new Dictionary<XamlType, MethodInfo>();
System\Xaml\XamlObjectReader.cs (2)
2498namespaceToPrefixMap = new Dictionary<string, string>(); 2499prefixToNamespaceMap = new Dictionary<string, string>();
System\Xaml\XamlType.cs (2)
1687Dictionary<int, IList<XamlType>> result = new Dictionary<int, IList<XamlType>>(); 1694Dictionary<int, IList<XamlType>> ctorDict = new Dictionary<int, IList<XamlType>>();
System\Xaml\XamlXmlWriter.cs (4)
106prefixAssignmentHistory = new Dictionary<string, string>() { {"xml", XamlLanguage.Xml1998Namespace} }; 678private Dictionary<string, string> namespaceMap = new Dictionary<string, string>(); // namespace to prefix map 679private Dictionary<string, string> prefixMap = new Dictionary<string, string>(); // prefix to namespace map 2189private Dictionary<XamlMember, bool> dictionary = new Dictionary<XamlMember, bool>();
System.Xaml.Tests (15)
System\Xaml\Schema\XamlTypeInvokerTests.cs (2)
117var instance = new Dictionary<int, string>(); 554public Dictionary<object, object> Dictionary { get; } = new Dictionary<object, object>();
System\Xaml\XamlMemberTests.cs (3)
1284yield return new object?[] { new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new XamlSchemaContext()), new Dictionary<char, char>() }; 1296new Dictionary<char, char> { { 'a', 'b' } } 1325new Dictionary<char, char> { { 'a', 'b' }, { 'c', 'd' } }
System\Xaml\XamlSchemaContextTests.cs (6)
142GetCustomAttributesMap = new Dictionary<Type, object?[]?> 163GetCustomAttributesMap = new Dictionary<Type, object?[]?> 338GetCustomAttributesMap = new Dictionary<Type, object?[]?> 352GetCustomAttributesMap = new Dictionary<Type, object?[]?> 366GetCustomAttributesMap = new Dictionary<Type, object?[]?> 380GetCustomAttributesMap = new Dictionary<Type, object?[]?>
System\Xaml\XamlTypeTests.cs (4)
368GetCustomAttributesMap = new Dictionary<Type, object?[]?> 384GetCustomAttributesMap = new Dictionary<Type, object?[]?> 400GetCustomAttributesMap = new Dictionary<Type, object?[]?> 416GetCustomAttributesMap = new Dictionary<Type, object?[]?>
TaskUsageLogger (4)
TaskUsageLogger.cs (4)
73_targetIdsToNames = new Dictionary<int, string>(); 76_toolsVersionsByProjectContextId = new Dictionary<int, string>(); 77_defaultTasksByToolset = new Dictionary<string, HashSet<UsingTaskData>>(); 78_tasksByProjectContextId = new Dictionary<int, HashSet<UsingTaskData>>();
Templates.Blazor.Tests (4)
BlazorTemplateTest.cs (1)
146var result = await cdpSession.SendAsync("WebAuthn.addVirtualAuthenticator", new Dictionary<string, object>
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Tests (4)
IdentityUIPackageTest.cs (1)
104var packageOptions = new Dictionary<string, string>();
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Test.Utilities (1)
TemporaryDictionary`2.cs (1)
21private static readonly Dictionary<TKey, TValue> EmptyDictionary = new();
Text.Analyzers (21)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
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>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
UnitTests.Common (1)
TestTypes.cs (1)
644_headers = new Dictionary<string, string>();
VBCSCompiler.UnitTests (30)
CompilerServerTests.cs (30)
129var resetVariables = new Dictionary<string, string>(); 329var files = new Dictionary<string, string> { { "hello.cs", "♕" } }; 471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } }; 486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } }; 544new Dictionary<string, string> { 572new Dictionary<string, string> { 638new Dictionary<string, string> { 680new Dictionary<string, string> { 710new Dictionary<string, string> { 740new Dictionary<string, string> { 761files = new Dictionary<string, string> { 780files = new Dictionary<string, string> { 798new Dictionary<string, string> { 818files = new Dictionary<string, string> { 860new Dictionary<string, string> { 876files = new Dictionary<string, string> { 896files = new Dictionary<string, string> { 913new Dictionary<string, string> { 932files = new Dictionary<string, string> { 1000var filesInDirectory = new Dictionary<string, string>() 1051new Dictionary<string, string> { 1072files = new Dictionary<string, string> { 1081additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } }); 1100new Dictionary<string, string> { 1123files = new Dictionary<string, string> { 1133additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } }); 1251new Dictionary<string, string> { 1274files = new Dictionary<string, string> { 1403additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } }); 1437additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
Wasm.Performance.TestApp (2)
PersonJsonContext.DictionaryStringBoolean.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, bool>(),
Shared_ComplexTable_Cell_razor.g.cs (1)
216var attributes = new Dictionary<string, object>();
WindowsBase.Tests (30)
System\Windows\DependencyPropertyTests.cs (24)
64yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 116yield return new object?[] { "Register_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 2 }; 176yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 375yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 429yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 489yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 651yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 707yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 2 }; 771yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 944yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() }; 1002yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 1 }; 1066yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
System\Windows\Markup\Primitives\MarkupObjectTests.cs (2)
154var instance = new Dictionary<int, string> 346var dictionary = new Dictionary<int, string>
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (4)
141var instance = new Dictionary<int, string> 333var dictionary = new Dictionary<int, string> 460var instance = new Dictionary<int, string> 522var dictionary = new Dictionary<int, string>
WindowsFormsIntegration (4)
System\Windows\Integration\Convert.cs (2)
32_toSystemWindowsInputCursorDictionary = new Dictionary<SWF.Cursor, System.Windows.Input.Cursor>(); 72_toSystemWindowsFormsCursorDictionary = new Dictionary<SWI.Cursor, SWF.Cursor>();
System\Windows\Integration\PropertyMap.cs (2)
33_wrappedDictionary = new Dictionary<string, PropertyTranslator>(); 222_defaultTranslators = new Dictionary<string, PropertyTranslator>();
WinFormsControlsTest (1)
MainForm.cs (1)
54private IReadOnlyDictionary<MainFormControlsTabOrder, InitInfo> GetButtonsInitInfo() => new Dictionary<MainFormControlsTabOrder, InitInfo>
XmlFileLogger (1)
LogProcessNode.cs (1)
31_childNodes = new Dictionary<Type, List<ILogNode>>();
xunit.assert (4)
Sdk\ArgumentFormatter.cs (1)
98 static readonly Dictionary<TypeInfo, string> TypeMappings = new Dictionary<TypeInfo, string>
Sdk\AssertHelper.cs (1)
49 static readonly Dictionary<char, string> encodings = new Dictionary<char, string>
Sdk\CollectionTracker.cs (2)
597 var items = new Dictionary<int, T>(); 844 var result = new Dictionary<int, T>();
xunit.console (3)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (2)
16private readonly IDictionary<string, string> _stringPool = new Dictionary<string, string>(); 303var libraries = new Dictionary<string, LibraryStub>();
common\Json.cs (1)
481var dictionary = new Dictionary<string, JsonValue>();
Xunit.NetCore.Extensions (3)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
18private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (1)
18private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (1)
17private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();