5711 references to Dictionary
aspire (57)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
873arguments = new Dictionary<string, JsonElement>();
Certificates\CertificateService.cs (1)
67var environmentVariables = new Dictionary<string, string>();
Commands\AppHostLauncher.cs (1)
457var environment = new Dictionary<string, string> { [KnownConfigNames.CliRunDetached] = "true" };
Commands\DashboardRunCommand.cs (1)
129var environmentVariables = new Dictionary<string, string>
Commands\ExportCommand.cs (1)
258var logLinesByResource = new Dictionary<string, List<string>>();
Commands\GroupedHelpWriter.cs (1)
49var grouped = new Dictionary<HelpGroup, List<BaseCommand>>();
Commands\McpCallCommand.cs (1)
84var dict = new Dictionary<string, JsonElement>();
Commands\PipelineCommandBase.cs (4)
195EnvironmentVariables = new Dictionary<string, string> 244var env = new Dictionary<string, string> 719var steps = new Dictionary<string, string>(); 813var steps = new Dictionary<string, StepInfo>();
Commands\RenderCommand.cs (1)
37private static readonly Dictionary<string, string> s_choices = new()
Commands\ResourceCommand.cs (1)
281var options = new Dictionary<ResourceSnapshotCommandArgument, Option>();
Commands\RunCommand.cs (2)
331EnvironmentVariables = new Dictionary<string, string>(), 1150private readonly Dictionary<string, RpcResourceState> _resourceStates = new();
Commands\TelemetryTracesCommand.cs (1)
245var traceInfos = new Dictionary<string, (string Resource, string FirstSpanName, string TraceId, ulong? StartTimeNano, TimeSpan Duration, int SpanCount, bool HasError)>();
Configuration\AspireConfigFile.cs (2)
246var profiles = new Dictionary<string, AspireConfigProfile>(); 260profile.EnvironmentVariables = new Dictionary<string, string>();
Configuration\ConfigurationService.cs (3)
161var allConfig = new Dictionary<string, string>(); 172var localConfig = new Dictionary<string, string>(); 180var globalConfig = new Dictionary<string, string>();
Configuration\FlexibleBooleanDictionaryConverter.cs (1)
28var dictionary = new Dictionary<string, bool>();
DotNet\DotNetCliRunner.cs (5)
212var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 816var env = new Dictionary<string, string> 992var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 1083env: new Dictionary<string, string> 1145env: new Dictionary<string, string>
KnownFeatures.cs (1)
41private static readonly Dictionary<string, FeatureMetadata> s_featureMetadata = new()
NuGet\BundleNuGetPackageCache.cs (1)
190var environmentVariables = new Dictionary<string, string>();
NuGet\BundleNuGetService.cs (1)
184var environmentVariables = new Dictionary<string, string>();
Profiling\ProfileCaptureService.cs (1)
151return new Dictionary<string, string>
Projects\AppHostProjectContext.cs (1)
64public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Projects\AppHostServerSession.cs (1)
182? new Dictionary<string, string>()
Projects\DotNetAppHostProject.cs (1)
1808var directEnv = new Dictionary<string, string>();
Projects\GuestAppHostProject.cs (3)
806var envVars = new Dictionary<string, string>(); 967var result = new Dictionary<string, string>(); 1022var result = new Dictionary<string, string>();
Projects\GuestRuntime.cs (2)
91var environmentVariables = commandSpec.EnvironmentVariables ?? new Dictionary<string, string>(); 131var environmentVariables = _spec.InstallDependencies.EnvironmentVariables ?? new Dictionary<string, string>();
Projects\IAppHostProject.cs (1)
109public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Projects\ProjectUpdater.cs (3)
1327var mappings = new Dictionary<string, List<string>>(); 1468public Dictionary<string, List<string>> OriginalMappings { get; set; } = new(); 1469public Dictionary<string, List<string>> ProposedMappings { get; set; } = new();
src\Shared\ConsoleLogs\PromptContext.cs (1)
11private readonly Dictionary<string, string> _promptValueMap = new Dictionary<string, string>();
src\Shared\EnumerableExtensions.cs (1)
19var dictionary = new Dictionary<TKey, TValue>();
src\Shared\Export\ExportArchive.cs (5)
24public Dictionary<string, ResourceJson> Resources { get; } = new(); 30public Dictionary<string, List<string>> ConsoleLogs { get; } = new(); 36public Dictionary<string, OtlpTelemetryDataJson> StructuredLogs { get; } = new(); 42public Dictionary<string, OtlpTelemetryDataJson> Traces { get; } = new(); 48public Dictionary<string, OtlpTelemetryDataJson> Metrics { get; } = new();
Telemetry\ProfilingTelemetry.cs (1)
1107var baggage = new Dictionary<string, string>();
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
58var conditions = new Dictionary<string, bool>
Utils\ConsoleActivityLogger.cs (3)
30private readonly Dictionary<string, string> _stepColors = new(); 31private readonly Dictionary<string, ActivityState> _stepStates = new(); // Track final state per step for summary 32private readonly Dictionary<string, string> _displayNames = new(); // Optional friendly display names for step keys
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
249var environmentVariables = new Dictionary<string, string>();
Utils\ResourceColorMap.cs (1)
20internal static readonly Dictionary<string, string> s_hexColors = new()
Aspire.Acquisition.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
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.EndToEnd.Tests (9)
Helpers\CliE2ETestHelpers.cs (1)
588var buildArgs = new Dictionary<string, string>();
McpDocsE2ETests.cs (8)
95new Dictionary<string, object?> { ["query"] = "redis" }, 116new Dictionary<string, object?> { ["query"] = "aspire", ["topK"] = 3 }, 137new Dictionary<string, object?> { ["query"] = "redis" }, 154new Dictionary<string, object?> { ["slug"] = slug }, 172new Dictionary<string, object?> { ["query"] = "" }, 203new Dictionary<string, object?> { ["slug"] = slug }, 221new Dictionary<string, object?> { ["slug"] = "nonexistent-doc-that-does-not-exist" }, 252new Dictionary<string, object?>
Aspire.Cli.Tests (565)
Acquisition\IdentityResolverTests.cs (15)
31environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = "pr-12345" }); 89environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = string.Empty }); 125environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = "99.0.0-test" }); 140environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = version }); 159environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = version }); 186environmentVariables: new Dictionary<string, string?> { [IdentityResolver.CommitEnvVar] = commit }); 202environmentVariables: new Dictionary<string, string?> { [IdentityResolver.CommitEnvVar] = commit }); 215environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = url }); 230environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = url }); 244environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = "totally-made-up" }, 273environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = "http://env/v3/index.json" }, 314environmentVariables: new Dictionary<string, string?> { [IdentityResolver.PackagesEnvVar] = "/env/packages" }, 371var sidecar = new Dictionary<string, string> 380environmentVariables = new Dictionary<string, string?> 456environmentVariables: new Dictionary<string, string?>
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (14)
133var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 174var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 222var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 253var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 281var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 305var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 331var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 371var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 405var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 440var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 476var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 767var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 797var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 864var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
Agents\AspireSkillsBundleTests.cs (13)
36await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 63await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 95await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 124await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 311await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 366await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 395await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 466await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 491new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 731new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 754new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 777new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 800new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() });
Agents\AspireSkillsInstallerTests.cs (7)
268.AddInMemoryCollection(new Dictionary<string, string?> 606.AddInMemoryCollection(new Dictionary<string, string?> 653.AddInMemoryCollection(new Dictionary<string, string?> 693.AddInMemoryCollection(new Dictionary<string, string?> 763.AddInMemoryCollection(new Dictionary<string, string?> 835.AddInMemoryCollection(new Dictionary<string, string?> 1797.AddInMemoryCollection(new Dictionary<string, string?>
Agents\CopilotCliAgentEnvironmentScannerTests.cs (1)
171var vsCodeEnvironment = new TestEnvironment(new Dictionary<string, string?> { ["TERM_PROGRAM"] = "vscode" });
Agents\PlaywrightCliInstallerTests.cs (3)
483.AddInMemoryCollection(new Dictionary<string, string?> 528.AddInMemoryCollection(new Dictionary<string, string?> 567.AddInMemoryCollection(new Dictionary<string, string?>
Agents\TelemetryHookConfiguratorTests.cs (1)
50var configurator = CreateConfigurator(workspace, home, new Dictionary<string, string?>
Agents\TelemetryHookScriptTests.cs (10)
34new() { ["COPILOT_CLI"] = "1" }); 93new() { ["COPILOT_CLI"] = "1", ["ASPIRE_CLI_TELEMETRY_OPTOUT"] = "1" }); 169new() { ["COPILOT_CLI"] = "1" }); 187new() { ["COPILOT_CLI"] = "1" }); 202new() { ["COPILOT_CLI"] = "1" }); 216new() { ["COPILOT_CLI"] = "1" }); 257new() { ["COPILOT_CLI"] = "1", ["ASPIRE_CLI_TELEMETRY_OPTOUT"] = "true" }); 339new() { ["COPILOT_CLI"] = "1" }); 356new() { ["COPILOT_CLI"] = "1" }); 370new() { ["COPILOT_CLI"] = "1" });
Backchannel\AppHostCliBackchannelTests.cs (2)
19var environment = new TestEnvironment(new Dictionary<string, string?> 54var environment = new TestEnvironment(new Dictionary<string, string?>
Backchannel\ExtensionBackchannelTests.cs (1)
155.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\ResourceSnapshotMapperTests.cs (2)
66Options = new Dictionary<string, string?> { ["primary"] = "Primary" }, 342Properties = new Dictionary<string, JsonNode?>
Caching\AppHostInfoDiskCacheTests.cs (2)
27.AddInMemoryCollection(processConfigurationValues ?? new Dictionary<string, string?>()) 220var cache = CreateCacheWithRealConfigurationService(workspace, new Dictionary<string, string?>
Caching\DiskCacheTests.cs (1)
17var values = new Dictionary<string,string?>();
Certificates\CertificateServiceTests.cs (1)
556var envVars = new Dictionary<string, string?>
Certificates\UnixCertificateManagerTests.cs (6)
33var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 80var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 115var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 150var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 185var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 220var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
CliBootstrapTests.cs (1)
174var envVars = new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = "http://localhost:5000/v3/index.json" };
Commands\AppHostLauncherTests.cs (3)
1430?? new Dictionary<string, string?>(); 1469public IReadOnlyDictionary<string, string?> EnvironmentVariables => new Dictionary<string, string?>(); 1542public IReadOnlyDictionary<string, string?> EnvironmentVariables => new Dictionary<string, string?>();
Commands\AppHostStartupTimeoutTests.cs (3)
16.AddInMemoryCollection(new Dictionary<string, string?> 41.AddInMemoryCollection(new Dictionary<string, string?> 59.AddInMemoryCollection(new Dictionary<string, string?>
Commands\ConfigCommandTests.cs (3)
1038return Task.FromResult(new Dictionary<string, string> 1047return Task.FromResult(new Dictionary<string, string> 1055return Task.FromResult(new Dictionary<string, string>());
Commands\DashboardRunCommandTests.cs (9)
101var environment = CreateEnvironment(new Dictionary<string, string?> 115var environment = CreateEnvironment(new Dictionary<string, string?>()); 126var environment = CreateEnvironment(new Dictionary<string, string?>()); 498var environment = CreateEnvironment(new Dictionary<string, string?>()); 511var environment = CreateEnvironment(new Dictionary<string, string?> 528var environment = CreateEnvironment(new Dictionary<string, string?>()); 542var environment = CreateEnvironment(new Dictionary<string, string?> 560var environment = CreateEnvironment(new Dictionary<string, string?> 576var environment = CreateEnvironment(new Dictionary<string, string?>());
Commands\DeployCommandTests.cs (2)
65new Dictionary<string, string> 144new Dictionary<string, string>
Commands\DescribeCommandTests.cs (1)
461Properties = new Dictionary<string, JsonNode?>
Commands\DocsCommandTests.cs (2)
195options.DocsIndexServiceFactory = _ => new TestDocsIndexService(new Dictionary<string, DocsContent> 259_documents = documents ?? new Dictionary<string, DocsContent>
Commands\ExportCommandTests.cs (12)
43telemetryEndpoints: new Dictionary<string, string> 120telemetryEndpoints: new Dictionary<string, string> 323telemetryEndpoints: new Dictionary<string, string> 443telemetryEndpoints: new Dictionary<string, string> 500telemetryEndpoints: new Dictionary<string, string> 558telemetryEndpoints: new Dictionary<string, string> 608telemetryEndpoints: new Dictionary<string, string> 652telemetryEndpoints: new Dictionary<string, string> 696telemetryEndpoints: new Dictionary<string, string> 738telemetryEndpoints: new Dictionary<string, string> 774telemetryEndpoints: new Dictionary<string, string> 821telemetryEndpoints: new Dictionary<string, string>(),
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1011private readonly Dictionary<string, TaskCompletionSource> _promptCompletionSources = new();
Commands\ResourceCommandTests.cs (8)
996options: new Dictionary<string, string?> 1032options: new Dictionary<string, string?> 1287options: new Dictionary<string, string?> 1738options: new Dictionary<string, string?> 1859CreateArgument("item", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["banana"] = "Banana" }), 1868CreateArgument("category", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["fruit"] = "Fruit" }), 1900CreateArgument("category", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["fruit"] = "Fruit" }), 2254options: new Dictionary<string, string?>
Commands\RunCommandTests.cs (7)
3241env: new Dictionary<string, string>(), 3285env: new Dictionary<string, string>(), 3333env: new Dictionary<string, string>(), 3376env: new Dictionary<string, string>(), 3420env: new Dictionary<string, string>(), 3464env: new Dictionary<string, string>(), 3509env: new Dictionary<string, string>(),
Commands\StartCommandTests.cs (1)
742public IReadOnlyDictionary<string, string?> EnvironmentVariables => new Dictionary<string, string?>();
Commands\TelemetryLogsCommandTests.cs (3)
66telemetryEndpoints: new Dictionary<string, string> 101telemetryEndpoints: new Dictionary<string, string> 132telemetryEndpoints: new Dictionary<string, string>
Commands\TelemetrySpansCommandTests.cs (2)
65telemetryEndpoints: new Dictionary<string, string> 100telemetryEndpoints: new Dictionary<string, string>
Commands\TelemetryTracesCommandTests.cs (2)
262telemetryEndpoints: new Dictionary<string, string> 313telemetryEndpoints: new Dictionary<string, string>
Commands\UpdateCommandTests.cs (1)
3398return new Dictionary<string, string?>
Commands\VsCodeExtensionCheckTests.cs (12)
18var environment = new TestEnvironment(new Dictionary<string, string?>()); 34var environment = new TestEnvironment(new Dictionary<string, string?> 64var environment = new TestEnvironment(new Dictionary<string, string?> 93var environment = new TestEnvironment(new Dictionary<string, string?> 118var environment = new TestEnvironment(new Dictionary<string, string?> 139var environment = new TestEnvironment(new Dictionary<string, string?> 160var environment = new TestEnvironment(new Dictionary<string, string?>()); 174var environment = new TestEnvironment(new Dictionary<string, string?>()); 190var environment = new TestEnvironment(new Dictionary<string, string?> 209var environment = new TestEnvironment(new Dictionary<string, string?> 231var environment = new TestEnvironment(new Dictionary<string, string?> 252var environment = new TestEnvironment(new Dictionary<string, string?>
Commands\WslEnvironmentCheckTests.cs (1)
548var environmentVariables = new Dictionary<string, string?>();
Configuration\AspireConfigFileTests.cs (6)
290Packages = new Dictionary<string, string> { ["Aspire.Hosting.Redis"] = "13.1.0" } 303Packages = new Dictionary<string, string> 343Packages = new Dictionary<string, string> 404Features = new Dictionary<string, bool> 427Profiles = new Dictionary<string, AspireConfigProfile> 432EnvironmentVariables = new Dictionary<string, string>
Configuration\IntegrationReferenceTests.cs (4)
38Packages = new Dictionary<string, string> 65Packages = new Dictionary<string, string> 84Packages = new Dictionary<string, string> 103Packages = new Dictionary<string, string>
Configuration\KnownFeaturesTests.cs (1)
86var configData = new Dictionary<string, string?>();
DotNet\DotNetCliRunnerTests.cs (33)
79env: new Dictionary<string, string>(), 197new Dictionary<string, string>(), 238new Dictionary<string, string>(), 415configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 508.AddInMemoryCollection(new Dictionary<string, string?> 545.AddInMemoryCollection(new Dictionary<string, string?> 601env: new Dictionary<string, string>(), 642env: new Dictionary<string, string>(), 676var existingEnv = new Dictionary<string, string> 740env: new Dictionary<string, string>(), 793env: new Dictionary<string, string> 879env: new Dictionary<string, string>(), 921env: new Dictionary<string, string>(), 957var userEnv = new Dictionary<string, string> 1020env: new Dictionary<string, string> 1075env: new Dictionary<string, string> 1113env: new Dictionary<string, string> 1155env: new Dictionary<string, string> 1547env: new Dictionary<string, string>(), 1593env: new Dictionary<string, string>(), 1628env: new Dictionary<string, string>(), 1665env: new Dictionary<string, string>(), 1708env: new Dictionary<string, string>(), 1753env: new Dictionary<string, string>(), 1805env: new Dictionary<string, string>(), 1854env: new Dictionary<string, string>(), 1902env: new Dictionary<string, string>(), 2513env: new Dictionary<string, string>(), 2551env: new Dictionary<string, string>(), 2590env: new Dictionary<string, string>(), 2630env: new Dictionary<string, string>(), 2667env: new Dictionary<string, string>(), 2689?? new Dictionary<string, string?>();
DotNet\ProcessExecutionDetachedTests.cs (4)
94environment: new Dictionary<string, string> 163environment: new Dictionary<string, string> 283environment: new Dictionary<string, string> 341environment: new Dictionary<string, string>
Layout\LayoutProcessRunnerTests.cs (2)
42var callerEnv = new Dictionary<string, string> { ["ASPIRE_CLI_PID"] = "999" }; 84var callerEnv = new Dictionary<string, string> { ["ASPIRE_CLI_PID"] = "999" };
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (3)
244.AddInMemoryCollection(new Dictionary<string, string?> 288.AddInMemoryCollection(new Dictionary<string, string?> 328.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\ApiDocs\ApiDocsSourceConfigurationTests.cs (1)
15.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\Docs\DocsIndexServiceTests.cs (1)
466.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\Docs\DocsSourceConfigurationTests.cs (1)
15.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\E2E\McpDocsE2ETests.cs (8)
83new Dictionary<string, object?> { ["query"] = "redis" }); 102new Dictionary<string, object?> { ["query"] = "aspire", ["topK"] = 3 }); 120new Dictionary<string, object?> { ["query"] = "redis" }); 136new Dictionary<string, object?> { ["slug"] = slug }); 152new Dictionary<string, object?> { ["query"] = "" }); 180new Dictionary<string, object?> { ["slug"] = slug }); 196new Dictionary<string, object?> { ["slug"] = "nonexistent-doc-that-does-not-exist" }); 224new Dictionary<string, object?>
Mcp\ExcludeFromMcpTests.cs (15)
43Properties = new Dictionary<string, JsonNode?> 58Properties = new Dictionary<string, JsonNode?> 73Properties = new Dictionary<string, JsonNode?> 88Properties = new Dictionary<string, JsonNode?> 118Properties = new Dictionary<string, JsonNode?> 151Properties = new Dictionary<string, JsonNode?> 183Properties = new Dictionary<string, JsonNode?> 194var arguments = new Dictionary<string, JsonElement> 228var arguments = new Dictionary<string, JsonElement> 255Properties = new Dictionary<string, JsonNode?> 286var arguments = new Dictionary<string, JsonElement> 323var arguments = new Dictionary<string, JsonElement> 360var arguments = new Dictionary<string, JsonElement> 409var arguments = new Dictionary<string, JsonElement> 449Properties = new Dictionary<string, JsonNode?>
Mcp\ListConsoleLogsToolTests.cs (13)
22var arguments = new Dictionary<string, JsonElement> 61var arguments = new Dictionary<string, JsonElement> 96var arguments = new Dictionary<string, JsonElement> 130var arguments = new Dictionary<string, JsonElement> 160var arguments = new Dictionary<string, JsonElement> 189var arguments = new Dictionary<string, JsonElement> 220var arguments = new Dictionary<string, JsonElement> 254var arguments = new Dictionary<string, JsonElement> 286var arguments = new Dictionary<string, JsonElement> 320var arguments = new Dictionary<string, JsonElement> 355var arguments = new Dictionary<string, JsonElement> 392var arguments = new Dictionary<string, JsonElement> 429var arguments = new Dictionary<string, JsonElement>
Mcp\ListStructuredLogsToolTests.cs (2)
324var arguments = new Dictionary<string, JsonElement> 463var arguments = new Dictionary<string, JsonElement>
Mcp\ListTracesToolTests.cs (3)
309var arguments = new Dictionary<string, JsonElement> 412var arguments = new Dictionary<string, JsonElement> 505var arguments = new Dictionary<string, JsonElement>
Npm\AspireJsLauncherTests.cs (1)
255var packageMap = new Dictionary<string, string> { [rid] = ridPackageName };
NuGet\NuGetSignatureVerificationEnablerTests.cs (8)
20var envVars = new Dictionary<string, string>(); 37var envVars = new Dictionary<string, string>(); 39var environment = CreateEnvironment(new Dictionary<string, string?>()); // empty env — no user override 55var envVars = new Dictionary<string, string>(); 57var environment = CreateEnvironment(new Dictionary<string, string?> 76var envVars = new Dictionary<string, string>(); 78var environment = CreateEnvironment(new Dictionary<string, string?> 97var envVars = new Dictionary<string, string>();
Packaging\PackagingServiceTests.cs (33)
64.AddInMemoryCollection(new Dictionary<string, string?> 274.AddInMemoryCollection(new Dictionary<string, string?> 363var settings = new Dictionary<string, string?>(); 429.AddInMemoryCollection(new Dictionary<string, string?> 461.AddInMemoryCollection(new Dictionary<string, string?> 491.AddInMemoryCollection(new Dictionary<string, string?> 517.AddInMemoryCollection(new Dictionary<string, string?> 544.AddInMemoryCollection(new Dictionary<string, string?> 571.AddInMemoryCollection(new Dictionary<string, string?> 597.AddInMemoryCollection(new Dictionary<string, string?> 638.AddInMemoryCollection(new Dictionary<string, string?> 668.AddInMemoryCollection(new Dictionary<string, string?> 723.AddInMemoryCollection(new Dictionary<string, string?> 847.AddInMemoryCollection(new Dictionary<string, string?> 890.AddInMemoryCollection(new Dictionary<string, string?> 922.AddInMemoryCollection(new Dictionary<string, string?> 954.AddInMemoryCollection(new Dictionary<string, string?> 984.AddInMemoryCollection(new Dictionary<string, string?> 1014.AddInMemoryCollection(new Dictionary<string, string?> 1044.AddInMemoryCollection(new Dictionary<string, string?> 1074.AddInMemoryCollection(new Dictionary<string, string?> 1101.AddInMemoryCollection(new Dictionary<string, string?> 1159.AddInMemoryCollection(new Dictionary<string, string?> 1250.AddInMemoryCollection(new Dictionary<string, string?> 1285.AddInMemoryCollection(new Dictionary<string, string?> 1321.AddInMemoryCollection(new Dictionary<string, string?> 1356.AddInMemoryCollection(new Dictionary<string, string?> 1400.AddInMemoryCollection(new Dictionary<string, string?> 1432.AddInMemoryCollection(new Dictionary<string, string?> 1462.AddInMemoryCollection(new Dictionary<string, string?> 1822.AddInMemoryCollection(new Dictionary<string, string?> 1874.AddInMemoryCollection(new Dictionary<string, string?> 1925.AddInMemoryCollection(new Dictionary<string, string?>
Processes\LauncherLivenessMonitorTests.cs (2)
54.AddInMemoryCollection(new Dictionary<string, string?> 98.AddInMemoryCollection(new Dictionary<string, string?>
ProfileCaptureOptionsTests.cs (1)
194var environmentVariables = new Dictionary<string, string>();
ProgramTests.cs (1)
47services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
Projects\AppHostEnvironmentDefaultsTests.cs (6)
14var env = new Dictionary<string, string>(); 25var env = new Dictionary<string, string> 41var env = new Dictionary<string, string> 60var env = new Dictionary<string, string> 76var env = new Dictionary<string, string>(); 77var inherited = new Dictionary<string, string?>
Projects\AppHostServerSessionTests.cs (2)
32var environmentVariables = new Dictionary<string, string> 55var environmentVariables = new Dictionary<string, string>
Projects\DotNetAppHostProjectTests.cs (64)
217var env = new Dictionary<string, string>(); 222inheritedEnvironmentVariables: new Dictionary<string, string?>()); 233var env = new Dictionary<string, string>(); 238inheritedEnvironmentVariables: new Dictionary<string, string?>()); 249var env = new Dictionary<string, string>(); 254inheritedEnvironmentVariables: new Dictionary<string, string?>(), 282var env = new Dictionary<string, string>(); 287inheritedEnvironmentVariables: new Dictionary<string, string?>()); 300var env = new Dictionary<string, string>(); 305inheritedEnvironmentVariables: new Dictionary<string, string?> 342EnvironmentVariables = new Dictionary<string, string>() 375EnvironmentVariables = new Dictionary<string, string>() 470EnvironmentVariables = new Dictionary<string, string>() 519EnvironmentVariables = new Dictionary<string, string> 539var environment = new TestEnvironment(new Dictionary<string, string?> 578EnvironmentVariables = new Dictionary<string, string>() 602var environmentVariables = new Dictionary<string, string> 641EnvironmentVariables = useExplicitOverlay ? environmentVariables : new Dictionary<string, string>() 685EnvironmentVariables = new Dictionary<string, string>() 731EnvironmentVariables = new Dictionary<string, string>() 791EnvironmentVariables = new Dictionary<string, string>() 854EnvironmentVariables = new Dictionary<string, string>() 912EnvironmentVariables = new Dictionary<string, string>() 966EnvironmentVariables = new Dictionary<string, string> 1066EnvironmentVariables = new Dictionary<string, string> 1150EnvironmentVariables = new Dictionary<string, string> 1205EnvironmentVariables = new Dictionary<string, string>() 1239EnvironmentVariables = new Dictionary<string, string>() 1281EnvironmentVariables = new Dictionary<string, string>() 1322EnvironmentVariables = new Dictionary<string, string>() 1372EnvironmentVariables = new Dictionary<string, string>() 1416EnvironmentVariables = new Dictionary<string, string>() 1470EnvironmentVariables = new Dictionary<string, string>() 1527EnvironmentVariables = new Dictionary<string, string>() 1681EnvironmentVariables = new Dictionary<string, string>() 1736EnvironmentVariables = new Dictionary<string, string>() 1791EnvironmentVariables = new Dictionary<string, string>() 1856EnvironmentVariables = new Dictionary<string, string>() 1917EnvironmentVariables = new Dictionary<string, string>() 1982EnvironmentVariables = new Dictionary<string, string>() 2039EnvironmentVariables = new Dictionary<string, string>() 2105EnvironmentVariables = new Dictionary<string, string>() 2166EnvironmentVariables = new Dictionary<string, string>() 2218EnvironmentVariables = new Dictionary<string, string>() 2249EnvironmentVariables = new Dictionary<string, string>() 2297EnvironmentVariables = new Dictionary<string, string>() 2324var env = new Dictionary<string, string>(); 2329inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2359var env = new Dictionary<string, string>(); 2364inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2403var env = new Dictionary<string, string>(); 2408inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2423var env = new Dictionary<string, string>(); 2428inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2450var env = new Dictionary<string, string>(); 2455inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2475var env = new Dictionary<string, string>(); 2480inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2490var env = new Dictionary<string, string>(); 2495inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2518var env = new Dictionary<string, string>(); 2523inheritedEnvironmentVariables: new Dictionary<string, string?>(), 2610EnvironmentVariables = new Dictionary<string, string>() 4190var properties = new Dictionary<string, string?>
Projects\ExtensionGuestLauncherTests.cs (6)
33new Dictionary<string, string>(), 56await launcher.LaunchAsync("npx", ["tsx"], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 71await launcher.LaunchAsync("npx", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 86var envVars = new Dictionary<string, string> 106var (exitCode, output) = await launcher.LaunchAsync("cmd", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 122await launcher.LaunchAsync("python", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
Projects\GuestAppHostProjectTests.cs (40)
251Packages = new Dictionary<string, string> 274Packages = new Dictionary<string, string> 314Packages = new Dictionary<string, string> 337Packages = new Dictionary<string, string> 359Packages = new Dictionary<string, string> 420Packages = new Dictionary<string, string> 478inheritedEnvironmentVariables: new Dictionary<string, string?>()); 488launchProfileEnvironmentVariables: new Dictionary<string, string> 498inheritedEnvironmentVariables: new Dictionary<string, string?>()); 512launchProfileEnvironmentVariables: new Dictionary<string, string> 520inheritedEnvironmentVariables: new Dictionary<string, string?>(), 551new Dictionary<string, string> 556new Dictionary<string, string> 575contextEnvironmentVariables: new Dictionary<string, string>(), 576launchProfileEnvironmentVariables: new Dictionary<string, string> 587inheritedEnvironmentVariables: new Dictionary<string, string?>()); 601contextEnvironmentVariables: new Dictionary<string, string>(), 603inheritedEnvironmentVariables: new Dictionary<string, string?>(), 615contextEnvironmentVariables: new Dictionary<string, string>(), 617inheritedEnvironmentVariables: new Dictionary<string, string?>(), 627contextEnvironmentVariables: new Dictionary<string, string>(), 628launchProfileEnvironmentVariables: new Dictionary<string, string> 635inheritedEnvironmentVariables: new Dictionary<string, string?>(), 647contextEnvironmentVariables: new Dictionary<string, string>(), 650inheritedEnvironmentVariables: new Dictionary<string, string?> 663contextEnvironmentVariables: new Dictionary<string, string> 669inheritedEnvironmentVariables: new Dictionary<string, string?>()); 680contextEnvironmentVariables: new Dictionary<string, string> 686inheritedEnvironmentVariables: new Dictionary<string, string?>()); 696var files = new Dictionary<string, string> 1104.AddInMemoryCollection(new Dictionary<string, string?> 1166EnvironmentVariables = new Dictionary<string, string>() 1516var envVars = new Dictionary<string, string>(); 1538var envVars = new Dictionary<string, string> 1560var envVars = new Dictionary<string, string> 1591var envVars = new Dictionary<string, string> 1614var envVars = new Dictionary<string, string>(); 1645var environment = TestEnvironment.CreateWindows(new Dictionary<string, string?> 1650var envVars = new Dictionary<string, string> 1710var envVars = new Dictionary<string, string>
Projects\GuestRuntimeTests.cs (47)
129var envVars = new Dictionary<string, string>(); 149await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None); 170var (exitCode, _) = await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None); 191await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 211new Dictionary<string, string>(), 241new Dictionary<string, string>(), 287await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 337new Dictionary<string, string>(), 366new Dictionary<string, string>(), 389await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None); 406await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--output", "/out"], launcher, cancellationToken: CancellationToken.None); 427await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--output", "/out"], launcher, cancellationToken: CancellationToken.None); 453new Dictionary<string, string>(), 482new Dictionary<string, string>(), 503await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), null, launcher, cancellationToken: CancellationToken.None); 515EnvironmentVariables = new Dictionary<string, string> { ["SPEC_VAR"] = "spec_value" } 521var envVars = new Dictionary<string, string> { ["CALLER_VAR"] = "caller_value" }; 536EnvironmentVariables = new Dictionary<string, string> { ["SHARED_VAR"] = "from_spec" } 542var envVars = new Dictionary<string, string> { ["SHARED_VAR"] = "from_caller" }; 562await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 581await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 599await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--extra", "arg"], launcher, cancellationToken: CancellationToken.None); 619await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 706new Dictionary<string, string>(), 739new Dictionary<string, string>(), 797new Dictionary<string, string>(), 861new Dictionary<string, string>(), 913new Dictionary<string, string>(), 963MigrationFiles = new Dictionary<string, string> 978await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1011MigrationFiles = new Dictionary<string, string> 1022await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1042await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1056await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1072await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1095await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1118await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1143await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1165await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1194await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1218await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1259await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1284await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1328await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1356await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1387await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1466public IDictionary<string, string> LastEnvironmentVariables { get; private set; } = new Dictionary<string, string>();
Projects\PrebuiltAppHostServerTests.cs (1)
802.AddInMemoryCollection(new Dictionary<string, string?>
Projects\ProcessGuestLauncherTests.cs (6)
40new Dictionary<string, string>(), 67new Dictionary<string, string>(), 125new Dictionary<string, string>(), 177new Dictionary<string, string>(), 231new Dictionary<string, string>(), 291new Dictionary<string, string>(),
Projects\ProjectLocatorTests.cs (7)
469.AddInMemoryCollection(new Dictionary<string, string?> 2114return Task.FromResult(new Dictionary<string, string>()); 2119return Task.FromResult(new Dictionary<string, string>()); 2124return Task.FromResult(new Dictionary<string, string>()); 2936var envVars = new Dictionary<string, string?> 3004var envVars = new Dictionary<string, string?> 3044var envVars = new Dictionary<string, string?>
Telemetry\AspireCliTelemetryTests.cs (1)
388var configurationValues = new Dictionary<string, string?>();
Telemetry\CIEnvironmentDetectorTests.cs (12)
38.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 54.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 65.AddInMemoryCollection(new Dictionary<string, string?> 80.AddInMemoryCollection(new Dictionary<string, string?> 94.AddInMemoryCollection(new Dictionary<string, string?> 108.AddInMemoryCollection(new Dictionary<string, string?> 123.AddInMemoryCollection(new Dictionary<string, string?> 137.AddInMemoryCollection(new Dictionary<string, string?> 152.AddInMemoryCollection(new Dictionary<string, string?> 169.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 182.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 193.AddInMemoryCollection(new Dictionary<string, string?>
Telemetry\InternalMicrosoftDetectorTests.cs (5)
240environmentVariables: new Dictionary<string, string?> 272environmentVariables: new Dictionary<string, string?> 306environmentVariables: new Dictionary<string, string?> 428environmentVariables: new Dictionary<string, string?> 615?? new Dictionary<string, string?>();
Telemetry\ProfilingTelemetryContextTests.cs (3)
25var environment = new Dictionary<string, string>(); 41var environment = new Dictionary<string, string>(); 56var environment = new Dictionary<string, string>();
Telemetry\TelemetryConfigurationTests.cs (8)
30? new Dictionary<string, string?>() 66var config = new Dictionary<string, string?> 113.AddInMemoryCollection(new Dictionary<string, string?> 148var config = WithTelemetryOptIn(new Dictionary<string, string?> 193var config = new Dictionary<string, string?> 212var config = WithTelemetryOptIn(new Dictionary<string, string?> 232var config = new Dictionary<string, string?> 286.AddInMemoryCollection(new Dictionary<string, string?>
Templating\ConditionalBlockProcessorTests.cs (4)
274var conditions = new Dictionary<string, bool> 304var conditions = new Dictionary<string, bool> 329var conditions = new Dictionary<string, bool> 366var conditions = new Dictionary<string, bool>
Templating\DotNetTemplateFactoryTests.cs (1)
474EnvironmentVariables = new Dictionary<string, string>(),
TestServices\FakeAppHostServerSession.cs (2)
123=> Task.FromResult(new Dictionary<string, string>()); 126=> Task.FromResult(new Dictionary<string, string>());
TestServices\FakePlaywrightServices.cs (1)
86var files = new Dictionary<(string SkillName, string RelativePath), string>
TestServices\TestCertificateService.cs (1)
14EnvironmentVariables = new Dictionary<string, string>(),
TestServices\TestConfigurationService.cs (3)
31return Task.FromResult(new Dictionary<string, string>()); 36return Task.FromResult(new Dictionary<string, string>()); 41return Task.FromResult(new Dictionary<string, string>());
TestServices\TestFeatures.cs (1)
10private readonly Dictionary<string, bool> _features = new();
TestServices\TestProcessExecutionFactory.cs (1)
159?? new Dictionary<string, string?>();
Utils\AspireAnsiConsoleOutputTests.cs (5)
16.AddInMemoryCollection(new Dictionary<string, string?> 36.AddInMemoryCollection(new Dictionary<string, string?> 56.AddInMemoryCollection(new Dictionary<string, string?> 77.AddInMemoryCollection(new Dictionary<string, string?> 98.AddInMemoryCollection(new Dictionary<string, string?>
Utils\CliHostEnvironmentTests.cs (18)
46.AddInMemoryCollection(new Dictionary<string, string?> 66.AddInMemoryCollection(new Dictionary<string, string?> 89.AddInMemoryCollection(new Dictionary<string, string?> 106.AddInMemoryCollection(new Dictionary<string, string?> 128.AddInMemoryCollection(new Dictionary<string, string?> 146.AddInMemoryCollection(new Dictionary<string, string?> 190.AddInMemoryCollection(new Dictionary<string, string?> 208.AddInMemoryCollection(new Dictionary<string, string?> 226.AddInMemoryCollection(new Dictionary<string, string?> 244.AddInMemoryCollection(new Dictionary<string, string?> 263.AddInMemoryCollection(new Dictionary<string, string?> 282.AddInMemoryCollection(new Dictionary<string, string?> 301.AddInMemoryCollection(new Dictionary<string, string?> 320.AddInMemoryCollection(new Dictionary<string, string?> 339.AddInMemoryCollection(new Dictionary<string, string?> 357.AddInMemoryCollection(new Dictionary<string, string?> 378.AddInMemoryCollection(new Dictionary<string, string?> 396.AddInMemoryCollection(new Dictionary<string, string?>
Utils\CliTestHelper.cs (1)
89var configurationValues = new Dictionary<string, string?>();
Utils\CliUpdateNotificationServiceTests.cs (1)
437return new Dictionary<string, string?>
Utils\DevCertsCheckTests.cs (16)
341var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 376var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 422var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 466var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 517var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 572var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 622var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 681var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 738var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 779var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 823var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 869var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 915var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 961var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 1004var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 1040var environment = TestEnvironment.CreateMacOS(new Dictionary<string, string?>
Utils\NpmInstallDetectionTests.cs (5)
13using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 37using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 51using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 65using var baseline = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?>()); 68using (NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?>
Utils\TestEnvironment.cs (1)
18Variables = variables ?? new Dictionary<string, string?>();
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (39)
Authentication\FrontendCompositeAuthenticationHandler.cs (2)
27items: new Dictionary<string, string?>(), 28parameters: new Dictionary<string, object?> { [AspirePolicyEvaluator.SuppressChallengeKey] = true }));
Components\Controls\Chart\ChartBase.cs (3)
68private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 69private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>(); 215_newCache = new Dictionary<SpanKey, OtlpSpan>();
Components\Controls\Chart\ChartDataCalculator.cs (1)
71var traces = new Dictionary<int, ChartTrace>
Components\Controls\Chart\PlotlyChart.razor.cs (1)
120var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>();
Components\Controls\ResourceDetails.razor.cs (1)
199_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Controls\SpanDetails.razor.cs (1)
145_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Controls\StructuredLogDetails.razor.cs (1)
107_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
54_elementRefs = new();
Components\Layout\AspirePageContentLayout.razor.cs (1)
61public Dictionary<string, Func<Task>> DialogCloseListeners { get; } = new();
Components\Pages\ComponentTelemetryContext.cs (1)
113return new Dictionary<string, AspireTelemetryProperty>
Components\Pages\TraceDetail.razor.cs (1)
839var map = new Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel>();
Configuration\EndpointInfo.cs (1)
25var map = new Dictionary<string, List<EndpointInfo>>();
DashboardWebApplication.cs (1)
666var initialValues = new Dictionary<string, string?>();
Model\ConsoleLogsFilters.cs (2)
16FilterResourceLogsDates = new Dictionary<string, DateTime>() 38new() { FilterAllLogsDate = clearDate, FilterResourceLogsDates = new Dictionary<string, DateTime>() };
Model\DashboardCommandExecutor.cs (1)
45new Dictionary<string, AspireTelemetryProperty>
Model\GenAI\GenAISchemaHelpers.cs (1)
29schema.Properties = new Dictionary<string, ToolDefinitionSchema>();
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
461var messages = new Dictionary<int, Dictionary<string, string>>(); 478message = new Dictionary<string, string>();
Model\ResourceMenuBuilder.cs (1)
196AdditionalAttributes = new Dictionary<string, object>
Model\TraceHelpers.cs (1)
19var spanLookup = new Dictionary<OtlpSpan, List<OtlpSpan>>();
Otlp\Http\OtlpJsonConverters.cs (2)
16private static readonly Dictionary<Type, Func<string, IMessage>> s_jsonDeserializers = new() 35private static readonly Dictionary<Type, Func<IMessage, string>> s_jsonSerializers = new()
Otlp\Storage\GetInstrumentRequest.cs (1)
39public IReadOnlyDictionary<string, IReadOnlyList<string?>> DimensionFilters { get; init; } = new Dictionary<string, IReadOnlyList<string?>>();
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
120var knownAttributeValues = new Dictionary<string, List<string?>>();
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (2)
161var existingSpans = new Dictionary<(string TraceId, string SpanId), IngestionExistingSpanRecord>(); 263var parentSpanIds = new Dictionary<(string TraceId, string SpanId), string?>();
ServiceClient\SqliteResourceRepository.cs (1)
330var consoleLogToInsertIndexes = new Dictionary<int, int>();
src\Shared\EnumerableExtensions.cs (1)
19var dictionary = new Dictionary<TKey, TValue>();
src\Shared\Export\ExportArchive.cs (5)
24public Dictionary<string, ResourceJson> Resources { get; } = new(); 30public Dictionary<string, List<string>> ConsoleLogs { get; } = new(); 36public Dictionary<string, OtlpTelemetryDataJson> StructuredLogs { get; } = new(); 42public Dictionary<string, OtlpTelemetryDataJson> Traces { get; } = new(); 48public Dictionary<string, OtlpTelemetryDataJson> Metrics { get; } = new();
Telemetry\DashboardTelemetryService.cs (1)
25_defaultProperties = new Dictionary<string, AspireTelemetryProperty>
Telemetry\TelemetryErrorRecorder.cs (1)
38new Dictionary<string, AspireTelemetryProperty>
Aspire.Dashboard.Components.Tests (18)
Controls\ResourceDetailsTests.cs (9)
432properties: new Dictionary<string, ResourcePropertyViewModel> 467var properties = new Dictionary<string, ResourcePropertyViewModel> 499var properties = new Dictionary<string, ResourcePropertyViewModel> 560var properties = new Dictionary<string, ResourcePropertyViewModel> 742var properties = new Dictionary<string, ResourcePropertyViewModel> 788var properties = new Dictionary<string, ResourcePropertyViewModel> 834var properties = new Dictionary<string, ResourcePropertyViewModel> 864var properties = new Dictionary<string, ResourcePropertyViewModel> 891var properties = new Dictionary<string, ResourcePropertyViewModel>
Dialogs\FilterDialogTests.cs (4)
144fieldValues.SetResult(new Dictionary<string, int> { ["request"] = 1 }); 224secondFieldValues.SetResult(new Dictionary<string, int> { ["latest-value"] = 1 }); 226firstFieldValues.SetResult(new Dictionary<string, int> { ["stale-value"] = 1 }); 379? new Dictionary<string, int> { ["request"] = 1 }
Pages\ConsoleLogsTerminalTests.cs (1)
682var properties = new Dictionary<string, ResourcePropertyViewModel>
Pages\ConsoleLogsTests.cs (1)
756await consoleLogsManager.UpdateFiltersAsync(new ConsoleLogsFilters { FilterAllLogsDate = earliestEntry.Timestamp!.Value, FilterResourceLogsDates = new Dictionary<string, DateTime>() });
Pages\ResourcesTests.cs (3)
415new Dictionary<string, bool> { { "Type1", true }, { "Type2", false } }, 417new Dictionary<string, bool> { { "Running", true }, { "Finished", false } }, 419new Dictionary<string, bool> { { "Healthy", true }, { "Unhealthy", false } },
Aspire.Dashboard.Tests (87)
ChartDataCalculatorTests.cs (1)
350var traces = new Dictionary<int, ChartTrace>
DashboardOptionsTests.cs (2)
53.AddInMemoryCollection(new Dictionary<string, string?> 77.AddInMemoryCollection(new Dictionary<string, string?>
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)
30Configuration = new Dictionary<string, string?>
Integration\StartupTests.cs (3)
244.AddInMemoryCollection(new Dictionary<string, string?> { [dashboardFileConfigDirectoryNameKey] = fileConfigDirectory.FullName }) 279.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName }) 1080builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Model\ApplicationsSelectHelpersTests.cs (1)
173var apps = new Dictionary<string, OtlpResource>();
Model\ConsoleLogsFiltersTests.cs (3)
19FilterResourceLogsDates = new Dictionary<string, DateTime> 43FilterResourceLogsDates = new Dictionary<string, DateTime> 69var filters = new ConsoleLogsFilters { FilterAllLogsDate = null, FilterResourceLogsDates = new Dictionary<string, DateTime>() };
Model\EnvHelpersTests.cs (4)
15var environmentVariables = new Dictionary<string, string?> 39var environmentVariables = new Dictionary<string, string?> 71var environmentVariables = new Dictionary<string, string?> 95var environmentVariables = new Dictionary<string, string?>
Model\GenAIItemPartViewModelTests.cs (2)
157AdditionalProperties = new Dictionary<string, JsonElement> 178AdditionalProperties = new Dictionary<string, JsonElement>
Model\ResourceGraphMapperTests.cs (7)
26var resources = new Dictionary<string, ResourceViewModel> 47var resources = new Dictionary<string, ResourceViewModel> 68var resources = new Dictionary<string, ResourceViewModel> 86var resources = new Dictionary<string, ResourceViewModel> 108var resources = new Dictionary<string, ResourceViewModel> 130var resources = new Dictionary<string, ResourceViewModel> 151var resources = new Dictionary<string, ResourceViewModel>
Model\ResourceIconHelpersTests.cs (1)
118var properties = new Dictionary<string, ResourcePropertyViewModel>
Model\ResourceSourceViewModelTests.cs (1)
18var properties = new Dictionary<string, ResourcePropertyViewModel>();
Model\ResourceStateViewModelTests.cs (5)
79var propertiesDictionary = new Dictionary<string, ResourcePropertyViewModel>(); 117properties: new Dictionary<string, ResourcePropertyViewModel> 145properties: new Dictionary<string, ResourcePropertyViewModel> 176properties: new Dictionary<string, ResourcePropertyViewModel> 204properties: new Dictionary<string, ResourcePropertyViewModel>
Model\ResourceViewModelExtensionsTerminalTests.cs (5)
17properties: new Dictionary<string, ResourcePropertyViewModel> 37properties: new Dictionary<string, ResourcePropertyViewModel> 52properties: new Dictionary<string, ResourcePropertyViewModel> 64properties: new Dictionary<string, ResourcePropertyViewModel> 78properties: new Dictionary<string, ResourcePropertyViewModel>
Model\TelemetryExportServiceTests.cs (5)
697var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 819var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 870var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 1396properties: new Dictionary<string, ResourcePropertyViewModel> 1529properties: new Dictionary<string, ResourcePropertyViewModel>
ResourceOutgoingPeerResolverTests.cs (29)
37var resources = new Dictionary<string, ResourceViewModel> 50var resources = new Dictionary<string, ResourceViewModel> 63var resources = new Dictionary<string, ResourceViewModel> 76var resources = new Dictionary<string, ResourceViewModel> 95var resources = new Dictionary<string, ResourceViewModel> 109var resources = new Dictionary<string, ResourceViewModel> 123var resources = new Dictionary<string, ResourceViewModel> 138var resources = new Dictionary<string, ResourceViewModel> 158var resources = new Dictionary<string, ResourceViewModel> 171var resources = new Dictionary<string, ResourceViewModel> 192var resources = new Dictionary<string, ResourceViewModel> 217var resources = new Dictionary<string, ResourceViewModel> 240var resources = new Dictionary<string, ResourceViewModel> 255var resources = new Dictionary<string, ResourceViewModel> 268var resources = new Dictionary<string, ResourceViewModel> 437var resources = new Dictionary<string, ResourceViewModel> 451var resources = new Dictionary<string, ResourceViewModel> 483var resources = new Dictionary<string, ResourceViewModel> 498var resources = new Dictionary<string, ResourceViewModel> 512var resources = new Dictionary<string, ResourceViewModel> 527var resources = new Dictionary<string, ResourceViewModel> 540var resources = new Dictionary<string, ResourceViewModel> 554var resources = new Dictionary<string, ResourceViewModel> 569var resources = new Dictionary<string, ResourceViewModel> 581var properties = new Dictionary<string, ResourcePropertyViewModel> 617var properties = new Dictionary<string, ResourcePropertyViewModel> 639var resources = new Dictionary<string, ResourceViewModel> 654var resources = new Dictionary<string, ResourceViewModel> 671var resources = new Dictionary<string, ResourceViewModel>
TelemetryRepositoryTests\MetricsTests.cs (2)
422DimensionFilters = new Dictionary<string, IReadOnlyList<string?>> 1513DimensionFilters = new Dictionary<string, IReadOnlyList<string?>>
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (4)
220var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 267var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 307var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 338var selectedResources = new Dictionary<string, HashSet<AspireDataType>>
TelemetryRepositoryTests\TraceTests.cs (1)
4730await repositoryContext.Repository.AsWriter().ClearSelectedSignalsAsync(new Dictionary<string, HashSet<AspireDataType>>
Terminal\DefaultTerminalConnectionResolverTests.cs (3)
62properties: new Dictionary<string, ResourcePropertyViewModel> 82properties: new Dictionary<string, ResourcePropertyViewModel> 119properties: new Dictionary<string, ResourcePropertyViewModel>
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (5)
67private readonly Dictionary<string, OtlpScope> _logScopes = new(); 73private readonly Dictionary<ResourceKey, int> _resourceUnviewedErrorLogs = new(); 77private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 2143var updatedTraces = new Dictionary<ReadOnlyMemory<byte>, OtlpTrace>(); 2543var allKnownAttributes = new Dictionary<string, List<string?>>();
Aspire.Deployment.EndToEnd.Tests (51)
AcaCompactNamingDeploymentTests.cs (2)
180new Dictionary<string, string>(), 324new Dictionary<string, string>(),
AcaCompactNamingUpgradeDeploymentTests.cs (1)
374new Dictionary<string, string>(),
AcaCustomRegistryDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AcaExistingRegistryDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
AcaManagedRedisDeploymentTests.cs (1)
55var deploymentUrls = new Dictionary<string, string>();
AcaStarterDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
AcrPurgeTaskDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (1)
64var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (1)
67var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (1)
58var deploymentUrls = new Dictionary<string, string>();
AksBlazorRedisDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksMultipleNodePoolsDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksPersistentVolumeDeploymentTests.cs (1)
50var deploymentUrls = new Dictionary<string, string>();
AksStarterDeploymentTests.cs (1)
337new Dictionary<string, string>
AksStarterWithRedisHelmDeploymentTests.cs (1)
367new Dictionary<string, string>
AksVnetInfraDeploymentTests.cs (1)
181new Dictionary<string, string>(),
AksVnetWithAzureResourcesDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksWithAzureResourcesDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksWithHelmChartDeploymentTests.cs (1)
59var deploymentUrls = new Dictionary<string, string>();
AppServicePythonDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AppServiceReactDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AppServiceStoragePrivateEndpointDeploymentTests.cs (1)
235new Dictionary<string, string>(),
AzureAppConfigDeploymentTests.cs (1)
157new Dictionary<string, string>(),
AzureContainerRegistryDeploymentTests.cs (1)
140new Dictionary<string, string>(),
AzureEventHubsDeploymentTests.cs (1)
157new Dictionary<string, string>(),
AzureKeyVaultDeploymentTests.cs (1)
157new Dictionary<string, string>(),
AzureLogAnalyticsDeploymentTests.cs (1)
140new Dictionary<string, string>(),
AzureResourceScopeDeploymentTests.cs (1)
151new Dictionary<string, string>(),
AzureRoleAssignmentRunModeTests.cs (1)
202new Dictionary<string, string>(),
AzureServiceBusDeploymentTests.cs (1)
159new Dictionary<string, string>(),
AzureStorageDeploymentTests.cs (2)
174new Dictionary<string, string>(), 334new Dictionary<string, string>(),
AzureStorageRunModeTests.cs (1)
182new Dictionary<string, string>(),
FoundryHostedAgentDeploymentTests.cs (1)
55var deploymentUrls = new Dictionary<string, string>();
FrontDoorDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
KubernetesGatewayTlsDeploymentTests.cs (1)
440new Dictionary<string, string>
KubernetesHelmChartDeploymentTests.cs (1)
283new Dictionary<string, string>
NspStorageKeyVaultDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
PythonFastApiDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
RadiusStarterDeploymentTests.cs (1)
598new Dictionary<string, string>
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
88new Dictionary<string, string>(),
TypeScriptExpressDeploymentTests.cs (1)
52var deploymentUrls = new Dictionary<string, string>();
TypeScriptJavaScriptHostingDeploymentTests.cs (1)
90new Dictionary<string, string>(),
TypeScriptVnetSqlServerInfraDeploymentTests.cs (1)
244new Dictionary<string, string>(),
VnetKeyVaultConnectivityDeploymentTests.cs (1)
51var deploymentUrls = new Dictionary<string, string>();
VnetKeyVaultInfraDeploymentTests.cs (1)
168new Dictionary<string, string>(),
VnetSqlServerConnectivityDeploymentTests.cs (1)
56var deploymentUrls = new Dictionary<string, string>();
VnetSqlServerInfraDeploymentTests.cs (1)
169new Dictionary<string, string>(),
VnetStorageBlobConnectivityDeploymentTests.cs (1)
51var deploymentUrls = new Dictionary<string, string>();
VnetStorageBlobInfraDeploymentTests.cs (1)
170new Dictionary<string, string>(),
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
169EnvVars = new Dictionary<string, string>();
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (43)
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (1)
151internal Dictionary<string, Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>> CustomBundlesFactories { get; } = new();
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
151public Dictionary<string, Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>> CustomBundlesFactories { get; } = new();
ApplicationModel\DebugSupportExtensions.cs (1)
138new Dictionary<string, string>(),
ApplicationModel\EnvironmentCallbackContext.cs (1)
37public Dictionary<string, object> EnvironmentVariables { get; } = environmentVariables ?? new();
ApplicationModel\ExecutionConfigurationGathererContext.cs (1)
14public Dictionary<string, object> EnvironmentVariables { get; } = new();
ApplicationModel\ProcessCommandSpec.cs (1)
48public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
ApplicationModel\ResourceExtensions.cs (2)
419var config = new Dictionary<string, object>(); 1660var envVars = new Dictionary<string, object>();
ApplicationModel\ResourceNotificationService.cs (1)
777var versionsSeen = new Dictionary<string, long>();
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
226var arguments = new Dictionary<string, object?>(); 1143var properties = new Dictionary<string, JsonNode?>(); 1489var result = new Dictionary<string, string?>();
Dashboard\DashboardEventHandlers.cs (1)
906var dashboardResourceTasks = new Dictionary<string, Task>();
Dcp\DcpHost.cs (1)
466var loggerCache = new Dictionary<int, ILogger>();
Dcp\DcpNameGenerator.cs (1)
24private readonly Dictionary<string, string> _networkServices = new();
Dcp\DcpResourceWatcher.cs (2)
150var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>(); 720var counts = new Dictionary<LogEntryKey, int>();
Dcp\Model\ExecutableReplicaSet.cs (2)
28Annotations = new Dictionary<string, string>(); 38Annotations = new Dictionary<string, string>();
Dcp\Model\ModelCommon.cs (3)
51Metadata.Annotations = new Dictionary<string, string>(); 61Metadata.Annotations = new Dictionary<string, string>(); 71Metadata.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)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
38remappedUrls ??= new();
DistributedApplicationBuilder.cs (6)
276_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 328_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 464new Dictionary<string, string?> 478new Dictionary<string, string?> 489new Dictionary<string, string?> 769var switchMappings = new Dictionary<string, string>()
Health\ResourceHealthCheckService.cs (1)
16private readonly Dictionary<string, ResourceMonitorState> _resourceMonitoringStates = new();
Orchestrator\ParameterProcessor.cs (1)
113var referencedParameters = new Dictionary<string, ParameterResource>();
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
38private readonly Dictionary<string, SectionMetadata> _sections = new();
Publishing\DockerContainerRuntime.cs (1)
92var environmentVariables = new Dictionary<string, string>();
Publishing\PodmanContainerRuntime.cs (1)
200var environmentVariables = new Dictionary<string, string>();
Publishing\ResourceContainerImageManager.cs (2)
463var resolvedBuildArguments = new Dictionary<string, string?>(); 470var resolvedBuildSecrets = new Dictionary<string, BuildImageSecretValue>();
ResourceBuilderExtensions.cs (1)
3431var environmentVariables = processCommandSpec.EnvironmentVariables ?? new Dictionary<string, string>();
UserSecrets\NoopUserSecretsManager.cs (1)
43configuration.AddInMemoryCollection(new Dictionary<string, string?> { [name] = value });
UserSecrets\UserSecretsManagerFactory.cs (2)
27private readonly Dictionary<string, IUserSecretsManager> _managerCache = new(); 143new Dictionary<string, string?>
Utils\DotnetSdkUtils.cs (1)
10private static readonly Dictionary<string, string> s_dotnetCliEnvVars = new()
Aspire.Hosting.Azure (6)
AcrLoginService.cs (1)
158var formData = new Dictionary<string, string>
AzurePublishingContext.cs (2)
150var moduleMap = new Dictionary<AzureBicepResource, ModuleImport>(); 354var outputs = new Dictionary<string, BicepOutputReference>();
AzureResourcePreparer.cs (2)
183var globalRoleAssignments = new Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>>(); 363var result = new Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>>();
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppExtensions.cs (1)
424var managedStorages = new Dictionary<string, ContainerAppManagedEnvironmentStorage>();
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentExtensions.cs (1)
547var poolSubnetParams = new Dictionary<string, ProvisioningParameter>();
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Azure.Kubernetes.Tests (2)
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
129Assert.Equivalent(new Dictionary<string, object>() { { "ACCEPT_EULA", "Y" } }, env);
Aspire.Hosting.Azure.Tests (83)
AzureContainerAppsTests.cs (1)
2405Profiles = new Dictionary<string, LaunchProfile>
AzureCosmosDBEmulatorFunctionalTests.cs (2)
181hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 230hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AzureCosmosDBExtensionsTests.cs (6)
155var target = new Dictionary<string, object>(); 360var secrets = new Dictionary<string, string> 464var secrets = new Dictionary<string, string> 674var env = new Dictionary<string, object>(); 708var env = new Dictionary<string, object>(); 742var env = new Dictionary<string, object>();
AzureDeployerTests.cs (32)
143string name when name.StartsWith("env-acr") => new Dictionary<string, object> 148string name when name.StartsWith("env") => new Dictionary<string, object> 206string name when name.StartsWith("env-acr") => new Dictionary<string, object> 211string name when name.StartsWith("env") => new Dictionary<string, object> 265string name when name.StartsWith("env-acr") => new Dictionary<string, object> 270string name when name.StartsWith("env") => new Dictionary<string, object> 325string name when name.StartsWith("env-acr") => new Dictionary<string, object> 330string name when name.StartsWith("env") => new Dictionary<string, object> 391string name when name.StartsWith("env-acr") => new Dictionary<string, object> 396string name when name.StartsWith("env") => new Dictionary<string, object> 457string name when name.StartsWith("env-acr") => new Dictionary<string, object> 462string name when name.StartsWith("env") => new Dictionary<string, object> 513string name when name.StartsWith("env-acr") => new Dictionary<string, object> 518string name when name.StartsWith("env") => new Dictionary<string, object> 576string name when name.StartsWith("aca-env-acr") => new Dictionary<string, object> 581string name when name.StartsWith("aca-env") => new Dictionary<string, object> 590string name when name.StartsWith("aas-env-acr") => new Dictionary<string, object> 595string name when name.StartsWith("aas-env") => new Dictionary<string, object> 864string name when name.StartsWith("env-acr") => new Dictionary<string, object> 869string name when name.StartsWith("env") => new Dictionary<string, object> 928string name when name.StartsWith("env-acr") => new Dictionary<string, object> 933string name when name.StartsWith("env") => new Dictionary<string, object> 1094string name when name.StartsWith("env-acr") => new Dictionary<string, object> 1099string name when name.StartsWith("env") => new Dictionary<string, object> 1108string name when name.StartsWith("funcstorage") => new Dictionary<string, object> 1116string name when name.StartsWith("hoststorage") => new Dictionary<string, object> 1124string name when name.StartsWith("funcapp-identity") => new Dictionary<string, object> 1130string name when name.StartsWith("funcapp-containerapp") => new Dictionary<string, object> 1137string name when name.StartsWith("funcapp") => new Dictionary<string, object> 1214string name when name.StartsWith("env") => new Dictionary<string, object> 1222string name when name.StartsWith("kv") => new Dictionary<string, object> 1625Profiles = new Dictionary<string, LaunchProfile>
AzureEnvironmentResourceTests.cs (1)
359public IDictionary<string, object?> Parameters { get; } = new Dictionary<string, object?>();
AzureEventHubsExtensionsTests.cs (1)
594var target = new Dictionary<string, object>();
AzureFunctionsTests.cs (7)
466Profiles = new Dictionary<string, LaunchProfile> 483Profiles = new Dictionary<string, LaunchProfile> 500Profiles = new Dictionary<string, LaunchProfile> 517Profiles = new Dictionary<string, LaunchProfile> 533Profiles = new Dictionary<string, LaunchProfile> 550Profiles = new Dictionary<string, LaunchProfile> 567Profiles = new Dictionary<string, LaunchProfile>
AzureServiceBusExtensionsTests.cs (1)
695var target = new Dictionary<string, object>();
BicepUtilitiesTests.cs (4)
444configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 468configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 495configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 534configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?>
DefaultAzurePrincipalProviderTests.cs (1)
324var payload = new Dictionary<string, object?>
ProvisioningTestHelpers.cs (3)
250: this(new Dictionary<string, object>()) 275public TestArmClient() : this(new Dictionary<string, object>()) 976public TestArmClientProvider() : this(new Dictionary<string, object>())
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>();
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Blazor (1)
Manifests\EndpointsManifestTransformer.cs (1)
80var mergedChildren = new Dictionary<string, AssetNode>();
Aspire.Hosting.Blazor.Tests (28)
BlazorHostedExtensionsTests.cs (1)
507var env = new Dictionary<string, object>();
EndpointsManifestTransformerTests.cs (7)
138Children = new Dictionary<string, AssetNode> 142Children = new Dictionary<string, AssetNode> 159Children = new Dictionary<string, AssetNode> 163Children = new Dictionary<string, AssetNode> 219Children = new Dictionary<string, AssetNode> 232Children = new Dictionary<string, AssetNode> 275Children = new Dictionary<string, AssetNode>
GatewayConfigurationBuilderTests.cs (20)
23var env = new Dictionary<string, object>(); 46var env = new Dictionary<string, object>(); 68var env = new Dictionary<string, object>(); 95var env = new Dictionary<string, object>(); 121var env = new Dictionary<string, object>(); 141var env = new Dictionary<string, object>(); 167var env = new Dictionary<string, object>(); 192var env = new Dictionary<string, object>(); 215var env = new Dictionary<string, object> 247var env = new Dictionary<string, object>(); 268var env = new Dictionary<string, object>(); 294var env = new Dictionary<string, object>(); 318var env = new Dictionary<string, object>(); 341var env = new Dictionary<string, object>(); 366var env = new Dictionary<string, object>(); 397var env = new Dictionary<string, object>(); 456var env = new Dictionary<string, object>(); 485var env = new Dictionary<string, object>(); 504Environment = new Dictionary<string, string> 530var env = new Dictionary<string, object>();
Aspire.Hosting.Browsers (1)
BrowserHostRegistry.cs (1)
21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new();
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new();
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
33var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Java (1)
JavaLanguageSupport.cs (1)
48var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Python (14)
AtsPythonCodeGenerator.cs (5)
638var files = new Dictionary<string, string>(); 1828var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 1831var typeRefsByTypeId = new Dictionary<string, AtsTypeRef>(); 1834var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 2086var typeRefs = new Dictionary<string, AtsTypeRef>();
PythonLanguageSupport.cs (1)
66var files = new Dictionary<string, string>();
PythonModuleBuilder.cs (8)
33public Dictionary<string, StringBuilder> TypeClasses { get; } = new(); 38public Dictionary<string, StringBuilder> InterfaceClasses { get; } = new(); 43public Dictionary<string, StringBuilder> ResourceBuilders { get; } = new(); 48public Dictionary<string, StringBuilder> ResourceOptions { get; } = new(); 53public Dictionary<string, List<string>> ResourceOptionNames { get; } = new(); 58public Dictionary<string, StringBuilder> ResourceClasses { get; } = new(); 68public Dictionary<string, string> HandleRegistrations { get; } = new(); 73public Dictionary<string, StringBuilder> MethodParameters { get; } = new();
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
37var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.TypeScript (7)
AtsTypeScriptCodeGenerator.cs (1)
425var files = new Dictionary<string, string>();
TypeScriptApiProjector.cs (4)
2571var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 2574var typeRefsByTypeId = new Dictionary<string, AtsTypeRef>(); 2577var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 2856var typeRefs = new Dictionary<string, AtsTypeRef>();
TypeScriptLanguageSupport.cs (2)
65var files = new Dictionary<string, string>(); 290MigrationFiles = new Dictionary<string, string>
Aspire.Hosting.Containers.Tests (6)
TestcontainersPodmanConfigurationTests.cs (6)
59environment: new() { [DockerHostVariable] = "npipe://./pipe/docker_engine" }, 72environment: new() { [DockerHostVariable] = "npipe:////./pipe/podman-machine-default" }, 83environment: new() { [DockerHostVariable] = "unix:///var/run/docker.sock" }, 100environment: new() { [DockerHostVariable] = dockerHost }, 113environment: new() 167environment: new() { [RyukDisabledVariable] = "false" },
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelCliClientTests.cs (1)
22.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Docker (2)
DockerComposeServiceResource.cs (1)
219var env = new Dictionary<string, string>();
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Docker.Tests (5)
DockerComposePublisherTests.cs (3)
1168public TestProjectWithLaunchSettings() => Profiles = new() 1175EnvironmentVariables = new() 1185EnvironmentVariables = new()
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.EntityFrameworkCore (6)
EFCoreOperationExecutor.cs (6)
540return await ExecuteEfCommandAsync("database", "drop", new Dictionary<string, string?> 568var args = new Dictionary<string, string?> 589return await ExecuteEfCommandAsync("migrations", "remove", new Dictionary<string, string?> 600var result = await ExecuteEfCommandAsync("migrations", "list", new Dictionary<string, string?> 701var args = new Dictionary<string, string?>(); 732var args = new Dictionary<string, string?>();
Aspire.Hosting.Foundry (7)
HostedAgent\AzureHostedAgentResource.cs (2)
309var collectedEnvVars = new Dictionary<string, object>(); 322var resolvedEnvVars = new Dictionary<string, string>();
HostedAgent\HostedAgentConfiguration.cs (2)
29public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>() 107public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
HostedAgent\HostedAgentOptions.cs (2)
40public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>(); 46public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
PromptAgent\AzurePromptAgentResource.cs (1)
127public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>()
Aspire.Hosting.Java.Tests (2)
AddJavaAppTests.cs (2)
908var envVars = new Dictionary<string, object>(); 1362new Dictionary<string, string>(),
Aspire.Hosting.JavaScript.Tests (12)
AddBunAppTests.cs (2)
253var envVars = new Dictionary<string, object>(); 283var envVars = new Dictionary<string, object>();
AddViteAppTests.cs (10)
570var env = new Dictionary<string, object>(); 630var env = new Dictionary<string, object>(); 682var env = new Dictionary<string, object>(); 728var env = new Dictionary<string, object>(); 777var env = new Dictionary<string, object>(); 839var env = new Dictionary<string, object>(); 908var configPaths = new Dictionary<string, string>(); 919EnvironmentVariables = new Dictionary<string, object>(), 1017var env = new Dictionary<string, object>(); 1115EnvironmentVariables = new Dictionary<string, object>(),
Aspire.Hosting.Kubernetes (10)
Deployment\HelmDeploymentEngine.cs (2)
299var overrideValues = new Dictionary<string, Dictionary<string, Dictionary<string, object>>>(); 303var resolvedLookup = new Dictionary<string, string>();
KubernetesEnvironmentResource.cs (1)
781var pathsByHost = new Dictionary<string, List<IngressPathConfig>>();
KubernetesPublishingContext.cs (6)
27private readonly Dictionary<string, Dictionary<string, object>> _helmValues = new() 29[HelmExtensions.ParametersKey] = new Dictionary<string, object>(), 30[HelmExtensions.SecretsKey] = new Dictionary<string, object>(), 31[HelmExtensions.ConfigKey] = new Dictionary<string, object>(), 178resourceSection = new Dictionary<string, object>(); 265var paramValues = new Dictionary<string, object>();
KubernetesResource.cs (1)
161Labels = new()
Aspire.Hosting.Kubernetes.Tests (8)
KubernetesDeployTests.cs (3)
1072var lookup = new Dictionary<string, string> 1086var lookup = new Dictionary<string, string> 1100var lookup = new Dictionary<string, string>();
KubernetesPublisherTests.cs (3)
1914public TestProjectWithLaunchSettings() => Profiles = new() 1921EnvironmentVariables = new() 1931EnvironmentVariables = new()
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Maui (5)
MauiAndroidExtensions.cs (2)
175var msBuildProperties = new Dictionary<string, string>(); 380var msBuildProperties = new Dictionary<string, string>();
MauiiOSExtensions.cs (2)
182var msBuildProperties = new Dictionary<string, string> 391var msBuildProperties = new Dictionary<string, string>();
MauiMacCatalystExtensions.cs (1)
115msBuildProperties: new Dictionary<string, string>
Aspire.Hosting.Maui.Tests (18)
MauiEnvironmentHelperTests.cs (9)
18var envVars = new Dictionary<string, string> 35var envVars = new Dictionary<string, string> 55var envVars = new Dictionary<string, string> 72var envVars = new Dictionary<string, string> 88var envVars = new Dictionary<string, string> 112var envVars = new Dictionary<string, string> 128var envVars = new Dictionary<string, string> 148var envVars = new Dictionary<string, string> 165var envVars = new Dictionary<string, string>
MauiPlatformExtensionsTests.cs (9)
47new Dictionary<string, string> { ["OpenArguments"] = "-W" }), 56new Dictionary<string, string> { ["AdbTarget"] = "-d" }), 65new Dictionary<string, string> { ["AdbTarget"] = "-e" }), 74new Dictionary<string, string> { ["RuntimeIdentifier"] = "ios-arm64" }), 368Assert.Equal(new Dictionary<string, string> { ["AdbTarget"] = "-s abc12345" }, launchConfiguration.MsBuildProperties); 391Assert.Equal(new Dictionary<string, string> { ["AdbTarget"] = "-s Pixel_5_API_33" }, launchConfiguration.MsBuildProperties); 415Assert.Equal(new Dictionary<string, string> 442Assert.Equal(new Dictionary<string, string> 906configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.MySql.Tests (6)
MySqlFunctionalTests.cs (6)
91hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 168hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 238hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 349hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 433hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 504hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
111var data = new Dictionary<string, object>
Aspire.Hosting.Orleans.Tests (1)
OrleansProviderTypeTests.cs (1)
120var env = new Dictionary<string, object>();
Aspire.Hosting.PostgreSQL.Tests (5)
PostgresFunctionalTests.cs (5)
119hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 242hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 305hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 408hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 492hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
45hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 131hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 177hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Radius (11)
Publishing\RadiusInfrastructureBuilder.cs (10)
246var instanceParents = new Dictionary<RadiusResourceTypeConstruct, (ProvisionableResource? Env, ProvisionableResource App)>(); 268var containerConnectionTargets = new Dictionary<RadiusContainerConstruct, Dictionary<string, RadiusResourceTypeConstruct>>(); 637var resolved = new Dictionary<IResource, (string ResourceType, string ApiVersion)>(); 2003bicepAuth[consumer.Selector!] = new Dictionary<string, object> { ["secret"] = secretRef }; 2006gitPat[consumer.Selector!] = new Dictionary<string, object> { ["secret"] = secretRef }; 2009envSecrets[consumer.Selector!] = new Dictionary<string, object> 2024recipeConfig["bicep"] = new Dictionary<string, object> { ["authentication"] = bicepAuth }; 2029recipeConfig["terraform"] = new Dictionary<string, object> 2031["authentication"] = new Dictionary<string, object> 2033["git"] = new Dictionary<string, object> { ["pat"] = gitPat },
Secrets\RadiusSecretStoreValidation.cs (1)
349var envScoped = new Dictionary<(string? EnvironmentName, string Identifier), RadiusSecretStoreResource>();
Aspire.Hosting.Radius.Tests (4)
Recipes\RecipePackParametersBicepTests.cs (1)
33p["settings"] = new Dictionary<string, object> { ["tier"] = "standard", ["replicas"] = 3 };
Recipes\RecipeParameterAdvancedTests.cs (3)
50p["settings"] = new Dictionary<string, object?> 52["connection"] = new Dictionary<string, object?> 139p["scope"] = new Dictionary<string, object?>
Aspire.Hosting.Redis.Tests (8)
RedisFunctionalTests.cs (8)
113hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 153hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 255hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 292hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 338hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 373hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 423hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 454hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.RemoteHost (13)
AtsCapabilityScanner.cs (13)
51public Dictionary<string, MethodInfo> Methods { get; init; } = new(); 57public Dictionary<string, PropertyInfo> Properties { get; init; } = new(); 147var allMethods = new Dictionary<string, MethodInfo>(); 148var allProperties = new Dictionary<string, PropertyInfo>(); 149var seenCapabilities = new Dictionary<string, AtsCapabilityInfo>(); // Track capability ID -> first capability for duplicate detection 306var methods = new Dictionary<string, MethodInfo>(); 307var properties = new Dictionary<string, PropertyInfo>(); 311var discoveredResourceTypes = new Dictionary<string, Type>(); 873var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>(); 1527public Dictionary<string, MethodInfo> Methods { get; init; } = new(); 1532public Dictionary<string, PropertyInfo> Properties { get; init; } = new(); 1543var methods = new Dictionary<string, MethodInfo>(); 1544var properties = new Dictionary<string, PropertyInfo>();
Aspire.Hosting.RemoteHost.Tests (22)
AssemblyLoaderTests.cs (5)
52.AddInMemoryCollection(new Dictionary<string, string?> 99.AddInMemoryCollection(new Dictionary<string, string?> 160.AddInMemoryCollection(new Dictionary<string, string?> 176.AddInMemoryCollection(new Dictionary<string, string?> 231.AddInMemoryCollection(new Dictionary<string, string?>
AtsExportsTests.cs (1)
22.AddInMemoryCollection(new Dictionary<string, string?>
AtsMarshallerTests.cs (1)
553var dict = new Dictionary<string, int> { ["a"] = 1 };
CapabilityDispatcherTests.cs (3)
2536return new Dictionary<string, object> 2547return new Dictionary<string, int> 2558return new Dictionary<int, string>
CodeGeneration\ApiReferenceExportTests.cs (3)
134var service = CreateCodeGenerationService(new Dictionary<string, string?> 220var configurationValues = new Dictionary<string, string?> 261.AddInMemoryCollection(new Dictionary<string, string?> { ["ASPIRE_REMOTE_APPHOST_TOKEN"] = "test-token" })
CodeGenerationResolverTests.cs (1)
95.AddInMemoryCollection(new Dictionary<string, string?>
JsonRpcAuthenticationTests.cs (1)
113builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
OrphanDetectorTests.cs (5)
34.AddInMemoryCollection(new Dictionary<string, string?> { ["REMOTE_APP_HOST_PID"] = "1111" }) 55.AddInMemoryCollection(new Dictionary<string, string?> 80.AddInMemoryCollection(new Dictionary<string, string?> 105.AddInMemoryCollection(new Dictionary<string, string?> 130.AddInMemoryCollection(new Dictionary<string, string?>
ServiceErrorMessageTests.cs (2)
73.AddInMemoryCollection(new Dictionary<string, string?> 120.AddInMemoryCollection(new Dictionary<string, string?>())
Aspire.Hosting.Rust.Tests (19)
CargoMetadataTests.cs (15)
100var environment = new Dictionary<string, string> 117var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = " secret " }; 129var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = Secret }; 142var resourceEnvironment = new Dictionary<string, string>(); 143var inheritedEnvironment = new Dictionary<string, string?> 160var inheritedEnvironment = new Dictionary<string, string?> 167new Dictionary<string, string>(), 183var inheritedEnvironment = new Dictionary<string, string?> 190new Dictionary<string, string>(), 201var inheritedEnvironment = new Dictionary<string, string?> 208new Dictionary<string, string>(), 217var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" }; 227var environment = new Dictionary<string, string> 241var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" }; 257new Dictionary<string, string>());
FakeCargoMetadataReader.cs (1)
18public IReadOnlyDictionary<string, string> LastEnvironment { get; private set; } = new Dictionary<string, string>();
RustPublicApiTests.cs (3)
320new Dictionary<string, string> 409environmentVariables: new Dictionary<string, string> { ["CARGO_TARGET_DIR"] = "/first-target" }); 412environmentVariables: new Dictionary<string, string> { ["CARGO_TARGET_DIR"] = "/second-target" });
Aspire.Hosting.Sdk.Tests (20)
AppHostSdkTargetsTests.cs (20)
146new Dictionary<string, string> 237environment: new Dictionary<string, string> 256environment: new Dictionary<string, string> 276new Dictionary<string, string> 312new Dictionary<string, string> { ["AspireCliPath"] = aspireCliPath }); 337new Dictionary<string, string> 407? new Dictionary<string, string> { [SuppressCliRunHookEnvironmentVariable] = suppressionValue } 429var environment = new Dictionary<string, string> 466var environment = new Dictionary<string, string> 506var environment = new Dictionary<string, string> 547var environment = new Dictionary<string, string> 599var environment = new Dictionary<string, string> 648var environment = new Dictionary<string, string> 681var environment = new Dictionary<string, string> 708var environment = new Dictionary<string, string> 736var environment = new Dictionary<string, string> 762var environment = new Dictionary<string, string> 821new Dictionary<string, string> 927var environment = new Dictionary<string, string> 1778return new Dictionary<string, string>
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
189hb1.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 275hb2.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (2)
200var additionalConfig = new Dictionary<string, string?>(); 271var additionalConfig = new Dictionary<string, string?>();
DistributedApplicationTestingBuilder.cs (1)
408configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Tests (278)
AddParameterTests.cs (14)
50appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 79appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 131appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 217appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 287appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 618InvokeWithCustomInputForPolyglot(parameter, new Dictionary<string, object?> 623[nameof(InteractionInput.Options)] = new Dictionary<string, string> 679InvokeWithCustomInputForPolyglot(parameter, new Dictionary<string, object?> 685[nameof(InteractionInput.Options)] = new Dictionary<string, string>() 703foreach (var (propertyName, value) in properties ?? new Dictionary<string, object?>()) 721appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 744appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 768appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 794appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AtsHealthCheckExportsTests.cs (1)
23Data = new Dictionary<string, string>
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (9)
26.AddInMemoryCollection(new Dictionary<string, string?> 72.AddInMemoryCollection(new Dictionary<string, string?> 90.AddInMemoryCollection(new Dictionary<string, string?> 944.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>())) 1001.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>())) 1205.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, resource, new Dictionary<string, object>())) 2220.AddInMemoryCollection(new Dictionary<string, string?> 2817.AddInMemoryCollection(new Dictionary<string, string?> 2857.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\AuxiliaryBackchannelTests.cs (3)
337new object[] { "nonexistent-resource", "some-tool", new Dictionary<string, object?>() } 378new object[] { "mycontainer", "some-tool", new Dictionary<string, object?>() } 637.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\BackchannelContractTests.cs (5)
188Baggage = new() 198var expectedValues = new Dictionary<PropertyInfo, object?>(); 210Baggage = new() 284Baggage = new() 375return new Dictionary<string, string> { ["property"] = propertyName };
Cli\CliOrphanDetectorTests.cs (7)
37.AddInMemoryCollection(new Dictionary<string, string?> { { "ASPIRE_CLI_PID", "1111" } }) 60.AddInMemoryCollection(new Dictionary<string, string?> 85.AddInMemoryCollection(new Dictionary<string, string?> 113.AddInMemoryCollection(new Dictionary<string, string?> 137.AddInMemoryCollection(new Dictionary<string, string?> 183.AddInMemoryCollection(new Dictionary<string, string?> 211.AddInMemoryCollection(new Dictionary<string, string?> { { "ASPIRE_CLI_PID", "1111" } })
Dashboard\DashboardEventHandlersTests.cs (6)
282configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 295var envVars = new Dictionary<string, object>(); 330.AddInMemoryCollection(new Dictionary<string, string?> 346var environmentVariables = new Dictionary<string, object>(); 374.AddInMemoryCollection(new Dictionary<string, string?> 387var environmentVariables = new Dictionary<string, object>();
Dashboard\DashboardOptionsTests.cs (3)
21builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 39builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 62builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardResourceTests.cs (14)
33builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 99builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 198builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 233builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 269var config = new Dictionary<string, string?> 304builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 369builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 411builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 447builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 484builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 532builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 579builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 613builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 807var config = new Dictionary<string, string?>
Dashboard\DashboardServiceTests.cs (5)
737configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 790configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 921.AddInMemoryCollection(new Dictionary<string, string?> 953.AddInMemoryCollection(new Dictionary<string, string?> 983.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ConfigureDefaultDcpOptionsTests.cs (4)
23var options = ConfigureWithDcpPublisher(new() 40var options = ConfigureWithDcpPublisher(new() 66var options = ConfigureWithDcpPublisher(new() 88var options = ConfigureWithDcpPublisher(new()
Dcp\DcpCliArgsTests.cs (2)
162builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 191configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\DcpExecutorTests.cs (104)
192configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 294var configDict = new Dictionary<string, string?> 833var configDict = new Dictionary<string, string?> 868var configDict = new Dictionary<string, string?> 906var configDict = new Dictionary<string, string?> 1106.AddInMemoryCollection(new Dictionary<string, string?> 1185var configDict = new Dictionary<string, string?> 1223var configDict = new Dictionary<string, string?> 1261var configDict = new Dictionary<string, string?> 1382var configDict = new Dictionary<string, string?> 3493var configDict = new Dictionary<string, string?> 3530var configDict = new Dictionary<string, string?> 4259configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4294configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4339configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4371configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4407configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4447configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4478configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4509configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4539configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4568configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4620.AddInMemoryCollection(new Dictionary<string, string?> 4667var configDict = new Dictionary<string, string?> 4718var configDict = new Dictionary<string, string?> 4860configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4900.AddInMemoryCollection(new Dictionary<string, string?> 4940.AddInMemoryCollection(new Dictionary<string, string?> 4984.AddInMemoryCollection(new Dictionary<string, string?> 5037.AddInMemoryCollection(new Dictionary<string, string?> 5072configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 5102var configDict = new Dictionary<string, string?> 5218.AddInMemoryCollection(new Dictionary<string, string?> 5255var configDict = new Dictionary<string, string?> 5308var configDict = new Dictionary<string, string?> 5359var configDict = new Dictionary<string, string?> 5582var configDict = new Dictionary<string, string?> 5621var configDict = new Dictionary<string, string?> 5660var configDict = new Dictionary<string, string?> 5696var configDict = new Dictionary<string, string?> 5738var configDict = new Dictionary<string, string?> 5780var configDict = new Dictionary<string, string?> 5822var configDict = new Dictionary<string, string?> 5859var configDict = new Dictionary<string, string?> 5896var configDict = new Dictionary<string, string?> 5938var configDict = new Dictionary<string, string?> 5972var configDict = new Dictionary<string, string?> 6011var configDict = new Dictionary<string, string?> 6053var configDict = new Dictionary<string, string?> 6090var configDict = new Dictionary<string, string?> 6136var configDict = new Dictionary<string, string?> 6193var configDict = new Dictionary<string, string?> 6247var configDict = new Dictionary<string, string?> 6347MsBuildProperties = new Dictionary<string, string> 6360var configDict = new Dictionary<string, string?> 6462.AddInMemoryCollection(new Dictionary<string, string?> 6597.AddInMemoryCollection(new Dictionary<string, string?> 6696.AddInMemoryCollection(new Dictionary<string, string?> 6786.AddInMemoryCollection(new Dictionary<string, string?> 6901.AddInMemoryCollection(new Dictionary<string, string?> 6954.AddInMemoryCollection(new Dictionary<string, string?> 7000var configDict = new Dictionary<string, string?> 7086var configDict = new Dictionary<string, string?> 7127var configDict = new Dictionary<string, string?> 7183var configDict = new Dictionary<string, string?> 7225var configDict = new Dictionary<string, string?> 7305var configDict = new Dictionary<string, string?> 7337var configDict = new Dictionary<string, string?> 7383var configDict = new Dictionary<string, string?> 7424var configDict = new Dictionary<string, string?> 7463var configDict = new Dictionary<string, string?> 7506var configDict = new Dictionary<string, string?> 7706var configDict = new Dictionary<string, string?> 7778var configDict = new Dictionary<string, string?> 7817var configDict = new Dictionary<string, string?> 7851var configDict = new Dictionary<string, string?> 7915var configDict = new Dictionary<string, string?> 7946var configDict = new Dictionary<string, string?> 7978var configDict = new Dictionary<string, string?> 8040var configDict = new Dictionary<string, string?> 8095var configDict = new Dictionary<string, string?> 8146var configDict = new Dictionary<string, string?> 8199var configDict = new Dictionary<string, string?> 8276var configDict = new Dictionary<string, string?> 8311var configDict = new Dictionary<string, string?> 8366var configDict = new Dictionary<string, string?> 8408var configDict = new Dictionary<string, string?> 8445var configDict = new Dictionary<string, string?> 8480var configDict = new Dictionary<string, string?> 8556var configDict = new Dictionary<string, string?> 8639var configDict = new Dictionary<string, string?> 8701var configDict = new Dictionary<string, string?> 8752var configDict = new Dictionary<string, string?> 8795var configDict = new Dictionary<string, string?> 8845var configDict = new Dictionary<string, string?> 9230var configDict = new Dictionary<string, string?> 9283var configDict = new Dictionary<string, string?> 9653var configDict = new Dictionary<string, string?> 9700var configDict = new Dictionary<string, string?> 9744var configDict = new Dictionary<string, string?> 9793var configDict = new Dictionary<string, string?> 10072builder.AddInMemoryCollection(new Dictionary<string, string?> 10366EnvironmentVariables = new Dictionary<string, string> 10376EnvironmentVariables = new Dictionary<string, string>
Dcp\DcpHostNotificationTests.cs (6)
492.AddInMemoryCollection(new Dictionary<string, string?> 536.AddInMemoryCollection(new Dictionary<string, string?> 576var excludedVars = new Dictionary<string, string> 633.AddInMemoryCollection(new Dictionary<string, string?> 874.AddInMemoryCollection(new Dictionary<string, string?> 1048.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ExecutableLaunchPlanTests.cs (4)
30new Dictionary<string, string?> 77new Dictionary<string, string?> 136new Dictionary<string, string?> 157.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ProcessUtilTests.cs (1)
147EnvironmentVariables = new Dictionary<string, string>
Dcp\ResourceSnapshotBuilderTests.cs (5)
76var snapshot = CreateSnapshotBuilder(new Dictionary<string, IResource> 102var snapshotBuilder = CreateSnapshotBuilder(new Dictionary<string, IResource> 141CreateSnapshotBuilder(new Dictionary<string, IResource> 169var snapshotBuilder = CreateSnapshotBuilder(new Dictionary<string, IResource> 290return new(new DcpResourceState(applicationModel ?? new Dictionary<string, IResource>(), []));
DebugSupportExtensionsTests.cs (2)
272new Dictionary<string, string> { ["GO_PACKAGE"] = "./cmd/api" }, 439.AddInMemoryCollection(new Dictionary<string, string?>
Devcontainers\SshRemoteOptionsTests.cs (4)
17.AddInMemoryCollection(new Dictionary<string, string?> 39.AddInMemoryCollection(new Dictionary<string, string?> 60.AddInMemoryCollection(new Dictionary<string, string?> 81.AddInMemoryCollection(new Dictionary<string, string?>
ExpressionResolverTests.cs (1)
349Expressions = new()
FileSystemServiceTests.cs (1)
16var configDict = new Dictionary<string, string?>();
InteractionServiceTests.cs (5)
211configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 239configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 262configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1079LoadCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string> 1112LoadCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string>
KestrelConfigTests.cs (1)
379Profiles = new()
MSBuildTests.cs (10)
341new Dictionary<string, string> 460BuildProject(appHostDirectory, new Dictionary<string, string> { ["ASPIRE_HOME"] = bundle.LayoutRoot }); 481BuildProject(appHostDirectory, new Dictionary<string, string> 519new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome }); 548new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome }); 577new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome }); 605BuildProject(appHostDirectory, new Dictionary<string, string> 637var output = BuildProjectWithFailure(appHostDirectory, new Dictionary<string, string> 659BuildProject(appHostDirectory, new Dictionary<string, string> 796var output = BuildProjectWithFailure(appHostDirectory, new Dictionary<string, string>
Orchestrator\ApplicationOrchestratorTests.cs (3)
367new ChildResourceWithConnectionString("child", new Dictionary<string, string> { { "Namespace", "ns" } }, parentResource.Resource) 370new ChildResourceWithConnectionString("grand-child", new Dictionary<string, string> { { "Database", "db" } }, childResource.Resource) 484new Dictionary<string, string?>
Orchestrator\ParameterProcessorTests.cs (2)
1325.AddInMemoryCollection(new Dictionary<string, string?> { [$"Parameters:{name}"] = value }) 1357.AddInMemoryCollection(new Dictionary<string, string?> { ["Parameters:generatedParam"] = "existingValue" })
PathLookupHelperTests.cs (5)
23new Dictionary<string, string> { ["PATH"] = binPath }); 33new Dictionary<string, string> { ["PATH"] = string.Empty })); 62new Dictionary<string, string> { ["PATH"] = string.Join(Path.PathSeparator, firstBinPath, secondBinPath) }); 80new Dictionary<string, string> { ["PATH"] = binPath }); 100new Dictionary<string, string> { ["PATH"] = binPath });
Pipelines\DistributedApplicationPipelineTests.cs (2)
934var executionTimes = new Dictionary<string, DateTime>(); 2019var executionOrder = new Dictionary<string, int>();
ProjectResourceTests.cs (10)
1068protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new(); 1082Profiles = new() 1090EnvironmentVariables = new() 1103Profiles = new() 1111EnvironmentVariables = new() 1124Profiles = new() 1132EnvironmentVariables = new() 1145Profiles = new() 1166Profiles = new() 1187Profiles = new()
PublishAsDockerfileTests.cs (1)
531Profiles = new()
Publishing\DeploymentStateManagerTests.cs (4)
398.AddInMemoryCollection(new Dictionary<string, string?> 426.AddInMemoryCollection(new Dictionary<string, string?> 507.AddInMemoryCollection(new Dictionary<string, string?> 534.AddInMemoryCollection(new Dictionary<string, string?>
Publishing\ResourceContainerImageManagerTests.cs (4)
991var secrets = new Dictionary<string, BuildImageSecretValue> 1004var secrets = new Dictionary<string, BuildImageSecretValue> 1017var secrets = new Dictionary<string, BuildImageSecretValue> 1030var secrets = new Dictionary<string, BuildImageSecretValue>
ResourceCommandServiceTests.cs (9)
600new Dictionary<string, string?> { ["message"] = "hello" }, 640new Dictionary<string, string?> { ["message"] = "hello" }, 795var argumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" }; 827var argumentValues = new Dictionary<string, string?> { ["saveToUserSecrets"] = "true" }; 868var argumentValues = new Dictionary<string, string?> { ["item"] = "banana" }; 1029ArgumentValues = new Dictionary<string, string?> 1119ArgumentValues = new Dictionary<string, string?> 1194ArgumentValues = new Dictionary<string, string?> 1245ArgumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" },
ResourceDependencyTests.cs (1)
267new EnvironmentCallbackContext(executionContext, executable.Resource, new Dictionary<string, object>()));
SecretsStoreTests.cs (1)
82return new Dictionary<string, string?>();
UserSecretsParameterDefaultTests.cs (2)
106var secretsToWrite = new Dictionary<string, string> 390var secrets = new Dictionary<string, string?>();
VersionChecking\VersionCheckServiceTests.cs (7)
54configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 81configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 116configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 156configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 200configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 228configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 263configurationManager.AddInMemoryCollection(new Dictionary<string, string?>
WithHttpCommandTests.cs (1)
352Headers = new Dictionary<string, string>
WithProcessCommandTests.cs (8)
224EnvironmentVariables = new Dictionary<string, string> 983var environmentVariables = new Dictionary<string, string> 1015environmentVariables: new Dictionary<string, string> 1041environmentVariables: new Dictionary<string, string> 1072EnvironmentVariables = new Dictionary<string, string> 1181EnvironmentVariables = new Dictionary<string, string> 1191EnvironmentVariables = new Dictionary<string, string> 1506EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(),
WithUrlsTests.cs (1)
1008Profiles = new Dictionary<string, LaunchProfile>
Aspire.Hosting.TestUtilities (4)
Utils\DotnetFileAppProcess.cs (1)
35EnvironmentVariables = 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>();
Utils\LaunchConfigurationTestHelpers.cs (1)
21environmentVariables ?? new Dictionary<string, string>(),
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
37hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 101hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 153hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Yarp.Tests (11)
AddYarpTests.cs (1)
102var env = new Dictionary<string, object>();
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>(); 280.WithMetadata(new Dictionary<string, string>() { { "custom-metadata", "some-value" } });
Aspire.Managed.Tests (2)
ParentProcessWatchdogTests.cs (2)
15var environment = new Dictionary<string, string?> 30var environment = new Dictionary<string, string?>
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)
310builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 336builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (2)
264builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 294builder.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)
178resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } }, 186resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 191resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } }, 204resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }), 206resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 213resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } }, 219resourceEndpoints: new() { 228resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 233resourceEndpoints: new() { 247resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } }, 254resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }, 260resourceEndpoints: new() { { "api", ["/alive", "/health"] } }, 267resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 273resourceEndpoints: new() {
Infrastructure\DistributedApplicationExtensions.cs (1)
59var 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)
169EnvVars = new Dictionary<string, string>();
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.TypeSystem (2)
AtsContext.cs (2)
94public Dictionary<string, MethodInfo> Methods { get; } = new(); 99public Dictionary<string, PropertyInfo> Properties { get; } = new();
blazor-devserver (1)
Server\Program.cs (1)
34var inMemoryConfiguration = new Dictionary<string, string?>
cdac-build-tool (11)
ContractDescriptorSourceFileEmitter.cs (1)
80public Dictionary<string, string> Elements { get; } = new();
DataDescriptorModel.cs (10)
98private readonly Dictionary<string, TypeModelBuilder> _types = new(); 99private readonly Dictionary<string, GlobalBuilder> _globals = new(); 100private readonly Dictionary<string, GlobalBuilder> _subDescriptors = new(); 101private readonly Dictionary<string, ContractBuilder> _contracts = new(); 201var types = new Dictionary<string, TypeModel>(); 206var globals = new Dictionary<string, GlobalModel>(); 216var subDescriptors = new Dictionary<string, GlobalModel>(); 226var contracts = new Dictionary<string, string>(); 237private readonly Dictionary<string, FieldBuilder> _fields = new(); 267var fields = new Dictionary<string, FieldModel>();
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>();
crossgen2 (6)
Program.cs (3)
32private Dictionary<string, string> _allInputFilePaths = new(); 157Dictionary<string, string> inputFilePaths = new Dictionary<string, string>(); 158Dictionary<string, string> unrootedInputFilePaths = new Dictionary<string, string>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (3)
232Dictionary<string, string> inputToReproPackageFileName = new(); 234Dictionary<string, string> outputToReproPackageFileName = new(); 255Dictionary<string, string> dictionary = new();
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
dotnet (71)
_generated\103\WorkloadSearchVersionsJsonSerializerContext.DictionaryStringDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>(),
_generated\104\WorkloadSearchVersionsJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\113\WorkloadHistoryJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\164\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\165\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\28\RunFileApiJsonSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\42\RunFileBuildCacheJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\6\CliSchemaJsonSerializerContext.DictionaryStringArgumentDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(),
_generated\7\CliSchemaJsonSerializerContext.DictionaryStringCommandDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>(),
_generated\72\GlobalJsonWorkloadSetsJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\8\CliSchemaJsonSerializerContext.DictionaryStringOptionDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(),
_generated\90\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
CliSchema.cs (4)
88var telemetryProperties = new Dictionary<string, string?> { { "command", commandString } }; 130var dict = new Dictionary<string, ArgumentDetails>(); 144var dict = new Dictionary<string, OptionDetails>(); 158var dict = new Dictionary<string, CommandDetails>();
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
46TelemetryEventEntry.TrackEvent(CommandResolveEvent, new Dictionary<string, string>()
CommandFactory\CommandResolution\MSBuildProject.cs (1)
79return new Dictionary<string, string>
CommandFactory\CommandSpec.cs (1)
16public IDictionary<string, string> EnvironmentVariables { get; } = environmentVariables ?? new Dictionary<string, string>();
Commands\MSBuild\MSBuildLogger.cs (3)
105private Dictionary<string, Dictionary<string, int>> _aggregatedEvents = new(); 264Dictionary<string, string?> stringProperties = new(); 278eventData = new Dictionary<string, int>();
Commands\New\BuiltInTemplatePackageProvider.cs (2)
77var versionFileInfo = new Dictionary<string, SemanticVersion>(); 92IDictionary<string, (string path, SemanticVersion version)> bestVersionsByBucket = new Dictionary<string, (string path, SemanticVersion version)>();
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
191Dictionary<string, string?> properties = new()
Commands\New\MSBuildEvaluation\MultiTargetEvaluationResult.cs (1)
15internal IReadOnlyDictionary<string, MSBuildProject?> EvaluatedProjects { get; private set; } = new Dictionary<string, MSBuildProject?>();
Commands\New\NewCommandParser.cs (1)
129var preferences = new Dictionary<string, string>
Commands\Package\Add\PackageAddCommand.cs (1)
87.FromProperties(new Dictionary<string, string>
Commands\Package\List\PackageListCommand.cs (1)
53msbuildArgs: MSBuildArgs.FromProperties(new Dictionary<string, string>
Commands\Run\EnvironmentVariablesToMSBuild.cs (2)
42projectInstance.AddItem(Constants.RuntimeEnvironmentVariable, name, new Dictionary<string, string> 156var additionalProperties = new ReadOnlyDictionary<string, string>(new Dictionary<string, string>
Commands\Run\RunCommand.cs (3)
260var properties = new Dictionary<string, string> { { "Device", Device } }; 310var properties = new Dictionary<string, string> { { "Device", selectedDevice } }; 390new Dictionary<string, string> { { "TargetFramework", selectedFramework } });
Commands\Run\RunTelemetry.cs (1)
47var properties = new Dictionary<string, string?>
Commands\Test\MTP\ArtifactPostProcessingTelemetry.cs (1)
61return new Dictionary<string, string?>
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
861selector.InvalidateGlobalProperties(new Dictionary<string, string>
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
164var modulesWithMissingOptions = new Dictionary<bool, List<(string[], string[])>>(); 170var missingOptionsToModules = new Dictionary<string, List<string>>();
Commands\Test\MTP\SolutionAndProjectUtility.cs (3)
225if (!(globalProperties ??= new Dictionary<string, string>()).ContainsKey(property.Key)) 237if (!(globalProperties ??= new Dictionary<string, string>()).ContainsKey(property.Key)) 528var devicesByTfm = new Dictionary<string, (string? Device, string? RuntimeIdentifier)>();
Commands\Test\MTP\Terminal\TestProgressState.cs (4)
12private readonly Dictionary<string, TestNodeInfoEntry> _testUidToResults = new(); 13private readonly Dictionary<string, int> _instanceIdToAttemptNumber = new(); 22private readonly Dictionary<string, (string DisplayName, TimeSpan Duration)> _testUidToDuration = new(); 30private readonly Dictionary<string, string> _uidWithEarlierFailure = new();
Commands\Test\MTP\TestApplication.cs (1)
66private readonly Dictionary<NamedPipeServer, HandshakeMessage> _handshakes = new();
Commands\Test\MTP\TestApplicationHandler.cs (1)
18private 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\Execute\ToolExecuteCommand.cs (1)
93localToolsResolverCache.Save(new Dictionary<RestoredCommandIdentifier, ToolCommand>
Commands\Tool\Install\LocalToolsResolverCacheExtensions.cs (1)
36new Dictionary<RestoredCommandIdentifier, ToolCommand>
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (2)
101Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => new Dictionary<string, string>() 138Reporter.WriteLine(JsonSerializer.Serialize(new Dictionary<string, Dictionary<string, string>>()
MsbuildProject.cs (1)
211options.GlobalProperties = new Dictionary<string, string>
Program.cs (1)
126TelemetryInstance.TrackEvent("command/finish", new Dictionary<string, string?> { { "exitCode", exitCode.ToString() } });
ReleasePropertyProjectLocator.cs (1)
291return new(new Dictionary<string, string>() { [MSBuildPropertyNames.TARGET_FRAMEWORK] = commandOptions.FrameworkOption });
ShellShim\ShellShimRepository.cs (1)
118var files = new Dictionary<string, string>();
Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
30new Dictionary<string, string>
Telemetry\AllowListToSendFirstArgument.cs (1)
34new Dictionary<string, string?>
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
31new Dictionary<string, string?>
Telemetry\TelemetryClient.cs (2)
233var carrierMap = new Dictionary<string, IEnumerable<string>?> { { "traceparent", [traceParent] } }; 357properties ??= new Dictionary<string, string?>();
Telemetry\TelemetryCommonProperties.cs (1)
57public FrozenDictionary<string, string?> GetTelemetryCommonProperties(string? currentSessionId) => new Dictionary<string, string?>
Telemetry\TelemetryFilter.cs (5)
26var reportProperties = new Dictionary<string, string?> 35var exceptionProperties = new Dictionary<string, string?> 60Dictionary<string, string?> properties = new() { ["verb"] = topLevelCommandName }; 79var verbosityProperties = new Dictionary<string, string?>() 92var vulnerableProperties = new Dictionary<string, string?>()
Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
31new Dictionary<string, string?>
dotnet-aot (28)
_generated\23\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\24\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\50\RunFileBuildCacheJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\60\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\7\CliSchemaJsonSerializerContext.DictionaryStringArgumentDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(),
_generated\8\CliSchemaJsonSerializerContext.DictionaryStringCommandDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>(),
_generated\9\CliSchemaJsonSerializerContext.DictionaryStringOptionDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(),
NativeEntryPoint.cs (1)
275telemetryClient.ThreadBlockingTrackEvent("command/finish", new Dictionary<string, string?> { { "exitCode", exitCode.ToString() } });
src\sdk\src\Cli\dotnet\CliSchema.cs (4)
88var telemetryProperties = new Dictionary<string, string?> { { "command", commandString } }; 130var dict = new Dictionary<string, ArgumentDetails>(); 144var dict = new Dictionary<string, OptionDetails>(); 158var dict = new Dictionary<string, CommandDetails>();
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
46TelemetryEventEntry.TrackEvent(CommandResolveEvent, new Dictionary<string, string>()
src\sdk\src\Cli\dotnet\CommandFactory\CommandSpec.cs (1)
16public IDictionary<string, string> EnvironmentVariables { get; } = environmentVariables ?? new Dictionary<string, string>();
src\sdk\src\Cli\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (1)
48return new()
src\sdk\src\Cli\dotnet\MsbuildProject.cs (1)
211options.GlobalProperties = new Dictionary<string, string>
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
30new Dictionary<string, string>
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstArgument.cs (1)
34new Dictionary<string, string?>
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
31new Dictionary<string, string?>
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (2)
233var carrierMap = new Dictionary<string, IEnumerable<string>?> { { "traceparent", [traceParent] } }; 357properties ??= new Dictionary<string, string?>();
src\sdk\src\Cli\dotnet\Telemetry\TelemetryCommonProperties.cs (1)
57public FrozenDictionary<string, string?> GetTelemetryCommonProperties(string? currentSessionId) => new Dictionary<string, string?>
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (5)
26var reportProperties = new Dictionary<string, string?> 35var exceptionProperties = new Dictionary<string, string?> 60Dictionary<string, string?> properties = new() { ["verb"] = topLevelCommandName }; 79var verbosityProperties = new Dictionary<string, string?>() 92var vulnerableProperties = new Dictionary<string, string?>()
src\sdk\src\Cli\dotnet\Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
31new Dictionary<string, string?>
dotnet-format (3)
Analyzers\CodeAnalysisResult.cs (1)
10private readonly Dictionary<Project, List<Diagnostic>> _dictionary = new();
Analyzers\CodeStyleInformationProvider.cs (1)
36var analyzersByLanguage = new Dictionary<string, AnalyzersAndFixers>();
Logging\SimpleConsoleLogger.cs (1)
20private static ImmutableDictionary<LogLevel, ConsoleColor> LogLevelColorMap => new Dictionary<LogLevel, ConsoleColor>
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
174var metadata = new Dictionary<string, string>(); 489var result = new Dictionary<string, string>();
dotnet-svcutil-lib (190)
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 (2)
38compilerInfo._providerOptions = new Dictionary<string, string>(); 49compilerInfo._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 (7)
_generated\5\JwtSerializerContext.IDictionaryStringJwt.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt>(),
_generated\6\JwtSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Commands\CreateCommand.cs (1)
210var claims = new Dictionary<string, string>();
Helpers\DevJwtCliHelpers.cs (1)
298claims = 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(fileStream, JwtSerializerContext.Default.IDictionaryStringJwt) ?? new Dictionary<string, Jwt>();
dotnet-user-secrets (2)
_generated\0\SecretManagerJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Internal\ListCommand.cs (1)
55var secrets = new Dictionary<string, string>();
dotnet-watch (3)
Watch\DotNetWatcher.cs (1)
24var environmentBuilder = new Dictionary<string, string>();
Watch\MsBuildFileSetFactory.cs (1)
93var fileItems = new Dictionary<string, FileItem>();
Watch\StaticFileHandler.cs (1)
17var refreshRequests = new Dictionary<BrowserRefreshServer, List<string>>();
DotNetWatchTasks (1)
FileSetSerializer.cs (1)
22var projectItems = new Dictionary<string, ProjectItems>();
GenerateDocumentationAndConfigFiles (22)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (1)
51var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
HelixTestTasks (1)
ComputeBatchTimeout.cs (1)
76var counts = new Dictionary<string, int>();
ILAssembler (19)
DocumentCompiler.cs (1)
23Dictionary<string, SourceText> loadedDocuments = new()
EntityRegistry.cs (6)
17private readonly Dictionary<TableIndex, List<EntityBase>> _seenEntities = new(); 18private readonly Dictionary<(TypeDefinitionEntity? ContainingType, string Namespace, string Name), TypeDefinitionEntity> _seenTypeDefs = new(); 19private readonly Dictionary<(EntityBase ResolutionScope, string Namespace, string Name), TypeReferenceEntity> _seenTypeRefs = new(); 21private readonly Dictionary<string, ModuleReferenceEntity> _seenModuleRefs = new(); 24private readonly Dictionary<string, FileEntity> _seenFiles = new(); 26private readonly Dictionary<(ExportedTypeEntity? ContainingType, string Namespace, string Name), ExportedTypeEntity> _seenExportedTypes = new();
GrammarVisitor.cs (8)
87private readonly Dictionary<string, int> _mappedFieldDataNames = new(); 88private readonly Dictionary<string, List<Blob>> _mappedFieldDataReferenceFixups = new(); 92private readonly Dictionary<string, TypedefEntry> _typedefs = new(); 99private readonly Dictionary<string, DocumentHandle> _documentHandles = new(); 996public Dictionary<string, LabelHandle> Labels { get; } = new(); 1000public Dictionary<string, ParserRuleContext> UndefinedLabelReferences { get; } = new(); 1002public Dictionary<string, int> ArgumentNames { get; } = new(); 3638var localsScope = currentMethod.LocalsScopes.Count != 0 ? currentMethod.LocalsScopes[currentMethod.LocalsScopes.Count - 1] : new();
NamedElementList.cs (1)
18private readonly Dictionary<string, T> _elementsByName = new();
PreprocessedTokenSource.cs (1)
21private readonly Dictionary<string, string?> _definedVars = new();
VTableExportPEBuilder.cs (2)
112_mappedFieldDataOffsets = mappedFieldDataOffsets ?? new Dictionary<string, int>(); 378var slotOffsets = new Dictionary<(int EntryIndex, int SlotIndex), int>();
ilc (5)
Program.cs (2)
86Dictionary<int, bool> warningsAsErrors = new Dictionary<int, bool>(); 382var featureSwitches = new Dictionary<string, bool>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (3)
232Dictionary<string, string> inputToReproPackageFileName = new(); 234Dictionary<string, string> outputToReproPackageFileName = new(); 255Dictionary<string, string> dictionary = new();
ILCompiler.Build.Tasks (1)
ComputeManagedAssembliesToCompileToNative.cs (1)
89var nativeAotFrameworkAssembliesToUse = new Dictionary<string, ITaskItem>();
ILCompiler.Compiler (123)
Compiler\AnalysisBasedMetadataManager.cs (3)
29private readonly Dictionary<TypeDesc, MetadataCategory> _reflectableTypes = new Dictionary<TypeDesc, MetadataCategory>(); 30private readonly Dictionary<MethodDesc, MetadataCategory> _reflectableMethods = new Dictionary<MethodDesc, MetadataCategory>(); 31private readonly Dictionary<FieldDesc, MetadataCategory> _reflectableFields = new Dictionary<FieldDesc, MetadataCategory>();
Compiler\BodySubstitutionParser.cs (4)
29_methodSubstitutions = new Dictionary<MethodDesc, BodySubstitution>(); 30_fieldSubstitutions = new Dictionary<FieldDesc, object>(); 36_methodSubstitutions = new Dictionary<MethodDesc, BodySubstitution>(); 37_fieldSubstitutions = new Dictionary<FieldDesc, object>();
Compiler\Dataflow\ArrayValue.cs (1)
43IndexValues = new Dictionary<int, ValueBasicBlockPair>();
Compiler\Dataflow\CompilerGeneratedCallGraph.cs (1)
17public CompilerGeneratedCallGraph() => _callGraph = new Dictionary<TypeSystemEntity, HashSet<TypeSystemEntity>>();
Compiler\Dataflow\CompilerGeneratedState.cs (5)
126var generatedTypeToTypeArgs = new Dictionary<MetadataType, TypeArgumentInfo>(); 258_compilerGeneratedTypeToUserCodeMethod ??= new Dictionary<MetadataType, MethodDesc>(); 320_compilerGeneratedMembers ??= new Dictionary<MethodDesc, List<TypeSystemEntity>>(); 330_compilerGeneratedMethodToUserCodeMethod ??= new Dictionary<MethodDesc, MethodDesc>(); 361_generatedTypeToTypeArgumentInfo ??= new Dictionary<MetadataType, TypeArgumentInfo>();
Compiler\Dataflow\MethodBodyScanner.cs (1)
350Dictionary<int, Stack<StackSlot>> knownStacks = new Dictionary<int, Stack<StackSlot>>();
Compiler\Dataflow\TrimAnalysisPatternStore.cs (5)
26AssignmentPatterns = new Dictionary<(MessageOrigin, int?), TrimAnalysisAssignmentPattern>(); 27MethodCallPatterns = new Dictionary<MessageOrigin, TrimAnalysisMethodCallPattern>(); 28TokenAccessPatterns = new Dictionary<(MessageOrigin, TypeSystemEntity), TrimAnalysisTokenAccessPattern>(); 29GenericInstantiations = new Dictionary<(MessageOrigin, TypeSystemEntity), TrimAnalysisGenericInstantiationAccessPattern>(); 30FieldAccessPatterns = new Dictionary<(MessageOrigin, FieldDesc), TrimAnalysisFieldAccessPattern>();
Compiler\DependencyAnalysis\DehydratedDataNode.cs (1)
65var relocOccurences = new Dictionary<ISymbolNode, int>();
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
21private Dictionary<SymbolAndDelta, uint> _insertedSymbolsDictionary = new Dictionary<SymbolAndDelta, uint>();
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (2)
25_gvmImplementations = new Dictionary<MethodDesc, Dictionary<TypeDesc, MethodDesc>>(); 70_gvmImplementations[openCallingMethod] = new Dictionary<TypeDesc, MethodDesc>();
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (3)
27_interfaceGvmSlots = new Dictionary<MethodDesc, HashSet<object>>(); 28_interfaceImpls = new Dictionary<object, Dictionary<TypeDesc, HashSet<int>>>(); 102_interfaceImpls[openImplementationMethod] = new Dictionary<TypeDesc, HashSet<int>>();
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (1)
184private readonly Dictionary<ModuleDesc, ModuleGraphNode> _nodes = new Dictionary<ModuleDesc, ModuleGraphNode>();
Compiler\DependencyAnalysis\NodeFactory.cs (1)
1660public Dictionary<ISymbolNode, (Utf8String Name, bool Hidden)> NodeAliases = new Dictionary<ISymbolNode, (Utf8String, bool)>();
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
122Dictionary<int, HashSet<TypeDesc>> methodsEmitted = new Dictionary<int, HashSet<TypeDesc>>();
Compiler\HardwareIntrinsicILProvider.cs (1)
29_instructionSetMap = new Dictionary<string, InstructionSet>();
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (1)
23private readonly Dictionary<MethodDesc, MethodDebugInformation> _generatedInfos = new Dictionary<MethodDesc, MethodDebugInformation>();
Compiler\ILScanner.cs (6)
296private readonly Dictionary<TypeDesc, MethodDesc[]> _vtableSlices = new Dictionary<TypeDesc, MethodDesc[]>(); 339private Dictionary<TypeSystemEntity, (GenericLookupResult[] Slots, GenericLookupResult[] DiscardedSlots)> _layouts = new(); 462private Dictionary<TypeDesc, HashSet<TypeDesc>> _implementators = new(); 480var vtables = new Dictionary<TypeDesc, List<MethodDesc>>(); 857private readonly Dictionary<MethodDesc, TypeSystemException> _importationErrors = new Dictionary<MethodDesc, TypeSystemException>(); 901Dictionary<MetadataType, int> offsets = new Dictionary<MetadataType, int>();
Compiler\Logger.cs (1)
78: this(writer, ilProvider, isVerbose, Array.Empty<int>(), singleWarn: false, Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>(), false, new Dictionary<int, bool>(), disableGeneratedCodeHeuristics)
Compiler\ManifestResourceBlockingPolicy.cs (3)
45var result = new Dictionary<ModuleDesc, HashSet<string>>(); 67var copy = new Dictionary<ModuleDesc, IReadOnlySet<string>>(); 147private readonly Dictionary<ModuleDesc, HashSet<string>> _substitutions = new();
Compiler\MetadataManager.cs (2)
829methodMetadataMappings = new Dictionary<MethodDesc, int>(); 831fieldMetadataMappings = new Dictionary<FieldDesc, int>();
Compiler\MstatObjectDumper.cs (3)
41private Dictionary<MethodDesc, int> _methodEhInfo = new(); 42private Dictionary<string, int> _blobs = new(); 43private Dictionary<MethodDesc, List<(MethodDesc Method, int MangledName)>> _deduplicatedBodies = new();
Compiler\ObjectWriter\CodeView\CodeViewFileTableBuilder.cs (1)
20private readonly Dictionary<string, uint> _fileNameToIndex = new();
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (4)
32private readonly Dictionary<int, DwarfLineSequenceWriter> _lineSequences = new(); 33private readonly Dictionary<string, int> _fileNameMap = new(); // fileName -> _fileNames index (1-based) 40private readonly Dictionary<TypeFlags, uint> _primitiveDwarfTypes = new(); 41private readonly Dictionary<(uint, uint), uint> _simpleArrayDwarfTypes = new(); // (elementTypeIndex, size) -> arrayTypeIndex
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (1)
19private readonly Dictionary<DwarfCie, uint> _cieOffset = new();
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
28private readonly Dictionary<DwarfAbbrev, int> _usedAbbrevs = new();
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (2)
16private readonly Dictionary<string, uint> _directoryNameToIndex = new(); 17private readonly Dictionary<DwarfFileName, uint> _fileNameToIndex = new();
Compiler\ObjectWriter\ElfObjectWriter.Aot.cs (1)
76_armUnwindSections ??= new();
Compiler\ReachabilityInstrumentationFilter.cs (1)
23private readonly Dictionary<Guid, bool[]> _reachabilityInfo = new Dictionary<Guid, bool[]>();
Compiler\RuntimeConfigurationRootProvider.cs (2)
68var settings = new Dictionary<string, ISymbolNode>(); 71var valueDict = new Dictionary<string, ISymbolNode>();
Compiler\SourceLinkWriter.cs (1)
29_sourceLinkMaps = new Dictionary<EcmaModule, SourceLinkMap>();
Compiler\SubstitutionProvider.cs (1)
225InlineableResourceStrings = new Dictionary<string, string>();
Compiler\TypePreinit.cs (7)
42private readonly Dictionary<FieldDesc, Value> _fieldValues = new Dictionary<FieldDesc, Value>(); 43private readonly Dictionary<string, StringInstance> _internedStrings = new Dictionary<string, StringInstance>(); 44private readonly Dictionary<TypeDesc, RuntimeTypeValue> _internedTypes = new Dictionary<TypeDesc, RuntimeTypeValue>(); 45private readonly Dictionary<AllocationSite, ForeignTypeInstance> _foreignInstances = new Dictionary<AllocationSite, ForeignTypeInstance>(); 46private readonly Dictionary<MetadataType, NestedPreinitResult> _nestedPreinitResults = new Dictionary<MetadataType, NestedPreinitResult>(); 47private readonly Dictionary<EcmaField, byte[]> _rvaFieldDatas = new Dictionary<EcmaField, byte[]>(); 3793_fieldValues = new Dictionary<FieldDesc, ISerializableValue>();
Compiler\UsageBasedMetadataManager.cs (1)
980_dictionary = new Dictionary<T, MetadataCategory>(),
Compiler\UserDefinedTypeDescriptor.cs (11)
860private Dictionary<TypeDesc, uint> _knownTypes = new Dictionary<TypeDesc, uint>(); 861private Dictionary<TypeDesc, uint> _completeKnownTypes = new Dictionary<TypeDesc, uint>(); 862private Dictionary<TypeDesc, uint> _knownReferenceWrappedTypes = new Dictionary<TypeDesc, uint>(); 863private Dictionary<TypeDesc, uint> _knownStateMachineThisTypes = new Dictionary<TypeDesc, uint>(); 864private Dictionary<TypeDesc, uint> _pointerTypes = new Dictionary<TypeDesc, uint>(); 865private Dictionary<TypeDesc, uint> _enumTypes = new Dictionary<TypeDesc, uint>(); 866private Dictionary<TypeDesc, uint> _byRefTypes = new Dictionary<TypeDesc, uint>(); 867private Dictionary<TypeDesc, uint> _thisTypes = new Dictionary<TypeDesc, uint>(); 868private Dictionary<TypeDesc, uint> _primitiveTypes = new Dictionary<TypeDesc, uint>(); 869private Dictionary<MethodDesc, uint> _methodIndices = new Dictionary<MethodDesc, uint>(); 870private Dictionary<MethodDesc, uint> _methodIdIndices = new Dictionary<MethodDesc, uint>();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (3)
16private readonly Dictionary<int, TypeDesc> _structsBySize = new Dictionary<int, TypeDesc>(); 17private readonly Dictionary<int, TypeDesc> _alignedStructsBySize = new Dictionary<int, TypeDesc>(); 18private readonly Dictionary<int, TypeDesc> _returnStructsBySize = new Dictionary<int, TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
115private Dictionary<P, Vertex> _vertexMap = new Dictionary<P, Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
181var supportMatrix = new Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>>(); 192var matrix = new Dictionary<TargetArchitecture, InstructionSetFlags>(); 203var support = new Dictionary<string, InstructionSet>();
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (5)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>(); 467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>(); 684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectDataInterner.cs (1)
29public static ObjectDataInterner Null { get; } = new ObjectDataInterner() { _symbolRemapping = new() };
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
57private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 58private readonly Dictionary<int, CoffSectionSymbol> _sectionNumberToComdatAuxRecord = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
47private readonly Dictionary<Utf8String, ElfSectionDefinition> _comdatNameToElfSection = new(); 50private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
66private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 69private readonly Dictionary<Utf8String, (Utf8String StartNode, Utf8String EndNode, int Size)> _rangeSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (2)
38private readonly Dictionary<ISymbolNode, Utf8String> _mangledNameMap = new(); 49private readonly Dictionary<Utf8String, SymbolDefinition> _definedSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
82private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
19private Dictionary<Utf8String, uint> _stringToOffset = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
13private readonly Dictionary<string, int> _sectionNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (2)
24private readonly Dictionary<ObjectNodeSection, WasmSectionType> _sectionToType = new() 56private protected readonly Dictionary<string, WasmGlobal> _definedGlobals = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (1)
62private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
58private readonly Dictionary<Utf8String, Entry> _entries = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
239public static readonly TypeMapMetadata Empty = new TypeMapMetadata(new Dictionary<TypeDesc, Map>(), "No type maps", null);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoInstructionSet.cs (1)
1105private static Dictionary<(string, TargetArchitecture), string> AllInstructionSetGroups { get; } = new()
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>(); 24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>(); 25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
src\runtime\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\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
62branchInput = new(); 63exceptionState = new(); 64exceptionFinallyState = new(); 65finallyInputState = new();
ILCompiler.DependencyAnalysisFramework (3)
DependencyAnalyzer.cs (2)
37private Dictionary<int, List<DependencyNodeCore<DependencyContextType>>> _deferredStaticDependencies = new Dictionary<int, List<DependencyNodeCore<DependencyContextType>>>(); 42private Dictionary<DependencyNodeCore<DependencyContextType>, HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry>> _conditional_dependency_store = new Dictionary<DependencyNodeCore<DependencyContextType>, HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry>>();
DgmlWriter.cs (1)
103private Dictionary<object, int> _nodeMappings = new Dictionary<object, int>();
ILCompiler.Diagnostics (2)
PdbWriter.cs (2)
312_stringTableToOffsetMapping = new Dictionary<string,int>(); 346_documentToChecksumOffsetMapping = new Dictionary<SymDocument,int>();
ILCompiler.MetadataTransform (6)
ILCompiler\Metadata\Transform.Namespace.cs (2)
16private Dictionary<NamespaceKey, NamespaceDefinition> _namespaceDefs = new Dictionary<NamespaceKey, NamespaceDefinition>(); 70private Dictionary<NamespaceKey, NamespaceReference> _namespaceRefs = new Dictionary<NamespaceKey, NamespaceReference>();
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (2)
157private Dictionary<MetadataRecord, MetadataRecord> _recordPool = new Dictionary<MetadataRecord, MetadataRecord>(); 210var res = new Dictionary<string, DstT>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
53internal Dictionary<Vertex, Vertex> _placedMap = new Dictionary<Vertex, Vertex>(); 110private Dictionary<Vertex, Vertex> _unifier = new Dictionary<Vertex, Vertex>();
ILCompiler.ReadyToRun (91)
Compiler\CallChainProfile.cs (6)
49private Dictionary<string, int> _resolveFails = new Dictionary<string, int>(); 66var resolvedProfileData = new Dictionary<MethodDesc, Dictionary<MethodDesc, int>>(); 67Dictionary<string, MethodDesc> nameToMethodDescMap = new Dictionary<string, MethodDesc>(); 86resolvedProfileData.Add(resolvedKeyMethod, new Dictionary<MethodDesc, int>()); 247Dictionary<string, Dictionary<string, int>> profileData = new Dictionary<string, Dictionary<string, int>>(); 282profileData.Add(keyParts, new Dictionary<string, int>());
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (1)
25_cachedMapping = new Dictionary<ISymbolNode, ISymbolNode>();
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
63Dictionary<MethodDesc, HashSet<MethodDesc>> inlineeToInliners = new Dictionary<MethodDesc, HashSet<MethodDesc>>();
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (2)
63Dictionary<TypeSystemEntityOrUnknown, int> _typeConversions = new Dictionary<TypeSystemEntityOrUnknown, int>(); 64Dictionary<TypeSystemEntityOrUnknown, int> _methodConversions = new Dictionary<TypeSystemEntityOrUnknown, int>();
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (2)
86_assemblyRefToModuleIdMap = new Dictionary<string, int>(); 87_moduleIdToAssemblyNameMap = new Dictionary<int, AssemblyNameInfo>();
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (2)
54_insertedMethodNodes = new Dictionary<MethodWithGCInfo, int>(); 86Dictionary<(MethodWithGCInfo method, int funcletIdx), uint> methodToVirtualIP = new ();
Compiler\FileLayoutOptimizer.cs (2)
283Dictionary<MethodDesc, MethodWithGCInfo> methodMap = new Dictionary<MethodDesc, MethodWithGCInfo>(); 329var mdToIndex = new Dictionary<MethodDesc, int>();
Compiler\PettisHansenSort\CallGraphNode.cs (1)
16public Dictionary<CallGraphNode, long> OutgoingEdges { get; } = new Dictionary<CallGraphNode, long>();
Compiler\ProfileDataManager.cs (4)
322private readonly Dictionary<MethodDesc, MethodProfileData> _profileData = new(); 323private readonly Dictionary<ModuleDesc, HashSet<MethodDesc>> _placedProfileMethods = new(); 417Dictionary<MethodSignature, HashSet<MethodDesc>> delegateTargets = new(); 418Dictionary<TypeDesc, HashSet<TypeDesc>> implementers = new();
Compiler\ReadyToRunCompilationModuleGroupBase.cs (2)
62private readonly Dictionary<ModuleDesc, CompilationUnitIndex> _moduleCompilationUnits = new Dictionary<ModuleDesc, CompilationUnitIndex>(); 728var typeRefsInCompilationModuleSet = new Dictionary<TypeDesc, ModuleToken>();
Compiler\ReadyToRunStandaloneMethodMetadata.cs (2)
68Dictionary<int, int> _alternateNonTokenStrings = new Dictionary<int, int>(); 217Dictionary<TypeDesc, EntityHandle> _alternateTypeRefTokens = new Dictionary<TypeDesc, EntityHandle>();
Compiler\ReadyToRunTableManager.cs (1)
53private Dictionary<EcmaModule, PerModuleMethodsGenerated> _methodsGenerated = new Dictionary<EcmaModule, PerModuleMethodsGenerated>();
IBC\IBCDataModel.cs (1)
283Tokens = new Dictionary<SectionFormat, List<TokenData>>();
IBC\IBCDataReader.cs (2)
16private Dictionary<byte, uint> seenFlags = new Dictionary<byte, uint>(); 211var result = new Dictionary<SectionFormat, SectionInfo>();
IBC\IBCProfileData.cs (1)
60private readonly Dictionary<MethodDesc, MethodProfileData> _methodData = new Dictionary<MethodDesc, MethodProfileData>();
IBC\IBCProfileParser.cs (1)
194Dictionary<IBCBlobKey, BlobEntry> blobs = new Dictionary<IBCBlobKey, BlobEntry>();
IBC\MIbcProfileParser.cs (2)
292Dictionary<string, string> keyValue = new(); 585weights = new Dictionary<MethodDesc, int>();
IL\ReadyToRunILProvider.cs (1)
141private Dictionary<MethodDesc, MethodIL> _manifestModuleWrappedMethods = new Dictionary<MethodDesc, MethodIL>();
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
489private Dictionary<TypeDesc, bool> _preInitedTypes = new Dictionary<TypeDesc, bool>();
ObjectWriter\MapFileBuilder.cs (1)
120Dictionary<Utf8String, int> statsNameIndex = new Dictionary<Utf8String, int>();
ObjectWriter\ProfileFileBuilder.cs (1)
135_symbolMethodMap = new Dictionary<MethodDesc, ISymbolDefinitionNode>();
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\PEReaderExtensions.cs (2)
27_namedExportRva = new Dictionary<string, int>(); 28_ordinalRva = new Dictionary<int, int>();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (3)
16private readonly Dictionary<int, TypeDesc> _structsBySize = new Dictionary<int, TypeDesc>(); 17private readonly Dictionary<int, TypeDesc> _alignedStructsBySize = new Dictionary<int, TypeDesc>(); 18private readonly Dictionary<int, TypeDesc> _returnStructsBySize = new Dictionary<int, TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
115private Dictionary<P, Vertex> _vertexMap = new Dictionary<P, Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
181var supportMatrix = new Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>>(); 192var matrix = new Dictionary<TargetArchitecture, InstructionSetFlags>(); 203var support = new Dictionary<string, InstructionSet>();
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (5)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>(); 467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>(); 684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectDataInterner.cs (1)
29public static ObjectDataInterner Null { get; } = new ObjectDataInterner() { _symbolRemapping = new() };
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
57private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 58private readonly Dictionary<int, CoffSectionSymbol> _sectionNumberToComdatAuxRecord = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
47private readonly Dictionary<Utf8String, ElfSectionDefinition> _comdatNameToElfSection = new(); 50private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
66private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 69private readonly Dictionary<Utf8String, (Utf8String StartNode, Utf8String EndNode, int Size)> _rangeSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (2)
38private readonly Dictionary<ISymbolNode, Utf8String> _mangledNameMap = new(); 49private readonly Dictionary<Utf8String, SymbolDefinition> _definedSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
82private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
19private Dictionary<Utf8String, uint> _stringToOffset = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
13private readonly Dictionary<string, int> _sectionNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (2)
24private readonly Dictionary<ObjectNodeSection, WasmSectionType> _sectionToType = new() 56private protected readonly Dictionary<string, WasmGlobal> _definedGlobals = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
58private readonly Dictionary<Utf8String, Entry> _entries = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (2)
58private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new(); 457Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
239public static readonly TypeMapMetadata Empty = new TypeMapMetadata(new Dictionary<TypeDesc, Map>(), "No type maps", null);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
53internal Dictionary<Vertex, Vertex> _placedMap = new Dictionary<Vertex, Vertex>(); 110private Dictionary<Vertex, Vertex> _unifier = new Dictionary<Vertex, Vertex>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (8)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>(); 237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>(); 238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>(); 663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>(); 865_instantiationToJitVisibleInstantiation ??= new Dictionary<Instantiation, IntPtr[]>(); 2464private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>(); 2631private Dictionary<TypeDesc, uint> _classNumInstanceFields = new(); 4094private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoInstructionSet.cs (1)
1105private static Dictionary<(string, TargetArchitecture), string> AllInstructionSetGroups { get; } = new()
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>(); 24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>(); 25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
TypeSystem\Mutable\MutableModule.cs (5)
23Dictionary<ModuleDesc, EntityHandle> _moduleRefs = new Dictionary<ModuleDesc, EntityHandle>(); 96Dictionary<MetadataType, string> result = new Dictionary<MetadataType, string>(); 160public Dictionary<int, object> Entities = new Dictionary<int, object>(); 161public Dictionary<object, int> ExistingEntities = new Dictionary<object, int>(); 322private Dictionary<ModuleDesc, string> _moduleToModuleRefString = new Dictionary<ModuleDesc, string>();
ILCompiler.RyuJit (15)
Compiler\ProfileDataManager.cs (1)
14private readonly Dictionary<MethodDesc, MethodProfileData> _mergedProfileData = new Dictionary<MethodDesc, MethodProfileData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (1)
329var mdToIndex = new Dictionary<MethodDesc, int>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\CallGraphNode.cs (1)
16public Dictionary<CallGraphNode, long> OutgoingEdges { get; } = new Dictionary<CallGraphNode, long>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (1)
283Tokens = new Dictionary<SectionFormat, List<TokenData>>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCProfileData.cs (1)
60private readonly Dictionary<MethodDesc, MethodProfileData> _methodData = new Dictionary<MethodDesc, MethodProfileData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (2)
292Dictionary<string, string> keyValue = new(); 585weights = new Dictionary<MethodDesc, int>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (8)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>(); 237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>(); 238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>(); 663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>(); 865_instantiationToJitVisibleInstantiation ??= new Dictionary<Instantiation, IntPtr[]>(); 2464private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>(); 2631private Dictionary<TypeDesc, uint> _classNumInstanceFields = new(); 4094private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
127_urlCache ??= new Dictionary<DocumentHandle, string>();
illink (64)
ILLink.RoslynAnalyzer (18)
DataFlow\LocalDataFlowVisitor.cs (2)
634var savedTargetValues = new Dictionary<IOperation, TValue>(); 1137evaluatedTargetValues = new Dictionary<IOperation, TValue>();
DataFlowAnalyzerContext.cs (1)
42var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>>();
src\runtime\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\runtime\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)
70Dictionary<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>();
Infrastructure.Tests (64)
Pipelines\NixCliPackageTests.cs (3)
96new Dictionary<string, string?> 158new Dictionary<string, string?> 187new Dictionary<string, string?>
PowerShellScripts\BuildTestMatrixTests.cs (3)
450runners: new Dictionary<string, string> { ["macos"] = "macos-latest-xlarge" }); 506runners: new Dictionary<string, string> { ["linux"] = "ubuntu-24.04" }); 542runners: new Dictionary<string, string>
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
442private readonly Dictionary<string, byte[]> _artifactZips = new();
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (3)
411runners: new Dictionary<string, string> { ["macos"] = "macos-latest-xlarge" }); 445runners: new Dictionary<string, string> 646var results = new Dictionary<string, GitHubActionsMatrix>();
PowerShellScripts\PowerShellCommand.cs (1)
24public Dictionary<string, string> Environment { get; } = new();
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
292var dict = new Dictionary<string, object>(); 307var results = new Dictionary<string, GitHubActionsMatrix>();
Shared\TestDataBuilder.cs (5)
44Properties = new Dictionary<string, bool> 91Properties = new Dictionary<string, bool> 211Properties = new Dictionary<string, bool> 244public Dictionary<string, bool> Properties { get; set; } = new(); 308public Dictionary<string, bool> Properties { get; set; } = new();
TestTriggerMap\TestTriggerMapModel.cs (1)
20public Dictionary<string, List<string>> Groups { get; set; } = new();
tools\GenerateCITimeline\GitHubApi.cs (1)
87var merged = new Dictionary<string, List<string>>();
tools\GenerateCITimeline\TimelineRenderer.cs (4)
57private static readonly Dictionary<string, string> s_statusIcon = new() 65private static readonly Dictionary<string, string> s_runnerEmoji = new() 222var groups = new Dictionary<string, JobGroup>(); 401var phaseJobs = new Dictionary<string, List<JobInfo>>();
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (21)
330new Dictionary<string, string> 335new Dictionary<string, string> 448pullRequestsByHead = new Dictionary<string, object[]> 500pullRequestsByHeadPages = new Dictionary<string, object[][]> 569pullRequestsByHead = new Dictionary<string, object[]> 810issueStatesByNumber = new Dictionary<string, string> 814commentHtmlUrlByNumber = new Dictionary<string, string> 881Dictionary<string, string[]> expectations = new() 1055issueStatesByNumber = new Dictionary<string, string> 1059commentHtmlUrlByNumber = new Dictionary<string, string> 1147issueStatesByNumber = new Dictionary<string, string> 1183issueStatesByNumber = new Dictionary<string, string> 1225issueStatesByNumber = new Dictionary<string, string> 1569new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." }, 1570new Dictionary<string, string> { ["1"] = "Process failed with 0xC0000142" }, 1595new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." }, 1596new Dictionary<string, string> { ["1"] = "Some unrelated failure" }, 1620new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." }, 1621new Dictionary<string, string> { ["1"] = "0xC0000142" }, 2194: new Dictionary<string, string> { [job.Id.ToString()] = jobLogText }; 2198new Dictionary<string, string> { [job.Id.ToString()] = annotationsOrText },
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (1)
418new Dictionary<string, string?>
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (3)
287new Dictionary<string, string?> 318new Dictionary<string, string?> 349new Dictionary<string, string?>
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (15)
87runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() }, 104runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() }, 124runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() }, 143runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun(updatedAt: MinutesAgo(30)) }, 165runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() }, 185runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() }, 206runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun(updatedAt: MinutesAgo(30)) }, 227runsByFile = new Dictionary<string, object> 250runsByFile = new Dictionary<string, object> 274runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() }, 295runsByFile = new Dictionary<string, object> 319runsByFile = new Dictionary<string, object> 348runsByFile = new Dictionary<string, object> { ["deployment-tests.yml"] = StartupFailureRun() }, 367runsByFile = new Dictionary<string, object> { [workflowFile] = StartupFailureRun(updatedAt: MinutesAgo(30)) }, 383runsByFile = new Dictionary<string, object> { ["tests-outerloop.yml"] = FailingRun() },
Microsoft.Analyzers.Extra (4)
Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (2)
CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
JsonObject.cs (1)
26_properties = new Dictionary<string, JsonValue>();
Microsoft.AspNetCore.App.CodeFixes (1)
Dependencies\ExtensionMethodsCache.cs (1)
12return new()
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.Twitter (4)
TwitterHandler.cs (4)
186var authorizationParts = new SortedDictionary<string, string>(extraOAuthPairs ?? new Dictionary<string, string>()) 274var response = await ExecuteRequestAsync(TwitterDefaults.RequestTokenEndpoint, HttpMethod.Post, extraOAuthPairs: new Dictionary<string, string>() { { "oauth_callback", callBackUri } }); 299var formPost = new Dictionary<string, string> { { "oauth_verifier", verifier } }; 325var 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.Components (18)
CascadingParameterValueProvider.cs (1)
12private readonly Dictionary<ComponentSubscriptionKey, CascadingParameterSubscription> _subscriptions = new();
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)
35private readonly Dictionary<int, ComponentState> _componentStateById = new Dictionary<int, ComponentState>(); 36private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 38private readonly Dictionary<ulong, (int RenderedByComponentId, EventCallback Callback, string? attributeName)> _eventBindings = new(); 39private readonly Dictionary<ulong, ulong> _eventHandlerIdReplacements = new Dictionary<ulong, ulong>(); 336_rootComponentsLatestParameters ??= new();
Routing\Router.cs (2)
25= new Dictionary<string, object>(); 422new RouteData(componentType, new Dictionary<string, object>()));
Routing\RouteTableFactory.cs (1)
88var templatesByHandler = new Dictionary<Type, string[]>();
Sections\SectionRegistry.cs (2)
10private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 11private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new();
src\aspnetcore\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\aspnetcore\src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
Microsoft.AspNetCore.Components.AI.SourceGenerators (4)
DiagnosticDescriptors.cs (1)
91private static readonly Dictionary<string, DiagnosticDescriptor> s_byId = new()
ToolBlockEmitter.cs (1)
185var seen = new Dictionary<string, ToolBlockCandidate>();
ToolBlockParser.cs (2)
116var seenKeys = new Dictionary<string, string>(); 160var seenResultKeys = new Dictionary<string, string>();
Microsoft.AspNetCore.Components.Analyzers (3)
ForLoopIteratorInClosureAnalyzer.cs (1)
29var availableTypes = new Dictionary<string, INamedTypeSymbol?>()
StateHasChangedAnalyzer.cs (2)
98var expressionBodyCallLocations = new Dictionary<int, Location>(); 117var callLocations = new Dictionary<int, Location>();
Microsoft.AspNetCore.Components.Endpoints (27)
_generated\2\ImportMapSerializerContext.IReadOnlyDictionaryStringIReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>(),
_generated\25\BrowserOptionsJsonContext.IDictionaryStringJsonElement.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
_generated\26\BrowserOptionsJsonContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\3\ImportMapSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\56\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
BrowserConfiguration\InteractiveServerBrowserOptions.cs (1)
44public IDictionary<string, JsonElement> Extensions { get; } = new Dictionary<string, JsonElement>();
BrowserConfiguration\InteractiveWebAssemblyBrowserOptions.cs (1)
29public IDictionary<string, string> EnvironmentVariables { get; } = new Dictionary<string, string>();
Builder\ResourceCollectionUrlEndpoint.cs (2)
60new Dictionary<string, string> 66new Dictionary<string, string>
Builder\ResourcePreloadCollection.cs (1)
10private readonly Dictionary<string, List<PreloadAsset>> _storage = new();
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\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>
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();
Rendering\SSRRenderModeBoundary.cs (1)
130_topLevelCaptures ??= new();
Results\RazorComponentResult.cs (1)
19= new Dictionary<string, object?>().AsReadOnly();
Results\RazorComponentResultExecutor.cs (1)
57var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new Dictionary<string, byte[]>();
TempData\SessionStorageTempDataProvider.cs (3)
37return new Dictionary<string, object?>(); 46return new Dictionary<string, object?>(); 51return new Dictionary<string, object?>();
TempData\TempData.cs (1)
89var dataToSave = new Dictionary<string, object?>();
Microsoft.AspNetCore.Components.Forms (3)
EditContext.cs (1)
20private readonly Dictionary<FieldIdentifier, FieldState> _fieldStates = new Dictionary<FieldIdentifier, FieldState>();
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.QuickGrid (3)
Infrastructure\EventCallbackSubscribable.cs (1)
14private readonly Dictionary<EventCallbackSubscriber<T>, EventCallback<T>> _callbacks = new();
QuickGrid.razor.cs (2)
304var attributes = new Dictionary<string, object> 405return NavigationManager.GetUriWithQueryParameters(new Dictionary<string, object?>
Microsoft.AspNetCore.Components.Server (10)
_generated\42\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
_generated\9\CircuitPersistenceManagerSerializerContext.DictionaryInt32ComponentMarker.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>(),
Circuits\CircuitPersistenceManager.cs (2)
164rootComponentDescriptors = new Dictionary<int, WebRootComponentDescriptor>(); 211var persistedComponents = new Dictionary<int, ComponentMarker>();
Circuits\ComponentParameterDeserializer.cs (1)
26var parametersDictionary = new Dictionary<string, object>();
Circuits\RemoteJSRuntime.cs (1)
27internal readonly Dictionary<long, RemoteJSDataStream> RemoteJSDataStreamInstances = new();
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
52_deduplicatedStringIndices = new Dictionary<string, int>();
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new Dictionary<string, byte[]>();
Microsoft.AspNetCore.Components.Testing (7)
_generated\5\E2EManifestJsonContext.DictionaryStringE2EAppEntry.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>(),
_generated\6\E2EManifestJsonContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Infrastructure\E2EAppEntry.cs (1)
26public Dictionary<string, string> EnvironmentVariables { get; set; } = new();
Infrastructure\E2EManifest.cs (1)
12public Dictionary<string, E2EAppEntry> Apps { get; set; } = new();
Infrastructure\PlaywrightExtensions.cs (1)
39?? new Dictionary<string, string>();
Infrastructure\ServerFactory.cs (1)
304Destinations = new Dictionary<string, DestinationConfig>
Infrastructure\ServerStartOptions.cs (1)
17public Dictionary<string, string> EnvironmentVariables { get; } = new();
Microsoft.AspNetCore.Components.Testing.Tasks (2)
E2EManifestModel.cs (2)
13public Dictionary<string, E2EAppEntryModel> Apps { get; set; } = new(); 32public Dictionary<string, string> EnvironmentVariables { get; set; } = new();
Microsoft.AspNetCore.Components.Web (7)
_generated\6\WebRendererSerializerContext.DictionaryStringJSComponentParameterArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>(),
_generated\7\WebRendererSerializerContext.DictionaryStringListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>(),
Forms\InputBase.cs (2)
387result = new Dictionary<string, object>(); 396result = 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>();
Microsoft.AspNetCore.Components.WebAssembly (6)
_generated\24\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
Hosting\WebAssemblyHostConfiguration.cs (1)
41IDictionary<string, object> IConfigurationBuilder.Properties { get; } = new Dictionary<string, object>();
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
52_deduplicatedStringIndices = new Dictionary<string, int>();
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new Dictionary<string, byte[]>();
Microsoft.AspNetCore.Components.WebAssembly.Authentication (4)
_generated\4\InteractiveRequestOptionsSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Models\InteractiveRequestOptions.cs (1)
45AdditionalRequestParameters ??= new();
Options\OidcProviderOptions.cs (1)
68public IDictionary<string, string> AdditionalProviderParameters { get; } = new Dictionary<string, string>();
RemoteAuthenticatorViewCore.cs (1)
404new Dictionary<string, object?> { ["returnUrl"] = loginUrl });
Microsoft.AspNetCore.Components.WebView (5)
_generated\6\SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
_generated\7\SourceGenerationContext.IDictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
52_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.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.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.MicroBenchmarks (1)
src\aspnetcore\src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
23ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Diagnostics (1)
src\aspnetcore\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.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
36var parametersToRedact = new Dictionary<string, DataClassification>();
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
RedactionBenchmark.cs (1)
24private readonly Dictionary<string, object?> _routeValues = new()
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)
163o.RouteParameterDataClasses = new Dictionary<string, DataClassification> 168o.RequestHeadersDataClasses = new Dictionary<string, DataClassification> 173o.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\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
500return new Dictionary<string, FieldDescriptor>(); 504var queryParameters = new Dictionary<string, FieldDescriptor>();
Microsoft.AspNetCore.HeaderParsing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
143temp4 ??= (global::System.Collections.Generic.IDictionary<string, global::Microsoft.Extensions.Primitives.StringValues>)new Dictionary<string, global::Microsoft.Extensions.Primitives.StringValues>(); 164temp8 ??= (global::System.Collections.Generic.IDictionary<string, int>)new Dictionary<string, int>();
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)
_generated\6\SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
_generated\7\SourceGenerationContext.IDictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, 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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionOptions.cs (1)
46_headers = new Dictionary<string, string>();
Microsoft.AspNetCore.Http.Extensions (9)
_generated\3\ProblemDetailsJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\4\ProblemDetailsJsonContext.IDictionaryStringStringArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string[]>(),
RequestDelegateFactory.cs (1)
2306var dictionary = new Dictionary<FormKey, StringValues>();
RequestDelegateFactoryContext.cs (1)
43public Dictionary<string, string> TrackedParameters { get; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
19new Dictionary<TKey, TValue>();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
486var lookupTable = new Dictionary<ParameterLookupKey, IPropertySymbol>();
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
425TypedResults.ValidationProblem(new Dictionary<string, string[]> {
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 (3)
AssemblyTestLog.cs (1)
30private static readonly Dictionary<Assembly, AssemblyTestLog> _logs = new();
Tracing\EventSourceValidator.cs (1)
54var seenIds = new Dictionary<int, string>();
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
Microsoft.AspNetCore.Mvc.Abstractions (5)
Abstractions\ActionDescriptor.cs (1)
21Properties = new Dictionary<object, object?>();
ApiExplorer\ApiDescription.cs (1)
39public 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\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (3)
193var results = new Dictionary<ResponseKey, ApiResponseType>(); 194var statusCodeScopes = new Dictionary<int, int>(); 309var results = new Dictionary<ResponseKey, 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)
42var 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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
176var namesAndValues = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
170new Dictionary<string, ReportDiagnostic>
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.Testing (3)
_generated\0\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)
302config.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.OpenApi (29)
Extensions\JsonNodeSchemaExtensions.cs (1)
27private static readonly Dictionary<Type, string> _simpleTypeToFormat = new()
Extensions\JsonTypeInfoExtensions.cs (1)
14private static readonly Dictionary<Type, string> _simpleTypeToName = new()
Schemas\OpenApiJsonSchema.Helpers.cs (8)
72var values = new Dictionary<string, T>(); 334schema.Discriminator.Mapping ??= new Dictionary<string, OpenApiSchemaReference>(); 350schema.Metadata ??= new Dictionary<string, object>(); 355schema.Metadata ??= new Dictionary<string, object>(); 360schema.Metadata ??= new Dictionary<string, object>(); 376schema.Metadata ??= new Dictionary<string, object>(); 381schema.Metadata ??= new Dictionary<string, object>(); 386schema.Metadata ??= new Dictionary<string, object>();
Services\OpenApiDocumentService.cs (15)
280var operations = new Dictionary<HttpMethod, OpenApiOperation>(); 284operation.Metadata ??= new Dictionary<string, object>(); 428Content = new Dictionary<string, IOpenApiMediaType>() 434var schemasByContentType = new Dictionary<string, OpenApiResponseContentSchemas>(); 536Properties = new Dictionary<string, IOpenApiSchema> 677actualSchema.Metadata ??= new Dictionary<string, object>(); 731Content = new Dictionary<string, IOpenApiMediaType>() 734var schema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() }; 777Properties = new Dictionary<string, IOpenApiSchema> 785schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 817Properties = new Dictionary<string, IOpenApiSchema> 837schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 847var propertySchema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() }; 875schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 927Content = new Dictionary<string, IOpenApiMediaType>(),
Services\OpenApiGenerator.cs (3)
119var eligibileAnnotations = new Dictionary<int, (Type?, MediaTypeCollection)>(); 202var responseContent = new Dictionary<string, IOpenApiMediaType>(); 274var requestBodyContent = new Dictionary<string, IOpenApiMediaType>();
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.OutputCaching (1)
CacheVaryByRules.cs (1)
21public IDictionary<string, string> VaryByValues => _varyByValues ??= new Dictionary<string, string>();
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.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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
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.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)
207var 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.Server.HttpSys (1)
StandardFeatureCollection.cs (1)
14private static readonly Dictionary<Type, Func<RequestContext, object?>> _featureFuncLookup = new()
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\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.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)
152internal 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.Transport.DirectTls (1)
TlsEventPump.cs (1)
53private readonly Dictionary<int, HandshakingConnection> _handshaking = new();
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
11private readonly Dictionary<EncodedKey, byte[]> _store = new Dictionary<EncodedKey, byte[]>();
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
1046readers = new Dictionary<string, object>(); 1509invocationMessage.Headers ??= new Dictionary<string, string>();
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.SpaServices.Extensions (1)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
73var envVars = new Dictionary<string, string>
Microsoft.Build (82)
BackEnd\BuildManager\BuildManager.cs (6)
304_buildSubmissions = new Dictionary<int, BuildSubmissionBase>(); 308_nodeIdToKnownConfigurations = new Dictionary<int, HashSet<int>>(); 309_unnamedProjectInstanceToNames = new Dictionary<ProjectInstance, string>(); 314_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 2341new ReadOnlyDictionary<ProjectGraphNode, BuildResult>(resultsPerNode ?? new Dictionary<ProjectGraphNode, BuildResult>()))); 2372var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>();
BackEnd\BuildManager\CacheAggregator.cs (1)
68var 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 (3)
183_serverEnvironmentVariables = new(); 600? new Dictionary<string, string?>() 633Dictionary<string, string> envVars = new();
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
38_componentEntriesByType = new Dictionary<BuildComponentType, BuildComponentEntry>();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
168_requestsByGlobalRequestId = new Dictionary<int, BuildRequestEntry>(); 660_unresolvedConfigurationsById = new Dictionary<int, BuildRequestConfiguration>(); 661_unresolvedConfigurationsByMetadata = new Dictionary<ConfigurationMetadata, BuildRequestConfiguration>();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
375_outstandingResults ??= new Dictionary<int, BuildResult>(); 517_outstandingRequests ??= new Dictionary<int, BuildRequest>(); 525_unresolvedConfigurations ??= new Dictionary<int, List<BuildRequest>>();
BackEnd\Components\Communications\NodeManager.cs (1)
77_nodeIdToProvider = new Dictionary<int, INodeProvider>();
BackEnd\Components\Logging\LoggingService.cs (1)
322_eventSinkDictionary = new Dictionary<int, IBuildEventSink>();
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
872Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties)
BackEnd\Components\Logging\ProjectTelemetry.cs (4)
42private readonly Dictionary<string, int> _msbuildTaskSubclassUsage = new(); 187Dictionary<string, string> properties = new(); 201Dictionary<string, string> properties = new(); 218Dictionary<string, string> properties = new();
BackEnd\Components\RequestBuilder\Lookup.cs (2)
869modifiesOfType = new Dictionary<ProjectItemInstance, MetadataModifications>(); 902_cloneTable ??= new Dictionary<ProjectItemInstance, ProjectItemInstance>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1035results = new Dictionary<int, BuildResult>();
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
136_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)
443_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 501_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>();
BackEnd\Shared\BuildAbortedException.cs (1)
79return new Dictionary<string, string>()
BackEnd\Shared\BuildResult.cs (1)
674Dictionary<string, string> additionalEntries = new();
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (2)
29_eventHandlersFull = new() 47_eventHandlersRestore = new()
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
548private readonly Dictionary<int, HashSet<string>> _deferredProjectEvalIdToImportedProjects = new(); 662private 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\MultiDictionary.cs (1)
166_backing = new Dictionary<K, SmallList<V>>();
Construction\Solution\SolutionFile.cs (2)
360_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 771_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>();
Construction\Solution\SolutionProjectGenerator.cs (1)
251new Dictionary<string, string>
Definition\ToolsetConfigurationReader.cs (2)
216kindToPathsCache = new Dictionary<string, ProjectImportPathMatch>(); 234var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
51return new Dictionary<string, ProjectImportPathMatch>();
Errors\InternalLoggerException.cs (1)
148return 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)
282_projectSupportsReturnsAttribute = new Dictionary<ProjectRootElement, bool>();
Evaluation\Expander.ItemExpander.Transforms.cs (1)
49private 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)
214var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 324Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 456var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>();
Instance\HostServices.cs (1)
312var hostObjectMap = new Dictionary<string, HostObjects>();
Instance\ProjectInstance.cs (2)
604thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>(); 605thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>();
Instance\TaskFactories\TaskHostTask.cs (1)
208_setParameters = new Dictionary<string, object>();
Instance\TaskRegistry.cs (1)
154private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>();
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
642globalProperties = ReadStringDictionary() ?? new Dictionary<string, string>(); 1289var 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>(); 208propertyOutputMap = new Dictionary<(int, int), string>(); 442var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1727? new Dictionary<BuildEventContext, object>()
Logging\ProfilerLogger.cs (2)
132var mergeMap = new Dictionary<long, long>(); 218var result = new Dictionary<EvaluationLocation, ProfiledLocation>();
src\msbuild\src\Shared\NodePacketFactory.cs (1)
25_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
241_globalParameters = globalParameters ?? new Dictionary<string, string>();
src\msbuild\src\Shared\Tracing.cs (1)
57s_counts = new Dictionary<string, int>();
Microsoft.Build.Framework (24)
BinaryReaderExtensions.cs (1)
108data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (1)
626additionalEntries = 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)
19GlobalProperties = new Dictionary<string, string?>();
Collections\ReadOnlyEmptyDictionary.cs (2)
23private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 160return new Dictionary<K, V>()[key];
DotnetHostEnvironmentHelper.cs (1)
94var overrides = new Dictionary<string, string?>
Features.cs (1)
39private static readonly Dictionary<string, FeatureStatus> _featureStatusMap = new Dictionary<string, FeatureStatus>
Loader\CoreCLRAssemblyLoader.cs (1)
27private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
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>(); 55var properties = new Dictionary<string, string>(); 66properties = new Dictionary<string, string>();
Telemetry\BuildTelemetry.cs (1)
212var properties = new Dictionary<string, string>();
Telemetry\CrashTelemetry.cs (1)
566var properties = new Dictionary<string, string>();
Telemetry\LoggingConfigurationTelemetry.cs (1)
86var properties = new Dictionary<string, string>();
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
43Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksExecutionData = new(); 64Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsExecutionData = new();
TelemetryEventArgs.cs (1)
24public IDictionary<string, string?> Properties { get; set; } = new Dictionary<string, string?>();
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
99var rootByItemSpec = new Dictionary<string, ITaskItem>(); 133var topLevelMappedPaths = new Dictionary<string, string>();
Microsoft.Build.Tasks.Core (22)
AssemblyDependency\GenerateBindingRedirects.cs (1)
376var map = new Dictionary<AssemblyName, string>();
AssemblyDependency\ReferenceTable.cs (1)
1413var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>();
AssemblyDependency\ResolveAssemblyReference.cs (1)
1316_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>()
BootstrapperUtil\BootstrapperBuilder.cs (2)
274var builtProducts = new Dictionary<string, ProductBuilder>(); 275var 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)
629var identityList = new Dictionary<string, bool>();
ManifestUtil\Util.cs (1)
412var list = new Dictionary<string, ITaskItem>();
ResGenDependencies.cs (2)
32internal IDictionary<string, ResXFile> resXFiles = new Dictionary<string, ResXFile>(); 37internal IDictionary<string, PortableLibraryFile> portableLibraries = new Dictionary<string, PortableLibraryFile>();
ResolveManifestFiles.cs (3)
853private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 854private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 976private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResourceHandling\MSBuildResXReader.cs (1)
25var aliases = new Dictionary<string, string>();
src\msbuild\src\Shared\NodePacketFactory.cs (1)
25_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
src\msbuild\src\Shared\Tracing.cs (1)
57s_counts = new Dictionary<string, int>();
WriteCodeFragment.cs (3)
41private static readonly IReadOnlyDictionary<string, ParameterType> EmptyParameterTypes = new Dictionary<string, ParameterType>(); 345parameterTypes = new(); 375parameterTypes = new();
Microsoft.Build.Tasks.Git (2)
GitDataReader\GitConfig.Reader.cs (2)
78var variables = new Dictionary<GitVariableName, List<string>>(); 93var variables = new Dictionary<GitVariableName, List<string>>();
Microsoft.Build.Utilities.Core (8)
MuxLogger.cs (2)
58private readonly Dictionary<int, SubmissionRecord> _submissionRecords = new Dictionary<int, SubmissionRecord>(); 93private readonly Dictionary<int, int> _submissionProjectsInProgress = new Dictionary<int, int>();
SDKManifest.cs (2)
379_frameworkIdentities = new Dictionary<string, string>(); 390_appxLocations = new Dictionary<string, string>();
src\msbuild\src\Shared\Tracing.cs (1)
57s_counts = new Dictionary<string, int>();
ToolLocationHelper.cs (3)
624var filteredExtensionSdks = new Dictionary<string, string>(); 1419s_vsInstallFolders = new Dictionary<string, string[]>(); 2466var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
Microsoft.CodeAnalysis (66)
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)
49Interlocked.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 (2)
45private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>(); 111var resolvedSuppressions = new Dictionary<ISymbol, SuppressMessageInfo>();
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)
114_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 117_firstParamRowMap = new Dictionary<MethodDefinitionHandle, int>(); 192var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 1608_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>?>(); 3903typesToAssemblyIndexMap ??= 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>(); 4298: 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\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CodeStyle (13)
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
109var cache = new Dictionary<DocumentId, SemanticDocument>();
src\roslyn\src\Analyzers\Core\CodeFixes\Options\FadingOptions.cs (1)
21private static readonly ImmutableDictionary<string, PerLanguageOption2<bool>> s_diagnosticToFadingOption = new Dictionary<string, PerLanguageOption2<bool>>
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
320var canEditMap = new Dictionary<DocumentId, bool>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.CSharp (50)
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)
314constraints = new Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>>(); 315evaluations = new Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>>(); 674var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (2)
253_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 531_localEscapeScopes ??= new Dictionary<LocalSymbol, (SafeContext RefEscapeScope, SafeContext ValEscapeScope)>();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
904Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMap = new Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>>();
Binder\SwitchBinder.cs (1)
478var 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>(); 1461_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)
1619Interlocked.CompareExchange(ref _fixedImplementationTypes, new Dictionary<FieldSymbol, NamedTypeSymbol>(), null);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
909_labelsInInterestingTry = labelsInInterestingTry = new Dictionary<BoundTryStatement, HashSet<LabelSymbol>>(); 1055this.proxyLabels = proxyLabels = new Dictionary<LabelSymbol, LabelSymbol>(); 1136_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 (2)
21private readonly Dictionary<ParameterSymbol, BoundExpression> _parameterMap = new Dictionary<ParameterSymbol, BoundExpression>(); 916_placeholderReplacementMap ??= new Dictionary<BoundValuePlaceholder, 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_FixedStatement.cs (1)
179_lazyUnmatchedLabelCache = new Dictionary<BoundNode, HashSet<LabelSymbol>>();
Lowering\LocalRewriter\LocalRewriter.cs (1)
547_placeholderReplacementMapDoNotUseDirectly = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
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)
115initialParameters = new Dictionary<Symbol, CapturedSymbolReplacement>(); 146var 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)
1436var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.CSharp.Features (4)
ChangeSignature\CSharpChangeSignatureService.cs (1)
825var 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.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
37Dictionary<IBlockOperation, IdentifierGenerator> scopeMap = new();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.Features (49)
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)
33new()
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
421var 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)
1634var 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 (2)
245? new Dictionary<Document, List<TExpressionSyntax>> { [document] = [] } 335var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); 243var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 495var 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)
416var nodesToUpdate = new Dictionary<SyntaxNode, SyntaxNode>();
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
109var cache = new Dictionary<DocumentId, SemanticDocument>();
src\roslyn\src\Analyzers\Core\CodeFixes\Options\FadingOptions.cs (1)
21private static readonly ImmutableDictionary<string, PerLanguageOption2<bool>> s_diagnosticToFadingOption = new Dictionary<string, PerLanguageOption2<bool>>
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
320var canEditMap = new Dictionary<DocumentId, bool>();
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
60var builtReferences = new Dictionary<string, ReferenceInfo?>();
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Copilot\Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.NetAnalyzers (32)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (3)
193return parameter.Locations.CreateDiagnostic(DefaultRule, new Dictionary<string, string?> { { "case", AddAccessorCase } }.ToImmutableDictionary(), parameter.Name, attributeType.Name); 199return property.GetMethod!.Locations.CreateDiagnostic(IncreaseVisibilityRule, new Dictionary<string, string?> { { "case", MakePublicCase } }.ToImmutableDictionary(), property.Name, parameter.Name); 205return property.SetMethod!.Locations.CreateDiagnostic(RemoveSetterRule, new Dictionary<string, string?> { { "case", RemoveSetterCase } }.ToImmutableDictionary(), property.Name, parameter.Name);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotHaveIncorrectSuffix.cs (2)
95new Dictionary<string, ImmutableArray<string>> 111new Dictionary<string, ImmutableArray<string>>
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValue.cs (1)
37private static readonly ImmutableDictionary<string, string> ImmutableCollectionMetadataNames = new Dictionary<string, string>
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Analyzer.cs (2)
289ImmutableDictionary<string, string?> dict = new Dictionary<string, string?>() 326ImmutableDictionary<string, string?> dict = new Dictionary<string, string?>()
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.cs (1)
82var properties = new Dictionary<string, string?> { [MethodPropertyKey] = invocation.TargetMethod.Name }.ToImmutableDictionary();
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (1)
196var results = new Dictionary<ISymbol, HashSet<ISymbol>>();
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (1)
334var results = new Dictionary<ISymbol, HashSet<ISymbol>>();
Microsoft.NetCore.Analyzers\Security\UseContainerLevelAccessPolicy.cs (1)
72var namespaceTypeSymbolAndPolicyIdentifierNamePairs = new Dictionary<INamespaceSymbol, string>();
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (1)
242var seen = new Dictionary<BasicBlock, FlowState>();
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (3)
189private readonly Dictionary<ISymbol, XmlDocumentEnvironment> _xmlDocumentEnvironments = new(); 190private readonly Dictionary<ISymbol, XmlTextReaderEnvironment> _xmlTextReaderEnvironments = new(); 191private readonly Dictionary<ISymbol, XmlReaderSettingsEnvironment> _xmlReaderSettingsEnvironments = new();
Microsoft.NetFramework.Analyzers\TypesShouldNotExtendCertainBaseTypes.cs (1)
38private static readonly ImmutableDictionary<string, string> s_badBaseTypesToMessage = new Dictionary<string, string>
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
39this.TaintedSourcesBySink = new Dictionary<SymbolAccess, (ImmutableHashSet<SinkKind>.Builder SinkKinds, ImmutableHashSet<SymbolAccess>.Builder SourceOrigins)>();
src\afc74d572e54ec72\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (1)
40_trackedInstanceFieldLocations = new Dictionary<IFieldSymbol, PointsToAbstractValue>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\TemporaryDictionary`2.cs (1)
22private static readonly Dictionary<TKey, TValue> EmptyDictionary = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (5)
65_analysisEntityMap = new Dictionary<IOperation, AnalysisEntity?>(); 66_tupleElementEntitiesMap = new Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>>(); 67_captureIdEntityMap = new Dictionary<CaptureId, AnalysisEntity>(); 68_captureIdCopyValueMap = new Dictionary<CaptureId, CopyAbstractValue>(); 70_instanceLocationsForSymbols = new Dictionary<ISymbol, PointsToAbstractValue>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (6)
233_exceptionPathsThrownExceptionInfoMap ??= new Dictionary<BasicBlock, ThrownExceptionInfo>(); 304_interproceduralMethodToCfgMap = new Dictionary<IMethodSymbol, ControlFlowGraph?>(); 728AnalysisDataForUnhandledThrowOperations ??= new Dictionary<ThrownExceptionInfo, TAnalysisData>(); 914AnalysisDataForUnhandledThrowOperations ??= new Dictionary<ThrownExceptionInfo, TAnalysisData>(); 1193TaskWrappedValuesMap ??= new Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>(); 2151AnalysisDataForUnhandledThrowOperations ??= new Dictionary<ThrownExceptionInfo, TAnalysisData>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
Microsoft.CodeAnalysis.Razor.Compiler (11)
CSharp\RequiredAttributeParser.cs (1)
19new Dictionary<char, RequiredAttributeValueComparison>
Language\Components\ComponentGenericTypePass.cs (3)
64var bindings = new Dictionary<string, Binding>(); 88node.ProvidesCascadingGenericTypes ??= new(); 149node.ProvidesCascadingGenericTypes ??= new();
Language\Extensions\DefaultTagHelperOptimizationPass.cs (1)
228_tagHelpers = new Dictionary<TagHelperDescriptor, string>();
Language\Legacy\HtmlTokenizer.cs (1)
17private static readonly FrozenDictionary<SyntaxKind, SyntaxToken> s_kindToTokenMap = new Dictionary<SyntaxKind, SyntaxToken>()
Language\Legacy\NativeCSharpLanguageCharacteristics.cs (1)
15private static readonly Dictionary<SyntaxKind, string> _tokenSamples = new Dictionary<SyntaxKind, string>()
Language\Legacy\NativeCSharpTokenizer.cs (1)
113_operatorHandlers = new Dictionary<char, Func<SyntaxKind>>()
Language\Legacy\ParserHelpers.cs (2)
176private static readonly FrozenDictionary<string, string> s_namedHtmlEntities = new Dictionary<string, string>() 2411private static readonly FrozenDictionary<int, string> s_htmlEntityCodePoints = new Dictionary<int, string>()
Language\Legacy\RoslynCSharpLanguageCharacteristics.cs (1)
15private static readonly Dictionary<SyntaxKind, string> _tokenSamples = new Dictionary<SyntaxKind, string>()
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\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.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 (37)
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)
117var 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>(); 345var reverseMappedLocations = new Dictionary<Location, Location>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
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_SourceGenerators.cs (1)
48private static readonly Dictionary<string, AnalyzerReferenceMap> s_languageToAnalyzerReferenceMap = new()
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
494var metadataReferenceToProjectId = new Dictionary<MetadataReference, ProjectId>();
Workspace\Workspace_EventsLegacy.cs (1)
17private readonly Dictionary<(object eventHandler, WorkspaceEventType eventType), (int adviseCount, IDisposable disposer)> _disposableEventHandlers = new();
Workspace\Workspace.cs (1)
1443var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Build\ProjectBuildManager.cs (1)
28private static readonly Dictionary<string, string> s_defaultGlobalProperties = new()
MSBuild\ProjectFile\ProjectFile.cs (3)
70metadata = new Dictionary<string, string> 106var metadata = new Dictionary<string, string>(); 180var metadata = new Dictionary<string, string>
Microsoft.CSharp (16)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeDesc.cs (2)
60internal static Dictionary<string, ComEventDesc> EmptyEvents { get; } = new Dictionary<string, ComEventDesc>(); 140var names = new Dictionary<string, object>();
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeLibDesc.cs (2)
28private static readonly Dictionary<Guid, ComTypeLibDesc> s_cachedTypeLibDesc = new Dictionary<Guid, ComTypeLibDesc>(); 32_enums = new Dictionary<string, ComTypeEnumDesc>();
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (2)
82private static readonly Dictionary<Guid, ComTypeDesc> s_cacheComTypeDesc = new Dictionary<Guid, ComTypeDesc>(); 386events = new Dictionary<string, ComEventDesc>();
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (1)
92Dictionary<VarEnum, Type> dict = new Dictionary<VarEnum, Type>()
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.Diagnostics.DataContractReader (9)
_generated\4\ContractDescriptorContext.DictionaryStringFieldDescriptor.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>(),
_generated\5\ContractDescriptorContext.DictionaryStringGlobalDescriptor.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>(),
_generated\6\ContractDescriptorContext.DictionaryStringTypeDescriptor.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>(),
_generated\7\ContractDescriptorContext.DictionaryStringJsonElement.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
_generated\8\ContractDescriptorContext.DictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
ContractDescriptorParser.cs (1)
118Dictionary<string, FieldDescriptor>? fields = new();
ContractDescriptorTarget.cs (3)
54private IReadOnlyDictionary<string, string> _contracts = new Dictionary<string, string>(); 55private IReadOnlyDictionary<string, GlobalValue> _globals = new Dictionary<string, GlobalValue>(); 56private IReadOnlyDictionary<string, TypeInfo> _types = new Dictionary<string, TypeInfo>();
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Target.cs (1)
317Fields = new Dictionary<string, FieldInfo>();
Microsoft.Diagnostics.DataContractReader.Contracts (13)
Contracts\DacStreams_1.cs (1)
64Dictionary<TargetPointer, string> stringToAddress = new();
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
19private readonly Dictionary<TargetPointer, CodeBlock> _codeInfos = new();
Contracts\Loader_1.cs (1)
787Dictionary<LoaderAllocatorHeapType, TargetPointer> heaps = new()
Contracts\ManagedTypeSource_1.cs (4)
16private readonly Dictionary<string, Target.TypeInfo?> _typeInfoCache = new(); 17private readonly Dictionary<string, ITypeHandle?> _typeHandleCache = new(); 18private readonly Dictionary<(string Fqn, string FieldName), TargetPointer> _fieldDescCache = new(); 224Dictionary<string, Target.FieldInfo> instanceFields = new();
Contracts\RuntimeTypeSystem_1.cs (4)
33private readonly Dictionary<TargetPointer, MethodTable> _methodTables = new(); 34private readonly Dictionary<TargetPointer, MethodDesc> _methodDescs = new(); 35private readonly Dictionary<TypeKey, ITypeHandle> _typeHandles = new(); 39private readonly Dictionary<TargetPointer, TargetTypeHandle> _targetTypeHandles = new();
PrintfStressMessageFormatter.cs (2)
36_formatActions = new() 70_alternateActions = new()
Microsoft.Diagnostics.DataContractReader.Legacy (2)
MetaDataImportImpl.cs (2)
2324Dictionary<int, uint> lookup = new(); 2338Dictionary<int, uint> lookup = new();
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\ProcessEnvironment.cs (1)
52Dictionary<string, string> env = new();
Microsoft.DotNet.ApiCompat.Task (1)
src\sdk\src\Tasks\Common\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
75new Dictionary<string, IAssemblySymbol>());
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
68var runtimeItems = new Dictionary<string, IEnumerable<KeyValuePair<string, string>>>();
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)
103Dictionary<int,string> majorMinorPatchDictionary = new Dictionary<int, 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.TargetFramework (1)
TargetFrameworkResolver.cs (1)
19private static readonly Dictionary<string, TargetFrameworkResolver> s_targetFrameworkResolverCache = new();
Microsoft.DotNet.Build.Tasks.Workloads (4)
EmbeddedTemplates.cs (2)
12private static readonly Dictionary<string, string> s_templateResources = new(); 68s_templateResources = new()
Wix\HarvesterToolTask.cs (1)
15private static readonly Dictionary<HeatSuppressions, string> s_SuppressionArguments = new()
WorkloadTemplateBase.cs (1)
34} = new();
Microsoft.DotNet.Cli.CommandLine (1)
SymbolDocumentationExtensions.cs (1)
13private static readonly Dictionary<Symbol, string> s_documentationLinks = new();
Microsoft.DotNet.Cli.Definitions (1)
Help\HelpBuilder.cs (1)
73_customizationsBySymbol ??= new();
Microsoft.DotNet.Cli.Telemetry (1)
_generated\16\TelemetryJsonContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Microsoft.DotNet.Cli.Utils (1)
MSBuildForwardingAppWithoutLogging.cs (1)
321return new()
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
145var typeTable = new Dictionary<string, IList<string>>();
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (2)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (2)
100result[index] = new TaskItem(name, new Dictionary<string,string> { { deltaOutputTypeMetadata, outputType.ToString() } }); 125result[i] = new TaskItem(changes[i].Update, new Dictionary<string,string> { { "DeltaForBaseline", changes[i].Document} });
Microsoft.DotNet.HotReload.Watch (5)
Build\EvaluationResult.cs (2)
162var fileItemsBuilder = new Dictionary<string, FileItem>(); 163var staticWebAssetManifestsBuilder = new Dictionary<ProjectInstanceId, StaticWebAssetsManifest>();
Build\FilePathExclusions.cs (1)
19var globs = new Dictionary<(string fixedDirectoryPart, string wildcardDirectoryPart, string filenamePart), (MSBuildGlob glob, string value, string projectDir)>();
Build\ProjectBuildManager.cs (1)
18private static readonly IReadOnlyDictionary<string, TargetResult> s_emptyTargetResults = new Dictionary<string, TargetResult>();
Process\ProjectLauncher.cs (1)
63var environmentBuilder = new Dictionary<string, string>();
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
74var packages = new Dictionary<string, PackageInfo>();
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.ProjectTools (1)
LaunchSettings\LaunchSettings.cs (1)
15private static readonly IReadOnlyDictionary<string, LaunchProfileParser> s_providers = new Dictionary<string, LaunchProfileParser>
Microsoft.DotNet.SharedFramework.Sdk (4)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>();
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
Microsoft.DotNet.SourceBuild.Tasks (1)
src\ReadNuGetPackageInfos.cs (1)
34new Dictionary<string, string>
Microsoft.DotNet.TemplateLocator (17)
_generated\0\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\1\WorkloadSetJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\9\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (2)
118_knownManifestIdsAndOrder = new Dictionary<string, int>(); 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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)); 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
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.Extensions.AI (2)
Generated\361d1da7f942c932\OtelContext.IReadOnlyDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Microsoft.Extensions.AI.Abstractions (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.DictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (2)
27private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 28private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
Microsoft.Extensions.AI.Abstractions.Tests (48)
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" }),
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (1)
1127new() { Contents = [new FunctionCallContent("fc1", "SearchTool", new Dictionary<string, object?> { ["q"] = "test" })] },
Contents\AIContentTests.cs (3)
72new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } }), 77new ToolApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })), 78new ToolApprovalResponseContent("request123", approved: true, new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Contents\FunctionCallContentTests.cs (4)
87var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) 164var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) { Exception = ex }; 187["d"] = new ReadOnlyDictionary<string, string>((new Dictionary<string, string> 414Arguments = new Dictionary<string, object?> { { "arg1", "value1" } }
Contents\InputRequestContentTests.cs (1)
40new ToolApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Contents\McpServerToolCallContentTests.cs (2)
43IDictionary<string, object?> args = new Dictionary<string, object?>(); 67Arguments = new Dictionary<string, object?> { { "arg1", "value1" } }
Contents\ToolApprovalRequestContentTests.cs (2)
24new FunctionCallContent("FCC1", "TestFunction", new Dictionary<string, object?> { { "param1", 123 } }), 25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Contents\ToolApprovalResponseContentTests.cs (2)
24new FunctionCallContent("FCC1", "TestFunction", new Dictionary<string, object?> { { "param1", 123 } }), 25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Contents\ToolCallContentTests.cs (1)
56new FunctionCallContent("call1", "function1", new Dictionary<string, object?> { { "param1", 123 } }),
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?>
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonDocument.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonNode.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringInt32.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, int>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringSimplePoco.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>(),
parent\parent\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 },
Tools\HostedCodeInterpreterToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedFileSearchToolTests.cs (1)
26var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedImageGenerationToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedMcpServerToolTests.cs (4)
32var props = new Dictionary<string, object?> { ["key"] = "value" }; 43var props = new Dictionary<string, object?> { ["key"] = "value" }; 95tool.Headers = new Dictionary<string, string> { ["X-Custom-Header"] = "value1" }; 106Headers = new Dictionary<string, string>
Tools\HostedToolSearchToolTests.cs (1)
27var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedWebSearchToolTests.cs (1)
24var props = new Dictionary<string, object?> { ["key"] = "value" };
Utilities\AIJsonUtilitiesTests.cs (3)
1484string key5 = AIJsonUtilities.HashDataToString([new Dictionary<string, object> { ["key1"] = 1, ["key2"] = 2 }], options); 1485string key6 = AIJsonUtilities.HashDataToString([new Dictionary<string, object> { ["key2"] = 2, ["key1"] = 1 }], options); 1501Dictionary<string, object> dict = new() { ["key1"] = 1, ["key2"] = 2 };
Microsoft.Extensions.AI.Evaluation (3)
EvaluationMetricExtensions.cs (2)
31metric.Context ??= new Dictionary<string, EvaluationContext>(); 118metric.Metadata ??= new Dictionary<string, string>();
EvaluationResult.cs (1)
53var metricsDictionary = new Dictionary<string, EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Console (10)
Commands\CleanCacheCommand.cs (1)
27var telemetryProperties = new Dictionary<string, string>();
Commands\CleanResultsCommand.cs (1)
29new Dictionary<string, string>
Commands\ReportCommand.cs (5)
37new Dictionary<string, string> 80new Dictionary<(string? model, string? modelProvider), TurnAndTokenUsageDetails>(); 194new Dictionary<string, string> 227new Dictionary<string, string> 302new Dictionary<string, string>
Telemetry\TelemetryExtensions.cs (2)
168properties ??= new Dictionary<string, string>(); 203properties ??= new Dictionary<string, string>();
Telemetry\TelemetryHelper.cs (1)
48new Dictionary<string, string>
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationContext.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>(),
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationMetric.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationContext.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>(),
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationMetric.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
ScenarioRunResultTests.cs (1)
222arguments: new Dictionary<string, object?> { ["query"] = "fixed" })
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)
137["stream_options"] = new Dictionary<string, object> { ["include_usage"] = true, }, 425aiFuncOptions.AdditionalProperties = new Dictionary<string, object?> { ["strict"] = true }; 433Dictionary<string, object?> additionalProperties = new();
Microsoft.Extensions.AI.OpenAI (6)
Generated\361d1da7f942c932\OpenAIJsonContext.DictionaryStringJsonElement.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
Generated\361d1da7f942c932\OpenAIJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
OpenAIRealtimeClientSession.cs (1)
254var metadata = new Dictionary<string, BinaryData>();
OpenAIResponsesChatClient.cs (3)
236(mcpApprovalRequests ??= new())[mtcari.Id] = approvalRequest; 539(mcpApprovalRequests ??= new())[mtcari.Id] = streamApprovalRequest; 1045namespaceGroups ??= new();
Microsoft.Extensions.AI.OpenAI.Tests (35)
OpenAIChatClientTests.cs (11)
178Assert.Equal(new Dictionary<string, long> 852Assert.Equal(new Dictionary<string, long> 949Assert.Equal(new Dictionary<string, long> 1047Assert.Equal(new Dictionary<string, long> 1159Assert.Equal(new Dictionary<string, long> 1170AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1244Assert.Equal(new Dictionary<string, long> 1351AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1360Assert.Equal(new Dictionary<string, long> 1501Assert.Equal(new Dictionary<string, long> 1616Assert.Equal(new Dictionary<string, long>
OpenAIConversionTests.cs (21)
246var webSearchTool = new HostedWebSearchToolWithProperties(new Dictionary<string, object?> 317var fileSearchTool = new HostedFileSearchTool(new Dictionary<string, object?> 409var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 444var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 492Headers = new Dictionary<string, string> { ["Authorization"] = "Bearer test-token" } 510Headers = new Dictionary<string, string> 627Headers = new Dictionary<string, string> { ["Authorization"] = "Bearer connector-token" } 731new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?> 772Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?> 800new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?> 828Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?> 1220new FunctionCallContent("call123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" }) 1489var mcpToolCall = new McpServerToolCallContent("call_123", "get_weather", "weather_server") { Arguments = new Dictionary<string, object?> { ["city"] = "Seattle" } }; 1575var complexArgs = new Dictionary<string, object?> 1581["nestedObject"] = new Dictionary<string, object?> 1774var functionCallContent = new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> 1812var functionCall1 = new FunctionCallContent("call-1", "Function1", new Dictionary<string, object?> { ["param1"] = "value1" }); 1813var functionCall2 = new FunctionCallContent("call-2", "Function2", new Dictionary<string, object?> { ["param2"] = "value2" }); 1846new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }), 2087new FunctionCallContent("call-123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" }) 2122new FunctionCallContent("call-456", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })
OpenAIResponseClientIntegrationTests.cs (1)
524Headers = new Dictionary<string, string> { ["Authorization"] = $"Bearer {accessToken}" },
OpenAIResponseClientTests.cs (2)
2717Headers = new Dictionary<string, string> 2808Headers = new Dictionary<string, string>
Microsoft.Extensions.AI.Stabilization.Tests (4)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedCodeInterpreterToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedImageGenerationToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedWebSearchToolTests.cs (1)
24var props = new Dictionary<string, object?> { ["key"] = "value" };
Microsoft.Extensions.AI.Tests (135)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
52Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?> 255new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }), 266Contents = [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 (63)
41new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 49new ToolApprovalRequestContent("ficc_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 ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 124new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 137new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 176new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }) 185new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 260new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 265new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 272new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 283new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 312new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 317new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 325new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 336new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 367new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 375new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 383new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" }, 395new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" }, 423new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 428new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 435new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), 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 } })]), 482new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 487new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 494new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 506new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 514new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 546new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 554new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 564new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 579new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 612new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })), 613new ToolApprovalRequestContent("ficc_callId3", new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })) 618new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })), 619new ToolApprovalResponseContent("ficc_callId3", true, new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })) 629new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }), 630new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }) 650new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }), 651new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }) 667new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }), 668new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }) 762new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 767new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 774new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 780new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })]), 785new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 789new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })) 816new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 821new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 823new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 838new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1040new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1049new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1059new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1117new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 1124new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1135new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1163new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 1179new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1488new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }) 1567new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
ChatCompletion\FunctionInvokingChatClientTests.cs (35)
96new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 98new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 130new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 132new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 163new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 165new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 195new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }), 196new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }), 206new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }), 254new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 255new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 298new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 299new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 332new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 334new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 961arguments: new Dictionary<string, object?> { { "shouldThrow", callShouldThrow }, { "callIndex", thisCallIndex } })); 986new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 988new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]), 1043new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1100new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1142JsonSerializer.Serialize(new Dictionary<string, object?> { ["arg1"] = "value1" }, AIJsonUtilities.DefaultOptions), 1192new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] }, 1193new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] } 1294new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["i"] = 41 })]), 1296new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["i"] = 42 })]), 1304new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "Func1", new Dictionary<string, object?> { ["i"] = 43 })]), 1365new FunctionCallContent("callId2", "Search", new Dictionary<string, object?> { { "result", "birds" } }), 1450new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1480new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg"] = "value1" }), 1481new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["arg"] = "value2" }), 1533new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }), 1534new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 }) 1552new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }), 1553new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 }) 1885new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "secret" })]),
ChatCompletion\ImageGeneratingChatClientTests.cs (8)
317[new FunctionCallContent(callId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })]); 360[new FunctionCallContent(callId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })]); 405"at-start" => [new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }), 408new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })], 410new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }), 480"at-start" => [new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }), 483new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })], 485new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }),
ChatCompletion\OpenTelemetryChatClientTests.cs (5)
408new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }), 424yield return new() { Contents = [new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })] }; 665new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }, 690yield return new() { Contents = [new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }] }; 838Arguments = new Dictionary<string, object?> { ["action"] = "delete" }
ChatReduction\MessageCountingChatReducerTests.cs (1)
128new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" })]),
ChatReduction\SummarizingChatReducerTests.cs (2)
188new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" }), new TestInputRequestContent("uir2")]), 193new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call2", "get_weather", new Dictionary<string, object?> { ["location"] = "New York" })]),
ChatRouting\SemanticRoutingChatClientTests.cs (6)
35new Dictionary<IChatClient, IReadOnlyList<string>>(), 40new Dictionary<IChatClient, IReadOnlyList<string>> 48new Dictionary<IChatClient, IReadOnlyList<string>> 76var vectors = new Dictionary<string, float[]> 133var vectors = new Dictionary<string, float[]> 178var vectors = new Dictionary<string, float[]>
Functions\AIFunctionFactoryTest.cs (3)
490IReadOnlyDictionary<string, object?> metadata = new Dictionary<string, object?> { ["a"] = "b" }; 923Context = new Dictionary<object, object?>(), 930Context = new Dictionary<object, object?>
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonDocument.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonNode.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Realtime\FunctionInvokingRealtimeClientTests.cs (2)
102CreateFunctionCallOutputItemMessage("call_001", "get_weather", new Dictionary<string, object?> { ["city"] = "Seattle" }), 151CreateFunctionCallOutputItemMessage("call_002", "get_weather", new Dictionary<string, object?> { ["city"] = "London" }),
Realtime\OpenTelemetryRealtimeClientTests.cs (1)
602[new FunctionCallContent("call_123", "search", new Dictionary<string, object?> { ["query"] = "test" })],
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataExtensionsTests.cs (2)
94.AddInMemoryCollection(new Dictionary<string, string?> 120.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.AmbientMetadata.Build.Tests (2)
BuildMetadataServiceCollectionExtensionsTests.cs (1)
48.AddInMemoryCollection(new Dictionary<string, string?>
ConfigurationBindingQuirkBehaviorTests.cs (1)
54return configuration.AddInMemoryCollection(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.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.Configuration.Binder.SourceGeneration (3)
Specs\BindingHelperInfo.cs (2)
27private readonly Dictionary<TypeRef, bool> _seenTransitiveTypes = new(); 32private readonly Dictionary<MethodsToGen_CoreBindingHelper, HashSet<TypeSpec>> _typesForGen = new();
Specs\InterceptorInfo.cs (1)
136private readonly Dictionary<ComplexTypeSpec, TypedInterceptorInvocationInfo.Builder> _invocationInfoBuilderCache = new();
Microsoft.Extensions.DataIngestion (1)
Writers\VectorStoreWriter.cs (1)
79Dictionary<string, object?> record = new()
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownMcpReader.cs (1)
84Dictionary<string, object?> parameters = 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)
31ResolvedServices = new Dictionary<ServiceCacheKey, object?>();
src\runtime\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 (4)
Metrics\DefaultMeterFactory.cs (1)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new();
Metrics\ListenerSubscription.cs (1)
16private readonly Dictionary<Instrument, object?> _instruments = new();
Tracing\DefaultActivitySourceFactory.cs (2)
572public static readonly ListenerState Empty = new([], hasOperationNameRules: false, new Dictionary<(string, bool), SourceFilterState>()); 591=> new(rules, ComputeHasOperationNameRules(rules), new Dictionary<(string, bool), SourceFilterState>());
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
ExceptionSummarizer.cs (1)
19var exceptionTypesToProvidersBuilder = new Dictionary<Type, IExceptionSummaryProvider>();
HttpExceptionSummaryProvider.cs (2)
37var socketErrors = new Dictionary<SocketError, int>(); 52var webStatuses = new Dictionary<WebExceptionStatus, int>();
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.ResourceUtilization (1)
ResourceUtilizationHealthCheck.cs (1)
34IReadOnlyDictionary<string, object> data = new Dictionary<string, object>
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (1)
ResourceHealthCheckExtensionsTests.cs (1)
572var configurationDict = new Dictionary<string, string?>
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 (1)
ResourceMonitoringExtensionsTests.cs (1)
165.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)
168hostBuilderContext = 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\runtime\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 (57)
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\HttpClientLoggingExtensionsTest.cs (6)
250.AddInMemoryCollection(new Dictionary<string, string?> 302.AddInMemoryCollection(new Dictionary<string, string?> 389.AddInMemoryCollection(new Dictionary<string, string?> 411.AddInMemoryCollection(new Dictionary<string, string?> 433.AddInMemoryCollection(new Dictionary<string, string?> 615.AddInMemoryCollection(new Dictionary<string, string?>
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 } }, 635RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 680RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>() // No data classification 707RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 738RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 775RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 828RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 869RequestQueryParametersDataClasses = 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)
46new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\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.Logging.Generators (1)
LoggerMessageGenerator.Roslyn4.0.cs (1)
169var allLogClasses = new Dictionary<string, LoggerClass>(); // Deduplicate by class key
Microsoft.Extensions.Options (2)
StartupValidatorOptions.cs (2)
14public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>(); 18public Dictionary<(Type, string), Func<CancellationToken, Task>> _asyncValidators { get; } = new Dictionary<(Type, string), Func<CancellationToken, Task>>();
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.ServiceDiscovery.Dns (3)
FallbackDnsResolver.cs (1)
54var lookupMapping = new Dictionary<string, List<AddressResult>>();
Resolver\DnsResolver.cs (2)
220Dictionary<EncodedDomainName, EncodedDomainName> aliasMap = new(); 221Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
185InitialData = new Dictionary<string, string?>
Microsoft.Extensions.ServiceDiscovery.Tests (10)
ConfigurationServiceEndpointResolverTests.cs (7)
23var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 58var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 139var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 232var data = new Dictionary<string, string?>(); 279InitialData = new Dictionary<string, string?> 342InitialData = new Dictionary<string, string?> 387InitialData = new Dictionary<string, string?>
PassThroughServiceEndpointResolverTests.cs (3)
48InitialData = new Dictionary<string, string?> 81InitialData = new Dictionary<string, string?> 115InitialData = new Dictionary<string, string?>
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
26Dictionary<string, DestinationConfig> results = new();
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (11)
YarpServiceDiscoveryTests.cs (11)
39var destinationConfigs = new Dictionary<string, DestinationConfig> 57var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 70var destinationConfigs = new Dictionary<string, DestinationConfig> 88var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 100var destinationConfigs = new Dictionary<string, DestinationConfig> 120var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 134var destinationConfigs = new Dictionary<string, DestinationConfig> 200var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 218var destinationConfigs = new Dictionary<string, DestinationConfig> 244var destinationConfigs = new Dictionary<string, DestinationConfig> 293var destinationConfigs = new Dictionary<string, DestinationConfig>
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 (1)
ValidateContext.cs (1)
65_validationErrors ??= new Dictionary<string, List<ValidationError>>();
Microsoft.Extensions.VectorData.Abstractions (2)
ProviderServices\CollectionModelBuilder.cs (2)
174return new(typeof(Dictionary<string, object?>), static () => new Dictionary<string, object?>(), KeyProperties, DataProperties, VectorProperties, PropertyMap); 496var storageNameMap = new Dictionary<string, PropertyModel>();
Microsoft.Extensions.VectorData.ConformanceTests (14)
EmbeddingGenerationTests.cs (3)
212var record = new Dictionary<string, object?> 274new() 281new()
ModelTests\DynamicModelTests.cs (7)
214var inserted = new Dictionary<string, object?> 233var updated = new Dictionary<string, object?> 253new() 260new() 415new() 422new() 429new()
TypeTests\DataTypeTests.cs (1)
316var record = new Dictionary<string, object?>();
TypeTests\EmbeddingTypeTests.cs (1)
104var dynamicRecord = new Dictionary<string, object?>
TypeTests\KeyTypeTests.cs (2)
105var dynamicRecord = new Dictionary<string, object?> 111var nextDynamicRecord = new Dictionary<string, object?>
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
GeneratorTests.cs (1)
65return new TestAnalyzerConfigOptionsProvider(new Dictionary<string, string?>
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
GeneratorTests.cs (3)
56? new() { ["build_property.ComplianceReportOutputPath"] = Directory.GetCurrentDirectory() } 120var options = new Dictionary<string, string> 147var options = new Dictionary<string, string>
Microsoft.Gen.Logging (2)
Parser.cs (1)
57var parameterSymbols = new Dictionary<LoggingMethodParameter, IParameterSymbol>();
Parser.LogProperties.cs (1)
104var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
Microsoft.Gen.Logging.Generated.Tests (42)
LogMethodTests.cs (1)
941new 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)
Parser_2.cs (1)
286var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
GeneratorTests.cs (4)
73? new() { ["build_property.MetadataReportOutputPath"] = Directory.GetCurrentDirectory() } 124var options = new Dictionary<string, string> 145var options = new Dictionary<string, string> 175var options = new Dictionary<string, string>
Microsoft.Gen.Metrics (1)
Parser.cs (1)
286var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetricsReports (1)
Parser.cs (1)
286var 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)
38? new() { ["build_property.MetricsReportOutputPath"] = Directory.GetCurrentDirectory() } 85var options = new Dictionary<string, string> 101var options = new Dictionary<string, string> 128var 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)
73Dictionary<ComMethodInfo, IMethodSymbol> methodSymbols = new();
ComMethodContext.cs (1)
123var 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)
165Dictionary<MarshalMode, CustomTypeMarshallerData> modes = new();
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
41=> ImmutableDictionary.CreateRange(new Dictionary<ManagedTypeInfo, string>
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)
473_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 (30)
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 (4)
41InternalSpecialTokens = new Dictionary<StringSpanOrdinalKey, int>(); 42SpecialTokensReverse = new Dictionary<int, string>(); 88InternalSpecialTokens = new Dictionary<StringSpanOrdinalKey, int>(); 89SpecialTokensReverse = 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\SentencePieceTokenizer.cs (1)
763Dictionary<string, int> result = new Dictionary<string, int>();
Model\TiktokenTokenizer.cs (8)
1176new Dictionary<string, int> 1210new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 }, { IMStart, 100264 }, 1213new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 } }, 1217return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName); 1220return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName); 1223return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName); 1226return (new Dictionary<string, int> 1230return (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> 815new 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 (10)
AuthHandshakeMessageHandler.cs (2)
136Dictionary<string, string> keyValues = new(); 460Dictionary<string, string?> parameters = new()
ImageConfig.cs (2)
264Dictionary<string, string> labels = new(); 281Dictionary<string, string> envVars = new();
ImageIndexGenerator.cs (1)
113annotations = new Dictionary<string, string>
Layer.cs (1)
93var entryAttributes = new Dictionary<string, string>();
Registry\Registry.cs (2)
267var ridDict = new Dictionary<string, PlatformSpecificManifest>(); 281var ridDict = new Dictionary<string, PlatformSpecificOciManifest>();
Tasks\ComputeDotnetBaseImageAndTag.cs (1)
349var telemetryProperties = new Dictionary<string, string?>
Telemetry.cs (1)
64private IDictionary<string, string?> ContextProperties() => new Dictionary<string, string?>
Microsoft.NET.Build.Extensions.Tasks (2)
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new();
src\sdk\src\Tasks\Common\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
Microsoft.NET.Build.Tasks (42)
_generated\10\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\11\WorkloadSetJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\19\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
ApplyImplicitVersions.cs (1)
67var result = new Dictionary<string, ImplicitPackageReferenceVersion>();
CreateWindowsSdkKnownFrameworkReferences.cs (1)
72var 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)
127filteredPackages = new Dictionary<PackageIdentity, string>();
GenerateSupportedTargetFrameworkAlias.cs (1)
53convertedTfms.Add(new TaskItem(targetFrameworkAlias, new Dictionary<string, string>() { { "DisplayName", displayName } }));
GetAssemblyAttributes.cs (2)
29AssemblyAttributes = FormatToAttributes(AssemblyAttributesNameByFieldInFileVersionInfo: new Dictionary<string, string> 46AssemblyAttributesNameByFieldInFileVersionInfo = new Dictionary<string, string>();
GetPackagesToPrune.cs (1)
181Dictionary<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)
130Dictionary<string, ReferenceInfo> directReferences = new();
ResolveAppHosts.cs (1)
107var packagesToDownload = new Dictionary<string, string>();
ResolvePackageAssets.cs (2)
1535var result = new Dictionary<string, LogLevel>(); 1997Dictionary<string, string> paths = new();
RuntimeOptions.cs (1)
24public IDictionary<string, JsonNode> RawOptions { get; } = new Dictionary<string, JsonNode>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (2)
118_knownManifestIdsAndOrder = new Dictionary<string, int>(); 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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)); 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new();
src\sdk\src\Tasks\Common\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
TypeLibraryDictionaryBuilder.cs (2)
34typeLibraryIdMap = new Dictionary<int, string> { { id, typeLibraries[0].ItemSpec } }; 37typeLibraryIdMap = new Dictionary<int, string>();
Microsoft.NET.HostModel (2)
ComHost\ClsidMap.cs (1)
35Dictionary<string, ClsidEntry> clsidMap = new Dictionary<string, ClsidEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (8)
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();
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>();
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetGroup.cs (1)
67return new();
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
247var dictionary = new Dictionary<string, string>();
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.Razor.Tasks (1)
ReferenceResolver.cs (1)
23_classifications = new Dictionary<AssemblyItem, Classification>();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (22)
_generated\22\StaticWebAssetsJsonSerializerContext.DictionaryStringStaticWebAssetNode.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>(),
_generated\23\StaticWebAssetsJsonSerializerContext.DictionaryStringStaticWebAsset.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>(),
_generated\36\DefineStaticWebAssetsSerializerContext.DictionaryStringCopyCandidate.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>(),
_generated\37\DefineStaticWebAssetsSerializerContext.DictionaryStringStaticWebAsset.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>(),
_generated\46\ImportMapSerializerContext.DictionaryStringDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>(),
_generated\47\ImportMapSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
CollectStaticWebAssetsToCopy.cs (1)
74copyToOutputFolder.Add(new TaskItem(source, new Dictionary<string, string>
Compression\ResolveCompressedAssets.cs (1)
202var existingCompressionFormatsByAssetItemSpec = new Dictionary<string, HashSet<string>>();
Data\ContentTypeProvider.cs (1)
14new()
Data\StaticWebAsset.cs (1)
1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>();
Data\StaticWebAssetGroup.cs (1)
67return new();
Data\StaticWebAssetPathPattern.cs (1)
247var dictionary = new Dictionary<string, string>();
DefineStaticWebAssets.Cache.cs (2)
240var remainingCandidates = new Dictionary<string, ITaskItem>(); 310internal ITaskItem ToTaskItem() => new TaskItem(Identity, new Dictionary<string, string> { ["TargetPath"] = TargetPath });
FilterStaticWebAssetEndpoints.cs (1)
41var endpointFoundMatchingAsset = new Dictionary<string, StaticWebAsset>();
GenerateStaticWebAssetsDevelopmentManifest.cs (1)
178var contentRootIndex = new Dictionary<string, int>();
JSModules\ApplyJsModules.cs (1)
32var jsModulesByRazorItem = new Dictionary<string, IList<ITaskItem>>();
MergeConfigurationProperties.cs (1)
46var 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)
35var scopedCssByRazorItem = new Dictionary<string, IList<ITaskItem>>();
Microsoft.NET.Sdk.WorkloadManifestReader (17)
_generated\0\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\1\WorkloadSetJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\9\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
SdkDirectoryWorkloadManifestProvider.cs (2)
118_knownManifestIdsAndOrder = new Dictionary<string, int>(); 600Dictionary<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)); 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
CachingWorkloadResolver.cs (3)
157var itemsToAdd = new Dictionary<string, SdkResultItem>(); 160metadata: new Dictionary<string, string>() 165Dictionary<string, string> propertiesToAdd = new();
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
Microsoft.TemplateEngine.Abstractions (2)
Installer\InstallRequest.cs (1)
21Details = details ?? new Dictionary<string, string>();
Parameters\ParameterDefinitionSet.cs (1)
23_parameters = parameters ?? new Dictionary<string, ITemplateParameter>();
Microsoft.TemplateEngine.Cli (28)
Alias\AliasModel.cs (1)
11: this(new Dictionary<string, IReadOnlyList<string>>())
CliTemplateInfo.cs (1)
95Dictionary<string, CliTemplateParameter> parameters = new();
Commands\BaseCommand.cs (1)
29protected static readonly Dictionary<string, Func<Func<ParseResult, ITemplateEngineHost>, Command, Command>> SubcommandFactories = new()
Commands\BaseFilterableArgs.cs (1)
49Dictionary<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\FilterOptionDefinition.cs (1)
56public static readonly IReadOnlyDictionary<string, FilterOptionDefinition> AllDefinitions = new Dictionary<string, FilterOptionDefinition>()
HostSpecificTemplateData.cs (4)
20var symbolsInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>(); 46var symbolProperties = new Dictionary<string, string>(); 145Dictionary<string, string> map = new(); 163Dictionary<string, string> map = new();
NuGet\NugetApiManager.cs (1)
28_sourceRepositories = new Dictionary<PackageSource, SourceRepository>();
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\WideTable.cs (1)
18_lookup = new Dictionary<Unicode, uint[,]>();
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\ZeroTable.cs (1)
18_lookup = new Dictionary<Unicode, uint[,]>();
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)
86new Dictionary<string, string?>
TemplatePackageCoordinator.cs (3)
190TelemetryEventEntry.TrackEvent(TelemetryConstants.InstallEvent, new Dictionary<string, string?> { { TelemetryConstants.ToInstallCount, args.TemplatePackages.Count.ToString() } }); 192var details = new Dictionary<string, string>(); 664var packagesToUninstall = new Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>();
TemplatePackageDisplay.cs (1)
24private 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)
35Dictionary<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()
Microsoft.TemplateEngine.Core (8)
Expressions\OperatorSetBuilder.cs (2)
11private readonly Dictionary<Operators, Func<IEvaluable, IEvaluable>> _operatorScopeLookupFactory = new Dictionary<Operators, Func<IEvaluable, IEvaluable>>(); 12private readonly Dictionary<TToken, Operators> _tokensToOperatorsMap = new Dictionary<TToken, Operators>();
Matching\Trie.cs (1)
11NextNodes = new Dictionary<byte, TrieNode<T>>();
Operations\PhasedOperation.cs (1)
25Dictionary<ITokenConfig, int> tokenMap = new Dictionary<ITokenConfig, int>();
Util\EngineConfig.cs (1)
29Flags = new Dictionary<string, bool>();
VariableCollection.cs (3)
22: this(parent, new Dictionary<string, object>()) 37_values = values ?? new Dictionary<string, object>(); 98public static VariableCollection Root() => Root(new Dictionary<string, object>());
Microsoft.TemplateEngine.Edge (37)
_generated\11\SettingsStoreJsonSerializerContext.DictionaryStringHashSetGuid.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>(),
_generated\12\SettingsStoreJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\2\GlobalSettingsJsonSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\31\TemplateCacheJsonSerializerContext.DictionaryStringDateTime.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.DateTime>(),
_generated\32\TemplateCacheJsonSerializerContext.IReadOnlyDictionaryStringIBaselineInfo.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo>(),
_generated\33\TemplateCacheJsonSerializerContext.IReadOnlyDictionaryStringParameterChoice.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.TemplateEngine.Abstractions.ParameterChoice>(),
_generated\34\TemplateCacheJsonSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (2)
16private readonly Dictionary<Guid, IInstaller> _installersByGuid = new Dictionary<Guid, IInstaller>(); 17private readonly Dictionary<string, IInstaller> _installersByName = new Dictionary<string, IInstaller>();
DefaultTemplateEngineHost.cs (1)
28_hostDefaults = defaults ?? new Dictionary<string, string>();
Installers\Folder\FolderManagedTemplatePackage.cs (1)
13private static readonly Dictionary<string, string> EmptyDictionary = new Dictionary<string, string>();
Installers\NuGet\NuGetInstaller.cs (1)
382Dictionary<string, string> installationDetails = new Dictionary<string, string>();
Installers\NuGet\NuGetManagedTemplatePackage.cs (2)
46Details = new Dictionary<string, string> 170var details = new Dictionary<string, string>();
Mount\Archive\ZipFileMountPoint.cs (1)
43Dictionary<string, IFileSystemInfo> universe = new Dictionary<string, IFileSystemInfo>
Settings\ComponentManager.cs (4)
18private readonly Dictionary<Guid, string> _componentIdToAssemblyQualifiedTypeName = new Dictionary<Guid, string>(); 40_componentIdsByType = new Dictionary<Type, HashSet<Guid>>(); 65internal Dictionary<Type, Dictionary<Guid, object>> ComponentCache { get; } = new Dictionary<Type, Dictionary<Guid, object>>(); 282typeCache = new Dictionary<Guid, object>();
Settings\SettingsStore.cs (2)
77internal Dictionary<string, string> ComponentGuidToAssemblyQualifiedName { get; } = new(); 83internal Dictionary<string, HashSet<Guid>> ComponentTypeToGuidList { get; } = new();
Settings\TemplateCache.cs (3)
28var templateDeduplicationDictionary = new Dictionary<string, IList<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint)>>(); 84MountPointsInfo = new Dictionary<string, DateTime>(); 93var mountPointInfo = new Dictionary<string, DateTime>();
Settings\TemplateInfo.cs (7)
170Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 173tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 177IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>(); 194Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>(); 226public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; private set; } = new Dictionary<string, IBaselineInfo>(); 229public IReadOnlyDictionary<string, string> TagsCollection { get; private set; } = new Dictionary<string, string>(); 266localizedChoices = new Dictionary<string, ParameterChoice>();
Settings\TemplateInfoReader.cs (2)
56Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>(); 96Dictionary<string, string> tags = new Dictionary<string, string>();
Settings\TemplatePackageManager.cs (2)
254_cachedSources = new Dictionary<ITemplatePackageProvider, Task<IReadOnlyList<ITemplatePackage>>>(); 316var mountPoints = new Dictionary<string, DateTime>();
Template\ParameterSetBuilder.cs (1)
215Dictionary<EvalData, HashSet<EvalData>> parametersDependencies = new();
TemplateConstraintManager.cs (1)
17private readonly Dictionary<string, Task<ITemplateConstraint>> _templateConstrains = new Dictionary<string, Task<ITemplateConstraint>>();
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (37)
ConfigModel\ParameterSymbol.cs (2)
36var choicesAndDescriptions = new Dictionary<string, ParameterChoice>(); 162Choices = new Dictionary<string, ParameterChoice>()
ConfigModel\PostActionModel.cs (2)
22: this(new Dictionary<string, string>(), new List<ManualInstructionModel>()) { } 60public IReadOnlyDictionary<string, string> Args { get; internal init; } = new Dictionary<string, string>();
ConfigModel\TemplateConfigModel.cs (6)
28private IReadOnlyDictionary<string, string> _tags = new Dictionary<string, string>(); 29private Dictionary<string, BaseSymbol> _symbols = new(); 299public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; internal init; } = new Dictionary<string, IBaselineInfo>(); 487Dictionary<string, Parameter> parameters = new(); 556Dictionary<string, IBaselineInfo> allBaselines = new(); 565IReadOnlyDictionary<string, string>? defaultOverrides = obj.Get<JsonObject>(nameof(Utils.BaselineInfo.DefaultOverrides))?.ToStringDictionary() ?? new Dictionary<string, string>();
GlobalRunSpec.cs (2)
27Dictionary<string, IOperationConfig> operationConfigLookup = new Dictionary<string, IOperationConfig>(); 74internal IReadOnlyDictionary<string, string> Rename { get; private set; } = new Dictionary<string, string>();
Localization\PostActionLocalizationModel.cs (1)
17public IReadOnlyDictionary<string, string> Instructions { get; set; } = new Dictionary<string, string>();
LocalizationModelDeserializer.cs (4)
51var results = new Dictionary<string, IParameterSymbolLocalizationModel>(); 100var results = new Dictionary<string, ParameterChoiceLocalizationModel>(); 124var results = new Dictionary<string, PostActionLocalizationModel>(); 167var results = new Dictionary<string, string>();
ParameterBasedVariableCollection.cs (2)
33new(null, new Dictionary<string, object>(), parameterSetData); 39Dictionary<string, ParameterBasedVariableCollection> collections = new Dictionary<string, ParameterBasedVariableCollection>();
PostAction.cs (2)
30public IReadOnlyDictionary<string, string> Args { get; } = new Dictionary<string, string>(); 83Dictionary<string, string> processedArgs = new();
RunnableProjectConfig.cs (5)
42private readonly Dictionary<Guid, string> _guidToGuidPrefixMap = new(); 177? new Dictionary<CultureInfo, TemplateLocalizationInfo>() 178: new Dictionary<CultureInfo, TemplateLocalizationInfo>() 185? new Dictionary<string, IFile>() 186: new Dictionary<string, IFile>()
RunnableProjectConfig.ITemplate.cs (4)
91Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 94tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 98IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>(); 110Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
RunnableProjectGenerator.cs (4)
507Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 510tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 514IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>(); 526Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
ScannedTemplateInfo.cs (2)
50Dictionary<string, IFile> allHostFilesForTemplate = new(); 63Dictionary<CultureInfo, TemplateLocalizationInfo> localizations = new();
VariableConfig.cs (1)
32new Dictionary<string, string>
Microsoft.TemplateEngine.Utils (7)
DefaultTemplateEngineHost.cs (2)
43_hostDefaults = defaults ?? new Dictionary<string, string>(); 47_diagnosticLoggers = new Dictionary<string, Action<string, string[]>>();
DirectedGraph.cs (1)
8private static readonly DirectedGraph<T> Empty = new(new Dictionary<T, HashSet<T>>());
FileSystemInfoExtensions.cs (1)
77Dictionary<string, int> sourceSegments = new Dictionary<string, int> { { relTo.FullPath, 0 } };
InMemoryFileSystem.cs (2)
759Directories = new Dictionary<string, FileSystemDirectory>(); 760Files = new Dictionary<string, FileSystemFile>();
TemplateParameter.cs (1)
40Choices = choices ?? new Dictionary<string, ParameterChoice>();
Microsoft.TemplateSearch.Common (24)
Abstractions\TemplatePackageSearchData.cs (1)
35AdditionalData = data ?? new Dictionary<string, object>();
Abstractions\TemplateSearchData.cs (1)
26AdditionalData = data ?? new Dictionary<string, object>();
Providers\NuGetMetadataSearchProvider.cs (1)
26private readonly IReadOnlyDictionary<string, Func<object, object>> _additionalDataReaders = new Dictionary<string, Func<object, object>>();
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (15)
48TagsCollection = templateInfo.TagsCollection ?? new Dictionary<string, string>(); 49BaselineInfo = templateInfo.BaselineInfo ?? new Dictionary<string, IBaselineInfo>(); 118public IReadOnlyDictionary<string, ICacheTag> Tags { get; private set; } = new Dictionary<string, ICacheTag>(); 122public IReadOnlyDictionary<string, ICacheParameter> CacheParameters { get; private set; } = new Dictionary<string, ICacheParameter>(); 135public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; private set; } = new Dictionary<string, IBaselineInfo>(); 141public IReadOnlyDictionary<string, string> TagsCollection { get; private set; } = new Dictionary<string, string>(); 179Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>(); 187DefaultOverrides = item.Value?.ToStringDictionary(propertyName: nameof(IBaselineInfo.DefaultOverrides)) ?? new Dictionary<string, string>() 225Dictionary<string, string> tags = new Dictionary<string, string>(); 238Dictionary<string, ICacheTag> legacyTags = new Dictionary<string, ICacheTag>(); 246choicesAndDescriptions: new Dictionary<string, string>() 284Dictionary<string, ICacheParameter> legacyParams = new Dictionary<string, ICacheParameter>(); 312public IReadOnlyDictionary<string, string> DefaultOverrides { get; set; } = new Dictionary<string, string>(); 334Choices = new Dictionary<string, ParameterChoice>(); 464public IReadOnlyDictionary<string, ParameterChoice> Choices => new Dictionary<string, ParameterChoice>();
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (2)
31Dictionary<string, object> data = new Dictionary<string, object>(); 156Dictionary<string, PackToTemplateEntry> workingPackToTemplateMap = new();
TemplateSearchCache\TemplatePackageSearchData.Json.cs (1)
64: new Dictionary<string, object>();
TemplateSearchCache\TemplateSearchData.Json.cs (1)
36: new Dictionary<string, object>();
TemplateSearchCoordinator.cs (2)
23IReadOnlyDictionary<string, Func<object, object>> additionalDataReaders1 = additionalDataReaders ?? new Dictionary<string, Func<object, object>>(); 24Dictionary<string, ITemplateSearchProvider> configuredProviders = new Dictionary<string, ITemplateSearchProvider>();
Microsoft.TestPlatform.Build (3)
Tasks\VSTestTask2.cs (3)
134ExtendedMetadata = new Dictionary<string, string?> 177ExtendedMetadata = new Dictionary<string, string?> 203ExtendedMetadata = new Dictionary<string, string?>
Microsoft.TestPlatform.CommunicationUtilities (14)
_generated\63\TestPlatformJsonContext.DictionaryStringHashSetString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>(),
_generated\64\TestPlatformJsonContext.DictionaryStringIEnumerableString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>(),
_generated\65\TestPlatformJsonContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\66\TestPlatformJsonContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\71\TestPlatformJsonContext.IDictionaryTestOutcomeInt64.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome, long>(),
_generated\72\TestPlatformJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\73\TestPlatformJsonContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
DataCollectionRequestHandler.cs (1)
321var properties = new Dictionary<string, object?>
Json\Jsonite\Jsonite.cs (1)
1005writers = new Dictionary<Type, Action<object>>()
Messages\DiscoveryCompletePayload.cs (1)
58public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; } = new();
Serialization\AfterTestRunEndResultConverter.cs (1)
36var metrics = DeserializeProperty<IDictionary<string, object>>(root, "Metrics", options) ?? new Dictionary<string, object>();
Serialization\ObjectConverter.cs (2)
53var dict = new Dictionary<string, object?>(); 108var dict = new Dictionary<string, object>();
Serialization\TestRunStatisticsConverter.cs (1)
34stats = new Dictionary<TestOutcome, long>();
Microsoft.TestPlatform.CoreUtilities (2)
FeatureFlag\FeatureFlag.cs (1)
27private static readonly IReadOnlyDictionary<string, bool> DefaultValues = new Dictionary<string, bool>
Helpers\CommandLineArgumentsHelper.cs (1)
21var argsDictionary = new Dictionary<string, string?>();
Microsoft.TestPlatform.CrossPlatEngine (28)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
36IDictionary<string, Tuple<string, IDataCollectorAttachmentProcessor>> datacollectorsAttachmentsProcessors = new Dictionary<string, Tuple<string, IDataCollectorAttachmentProcessor>>();
Client\LoggerNameValueConfigurationManager.cs (1)
29public Dictionary<string, string?> NameValuePairs { get; } = new();
Client\Parallel\DiscoveryDataAggregator.cs (1)
46public Dictionary<string, HashSet<string>> DiscoveredExtensions { get; private set; } = new();
Client\Parallel\ParallelRunDataAggregator.cs (2)
40DiscoveredExtensions = new Dictionary<string, HashSet<string>>(); 75var testOutcomeMap = new Dictionary<TestOutcome, long>();
Client\ProxyExecutionManagerWithDataCollection.cs (2)
58_dataCollectionEnvironmentVariables = new Dictionary<string, string?>(); 163testProcessStartInfo.EnvironmentVariables ??= new Dictionary<string, string?>();
Client\ProxyOperationManagerWithDataCollection.cs (1)
49_dataCollectionEnvironmentVariables = new Dictionary<string, string?>();
DataCollection\InProcDataCollectionExtensionManager.cs (2)
60InProcDataCollectors = new Dictionary<string, IInProcDataCollector>(); 264var properties = new Dictionary<string, object?>
DataCollection\InProcDataCollectionSink.cs (3)
21_testCaseDataCollectionDataMap = new Dictionary<Guid, TestCaseDataCollectionData>(); 45return new Dictionary<string, string>(); 68CollectionData = new Dictionary<string, string>();
DataCollection\ProxyDataCollectionManager.cs (1)
191IDictionary<string, string?> environmentVariables = new Dictionary<string, string?>();
DataCollection\ProxyOutOfProcDataCollectionManager.cs (2)
40_attachmentsCache = new Dictionary<Guid, Collection<AttachmentSet>>(); 48_attachmentsCache = new Dictionary<Guid, Collection<AttachmentSet>>();
Discovery\DiscovererEnumerator.cs (2)
372var result = new Dictionary<LazyExtension<ITestDiscoverer, ITestDiscovererCapabilities>, IEnumerable<string>>(); 457var assemblyTypeToSoucesMap = new Dictionary<AssemblyType, IList<string>>()
Discovery\DiscoveryManager.cs (1)
110var verifiedExtensionSourceMap = new Dictionary<string, IEnumerable<string>>();
Execution\BaseRunTests.cs (2)
367var executorCache = new Dictionary<string, LazyExtension<ITestExecutor, ITestExecutorCapabilities>>(); 619var runStats = TestRunCache?.TestRunStatistics ?? new TestRunStatistics(new Dictionary<TestOutcome, long>());
Execution\RunTestsWithSources.cs (3)
136var result = new Dictionary<Tuple<Uri, string>, IEnumerable<string>>(); 138var verifiedExtensionSourceMap = new Dictionary<string, IEnumerable<string>>(); 223var properties = new Dictionary<string, object?>
Execution\RunTestsWithTests.cs (2)
106var properties = new Dictionary<string, object?> 119var result = new Dictionary<Tuple<Uri, string>, List<TestCase>>();
Execution\TestRunCache.cs (2)
97_runStats = new Dictionary<TestOutcome, long>(); 167public IDictionary<string, int> AdapterTelemetry { get; set; } = new Dictionary<string, int>();
Microsoft.TestPlatform.PlatformAbstractions (3)
common\Tracing\PlatformEqtTrace.cs (3)
40new() 54new() 69new()
Microsoft.TestPlatform.TestHostRuntimeProvider (6)
Hosting\DefaultTestHostManager.cs (5)
117public IDictionary<string, string> Properties => new Dictionary<string, string>(); 241EnvironmentVariables = environmentVariables ?? new Dictionary<string, string?>(), 430Dictionary<string, string> selectedExtensions = new(); 431Dictionary<string, Version?> highestFileVersions = new(); 432Dictionary<string, Version> conflictingExtensions = new();
Hosting\DotnetTestHostManager.cs (1)
829startInfo.EnvironmentVariables ??= new Dictionary<string, string?>();
Microsoft.TestPlatform.Utilities (2)
InferRunSettingsHelper.cs (2)
340legacySettingsTelemetry = new Dictionary<string, string>(); 444environmentVariables = new Dictionary<string, string?>();
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
ConsoleParameters.cs (1)
46public Dictionary<string, string?> EnvironmentVariables { get; set; } = 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.TestPlatform.Common (15)
DataCollection\DataCollectionManager.cs (1)
108RunDataCollectors = new Dictionary<Type, DataCollectorInformation>();
ExtensionFramework\TestExecutorExtensionManager.cs (1)
65var cache = new Dictionary<string, LazyExtension<TExecutor1, TValue>>();
ExtensionFramework\TestExtensionManager.cs (1)
134TestExtensionByUri = new Dictionary<Uri, LazyExtension<TExtension, TMetadata>>();
ExtensionFramework\TestPluginCache.cs (1)
31private readonly Dictionary<string, Assembly?> _resolvedAssemblies = new();
ExtensionFramework\TestPluginDiscoverer.cs (1)
41var pluginInfos = new Dictionary<string, TPluginInfo>();
ExtensionFramework\TestPluginManager.cs (1)
218unfilteredExtensions.Add(new LazyExtension<TExtension, Dictionary<string, object>>(plugin, new Dictionary<string, object>()));
ExtensionFramework\Utilities\TestExtensions.cs (3)
112return new Dictionary<string, HashSet<string>>(); 378var extensions = new Dictionary<string, HashSet<string>>(); 424var extensions = new Dictionary<string, TPluginInfo>();
RunSettings.cs (1)
44_settings = new Dictionary<string, LazyExtension<ISettingsProvider, ISettingsProviderCapabilities>>();
SettingsProvider\SettingsProviderExtensionManager.cs (1)
60SettingsProvidersMap = new Dictionary<string, LazyExtension<ISettingsProvider, ISettingsProviderCapabilities>>();
Telemetry\NoOpMetricsCollection.cs (1)
28public IDictionary<string, object> Metrics => new Dictionary<string, object>();
Utilities\AssemblyResolver.cs (1)
28private readonly Dictionary<string, Assembly?> _resolvedAssemblies = new();
Utilities\FakesUtilities.cs (1)
145var dict = new Dictionary<string, FrameworkVersion>();
Utilities\SimpleJSON.cs (1)
840private readonly Dictionary<string, JSONNode> _dict = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (3)
ObjectModel\TestElementAggregation.cs (1)
25private readonly Dictionary<Guid, TestLink> _testLinks = new();
XML\XmlPersistence.cs (2)
89new(); 94private static readonly Dictionary<string, string> QueryCache = new();
Microsoft.VisualStudio.TestPlatform.ObjectModel (24)
Client\DiscoveryCriteria.cs (1)
115AdapterSourceMap = new Dictionary<string, IEnumerable<string>>
Client\Events\DiscoveryCompleteEventArgs.cs (1)
77public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; } = new();
Client\Events\TestRunCompleteEventArgs.cs (1)
80DiscoveredExtensions = new Dictionary<string, HashSet<string>>();
Client\TestRunCriteria.cs (2)
234AdapterSourceMap = new Dictionary<string, IEnumerable<string>> 261AdapterSourceMap = new Dictionary<string, IEnumerable<string>>
DataCollector\Events\SessionEvents.cs (1)
28: this(new DataCollectionContext(new SessionId(Guid.Empty)), new Dictionary<string, object?>())
Navigation\FullSymbolReader.cs (4)
30private readonly Dictionary<string, IDiaSymbol> _typeSymbols = new(); 38private readonly Dictionary<string, Dictionary<string, IDiaSymbol>> _methodSymbols = new(); 268Dictionary<string, IDiaSymbol> methodSymbolsForType = new(); 397methodSymbolsForType = new Dictionary<string, IDiaSymbol>();
Navigation\PortableSymbolReader.cs (2)
25private readonly Dictionary<string, Dictionary<string, DiaNavigationData>> _methodsNavigationDataForType = new(); 110var methodsNavigationData = new Dictionary<string, DiaNavigationData>();
Nuget.Frameworks\FrameworkNameProvider.cs (6)
93_portableFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 94_portableOptionalFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 95_equivalentFrameworks = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>(); 102_portableCompatibilityMappings = new Dictionary<int, HashSet<FrameworkRange>>(); 103_shortNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>(); 104_fullNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>();
Nuget.Frameworks\FrameworkReducer.cs (2)
385var scores = new Dictionary<NuGetFramework, int>(); 426var result = new Dictionary<NuGetFramework, IEnumerable<NuGetFramework>>();
RunSettings\TestRunParameters.cs (1)
26var testParameters = new Dictionary<string, object>();
TestProperty\TestProperty.cs (1)
255private static readonly Dictionary<string, KeyValuePair<TestProperty, HashSet<Type>>> Properties = new();
TestServiceLocator.cs (1)
16public static Dictionary<string, object> Instances { get; } = new Dictionary<string, object>();
Utilities\XmlRunSettingsUtilities.cs (1)
158nodeValue = new Dictionary<string, object>();
Microsoft.Web.XmlTransform (2)
XmlAttributePreservationDict.cs (2)
18private Dictionary<string, string> leadingSpaces = new Dictionary<string, string>(); 129Dictionary<string, bool> attributeExists = new Dictionary<string, bool>();
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
330s_handlers = new Dictionary<object, List<SystemEventInvokeInfo>>();
Mono.Cecil (13)
Mono.Cecil.Cil\CodeWriter.cs (3)
37 this.standalone_signatures = new Dictionary<uint, MetadataToken> (); 372 stack_sizes = new Dictionary<Instruction, int> (); 412 stack_sizes = new Dictionary<Instruction, int> ();
Mono.Cecil.Cil\PortablePdb.cs (2)
608 static readonly Dictionary<Guid, DocumentLanguage> guid_language = new Dictionary<Guid, DocumentLanguage> (); 609 static readonly Dictionary<DocumentLanguage, Guid> language_guid = new Dictionary<DocumentLanguage, Guid> ();
Mono.Cecil.Cil\Symbols.cs (1)
780 var instruction_mapping = new Dictionary<Instruction, SequencePoint> ();
Mono.Cecil.Metadata\Buffers.cs (1)
304 readonly Dictionary<Guid, uint> guids = new Dictionary<Guid, uint> ();
Mono.Cecil.Metadata\StringHeap.cs (1)
19 readonly Dictionary<uint, string> strings = new Dictionary<uint, string> ();
Mono.Cecil\AssemblyReader.cs (2)
2881 metadata.LocalScopes = new Dictionary<uint, Collection<Row<uint, Range, Range, uint, uint, uint>>> (); 3159 metadata.CustomDebugInformations = new Dictionary<MetadataToken, Row<Guid, uint, uint> []> ();
Mono.Cecil\AssemblyWriter.cs (2)
931 type_spec_map = new Dictionary<uint, MetadataToken> (); 973 this.document_map = new Dictionary<string, MetadataToken> ();
Mono.Cecil\WindowsRuntimeProjections.cs (1)
140 var new_projections = new Dictionary<string, ProjectionInfo> {
Mono.Cecil.Mdb (9)
Mono.Cecil.Mdb\MdbReader.cs (1)
50 this.documents = new Dictionary<string, Document> ();
Mono.Cecil.Mdb\MdbWriter.cs (1)
47 this.source_files = new Dictionary<string, SourceFile> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (6)
177 anonymous_scopes = new Dictionary<int, AnonymousScopeEntry> (); 361 source_file_hash = new Dictionary<int, SourceFileEntry> (); 362 compile_unit_hash = new Dictionary<int, CompileUnitEntry> (); 514 method_token_hash = new Dictionary<int, MethodEntry> (); 577 source_name_hash = new Dictionary<string, int> (); 604 anonymous_scopes = new Dictionary<int, AnonymousScopeEntry> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (1)
1171 var local_names = new Dictionary<string, LocalVariableEntry> ();
Mono.Cecil.Pdb (10)
Microsoft.Cci.Pdb\PdbFile.cs (3)
41Dictionary<string, int> result = new Dictionary<string, int>(); 364pdbInfo.TokenToSourceMapping = new Dictionary<uint, PdbTokenLine>(); 371Dictionary<string, PdbSource> sourceCache = new Dictionary<string, PdbSource>();
Mono.Cecil.Pdb\ModuleMetadata.cs (2)
184 types = new Dictionary<uint, TypeDefinition> (); 185 methods = new Dictionary<uint, MethodDefinition> ();
Mono.Cecil.Pdb\NativePdbReader.cs (3)
26 readonly Dictionary<string, Document> documents = new Dictionary<string, Document> (); 27 readonly Dictionary<uint, PdbFunction> functions = new Dictionary<uint, PdbFunction> (); 28 readonly Dictionary<PdbScope, ImportDebugInformation> imports = new Dictionary<PdbScope, ImportDebugInformation> ();
Mono.Cecil.Pdb\NativePdbWriter.cs (2)
39 this.documents = new Dictionary<string, SymDocumentWriter> (); 40 this.import_info_to_parent = new Dictionary<ImportDebugInformation, MetadataToken> ();
MSBuild (3)
OutOfProcTaskHostNode.cs (1)
691Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties),
src\msbuild\src\Shared\NodePacketFactory.cs (1)
25_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
241_globalParameters = globalParameters ?? new Dictionary<string, string>();
NuGet.Build.Tasks (10)
GetCentralPackageVersionsTask.cs (1)
55var properties = new Dictionary<string, string>();
GetRestoreDotnetCliToolsTask.cs (3)
75var properties = new Dictionary<string, string>(); 94var packageProperties = new Dictionary<string, string>(); 104var restoreProperties = new Dictionary<string, string>();
GetRestoreFrameworkReferencesTask.cs (1)
52var properties = new Dictionary<string, string>();
GetRestoreNuGetAuditSuppressionsTask.cs (1)
54var properties = new Dictionary<string, string>();
GetRestorePackageDownloadsTask.cs (1)
46var properties = new Dictionary<string, string>();
GetRestorePackageReferencesTask.cs (1)
52var properties = new Dictionary<string, string>();
GetRestoreProjectReferencesTask.cs (1)
87var properties = new Dictionary<string, string>();
GetRestorePrunedPackageReferencesTask.cs (1)
55var properties = new Dictionary<string, string>();
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
524var projectTargetFrameworks = new Dictionary<string, IMSBuildProject>();
NuGet.Build.Tasks.Pack (6)
PackTaskLogic.cs (6)
371var targetAliasToNuGetFramework = new Dictionary<string, string>(); 372var frameworkToAliases = new Dictionary<string, List<string>>(); 438var tfmSpecificRefs = new Dictionary<string, ISet<string>>(); 512duplicateTargetPath = new Dictionary<string, string>(); 656var fileModel = new Dictionary<string, IEnumerable<ContentMetadata>>(); 850var sourceFiles = new Dictionary<string, string>();
NuGet.CommandLine.XPlat (3)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
41_sourceRepositoryCache = new Dictionary<PackageSource, SourceRepository>();
Commands\PackageSearch\PackageSearchRunner.cs (1)
82Dictionary<Task<IEnumerable<IPackageSearchMetadata>>, PackageSource> searchRequests = new();
Utility\TableParser.cs (1)
42var columnQueues = new Dictionary<int, Queue<FormattedCell>>();
NuGet.Commands (18)
MSBuildPackTargetArgs.cs (1)
28SourceFiles = new Dictionary<string, string>();
MSBuildProjectFactory.cs (1)
73ProjectProperties = new Dictionary<string, string>()
PackCommand\Logging\PackageSpecificWarningProperties.cs (1)
60Properties ??= new Dictionary<NuGetLogCode, IDictionary<string, ISet<NuGetFramework>>>();
RestoreCommand\DependencyGraphResolver.cs (4)
135Dictionary<string, RestoreTargetGraph> graphsByTargetFramework = new(); 334Dictionary<LibraryRangeIndex, GraphNode<RemoteResolveResult>> nodesById = new(); 342Dictionary<LibraryRangeIndex, GraphNode<RemoteResolveResult>> versionConflicts = new(); 345Dictionary<LibraryRangeIndex, (LibraryRangeIndex FromParentLibraryRangeIndex, LibraryDependency FromLibraryDependency, LibraryRangeIndex ToParentLibraryRangeIndex, LibraryDependencyIndex ToLibraryDependencyIndex, bool IsCentralTransitive)> downgrades = new();
RestoreCommand\LockFileBuilder.cs (1)
340var libraryReferences = new Dictionary<ValueTuple<string, NuGetVersion>, LockFileLibrary>();
RestoreCommand\Logging\PackageSpecificWarningProperties.cs (1)
81Properties ??= new Dictionary<NuGetLogCode, IDictionary<string, ISet<string>>>();
RestoreCommand\RequestFactory\RestoreArgs.cs (1)
151var sourceObjects = new Dictionary<string, PackageSource>();
RestoreCommand\RestoreCommand.cs (1)
44= new Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>>();
RestoreCommand\RestoreTargetGraph.cs (1)
124var conflicts = new Dictionary<string, HashSet<ResolverRequest>>();
RestoreCommand\Utility\AuditUtility.cs (4)
161result ??= new(); 411result ??= new(); 580GraphsPerVulnerability = new(); 592GraphsPerVulnerability = new();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
625var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>(); 1264var result = new Dictionary<string, Dictionary<string, CentralPackageVersion>>();
NuGet.Common (4)
KeyedLock.cs (1)
25_locks = new Dictionary<string, LockState>();
Telemetry\TelemetryEvent.cs (3)
17this(eventName, new Dictionary<string, object?>()) 28_piiProperties = new Dictionary<string, object?>(); 58public IDictionary<string, object?> ComplexData { get; } = new Dictionary<string, object?>();
NuGet.Configuration (8)
PackageSource\MinPublishAgeExceptions.cs (1)
49var packageSourceMapping = new PackageSourceMapping(new Dictionary<string, IReadOnlyList<string>>
PackageSourceMapping\PackageSourceMapping.cs (1)
74var patterns = new Dictionary<string, IReadOnlyList<string>>();
PackageSourceMapping\SearchNode.cs (1)
16Children = new Dictionary<char, SearchNode>();
Settings\Items\AddItem.cs (1)
34new Dictionary<string, IReadOnlyCollection<string>>()
Settings\Items\StoreClientCertItem.cs (1)
161protected override IReadOnlyDictionary<string, IReadOnlyCollection<string>> AllowedValues { get; } = new Dictionary<string, IReadOnlyCollection<string>>
Settings\Items\UnknownItem.cs (2)
27_mutableChildren = new Dictionary<SettingBase, SettingBase>(); 49_mutableChildren = new Dictionary<SettingBase, SettingBase>();
Settings\Settings.cs (1)
222var computedSections = new Dictionary<string, VirtualSettingSection>();
NuGet.DependencyResolver.Core (2)
GraphModel\GraphOperations.cs (1)
674return new Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>>();
Remote\RemoteWalkContext.cs (1)
29LockFileLibraries = new Dictionary<LockFileCacheKey, IList<LibraryIdentity>>();
NuGet.Frameworks (9)
CompatibilityTable.cs (1)
80var table = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>();
FrameworkNameProvider.cs (6)
94_portableFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 95_portableOptionalFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 96_equivalentFrameworks = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>(); 103_portableCompatibilityMappings = new Dictionary<int, HashSet<FrameworkRange>>(); 104_shortNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>(); 105_fullNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>();
FrameworkReducer.cs (2)
385var scores = new Dictionary<NuGetFramework, int>(); 426var result = new Dictionary<NuGetFramework, IEnumerable<NuGetFramework>>();
NuGet.LibraryModel (1)
Library.cs (1)
20public IDictionary<string, object> Items { get; set; } = new Dictionary<string, object>();
NuGet.PackageManagement (10)
Audit\AuditChecker.cs (1)
330result ??= new();
IDE\PackageRestoreContext.cs (1)
29private static Dictionary<string, RestoreAuditProperties> EmptyDictionary = new Dictionary<string, RestoreAuditProperties>();
PackageDownloader.cs (1)
78var tasksLookup = new Dictionary<Task<DownloadResourceResult>, SourceRepository>();
PackagePreFetcher.cs (1)
58var result = new Dictionary<PackageIdentity, PackagePreFetcherResult>();
Projects\MSBuildNuGetProject.cs (2)
36new Dictionary<FileTransformExtensions, IPackageFileTransformer> 634return new Dictionary<XName, Action<XElement, XElement>>
Projects\NuGetProject.cs (1)
22InternalMetadata = optionalMetadata ?? new Dictionary<string, object>();
Resolution\ResolverGather.cs (1)
603var depResources = new Dictionary<SourceRepository, Task<DependencyInfoResource>>();
Telemetry\ActionEventBase.cs (1)
28base(eventName, new Dictionary<string, object>
Telemetry\ActionTelemetryStepEvent.cs (1)
14base(NugetActionStepsEventName, new Dictionary<string, object>
NuGet.Packaging (18)
ContentModel\ContentItem.cs (1)
153var properties = new Dictionary<string, object>();
ContentModel\ContentItemGroup.cs (1)
14Properties = new Dictionary<string, object>();
ContentModel\ManagedCodeConventions.cs (3)
43private static readonly Dictionary<string, object> NetTFMTable = new Dictionary<string, object> 49private static readonly Dictionary<string, object> DefaultTfmAny = new Dictionary<string, object> 85var props = new Dictionary<string, ContentPropertyDefinition>();
ContentModel\SelectionCriteria.cs (1)
22Properties = new Dictionary<string, object>();
Licenses\NuGetLicenseData.cs (2)
14public static readonly IReadOnlyDictionary<string, LicenseData> LicenseList = new Dictionary<string, LicenseData>() 751public static readonly IReadOnlyDictionary<string, ExceptionData> ExceptionList = new Dictionary<string, ExceptionData>()
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
33var nuspecReferences = new Dictionary<string, IEnumerable<string>>();
RuntimeModel\RuntimeDependencySet.cs (1)
16private static readonly IReadOnlyDictionary<string, RuntimePackageDependency> EmptyDependencies = new Dictionary<string, RuntimePackageDependency>();
RuntimeModel\RuntimeDescription.cs (1)
16private static readonly IReadOnlyDictionary<string, RuntimeDependencySet> EmptyRuntimeDependencySets = new Dictionary<string, RuntimeDependencySet>();
RuntimeModel\RuntimeGraph.cs (2)
15private static readonly ReadOnlyDictionary<string, RuntimeDescription> EmptyRuntimes = new(new Dictionary<string, RuntimeDescription>()); 16private static readonly ReadOnlyDictionary<string, CompatibilityProfile> EmptySupports = new(new Dictionary<string, CompatibilityProfile>());
Signing\Signatures\Signature.cs (1)
366_signingCertificateFingerprintLookup = new Dictionary<HashAlgorithmName, string>();
Signing\TrustedSigners\TrustedSignersProvider.cs (1)
85var certificateLookup = new Dictionary<string, CertificateEntryLookupEntry>();
Signing\Verification\AllowListVerificationProvider.cs (2)
66var primarySignatureCertificateFingerprintLookUp = new Dictionary<HashAlgorithmName, string>(); 67var countersignatureCertificateFingerprintLookUp = new Dictionary<HashAlgorithmName, string>();
Telemetry\PackageExtractionTelemetryEvent.cs (1)
29base(EventName, new Dictionary<string, object?>
NuGet.ProjectModel (3)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1454centralPackageVersions ??= new Dictionary<string, CentralPackageVersion>();
LockFile\LockFileItem.cs (1)
34_properties ??= new Dictionary<string, string>();
LockFile\LockFileTargetLibrary.cs (1)
34private readonly Dictionary<PropertyKey, object> _propertyValues = new();
NuGet.Protocol (8)
_generated\151\RepositorySignatureJsonContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Converters\FingerprintsConverter.cs (1)
21var dict = new Dictionary<string, string>();
Converters\FingerprintsStjConverter.cs (1)
21var dict = new Dictionary<string, string>();
HttpSource\HttpSourceAuthenticationHandler.cs (1)
29private Dictionary<string, AmbientAuthenticationState> _authStates = new Dictionary<string, AmbientAuthenticationState>();
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (2)
65var index = new Dictionary<PackageIdentity, LocalPackageInfo>(); 83var index = new Dictionary<Uri, LocalPackageInfo>();
Plugins\MessageConverter.cs (2)
14private static readonly Dictionary<(MessageMethod, MessageType), Func<JsonElement, object?>> _read = new() 65private static readonly Dictionary<Type, Action<Utf8JsonWriter, object>> _write = new()
NuGet.Resolver (1)
ResolverComparer.cs (1)
34_installedVersions = new Dictionary<string, NuGetVersion>();
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\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\wpf\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\wpf\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\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
135_assemblies = new Dictionary<object, AssemblyName>();
src\wpf\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)
285private 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)
693private 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\wpf\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)
8618= 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)
1532private 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)
1814this._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)
AppHost.cs (1)
10builder.Configuration.AddCommandLine(args, new Dictionary<string, string> { ["--target"] = "Deployment:Target" });
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)
870Dictionary<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\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
rzc (1)
DefaultExtensionAssemblyLoader.cs (1)
31_loadedByIdentity = new Dictionary<AssemblyIdentity, Assembly>();
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
600_headers = new Dictionary<string, string>();
sdk-tasks (3)
_generated\1\SdkTasksJsonSerializerContext.DictionaryStringMetadataEntry.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>(),
DeduplicateAssembliesWithLinks.cs (1)
64var filesByHash = new Dictionary<string, List<FileEntry>>();
ProcessRuntimeAnalyzerVersions.cs (1)
25var metadata = new Dictionary<string, MetadataEntry>();
SelectTests (1)
TriggerMap.cs (1)
19public Dictionary<string, List<string>> Groups { get; set; } = new();
Shared.Tests (8)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
49var dictionary = new Dictionary<T, T>();
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringInt32.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, int>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringSimplePoco.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>(),
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 },
Stress.AppHost (5)
CommandResources.cs (5)
592environmentVariables: new Dictionary<string, string> 693environmentVariables: new Dictionary<string, string> 739environmentVariables: new Dictionary<string, string> 1371EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(), 1396EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(),
System.CodeDom (1)
System\CodeDom\Compiler\CompilerInfo.cs (1)
12internal readonly IDictionary<string, string> _providerOptions = new Dictionary<string, string>();
System.CommandLine (3)
Binding\ArgumentConverter.StringConverters.cs (1)
16=> _stringConverters ??= new()
Help\HelpBuilder.cs (1)
77_customizationsBySymbol ??= new();
Parsing\SymbolResultTree.cs (1)
83_symbolsByName = new();
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 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\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
424var 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\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
424var parsetable = new Dictionary<string, string>();
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (1)
31_connectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>();
System.Data.OleDb (3)
OleDbConnectionString.cs (1)
262udlcache = new Dictionary<string, string>();
System\Data\ProviderBase\DbConnectionFactory.cs (1)
34_connectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>();
System\Data\ProviderBase\DbConnectionPool.cs (1)
70_transactedCxns = new Dictionary<SysTx.Transaction, TransactedConnectionList>();
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (1)
1150Interlocked.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.EventLog (1)
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (1)
69_cache = new Dictionary<ProviderMetadataId, CacheItem>();
System.Diagnostics.PerformanceCounter (4)
System\Diagnostics\PerformanceData\CounterSet.cs (2)
47_stringToId = new Dictionary<string, int>(); 48_idToCounter = new Dictionary<int, CounterType>();
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
112_counters = new Dictionary<int, CounterData>();
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
35private static readonly Dictionary<object, int> s_counterSetList = new Dictionary<object, int>();
System.Diagnostics.Process (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
91new Dictionary<int, ProcessWaitState>(); 97new Dictionary<int, ProcessWaitState>();
System.DirectoryServices.AccountManagement (9)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
39NonPresentAttrDefaultStateMapping ??= new Dictionary<string, bool>();
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (2)
1011_usersVisited = new Dictionary<string, bool>(); 1273private Dictionary<string, bool> _usersVisited = new Dictionary<string, bool>();
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (3)
108TypeToLdapPropListMap = new Dictionary<int, Dictionary<Type, StringCollection>>(); 114Dictionary<string, string[]> propertyNameToLdapAttr = new Dictionary<string, string[]>(); 116Dictionary<Type, StringCollection> TypeToLdapDict = new Dictionary<Type, StringCollection>();
System\DirectoryServices\AccountManagement\ExtensionCache.cs (1)
52private readonly Dictionary<string, ExtensionCacheValue> _cache = new Dictionary<string, ExtensionCacheValue>();
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (2)
45s_validPropertyMap = new Dictionary<string, ObjectMask>(); 47s_maskMap = new Dictionary<Type, ObjectMask>();
System.Drawing.Common (1)
System\Drawing\Gdiplus.cs (1)
18internal static IDictionary<object, object> ThreadData => t_threadData ??= new Dictionary<object, object>();
System.Formats.Nrbf (1)
System\Formats\Nrbf\RecordMap.cs (1)
14private readonly Dictionary<SerializationRecordId, SerializationRecord> _map = new();
System.Formats.Tar (7)
System\Formats\Tar\TarHeader.cs (2)
87internal Dictionary<string, string> ExtendedAttributes => _ea ??= new Dictionary<string, string>(); 149_ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarHeader.Read.cs (1)
104_ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarHeader.Write.cs (1)
909CollectExtendedAttributesFromStandardFieldsIfNeeded(_ea ??= new Dictionary<string, string>());
System\Formats\Tar\TarWriter.Unix.cs (3)
13private readonly Dictionary<uint, string> _userIdentifiers = new Dictionary<uint, string>(); 14private readonly Dictionary<uint, string> _groupIdentifiers = new Dictionary<uint, string>(); 34_hardLinkTargets ??= new Dictionary<(long, long), string>();
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
193_entriesDictionary = new Dictionary<string, ZipArchiveEntry>();
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)
1653var caseDict = new Dictionary<T, int>(); 1695var caseDict = new Dictionary<string, int>(); 2794var mapping = new Dictionary<ParameterExpression, LocalVariable>(); 2807private 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)
828altSvcBlocklist = new Dictionary<HttpAuthority, Exception?>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
147_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)
504_settings._properties ??= new Dictionary<string, object?>();
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
574public IDictionary<string, object> Properties => field ??= 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)
921private static readonly Dictionary<object, Task> s_tasks = new Dictionary<object, Task>();
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
19new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(); 23new 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\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
171_sslSessions = new Dictionary<string, IntPtr>();
System.Private.CoreLib (46)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
88Interlocked.CompareExchange(ref s_dataStore, new Dictionary<string, object?>(), null); 224Interlocked.CompareExchange(ref s_switches, new Dictionary<string, bool>(), null);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
72_metadata ??= new Dictionary<string, string?>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
476Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (5)
2695commandArgs.Arguments ??= new Dictionary<string, string?>(); 3061eventData = new Dictionary<int, EventMetadata>(); 3668eventsByName ??= new Dictionary<string, string>(); 3945private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3947private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (7)
60opcodeTab = new Dictionary<int, string>(); 61stringTab = new Dictionary<string, string>(); 63perEventByteArrayArgIndices = new Dictionary<string, List<int>>(); 99taskTab ??= new Dictionary<int, string>(); 122keywordTab ??= new Dictionary<ulong, string>(); 266mapsTab ??= new Dictionary<string, Type>(); 664taskTab ??= new Dictionary<int, string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
143Dictionary<Type, TraceLoggingTypeInfo> cache = threadCache ??= new Dictionary<Type, TraceLoggingTypeInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Unix.cs (1)
97var results = new Dictionary<string, string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
979private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
447var newTable = new Dictionary<string, CultureData>(); 682var newTable = new Dictionary<string, CultureData>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
1122cache = new Dictionary<string, CultureInfo>(); 1137cache = new Dictionary<int, CultureInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
30_table = new Dictionary<object, object?>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
23return new Dictionary<int, List<Token>>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
40Interlocked.CompareExchange(ref s_allContexts, new Dictionary<long, WeakReference<AssemblyLoadContext>>(), null) ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
43_nameToIndex = new Dictionary<string, int>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
74_children = new Dictionary<char, int>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
102Dictionary<int, EncodingInfo> result = new Dictionary<int, EncodingInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
199Interlocked.CompareExchange(ref s_currentActiveTasks, new Dictionary<int, Task>(), null) ?? 235Interlocked.CompareExchange(ref s_runtimeAsyncTaskTimestamps, new Dictionary<int, long>(), null) ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
675nameToSlotMap = new Dictionary<string, LocalDataStoreSlot>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
615private readonly Dictionary<int, bool> _usedIdToTracksAllValuesMap = new Dictionary<int, bool>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (1)
89s_namedObjects ??= new Dictionary<string, WaitableObject>();
System\GC.NativeAot.cs (1)
701Configurations = new Dictionary<string, object>()
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
24Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>();
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.String.cs (1)
22Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>();
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)
806Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1224_knownDataContracts ??= new DataContractDictionary(); 1365boundContracts ??= 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>(); 324_referencedTypesDictionary = new Dictionary<XmlQualifiedName, object>(); 348_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>(); 1565_locals = new Dictionary<string, LocalBuilder>();
System\Xml\Serialization\Compilation.cs (4)
469var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 560var serializers = new Dictionary<string, string>(); 740private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 781: 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>(); 37internal Dictionary<string, EnumMapping> Enums => field ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (2)
715typedMappingTable = s_xmlSerializerTable.GetOrCreateValue(type, _ => new Dictionary<XmlSerializerMappingKey, XmlSerializer>()); 719var 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>(); 333var propertyMap = new Dictionary<MethodInfo, PropertyAccessorInfo>(); 343var 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(); 669_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)
51private 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)
1438var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1468var 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.InteropServices.JavaScript (3)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (3)
16private readonly Dictionary<nint, WeakReference<JSObject>> ThreadCsOwnedObjects = new(); 20private readonly Dictionary<nint, PromiseHolder> ThreadJsOwnedHolders = new(); 26internal Dictionary<int, Action<IntPtr>> JSExportByHandle = new Dictionary<int, Action<IntPtr>>();
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?>()); 941return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>()); 1001DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 1634Dictionary<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.AccessControl (2)
System\Security\AccessControl\Privilege.cs (2)
27private static readonly Dictionary<Luid, string> s_privileges = new Dictionary<Luid, string>(); 28private static readonly Dictionary<string, Luid> s_luids = new Dictionary<string, Luid>();
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 (9)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
16var 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\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
17var 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)
334Dictionary<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)
556attrs ??= 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)
24get => _attributeExtensions ??= new Dictionary<XmlQualifiedName, string>();
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
334dependencyHash = new Dictionary<string, ServiceController>();
System.Speech (11)
Internal\SrgsCompiler\BackEnd.cs (5)
207Dictionary<State, State> srcToDestHash = new(); 471Dictionary<State, State> SrcToDestHash = new(); // Hash source state to destination state 473Dictionary<Tag, Tag> tags = new(); 532Dictionary<Tag, Tag> tags = new(); 1365private Dictionary<int, Rule> _nameOffsetRules = new();
Internal\StringBlob.cs (1)
200private Dictionary<string, int> _strings = new();
Internal\Synthesis\VoiceSynthesis.cs (1)
1772private Dictionary<VoiceInfo, TTSVoice> _voiceDictionary = new();
Recognition\RecognizerBase.cs (1)
3016private Dictionary<int, object> _bookmarkTable = new();
Recognition\RecognizerInfo.cs (1)
37Dictionary<string, string> attrs = new();
Result\SemanticValue.cs (1)
24_dictionary = new Dictionary<string, SemanticValue>();
Synthesis\VoiceInfo.cs (1)
75Dictionary<string, string> attrs = new();
System.Text.Encoding.CodePages (1)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System.Text.Json (16)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
522private 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\JsonSerializer.Read.HandlePropertyName.cs (4)
154var newDict = new Dictionary<string, object>(); 163extensionData = new Dictionary<string, object>(); 174var newDict = new Dictionary<string, JsonElement>(); 183extensionData = new Dictionary<string, JsonElement>();
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (1)
92Dictionary<JsonValueType, Type> shapeBasedCases = new();
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (2)
42private readonly Dictionary<Type, UnionCaseEntry> _entryByCaseType = new(); 321(methodsByCaseType ??= new()).TryAdd(caseType, method);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1164var map = new Dictionary<JsonValueType, Type>(); 1867(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 (5)
JsonSourceGenerator.Emitter.cs (3)
69private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 76private readonly Dictionary<string, string> _propertyNames = new(); 1134genericAccessorEntries ??= new();
JsonSourceGenerator.Parser.cs (2)
1787Dictionary<JsonValueType, List<string>> valueTypeToTypes = new(); 2370(state.IgnoredMembers ??= new())[memberName] = memberInfo;
System.Text.RegularExpressions (17)
System\Text\RegularExpressions\RegexCompiler.cs (1)
1943var charToBranchIndex = new Dictionary<char, int>();
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 (6)
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>> _stripEffectsCache = new(); 119internal 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 (8)
RegexGenerator.cs (3)
115Dictionary<string, string[]> requiredHelpers = new(); 193var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 199Dictionary<string, string[]> requiredHelpers = new();
RegexGenerator.Emitter.cs (2)
1620Dictionary<string, int> usedNames = new(); 1633Dictionary<string, string[]> additionalLocalFunctions = new();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
UpgradeToGeneratedRegexCodeFixer.cs (2)
493var treeIndexMap = new Dictionary<SyntaxTree, int>(); 501var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
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)
2134_dpiFonts ??= new Dictionary<int, Font>
System.Windows.Forms.Design (2)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
19private readonly Dictionary<(Cursor cursor, int dpi), int> _cursorWidthCache = new();
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
90defaultValues ??= new Dictionary<string, object>();
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
203var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
604this.manipulatorStates = new Dictionary<int, ManipulatorState>();
System.Xaml (38)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
135_assemblies = new Dictionary<object, AssemblyName>();
src\wpf\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)
35_prescopeNamespaces = new Dictionary<string, string>(); 160_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>();
UnitTests.Common (1)
TestTypes.cs (1)
644_headers = new Dictionary<string, string>();
vstest.console (7)
CommandLine\InferHelper.cs (3)
28sourceToPlatformMap = new Dictionary<string, Architecture>(); 135sourceToFrameworkMap = new Dictionary<string, Framework>(); 155sourceToFrameworkMap = new Dictionary<string, Framework>();
Processors\EnableBlameArgumentProcessor.cs (3)
221?? new Dictionary<string, string>(); 237?? new Dictionary<string, string>(); 259Dictionary<string, string> monitorPostMortemDebuggerParameters = new()
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
341var traitDictionary = new Dictionary<string, List<string>>();
vstest.console.arm64 (7)
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (3)
28sourceToPlatformMap = new Dictionary<string, Architecture>(); 135sourceToFrameworkMap = new Dictionary<string, Framework>(); 155sourceToFrameworkMap = new Dictionary<string, Framework>();
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (3)
221?? new Dictionary<string, string>(); 237?? new Dictionary<string, string>(); 259Dictionary<string, string> monitorPostMortemDebuggerParameters = new()
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
341var traitDictionary = new Dictionary<string, List<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>();