Implemented interface members:
property
this
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.this[TKey]
property
this
System.Collections.Generic.IDictionary<TKey, TValue>.this[TKey]
5923 writes to Item
aspire (141)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
876arguments[prop.Name] = prop.Value;
Bundles\BundleService.cs (1)
501targets[dir] = ReparsePoint.IsReparsePoint(linkPath) ? ReparsePoint.GetTarget(linkPath) : null;
Certificates\CertificateService.cs (2)
196environmentVariables[SslCertDirEnvVar] = $"{currentSslCertDir}{Path.PathSeparator}{devCertsTrustPath}"; 204environmentVariables[SslCertDirEnvVar] = string.Join(Path.PathSeparator, systemCertDirs);
Commands\AgentMcpCommand.cs (17)
106_knownTools[KnownMcpTools.ListStructuredLogs] = new ListStructuredLogsTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListStructuredLogsTool>()); 107_knownTools[KnownMcpTools.ListTraces] = new ListTracesTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListTracesTool>()); 108_knownTools[KnownMcpTools.ListTraceStructuredLogs] = new ListTraceStructuredLogsTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListTraceStructuredLogsTool>()); 114_knownTools[KnownMcpTools.ListResources] = new ListResourcesTool(_auxiliaryBackchannelMonitor, _loggerFactory.CreateLogger<ListResourcesTool>()); 115_knownTools[KnownMcpTools.ListConsoleLogs] = new ListConsoleLogsTool(_auxiliaryBackchannelMonitor, _loggerFactory.CreateLogger<ListConsoleLogsTool>()); 116_knownTools[KnownMcpTools.ExecuteResourceCommand] = new ExecuteResourceCommandTool(_auxiliaryBackchannelMonitor, _loggerFactory.CreateLogger<ExecuteResourceCommandTool>()); 117_knownTools[KnownMcpTools.ListStructuredLogs] = new ListStructuredLogsTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListStructuredLogsTool>()); 118_knownTools[KnownMcpTools.ListTraces] = new ListTracesTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListTracesTool>()); 119_knownTools[KnownMcpTools.ListTraceStructuredLogs] = new ListTraceStructuredLogsTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListTraceStructuredLogsTool>()); 120_knownTools[KnownMcpTools.SelectAppHost] = new SelectAppHostTool(_auxiliaryBackchannelMonitor, _executionContext); 121_knownTools[KnownMcpTools.ListAppHosts] = new ListAppHostsTool(_auxiliaryBackchannelMonitor, _executionContext); 122_knownTools[KnownMcpTools.ListIntegrations] = new ListIntegrationsTool(_packagingService, _executionContext, _auxiliaryBackchannelMonitor); 123_knownTools[KnownMcpTools.Doctor] = new DoctorTool(_environmentChecker); 124_knownTools[KnownMcpTools.RefreshTools] = new RefreshToolsTool(_resourceToolRefreshService); 125_knownTools[KnownMcpTools.ListDocs] = new ListDocsTool(_docsIndexService); 126_knownTools[KnownMcpTools.SearchDocs] = new SearchDocsTool(_docsSearchService, _docsIndexService); 127_knownTools[KnownMcpTools.GetDoc] = new GetDocTool(_docsIndexService);
Commands\AppHostLauncher.cs (1)
467environment[KnownConfigNames.CliAppHostSelectionOrigin] = appHostSelectionOrigin;
Commands\DashboardRunCommand.cs (3)
141environmentVariables[DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName] = browserToken; 149environmentVariables[DashboardConfigNames.DashboardApiPrimaryApiKeyName.EnvVarName] = apiKey; 153environmentVariables[DashboardConfigNames.DashboardApiAuthModeName.EnvVarName] = "ApiKey";
Commands\DescribeCommand.cs (2)
265lastDisplayedContent[snapshot.Name] = json; 278lastDisplayedContent[snapshot.Name] = displayState;
Commands\ExportCommand.cs (3)
246exportArchive.Resources[displayName] = resourceJson; 270logLinesByResource[logLine.ResourceName] = lines; 282exportArchive.ConsoleLogs[displayName] = lines;
Commands\GroupedHelpWriter.cs (1)
64grouped[baseCmd.HelpGroup] = list;
Commands\McpCallCommand.cs (1)
87dict[prop.Name] = prop.Value.Clone();
Commands\PipelineCommandBase.cs (6)
252env[KnownConfigNames.InteractivityEnabled] = "false"; 257env[KnownConfigNames.WaitForDebugger] = "true"; 737steps[activity.Data.Id] = activity.Data.CompletionState; 746steps[activity.Data.Id] = activity.Data.CompletionState; 844steps[activity.Data.Id] = stepInfo; 929tasks[activity.Data.Id] = task;
Commands\PsCommand.cs (2)
229nextActiveAppHosts[GetAppHostKey(appHost)] = appHost; 275lastJsonByAppHost[key] = json;
Commands\RunCommand.cs (2)
1164_resourceStates[resourceState.Resource] = resourceState; 1176_resourceStates[resourceState.Resource] = resourceState;
Configuration\AspireConfigFile.cs (3)
282profile.EnvironmentVariables[envProp.Name] = envValue; 293profiles[prop.Name] = profile; 320Packages[packageId] = version;
Configuration\AspireJsonConfiguration.cs (1)
150Packages[packageId] = version;
Configuration\ConfigurationService.cs (1)
354result[key] = kvp.Value.ToString();
Configuration\FlexibleBooleanDictionaryConverter.cs (1)
54dictionary[key] = value;
Documentation\ApiDocs\ApiDocsIndexService.cs (1)
704mergedItems[item.Id] = item;
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (1)
70slugCounts[key] = slugCounts.TryGetValue(key, out var count) ? count + 1 : 1;
Documentation\Docs\DocsIndexService.cs (2)
262documentFrequency[token] = documentFrequency.TryGetValue(token, out var count) ? count + 1 : 1; 283idf[token] = MathF.Log(1.0f + (documentCount - count + 0.5f) / (count + 0.5f));
Documentation\Docs\LlmsTxtParser.cs (3)
886slugCounts[baseSlug] = next; 888slugCounts[disambiguated] = 1; 892slugCounts[baseSlug] = 1;
DotNet\DotNetCliRunner.cs (5)
607env["AspireCliPath"] = processPath; 1000finalEnv[KnownConfigNames.VersionCheckDisabled] = "true"; 1010finalEnv["DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER"] = "true"; 1016finalEnv[KnownConfigNames.SuppressCliRunHook] = "true"; 1023finalEnv[KnownConfigNames.UnixSocketPath] = socketPath;
Mcp\McpResourceToolRefreshService.cs (1)
107refreshedMap[exposedName] = new ResourceToolEntry(routedResourceName, tool);
NuGet\NuGetSignatureVerificationEnabler.cs (1)
39environmentVariables[DotNetNuGetSignatureVerification] = effectiveValue;
Packaging\NuGetConfigMerger.cs (2)
219urlToExistingKey[value] = key; 860urlToExistingKey[value] = key;
Packaging\PackagingService.cs (1)
703versionsById[id] = versions;
Profiling\ProfileCaptureEnvironment.cs (1)
32previousValues[name] = Environment.GetEnvironmentVariable(name);
Profiling\ProfileCaptureService.cs (1)
341archive.Traces["profile"] = traces.Data;
Projects\AppHostCandidateFinder.cs (2)
253countsByPattern[pattern]++; 432countsByPattern[pattern]++;
Projects\AppHostServerSession.cs (1)
184serverEnvironmentVariables[KnownConfigNames.RemoteAppHostToken] = _authenticationToken;
Projects\DotNetAppHostProject.cs (17)
1480env[KnownConfigNames.AspireLogLevel] = aspireLogLevel.ToString(); 1484env[KnownConfigNames.WaitForDebugger] = "true"; 1559env[KnownConfigNames.DcpWorkloadId] = AppHostWorkloadId.Create(effectiveAppHostFile); 1639env[kvp.Key] = kvp.Value; 1823directEnv[name] = value; 2000env["DOTNET_LAUNCH_PROFILE"] = profileName; 2004env[KnownAspNetCoreConfigNames.Urls] = profile.ApplicationUrl; 2020env[name] = Environment.ExpandEnvironmentVariables(value); 2313env[KnownAspNetCoreConfigNames.Urls] = profile.ApplicationUrl; 2324env[key] = value; 2560env["AspireCliBundlePath"] = layout.LayoutPath; 2569env[BundleDiscovery.DcpPathEnvVar] = layoutDcpPath; 2576env[BundleDiscovery.DashboardPathEnvVar] = layoutManagedPath; 2605env[BundleDiscovery.TerminalHostPathEnvVar] = terminalHostPath; 2608env[BundleDiscovery.TerminalHostInvocationArgsEnvVar] = "terminalhost"; 2659env["DcpPublisher__RandomizePorts"] = "true"; 2670env["DOTNET_USER_SECRETS_ID"] = isolatedUserSecretsId;
Projects\DotNetBasedAppHostServerProject.cs (1)
422scaffold["nuget.config"] = nugetConfigContent;
Projects\GuestAppHostProject.cs (23)
461launchSettingsEnvVars[KnownConfigNames.DcpWorkloadId] = AppHostWorkloadId.Create(appHostFile); 466launchSettingsEnvVars[kvp.Key] = kvp.Value; 473launchSettingsEnvVars[KnownConfigNames.UnixSocketPath] = backchannelSocketPath; 476launchSettingsEnvVars[KnownConfigNames.AspireUserSecretsId] = UserSecretsPathHelper.ComputeSyntheticUserSecretsId(appHostFile.FullName); 617environmentVariables["REMOTE_APP_HOST_SOCKET_PATH"] = socketPath; 618environmentVariables["ASPIRE_PROJECT_DIRECTORY"] = directory.FullName; 619environmentVariables["ASPIRE_APPHOST_FILEPATH"] = appHostFile.FullName; 620environmentVariables[KnownConfigNames.RemoteAppHostToken] = authenticationToken; 643environmentVariables["ASPIRE_DEBUG"] = "true"; 849environmentVariables[key] = value; 973result[KnownAspNetCoreConfigNames.Urls] = appUrl.GetString()!; 983result[prop.Name] = prop.Value.GetString()!; 1026result[KnownAspNetCoreConfigNames.Urls] = profile.ApplicationUrl; 1033result[kvp.Key] = kvp.Value; 1085launchSettingsEnvVars[KnownConfigNames.AspireHome] = _executionContext.AspireHomeDirectory.FullName; 1091launchSettingsEnvVars[KnownConfigNames.UnixSocketPath] = backchannelSocketPath; 1094launchSettingsEnvVars[KnownConfigNames.AspireUserSecretsId] = UserSecretsPathHelper.ComputeSyntheticUserSecretsId(appHostFile.FullName); 1190environmentVariables[KnownConfigNames.AspireHome] = _executionContext.AspireHomeDirectory.FullName; 1191environmentVariables["REMOTE_APP_HOST_SOCKET_PATH"] = jsonRpcSocketPath; 1192environmentVariables["ASPIRE_PROJECT_DIRECTORY"] = directory.FullName; 1193environmentVariables["ASPIRE_APPHOST_FILEPATH"] = appHostFile.FullName; 1194environmentVariables[KnownConfigNames.RemoteAppHostToken] = authenticationToken; 1735convertedFiles[convertedFileName] = convertedFileName.EndsWith(".ts", StringComparison.Ordinal)
Projects\GuestRuntime.cs (1)
568mergedEnvironment[key] = value;
Projects\PrebuiltAppHostServer.cs (1)
1619packageFingerprints[CreatePackageFingerprintKey(packageKey.PackageId, packageKey.PackageVersion)] = sha512;
Projects\ProjectUpdater.cs (1)
1357mappings[sourceKey] = patterns;
src\Shared\ConsoleLogs\PromptContext.cs (1)
53_promptValueMap[input] = getKey(instance);
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
356spansByTraceId[traceId] = spanList;
src\Shared\IntegrationPackageProbeManifest.cs (2)
274lookup[CreateManagedAssemblyLookupKey(assembly.Name, assembly.Culture)] = assembly.Path; 291lookup[key] = paths;
src\Shared\UserSecrets\SecretsStore.cs (2)
41public void Set(string key, string value) => _secrets[key] = value; 142result[kvp.Key] = value;
Telemetry\InternalMicrosoftDetector.cs (1)
836values[key] = value;
Telemetry\ProfilingTelemetry.cs (1)
1112baggage[key] = value;
Utils\ConsoleActivityLogger.cs (10)
92_stepStates[taskKey] = ActivityState.InProgress; 104_stepStates[taskKey] = ActivityState.InProgress; 106_displayNames[taskKey] = displayName; 232_stepStates[taskKey] = ActivityState.Success; 242_stepStates[taskKey] = ActivityState.Warning; 252_stepStates[taskKey] = ActivityState.Failure; 432_stepStates[record.Key] = record.State; 433_displayNames[record.Key] = record.DisplayName; 540childrenByParent[parentKey] = children; 800_stepColors[taskKey] = color;
Utils\EnvironmentChecker\DcpConnectionChecker.cs (2)
253environmentVariables["DCP_EXTENSIONS_PATH"] = extensionsPath; 258environmentVariables["DCP_SESSION_FOLDER"] = sessionDirectory;
Utils\EnvironmentChecker\OperatingSystemCheck.cs (1)
136values[key] = UnquoteOsReleaseValue(value);
Utils\FileSystemHelper.cs (6)
169segmentsMap[path] = segments; 177depthMap[path] = minDepth; 178result[path] = minDepth >= 2 203depthMap[originalPath] = newDepth; 208result[originalPath] = originalPath; 224result[originalPath] = candidate;
aspire-managed (2)
src\Shared\IntegrationPackageProbeManifest.cs (2)
274lookup[CreateManagedAssemblyLookupKey(assembly.Name, assembly.Culture)] = assembly.Path; 291lookup[key] = paths;
Aspire.Acquisition.Tests (2)
tests\Shared\TemplatesTesting\ToolCommand.cs (2)
45Environment[key] = value; 55Environment[key] = value;
Aspire.Azure.Messaging.EventHubs.Tests (3)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (3)
81protected override void SetHeader(string name, string value) => _headers[name] = [value]; 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Azure.Security.KeyVault.Tests (3)
MockTransport.cs (3)
81protected override void SetHeader(string name, string value) => _headers[name] = [value]; 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Cli.EndToEnd.Tests (6)
Helpers\CliE2ETestHelpers.cs (1)
250c.Environment[CliVersionOutputDirEnvironmentVariableName] = ContainerCliVersionOutputDir;
Helpers\CliInstallStrategyTests.cs (1)
1009cleanVariables[name] = value;
tests\Shared\CliInstallStrategy.cs (4)
531config.BuildArgs["SKIP_SOURCE_BUILD"] = "true"; 547config.Environment["GH_TOKEN"] = ghToken; 550config.Environment["GITHUB_PR_NUMBER"] = Environment.GetEnvironmentVariable("GITHUB_PR_NUMBER") ?? ""; 551config.Environment["GITHUB_PR_HEAD_SHA"] = Environment.GetEnvironmentVariable("GITHUB_PR_HEAD_SHA") ?? "";
Aspire.Cli.Tests (80)
Agents\TelemetryHookScriptTests.cs (1)
445environment[pair.Key] = pair.Value;
Caching\DiskCacheTests.cs (6)
48cfg["PackageSearchCacheExpirySeconds"] = "1"; // expiry window 49cfg["PackageSearchMaxCacheAgeSeconds"] = "3600"; // large max age so only expiry triggers 67cfg["PackageSearchCacheExpirySeconds"] = "60"; 68cfg["PackageSearchMaxCacheAgeSeconds"] = "3600"; 109cfg["PackageSearchCacheExpirySeconds"] = "300"; // big 110cfg["PackageSearchMaxCacheAgeSeconds"] = "1"; // small
Commands\AddCommandTests.cs (1)
1579exactMatchQueryCounts[query] = exactMatchQueryCounts.GetValueOrDefault(query) + 1;
Commands\ConfigCommandTests.cs (4)
76config["ASPIRE_EXTENSION_PROMPT_ENABLED"] = "true"; 77config["ASPIRE_EXTENSION_TOKEN"] = "token"; 555config[$"{KnownFeatures.FeaturePrefix}:{KnownFeatures.AspireSkillsRemoteFetchEnabled}"] = "true"; 612confing[$"{KnownFeatures.FeaturePrefix}:testFeature"] = "invalid"; // Set an invalid value
Commands\DoCommandTests.cs (1)
50options.ConfigurationCallback += config => config[KnownConfigNames.ExtensionDebugSessionId] = "test-session-id";
Commands\LsCommandTests.cs (2)
776config[ProfilingTelemetry.EnvironmentVariables.Enabled] = "true"; 777config[ProfilingTelemetry.EnvironmentVariables.SessionId] = sessionId;
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1036_promptCompletionSources[prompt.PromptId] = completionSource;
Commands\RootCommandTests.cs (2)
310config[CliConfigNames.NoLogo] = value; 409config[CliConfigNames.NoLogo] = "1";
Commands\RunCommandTests.cs (22)
290config[CliConfigNames.AppHostStartupTimeout] = "0"; 344config[CliConfigNames.AppHostStartupTimeout] = "1"; 479config[KnownConfigNames.CliRunDetached] = "true"; 480config[KnownConfigNames.CliLauncherProcessId] = launcher.Id.ToString(CultureInfo.InvariantCulture); 481config[KnownConfigNames.CliLauncherProcessStarted] = GetProcessStartTimeUnixMilliseconds(launcher).ToString(CultureInfo.InvariantCulture); 577config[KnownConfigNames.CliRunDetached] = "true"; 578config[KnownConfigNames.CliLauncherProcessId] = launcher.Id.ToString(CultureInfo.InvariantCulture); 579config[KnownConfigNames.CliLauncherProcessStarted] = GetProcessStartTimeUnixMilliseconds(launcher).ToString(CultureInfo.InvariantCulture); 681options.ConfigurationCallback += config => config[KnownConfigNames.CliRunDetached] = "true"; 744config[CliConfigNames.AppHostStartupTimeout] = "2"; 1134config[name] = value; 1548options.ConfigurationCallback += config => config[KnownConfigNames.CliRunDetached] = "true"; 2156config[KnownConfigNames.ExtensionDebugSessionId] = "test-session-id"; 2157config["VSCODE_IPC_HOOK_CLI"] = "test-ipc-hook"; 2158config["SSH_CONNECTION"] = "127.0.0.1 1 127.0.0.1 2"; 2626config["ASPIRE_EXTENSION_DEBUG_SESSION_ID"] = "test-session-id"; 2696config["ASPIRE_EXTENSION_DEBUG_SESSION_ID"] = "test-session-id"; 2765config["ASPIRE_EXTENSION_DEBUG_SESSION_ID"] = "test-session-id"; 2825config["ASPIRE_EXTENSION_DEBUG_SESSION_ID"] = "test-session-id"; 2889config["ASPIRE_EXTENSION_DEBUG_SESSION_ID"] = "test-session-id"; 4201options.ConfigurationCallback += config => config[KnownConfigNames.ExtensionDebugSessionId] = "existing-session"; 4254config[KnownConfigNames.CliRunDetached] = "true";
Commands\StartCommandTests.cs (2)
175config[CliConfigNames.AppHostStartupTimeout] = "0"; 558testOptions.ConfigurationCallback += config => config[KnownConfigNames.ExtensionDebugSessionId] = "existing-session";
Commands\StopCommandTests.cs (1)
410config[KnownConfigNames.ProfilingEnabled] = "true";
Commands\UpdateCommandTests.cs (1)
2580config[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+2574ef57e97fc393aff67592fd442afca6a6d02f";
Commands\WslEnvironmentCheckTests.cs (2)
552environmentVariables["WSL_DISTRO_NAME"] = distroName; 557environmentVariables["WSL_INTEROP"] = wslInterop;
Configuration\KnownFeaturesTests.cs (1)
90configData["channel"] = channel;
DotNet\DotNetCliRunnerTests.cs (7)
706config[ProfilingTelemetry.EnvironmentVariables.Enabled] = "true"; 707config[ProfilingTelemetry.EnvironmentVariables.SessionId] = "session-1"; 765config[ProfilingTelemetry.EnvironmentVariables.Enabled] = "true"; 766config[ProfilingTelemetry.EnvironmentVariables.SessionId] = sessionId; 1001configBuilder["ASPIRE_EXTENSION_TOKEN"] = "extension-token"; 1051configBuilder["ASPIRE_EXTENSION_TOKEN"] = "extension-token"; 1052configBuilder[KnownConfigNames.CliBackchannelConnectTimeoutSeconds] = "0";
Mcp\ApiDocs\ApiDocsFetcherTests.cs (2)
117_content[key] = content; 132_etags[url] = etag;
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (2)
635_content[key] = content; 650_etags[url] = etag;
Mcp\Docs\DocsFetcherTests.cs (2)
425_content[key] = content; 443_etags[url] = etag;
Mcp\Docs\DocsIndexServiceTests.cs (2)
1726_content[key] = content; 1744_etags[url] = etag;
Packaging\PackagingServiceTests.cs (2)
366settings["channel"] = PackageChannelNames.Staging; 370settings[PackagingService.OverrideStagingFeedConfigKey] = overrideFeed;
Projects\GuestAppHostProjectTests.cs (2)
1519envVars["NODE_EXTRA_CA_CERTS"] = existingValue; 1680envVars[configuredNodeExtraCaCertsKey] = Path.GetFileName(existingBundlePath);
Projects\PrebuiltAppHostServerTests.cs (2)
2573closureFiles["MyIntegration.dll"] = "integration-v2"; 2651closureFiles["MyIntegration.dll"] = "integration-v2";
Telemetry\InternalMicrosoftDetectorTests.cs (6)
454environmentVariables["PATH"] = workspace.Path; 455environmentVariables["PATHEXT"] = ".EXE"; 480environmentVariables["PATH"] = workspace.Path; 481environmentVariables["PATHEXT"] = ".EXE"; 530environmentVariables["PATH"] = workspace.Path; 531environmentVariables["PATHEXT"] = ".EXE";
Telemetry\TelemetryConfigurationTests.cs (2)
32result[s_telemetryOptInOverride.Key] = s_telemetryOptInOverride.Value; 179config[AspireCliTelemetry.OtlpExporterEndpointConfigKey] = "http://localhost:4317";
TestServices\FakePeerInstallProbe.cs (1)
29_responses[kvp.Key] = kvp.Value;
TestServices\TestFeatures.cs (1)
14_features[featureName] = value;
Utils\CliTestHelper.cs (2)
95config[$"{KnownFeatures.FeaturePrefix}:{featureFlag}"] = "true"; 100config[$"{KnownFeatures.FeaturePrefix}:{featureFlag}"] = "false";
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
75_state[statistics.Name] = statistics;
Aspire.Dashboard (56)
Components\Controls\Chart\ChartBase.cs (1)
235_newCache[key] = span;
Components\Controls\GridValue.razor.cs (3)
177_componentParameters[parameter.Key] = parameter.Value; 181_componentParameters["Value"] = Value ?? string.Empty; 182_componentParameters["HighlightText"] = HighlightText ?? string.Empty;
Components\Controls\ResourceDetails.razor.cs (2)
236_valueComponents[KnownProperties.Parameter.Value] = metadata; 237_valueComponents[DisplayedResourcePropertyViewModel.GetUnknownKey(KnownProperties.Parameter.Value)] = metadata;
Components\Controls\SpanDetails.razor.cs (1)
181_valueComponents[KnownTraceFields.DestinationField] = new ComponentMetadata
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
71_elementRefs[inputVM] = null;
Components\Dialogs\ManageDataDialog.razor.cs (5)
121_resourceDataRows[resourceName] = CreateResourceDataRow(resource); 142_resourceDataRows[compositeName] = CreateTelemetryOnlyResourceDataRow(otlpResource); 164_resourceDataRows[resource.Name] = CreateResourceDataRow(resource); 181_resourceDataRows[resource.Name] = CreateResourceDataRow(resource); 674result[resourceName] = dataTypes;
Components\Pages\ComponentTelemetryContext.cs (4)
56Properties[TelemetryPropertyKeys.DashboardComponentId] = new AspireTelemetryProperty(_componentId); 57Properties[TelemetryPropertyKeys.DashboardComponentType] = new AspireTelemetryProperty(_type.ToString()); 60Properties[TelemetryPropertyKeys.UserAgent] = new AspireTelemetryProperty(browserUserAgent); 83Properties[name] = value;
Components\Pages\IPageWithSessionAndUrlState.cs (1)
69layout.DialogCloseListeners[nameof(AfterViewModelChangedAsync)] = SetStateAndNavigateAsync;
Components\Pages\TraceDetail.razor.cs (1)
844map[child] = parent;
Configuration\EndpointInfo.cs (1)
43map[key] = list;
DashboardWebApplication.cs (3)
687values[$"Kestrel:Endpoints:{endpointName}:Url"] = url; 691values[$"Kestrel:Endpoints:{endpointName}:Protocols"] = protocols.ToString(); 696values[$"Kestrel:Endpoints:{endpointName}:ClientCertificateMode"] = ClientCertificateMode.RequireCertificate.ToString();
Model\ConnectionStringParser.cs (1)
528result[key] = value;
Model\ConsoleLogsFetcher.cs (1)
87result[resourceName] = logEntries;
Model\GenAI\GenAISchemaHelpers.cs (1)
34schema.Properties[prop.Key] = ParseToolDefinitionSchema(propSchemaObj);
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
479messages[messageIndex] = message; 482message[fieldName] = attr.Value;
Model\ResourceViewModelExtensions.cs (1)
26result[key] = stringValue;
Model\TelemetryExportService.cs (5)
140exportArchive.ConsoleLogs[resourceName] = lines; 150exportArchive.Resources[resourceName] = resourceJson; 166exportArchive.StructuredLogs[resourceName] = ConvertLogsToOtlpJson(logs.Items); 182exportArchive.Traces[resourceName] = ConvertTracesToOtlpJson(tracesResponse.PagedResult.Items); 222exportArchive.Metrics[resourceName] = ConvertMetricsToOtlpJson(instrumentsData);
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (6)
330_metricIngestionState.DimensionCounts[instrumentId] = 0; 331_metricIngestionState.KnownAttributeValues[instrumentId] = new KnownAttributeValuesState(); 414_metricIngestionState.DimensionCounts[insertedRecord.InstrumentId] = 0; 415_metricIngestionState.KnownAttributeValues[insertedRecord.InstrumentId] = new KnownAttributeValuesState(); 637resource.ViewsByProperties[view.Properties] = cachedView; 651_cachedScopesByName[scope.Name] = cachedScope;
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (2)
489ingestionState.DimensionCounts[instrumentId] = dimensions.Count; 523ingestionState.DimensionCounts[instrumentId] = dimensionCount + 1;
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (1)
190_resourceUnviewedErrorLogs[log.ResourceView.ResourceKey] = count + 1;
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (2)
328latestReceivedTimestampTicks[traceId] = receivedTimestampTicks; 1178latestReceivedTimestampTicks[span.TraceId] = receivedTimestampTicks;
ServiceClient\DashboardClient.cs (3)
599_resourceByName[resource.Name] = viewModel; 623_resourceByName[change.Upsert.Name] = viewModel; 1182_resourceByName[data.Name] = data.ToViewModel(CalculateReplicaIndex(data.DisplayName), _knownPropertyLookup, _logger);
ServiceClient\SqliteResourceRepository.cs (6)
137_consoleChannels[resourceName] = (_consoleChannels.GetValueOrDefault(resourceName) ?? []).Add(channel); 166_consoleChannels[resourceName] = channels; 207replacementResources[resource.Name] = viewModel; 257resourcesToSave[resource.Name] = new(resource, viewModel.ReplicaIndex, viewModel.ConsoleLogsLoaded); 258updatedResources[resource.Name] = viewModel; 439_resourceStates[storedResource.Resource.Name] = new ResourceState(viewModel);
Telemetry\DashboardTelemetryService.cs (1)
379properties[key] = value;
Utils\GlobalizationHelpers.cs (1)
51dict[localizedCulture.Name] = selfAndChildren;
Aspire.Dashboard.Tests (169)
Integration\FrontendBrowserTokenAuthTests.cs (30)
34config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 35config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 56config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 57config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 84config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 85config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 86config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 132config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 133config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 134config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 171config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 172config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 173config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 222config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 223config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 224config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 254config[DashboardConfigNames.ForwardedHeaders.ConfigKey] = bool.TrueString; 255config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 256config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 289config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 290config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 313config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 314config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 338config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = authMode.ToString(); 339config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 365config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 440config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = frontendUrl; 441config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 468config["DOTNET_RUNNING_IN_CONTAINER"] = "true"; 469config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString();
Integration\FrontendOpenIdConnectAuthTests.cs (7)
98config[DashboardConfigNames.ResourceServiceClientAuthModeName.ConfigKey] = "Unsecured"; 99config[DashboardConfigNames.ResourceServiceUrlName.ConfigKey] = "https://localhost:1234"; // won't actually exist 102config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = "OpenIdConnect"; 103config["Authentication:Schemes:OpenIdConnect:Authority"] = authority.Url; 104config["Authentication:Schemes:OpenIdConnect:ClientId"] = "MyClientId"; 105config["Authentication:Schemes:OpenIdConnect:ClientSecret"] = "MyClientSecret"; 107config["Authentication:Schemes:OpenIdConnect:RequireHttpsMetadata"] = "false";
Integration\HealthTests.cs (1)
93config => config["OTEL_EXPORTER_OTLP_ENDPOINT"] = "http://127.0.0.1:1",
Integration\OtlpCorsHttpServiceTests.cs (4)
47config[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "http://localhost:8000, http://localhost:8001"; 88config[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "http://localhost:8000"; 115config[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "*"; 116config[DashboardConfigNames.DashboardOtlpCorsAllowedHeadersKeyName.ConfigKey] = "*";
Integration\OtlpGrpcServiceTests.cs (28)
54config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 55config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 76config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 77config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 103config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 104config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 131config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 132config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 133config[DashboardConfigNames.DashboardOtlpSecondaryApiKeyName.ConfigKey] = secondaryApiKey; 180config[dashboardConfigFilePathNameKey] = configPath; 250config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0"; 279config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 281config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 305config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 307config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 311config[$"{DashboardConfigNames.DashboardOtlpAllowedCertificatesName.ConfigKey}:0:Thumbprint"] = allowedThumbprint; 314config["Dashboard:Otlp:CertificateAuthOptions:AllowedCertificateTypes"] = "SelfSigned"; 315config["Dashboard:Otlp:CertificateAuthOptions:ValidateValidityPeriod"] = "false"; 344config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 346config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 349config[$"{DashboardConfigNames.DashboardOtlpAllowedCertificatesName.ConfigKey}:0:Thumbprint"] = clientCertificate.Thumbprint; 351config["Dashboard:Otlp:CertificateAuthOptions:AllowedCertificateTypes"] = "SelfSigned"; 352config["Dashboard:Otlp:CertificateAuthOptions:ValidateValidityPeriod"] = "false"; 383config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 385config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 387config[$"{DashboardConfigNames.DashboardOtlpAllowedCertificatesName.ConfigKey}:0:Thumbprint"] = "123"; 389config["Authentication:Schemes:Certificate:AllowedCertificateTypes"] = "SelfSigned"; 390config["Authentication:Schemes:Certificate:ValidateValidityPeriod"] = "false";
Integration\OtlpHttpJsonTests.cs (4)
829config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 830config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 857config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 858config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey;
Integration\OtlpHttpServiceTests.cs (13)
115config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 116config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 139config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 140config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 167config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 168config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 202config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0"; 232dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 262dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 310dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 335dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 364dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 393dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0";
Integration\Playwright\BrowserTokenAuthenticationTests.cs (5)
22Configuration[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = nameof(FrontendAuthMode.BrowserToken); 23Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = "VALID_TOKEN"; 35Configuration[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 36Configuration[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = nameof(FrontendAuthMode.BrowserToken); 37Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = "VALID_TOKEN";
Integration\StartupTests.cs (40)
73data[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 74data[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "http://127.0.0.1:0"; 75data[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 141data[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://+:0;http://+:0"; 142data[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "http://+:0"; 143data[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://+:0"; 194data["Dashboard:Otlp:AuthMode"] = nameof(OtlpAuthMode.ClientCertificate); 195data["Dashboard:Otlp:AllowedCertificates:0"] = string.Empty; 219data[dashboardConfigFilePathNameKey] = configFilePath; 324data[DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory; 339initialData["Dashboard:Otlp:AuthMode"] = nameof(OtlpAuthMode.ApiKey); 340initialData["Dashboard:Otlp:PrimaryApiKey"] = "TestKey123!"; 360initialData[DashboardConfigNames.DebugSessionPortName.ConfigKey] = "8080"; 361initialData[DashboardConfigNames.DebugSessionServerCertificateName.ConfigKey] = Convert.ToBase64String(testCert.Export(X509ContentType.Cert)); 362initialData[DashboardConfigNames.DebugSessionTokenName.ConfigKey] = "token!"; 363initialData[DashboardConfigNames.DebugSessionDcpInstanceIdName.ConfigKey] = "aspire-extension-run-123-dashboard"; 364initialData[DashboardConfigNames.DebugSessionTelemetryOptOutName.ConfigKey] = "true"; 394initialData[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"https://127.0.0.1:{port}"; 395initialData[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = $"https://127.0.0.1:{port}"; 396initialData[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"https://127.0.0.1:{port}"; 450initialData[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 451initialData[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 452initialData[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 500initialData[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 501initialData[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 574data[DashboardConfigNames.DashboardUnsecuredAllowAnonymousName.ConfigKey] = bool.TrueString; 593data[DashboardConfigNames.ResourceServiceClientAuthModeName.ConfigKey] = nameof(ResourceClientAuthMode.Certificate); 594data[DashboardConfigNames.ResourceServiceClientCertificateSourceName.ConfigKey] = nameof(DashboardClientCertificateSource.KeyStore); 595data[DashboardConfigNames.ResourceServiceClientCertificateSubjectName.ConfigKey] = "MySubject"; 612data["Logging:LogLevel:Default"] = "Trace"; 613data["Logging:LogLevel:Grpc"] = "Trace"; 614data["Logging:LogLevel:Microsoft.Hosting.Lifetime"] = "Trace"; 656data[dashboardConfigFilePathNameKey] = configFilePath; 787config[configKey] = value.Value.ToString(); 850data[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"https://localhost:{frontendPort1};http://localhost:{frontendPort2}"; 851data[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = $"http://localhost:{otlpGrpcPort}"; 852data[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"http://localhost:{otlpHttpPort}"; 962data[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "https://localhost:666"; 1007data[key] = value; 1042data[DashboardConfigNames.UIDisableResourceGraphName.ConfigKey] = value?.ToString().ToLower();
Integration\TelemetryApiTests.cs (35)
34config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 57config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 58config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 59config[DashboardConfigNames.DashboardApiPrimaryApiKeyName.ConfigKey] = apiKey; 81config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 104config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 105config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 106config[DashboardConfigNames.DashboardApiPrimaryApiKeyName.ConfigKey] = apiKey; 129config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 130config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 131config[DashboardConfigNames.DashboardApiPrimaryApiKeyName.ConfigKey] = apiKey; 153config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 175config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 197config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 218config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 237config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 258config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 277config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 278config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.Unsecured.ToString(); 298config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 299config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 300config[DashboardConfigNames.DashboardApiPrimaryApiKeyName.ConfigKey] = apiKey; 324config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 325config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 326config[DashboardConfigNames.DashboardApiPrimaryApiKeyName.ConfigKey] = primaryKey; 327config[DashboardConfigNames.DashboardApiSecondaryApiKeyName.ConfigKey] = secondaryKey; 347config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 378config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 411config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 433config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 455config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 474config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 494config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 495config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 496config[DashboardConfigNames.DashboardApiPrimaryApiKeyName.ConfigKey] = apiKey;
ResourceOutgoingPeerResolverTests.cs (1)
597properties[KnownProperties.Resource.ConnectionProperties] = new(
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (1)
2247updatedTraces[trace.Key] = trace;
Aspire.Deployment.EndToEnd.Tests (4)
tests\Shared\CliInstallStrategy.cs (4)
531config.BuildArgs["SKIP_SOURCE_BUILD"] = "true"; 547config.Environment["GH_TOKEN"] = ghToken; 550config.Environment["GITHUB_PR_NUMBER"] = Environment.GetEnvironmentVariable("GITHUB_PR_NUMBER") ?? ""; 551config.Environment["GITHUB_PR_HEAD_SHA"] = Environment.GetEnvironmentVariable("GITHUB_PR_HEAD_SHA") ?? "";
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\ToolCommand.cs (2)
45Environment[key] = value; 55Environment[key] = value;
Aspire.Hosting (134)
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (1)
130CustomBundlesFactories[bundleId] = bundleGenerator;
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (3)
89context.EnvironmentVariables[SslCertDirEnvironmentVariable] = configurationContext.CertificateDirectoriesPath; 93context.EnvironmentVariables[SslCertFileEnvironmentVariable] = configurationContext.CertificateBundlePath; 121additionalData.CustomBundlesFactories[bundleFactory.Key] = bundleFactory.Value;
ApplicationModel\CommandsConfigurationExtensions.cs (1)
225preRebuildStates[name] = evt.Snapshot.State?.Text;
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
33c.EnvironmentVariables[name] = callback();
ApplicationModel\EnvironmentEditor.cs (1)
34_environmentVariables[name] = value;
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
33context.EnvironmentVariables[kvp.Key] = kvp.Value;
ApplicationModel\ExecutionConfigurationGathererContext.cs (1)
65resolvedEnvironmentVariables[kvp.Key] = (kvp.Value, resolvedValue.Value);
ApplicationModel\ResourceCollection.cs (1)
48_resourcesByName[value.Name] = value;
ApplicationModel\ResourceCommandService.cs (1)
792values[argument.Name] = argument.Value;
ApplicationModel\ResourceLoggerService.cs (2)
773existingLogCounts[key] = count - 1; 811counts[key] = count + 1;
ApplicationModel\ResourceNotificationService.cs (2)
532pendingDependencyCounts[dependencyName] = pendingCount - 1; 785versionsSeen[resourceId] = snapshot.Version;
Ats\CollectionExports.cs (1)
128result[GetStringKey(key)] = dict[key];
Backchannel\AuxiliaryBackchannelRpcTarget.cs (5)
231arguments[prop.Name] = ConvertJsonElementToObject(prop.Value); 381values[property.Key] = ConvertArgumentValue(property.Key, property.Value); 1150properties[prop.Name] = null; 1154properties[prop.Name] = resourcePropertiesAsJson 1492result[option.Key] = option.Value;
Backchannel\BackchannelLoggerProvider.cs (1)
27_subscribers[id] = channel;
ConnectionPropertiesExtensions.cs (2)
29dict[kv.Key] = kv.Value; 34dict[kv.Key] = kv.Value;
ContainerResourceBuilderExtensions.cs (2)
1159annotation.BuildArguments[name] = value; 1290annotation.BuildSecrets[name] = value.Resource;
Dashboard\ConsoleLogsConfigurationExtensions.cs (2)
19context.EnvironmentVariables["DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION"] = "true"; 22context.EnvironmentVariables["LOGGING__CONSOLE__FORMATTERNAME"] = "simple";
Dashboard\DashboardEventHandlers.cs (32)
441ctx.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPath] = ctx.PfxPath; 444ctx.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPassword] = ctx.Password; 595context.EnvironmentVariables[name] = value; 608context.EnvironmentVariables[KnownAspNetCoreConfigNames.Environment] = environment; 609context.EnvironmentVariables[DashboardConfigNames.ResourceServiceUrlName.EnvVarName] = resourceServiceUrl; 642context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.EnvVarName] = allowedOrigins; 643context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpCorsAllowedHeadersKeyName.EnvVarName] = "*"; 650context.EnvironmentVariables[DashboardConfigNames.DashboardFrontendAuthModeName.EnvVarName] = "BrowserToken"; 651context.EnvironmentVariables[DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName] = browserToken; 655context.EnvironmentVariables[DashboardConfigNames.DashboardFrontendAuthModeName.EnvVarName] = "Unsecured"; 662context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(ResourceServiceAuthMode.ApiKey); 663context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientApiKeyName.EnvVarName] = resourceServiceApiKey; 667context.EnvironmentVariables[DashboardConfigNames.ResourceServiceClientAuthModeName.EnvVarName] = nameof(ResourceServiceAuthMode.Unsecured); 673context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpAuthModeName.EnvVarName] = "ApiKey"; 674context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.EnvVarName] = otlpApiKey; 678context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpAuthModeName.EnvVarName] = "Unsecured"; 684context.EnvironmentVariables[DashboardConfigNames.DashboardApiAuthModeName.EnvVarName] = "ApiKey"; 685context.EnvironmentVariables[DashboardConfigNames.DashboardApiPrimaryApiKeyName.EnvVarName] = apiKey; 689context.EnvironmentVariables[DashboardConfigNames.DashboardApiAuthModeName.EnvVarName] = "Unsecured"; 693context.EnvironmentVariables[DashboardConfigNames.DashboardAspireApiEnabledName.EnvVarName] = "true"; 697context.EnvironmentVariables["LOGGING__CONSOLE__FORMATTERNAME"] = "json"; 707context.EnvironmentVariables[DashboardConfigNames.DebugSessionPortName.EnvVarName] = port; 716context.EnvironmentVariables[DashboardConfigNames.DebugSessionTokenName.EnvVarName] = sessionToken; 724context.EnvironmentVariables[DashboardConfigNames.DebugSessionDcpInstanceIdName.EnvVarName] = sessionDcpInstanceIdPrefix + separator + "dashboard"; 728context.EnvironmentVariables[DashboardConfigNames.DebugSessionServerCertificateName.EnvVarName] = sessionCertificate; 732context.EnvironmentVariables[DashboardConfigNames.DebugSessionTelemetryOptOutName.EnvVarName] = optOutValue; 760context.EnvironmentVariables[configName.EnvVarName] = value; 822context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpGrpcUrlName.EnvVarName] = GetTargetUrlExpression(otlpGrpc); 828context.EnvironmentVariables[DashboardConfigNames.DashboardOtlpHttpUrlName.EnvVarName] = GetTargetUrlExpression(otlpHttp); 855context.EnvironmentVariables[DashboardConfigNames.DashboardFrontendPublicUrlName.EnvVarName] = publicEndpoint.Url; 859context.EnvironmentVariables[DashboardConfigNames.DashboardFrontendUrlName.EnvVarName] = aspnetCoreUrls.Build(); 916dashboardResourceTasks[notification.ResourceId] = WatchResourceLogsAsync(notification.ResourceId, loggerCache, defaultDashboardLogger, resourceLoggerService, loggerFactory, cancellationToken);
Dashboard\DashboardService.cs (1)
459values[field.Key] = ConvertArgumentValue(field.Key, field.Value);
Dashboard\DashboardServiceData.cs (1)
250submittedInputsByName[submittedInput.Name] = submittedInput;
Dashboard\ResourcePublisher.cs (1)
93_snapshot[snapshot.Name] = new SourceAndResourceSnapshot(source, snapshot);
Dcp\DcpExecutor.cs (3)
405objectsByName[name] = o; 563latest[obj.Metadata.Name] = obj; 575latest[observed.Metadata.Name] = observed;
Dcp\DcpHost.cs (1)
484loggerCache[hashValue] = logger = _loggerFactory.CreateLogger($"Aspire.Hosting.Dcp.{category}");
Dcp\DcpNameGenerator.cs (1)
138_networkServices[key] = uniqueName;
Dcp\DcpResourceWatcher.cs (4)
193resourceLogState[entry.ResourceName] = (logsAvailable, hasSubscribers); 728counts[key] = count + 1; 741_pendingFollowLogDeduplications[resourceName] = newPendingDeduplication; 782pendingDeduplication.Counts[key] = count - 1;
Health\ResourceHealthCheckService.cs (1)
51_resourceMonitoringStates[resourceName] = state;
IInteractionService.cs (1)
627inputsByName[input.Name] = input;
Orchestrator\ApplicationOrchestrator.cs (1)
92connectionProperties[property.Key] = await property.Value.GetValueAsync(token).ConfigureAwait(false);
OtlpConfigurationExtensions.cs (13)
78context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint] = dashboardEndpoint.Value.Endpoint; 79context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol] = dashboardEndpoint.Value.Protocol; 86context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint] = new HostUrl(url); 87context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol] = protocol; 91context.EnvironmentVariables[KnownOtelConfigNames.ResourceAttributes] = "service.instance.id={{- index .Annotations \"" + CustomResource.OtelServiceInstanceIdAnnotation + "\" -}}"; 92context.EnvironmentVariables[KnownOtelConfigNames.ServiceName] = "{{- index .Annotations \"" + CustomResource.OtelServiceNameAnnotation + "\" -}}"; 96context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpHeaders] = $"x-otlp-api-key={otlpApiKey}"; 105context.EnvironmentVariables[KnownOtelConfigNames.BlrpScheduleDelay] = value; 106context.EnvironmentVariables[KnownOtelConfigNames.BspScheduleDelay] = value; 107context.EnvironmentVariables[KnownOtelConfigNames.MetricExportInterval] = value; 110context.EnvironmentVariables[KnownOtelConfigNames.TracesSampler] = "always_on"; 112context.EnvironmentVariables[KnownOtelConfigNames.MetricsExemplarFilter] = "trace_based"; 119context.EnvironmentVariables[KnownOtelConfigNames.InstrumentationGenAiCaptureMessageContent] = "true";
Pipelines\DistributedApplicationPipeline.cs (6)
859stepCompletions[step.Name] = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); 1083visitStates[step.Name] = VisitState.Unvisited; 1106visitStates[stepName] = VisitState.Visiting; 1118visitStates[stepName] = VisitState.Visited; 1405result[step.Name] = new StepHierarchyInfo(parentStepName, executionLevels.GetValueOrDefault(step.Name)); 1431result[step.Name] = GetExecutionLevel(step, stepsByName);
Pipelines\Internal\DeploymentStateManagerBase.cs (2)
121_sections[sectionName] = metadata; 259_sections[section.SectionName] = new SectionMetadata(section.Version + 1);
ProjectResourceBuilderExtensions.cs (9)
580ctx.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPath] = ctx.PfxPath; 583ctx.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPassword] = ctx.Password; 608context.EnvironmentVariables[KnownAspNetCoreConfigNames.ForwardedHeadersEnabled] = "true"; 693launchDefaults.KestrelEndpointAnnotationHosts[e] = e.TargetHost; 729endpointCountByScheme[bindingAddress.Scheme] = count + 1; 1111context.EnvironmentVariables[KnownAspNetCoreConfigNames.HttpsPort] = e.Property(EndpointProperty.Port); 1123context.EnvironmentVariables[KnownAspNetCoreConfigNames.Urls] = aspnetCoreUrls.Build(); 1170context.EnvironmentVariables[portEnvVariable] = ports.Build(); 1199context.EnvironmentVariables[$"Kestrel__Endpoints__{e.EndpointAnnotation.Name}__Url"] = url;
Publishing\DockerContainerRuntime.cs (1)
97environmentVariables[buildSecret.Key.ToUpperInvariant()] = buildSecret.Value.Value;
Publishing\ManifestPublishingContext.cs (2)
779_formattedParameters[parameter] = formats; 785formats[format] = resourceName;
Publishing\PodmanContainerRuntime.cs (2)
123grouped[serviceName] = ports; 205environmentVariables[buildSecret.Key.ToUpperInvariant()] = buildSecret.Value.Value;
Publishing\ResourceContainerImageManager.cs (2)
466resolvedBuildArguments[buildArg.Key] = await ResolveValue(buildArg.Value, cancellationToken).ConfigureAwait(false); 475resolvedBuildSecrets[buildSecret.Key] = new BuildImageSecretValue(resolvedValue, secretType);
ResourceBuilderExtensions.cs (17)
296context.EnvironmentVariables[name] = expression; 335context.EnvironmentVariables[name] = value; 411context.EnvironmentVariables[name] = endpointReference; 451context.EnvironmentVariables[name] = externalService.Resource.UrlParameter; 477context.EnvironmentVariables[name] = parameter.Resource; 504context.EnvironmentVariables[envVarName] = new ConnectionStringReference(resource.Resource, optional: false); 553context.EnvironmentVariables[name] = value; 584context.EnvironmentVariables[name] = value; 841context.EnvironmentVariables[$"{EnvironmentVariableNameEncoder.Encode(serviceKey)}_{encodedEndpointName.ToUpperInvariant()}"] = endpoint; 863context.EnvironmentVariables[key] = endpoint; 864schemeIndexTracker[schemeKey] = index + 1; 1126context.EnvironmentVariables[connectionStringName] = new ConnectionStringReference(resource, optional); 1143context.EnvironmentVariables[$"{prefix}{annotation.Name.ToUpperInvariant()}"] = annotation.Value; 1156context.EnvironmentVariables[$"{prefix}{connectionProperty.Key.ToUpperInvariant()}"] = connectionProperty.Value; 1357context.EnvironmentVariables[discoveryEnvVarName] = externalService.Resource.UrlParameter; 1362context.EnvironmentVariables[endpointEnvVarName] = externalService.Resource.UrlParameter; 1672context.EnvironmentVariables[endpointAnnotation.TargetPortEnvironmentVariable!] = endpointReference.Property(EndpointProperty.TargetPort);
TerminalResourceBuilderExtensions.cs (3)
251ctx.EnvironmentVariables["ASPIRE_TERMINAL_HOST_LOG_LEVEL"] = hostLogLevel; 403context.EnvironmentVariables[KnownConfigNames.TerminalHostParentProcessId] = 405context.EnvironmentVariables[KnownConfigNames.TerminalHostParentProcessStartedStable] =
UserSecrets\UserSecretsManagerFactory.cs (2)
50_managerCache[normalizedPath] = manager; 182secrets[name] = value;
Aspire.Hosting.Azure (31)
AzureBicepResourceExtensions.cs (11)
104ctx.EnvironmentVariables[name] = bicepOutputReference; 135builder.Resource.Parameters[name] = null; 186builder.Resource.Parameters[name] = value; 203builder.Resource.Parameters[name] = value; 221builder.Resource.Parameters[name] = value; 239builder.Resource.Parameters[name] = valueCallback; 275builder.Resource.Parameters[name] = value; 295builder.Resource.Parameters[name] = value.Resource; 315builder.Resource.Parameters[name] = value; 335builder.Resource.Parameters[name] = value; 355builder.Resource.Parameters[name] = value;
AzureProvisioningController.cs (2)
1174bicepResource.Parameters[AzureBicepResource.KnownParameters.Location] = currentLocationOverride; 2757bicepResource.Parameters[AzureBicepResource.KnownParameters.Location] = normalizedLocation;
AzureProvisioningResourceExtensions.cs (5)
157infrastructure.AspireResource.Parameters[parameterName] = manifestExpressionProvider; 188infrastructure.AspireResource.Parameters[parameterName] = parameterResource; 218infrastructure.AspireResource.Parameters[parameterName] = outputReference; 245infrastructure.AspireResource.Parameters[parameterName] = endpointReference; 272infrastructure.AspireResource.Parameters[parameterName] = expression;
AzurePublishingContext.cs (5)
169moduleMap[resource] = module; 360outputs[bo.ValueExpression] = bo; 444OutputLookup[output] = bicepOutput; 445ReverseOutputLookup[bicepOutput.BicepIdentifier] = output; 470ParameterLookup[p] = pp;
AzureResourcePreparer.cs (2)
373result[g.Key] = g.SelectMany(r => r.Roles).Distinct(); 482globalRoleAssignments[azureResource] = existingRoles;
Provisioning\Provisioners\BicepProvisioner.cs (6)
106resource.Outputs[item.Key] = item.Value?.Prop("value")?.ToString(); 809resource.Outputs[item.Key] = item.Value?.Prop("value")?.ToString(); 1393resource.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = context.Principal.Id; 1400resource.Parameters[AzureBicepResource.KnownParameters.PrincipalName] = context.Principal.Name; 1413resource.Parameters[AzureBicepResource.KnownParameters.PrincipalType] = context.Principal.Type; 1418resource.Parameters[AzureBicepResource.KnownParameters.Location] = context.Location.Name;
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppEnvironmentResource.cs (1)
409VolumeNames[outputName] = volumeName;
AzureContainerAppExtensions.cs (2)
159environmentNames[environmentName] = new ManagedEnvironmentName(expression, namingMode); 480managedStorages[outputName] = containerAppStorage;
BaseContainerAppContext.cs (1)
172Volumes[volumeName] = (volume, storageName);
ContainerAppContext.cs (2)
231_endpointMapping[endpoint.Name] = new(scheme, NormalizedContainerAppName, port, targetPort, true, httpIngress.External, endpoint.TlsEnabled); 263_endpointMapping[endpoint.Name] = new(endpoint.UriScheme, NormalizedContainerAppName, resolved.ExposedPort.Value ?? g.Port.Value, g.Port.Value, false, g.External, endpoint.TlsEnabled);
ContainerAppEnvironmentContext.cs (1)
76_containerApps[resource] = context = CreateContainerAppContext(resource);
Aspire.Hosting.Azure.AppService (3)
AzureAppServiceEnvironmentContext.cs (1)
76_appServices[resource] = context = new AzureAppServiceWebsiteContext(resource, this);
AzureAppServiceWebsiteContext.cs (2)
140_endpointMapping[endpoint.Name] = new( 1010_slotEndpointMapping[name] = mapping with { Host = hostValue };
Aspire.Hosting.Azure.CosmosDB (5)
AzureCosmosDBExtensions.cs (5)
185ctx.EnvironmentVariables["PROTOCOL"] = "https"; 186ctx.EnvironmentVariables["EXPLORER_PROTOCOL"] = "https"; 187ctx.EnvironmentVariables["CERT_PATH"] = ctx.PfxPath; 190ctx.EnvironmentVariables["CERT_SECRET"] = ctx.Password; 198ctx.EnvironmentVariables["NODE_EXTRA_CA_CERTS"] = ctx.CertificateBundlePath;
Aspire.Hosting.Azure.EventHubs (3)
AzureEventHubsExtensions.cs (3)
306context.EnvironmentVariables["ACCEPT_EULA"] = "Y"; 307context.EnvironmentVariables["BLOB_SERVER"] = $"{blobEndpoint.Resource.Name}:{blobEndpoint.TargetPort}"; 308context.EnvironmentVariables["METADATA_SERVER"] = $"{tableEndpoint.Resource.Name}:{tableEndpoint.TargetPort}";
Aspire.Hosting.Azure.Functions (6)
AzureFunctionsProjectResourceExtensions.cs (5)
214context.EnvironmentVariables[KnownOtelConfigNames.DotnetExperimentalOtlpRetry] = "in_memory"; 215context.EnvironmentVariables["ASPNETCORE_FORWARDEDHEADERS_ENABLED"] = "true"; 216context.EnvironmentVariables["FUNCTIONS_WORKER_RUNTIME"] = "dotnet-isolated"; 218context.EnvironmentVariables["AzureFunctionsJobHost__telemetryMode"] = "OpenTelemetry"; 225context.EnvironmentVariables["ASPNETCORE_URLS"] = ReferenceExpression.Create($"http://+:{endpoint.Property(EndpointProperty.TargetPort)}");
DurableTask\DurableTaskResourceExtensions.cs (1)
191context.EnvironmentVariables["DTS_TASK_HUB_NAMES"] = namesBuilder.Build();
Aspire.Hosting.Azure.Kubernetes (17)
AzureKubernetesEnvironmentExtensions.cs (8)
100resource.Parameters["acrName"] = defaultRegistry.Resource.NameOutputReference; 304builder.Resource.AksParent.NodePoolSubnets[builder.Resource.Name] = subnet.Resource.Id; 358builder.Resource.Parameters["acrName"] = registry.Resource.NameOutputReference; 543aksResource.Parameters["subnetId"] = subnetAnnotation!.SubnetId; 553poolSubnetParams[poolName] = param; 554aksResource.Parameters[paramName] = poolSubnetRef; 762subnetExistingByKey[subnetIdentifier] = existingSubnet; 843aksResource.Parameters[identityParamName] = identityResource.PrincipalName;
AzureKubernetesEnvironmentResource.AksPipeline.cs (5)
96serviceAccount.Metadata.Annotations["azure.workload.identity/client-id"] = 98serviceAccount.Metadata.Labels["azure.workload.identity/use"] = "true"; 104kubeResource.Parameters["identityClientId"] = new KubernetesResource.HelmValue( 118podTemplate.Metadata.Labels["azure.workload.identity/use"] = "true"; 136WorkloadIdentities[r.Name] = appIdentity.IdentityResource;
AzureKubernetesIngressExtensions.cs (4)
172builder.Resource.GatewayAnnotations["alb.networking.azure.io/alb-name"] = 174builder.Resource.GatewayAnnotations["alb.networking.azure.io/alb-namespace"] = 207builder.Resource.IngressAnnotations["alb.networking.azure.io/alb-name"] = 209builder.Resource.IngressAnnotations["alb.networking.azure.io/alb-namespace"] =
Aspire.Hosting.Azure.Kubernetes.Tests (8)
AzureKubernetesInfrastructureTests.cs (4)
396aks.Resource.Outputs["name"] = clusterName; 496aks.Resource.Outputs["name"] = clusterName; 708aks.Resource.Outputs["name"] = clusterName; 777aks.Resource.Outputs["name"] = clusterName;
tests\Shared\InMemoryDeploymentStateManager.cs (4)
23_sections[name] = data; 24_versions[name] = 1; 39_sections[section.SectionName] = section.Data; 40_versions[section.SectionName] = section.Version + 1;
Aspire.Hosting.Azure.Network (1)
AzurePrivateEndpointExtensions.cs (1)
206dnsZone.VNetLinks[vnet] = vnetLink;
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresFlexibleServerResource.cs (2)
306propertiesDictionary["Username"] = ReferenceExpression.Create($"{UserNameParameter}"); 311propertiesDictionary["Password"] = ReferenceExpression.Create($"{PasswordParameter}");
Aspire.Hosting.Azure.ServiceBus (4)
AzureServiceBusExtensions.cs (4)
439context.EnvironmentVariables["MSSQL_SA_PASSWORD"] = passwordParameter; 447context.EnvironmentVariables["ACCEPT_EULA"] = "Y"; 448context.EnvironmentVariables["SQL_SERVER"] = $"{sqlEndpoint.Resource.Name}:{sqlEndpoint.TargetPort}"; 449context.EnvironmentVariables["MSSQL_SA_PASSWORD"] = passwordParameter;
Aspire.Hosting.Azure.Tests (123)
AzureAppConfigurationExtensionsTests.cs (1)
19appConfig.Resource.Outputs["appConfigEndpoint"] = "https://myendpoint";
AzureApplicationInsightsExtensionsTests.cs (4)
19appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 40appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 69appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 90appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey";
AzureAppServiceTests.cs (5)
390project.Outputs["endpoint"] = "https://account.services.ai.azure.com/api/projects/my-project"; 391project.Outputs["APPLICATION_INSIGHTS_CONNECTION_STRING"] = ""; 476context.EnvironmentVariables["CUSTOM_VALUE"] = customProvider; 1142env.Resource.Outputs["webSiteSuffix"] = "website123"; 1377context.EnvironmentVariables["FEATURE_MODE"] = conditional;
AzureBicepProvisionerTests.cs (13)
126resource.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = null; 127resource.Parameters[AzureBicepResource.KnownParameters.PrincipalName] = null; 128resource.Parameters[AzureBicepResource.KnownParameters.PrincipalType] = null; 165resource.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = null; 166resource.Parameters[AzureBicepResource.KnownParameters.PrincipalName] = null; 167resource.Parameters[AzureBicepResource.KnownParameters.PrincipalType] = null; 425resource.Parameters[AzureBicepResource.KnownParameters.Location] = "australiacentral"; 661resource.Parameters[AzureBicepResource.KnownParameters.Location] = "westus3"; 932resource.Parameters[AzureBicepResource.KnownParameters.Location] = "westus3"; 1186resource.Parameters[AzureBicepResource.KnownParameters.Location] = "australiacentral"; 1379resource.Parameters["sku"] = "Standard_LRS"; 1703resource.Parameters["sku"] = "Standard_LRS"; 1764resource.Parameters[AzureBicepResource.KnownParameters.Location] = "westus2";
AzureBicepResourceTests.cs (2)
131bicepResource.Resource.Outputs["resourceEndpoint"] = "https://myendpoint"; 143bicepResource.Resource.SecretOutputs["connectionString"] = "https://myendpoint;Key=43";
AzureContainerAppsTests.cs (26)
172project.Outputs["endpoint"] = "https://account.services.ai.azure.com/api/projects/my-project"; 173project.Outputs["APPLICATION_INSIGHTS_CONNECTION_STRING"] = ""; 366context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 367context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 368context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 369context.EnvironmentVariables["TARGET_PORT"] = httpEp.Property(EndpointProperty.TargetPort); 370context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port); 371context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 372context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 373context.EnvironmentVariables["SCHEME"] = httpEp.Property(EndpointProperty.Scheme); 374context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 443context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 444context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 445context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 446context.EnvironmentVariables["TARGET_PORT"] = httpEp.Property(EndpointProperty.TargetPort); 447context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port); 448context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 449context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 450context.EnvironmentVariables["SCHEME"] = httpEp.Property(EndpointProperty.Scheme); 451context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 846context.EnvironmentVariables["secret0"] = resource.GetSecretOutput("myconnection"); 1713context.EnvironmentVariables["CUSTOM_VALUE"] = customProvider; 2744env.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"] = "example.azurecontainerapps.io"; 3024context.EnvironmentVariables["FEATURE_MODE"] = conditional; 3065context.EnvironmentVariables["FEATURE_CONNECTION"] = conditional; 3112context.EnvironmentVariables["NESTED_FEATURE"] = outerConditional;
AzureCosmosDBExtensionsTests.cs (2)
406cosmos.Resource.Outputs["connectionString"] = "mycosmosconnectionstring"; 510cosmos.Resource.Outputs["connectionString"] = "mycosmosconnectionstring";
AzureEnvironmentResourceExtensionsTests.cs (19)
328storage.Resource.Outputs["blobEndpoint"] = "https://storage.blob.core.windows.net/"; 1784storage.Resource.Outputs["blobEndpoint"] = "https://storage.blob.core.windows.net/"; 1785storage2.Resource.Outputs["blobEndpoint"] = "https://storage2.blob.core.windows.net/"; 2095storage.Resource.Outputs["blobEndpoint"] = "https://storage.blob.core.windows.net/"; 2096storage2.Resource.Outputs["blobEndpoint"] = "https://storage2.blob.core.windows.net/"; 3807storage.Parameters[AzureBicepResource.KnownParameters.Location] = "westus3"; 4700storage.Outputs["name"] = "storage"; 4735storage.Outputs["name"] = "storage"; 5407_sections[section.SectionName] = section.Data.DeepClone().AsObject(); 5485_provisionedLocations[resource.Name] = resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.Location, out var location) 5490resource.Outputs["blobEndpoint"] = "https://storage.blob.core.windows.net/"; 5507resource.Outputs["blobEndpoint"] = "https://storage.blob.core.windows.net/"; 5619resource.Outputs["blobEndpoint"] = $"https://{resource.Name}.blob.core.windows.net/"; 5736resource.Outputs["id"] = keyVaultResourceId; 5798resource.Outputs["id"] = $"/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/test-rg/providers/Microsoft.Test/resources/{resource.Name}"; 5799resource.Outputs["name"] = resource.Name; 5800resource.Outputs["vaultUri"] = $"https://{resource.Name}.vault.azure.net/"; 5801resource.Outputs["connectionString"] = $"Host={resource.Name}.postgres.database.azure.com"; 5802resource.Outputs["hostName"] = $"{resource.Name}.postgres.database.azure.com";
AzureKustoExtensionsTests.cs (1)
20kusto.Resource.Outputs["clusterUri"] = "https://kusto-cluster.eastus.kusto.windows.net";
AzurePostgresExtensionsTests.cs (2)
450azurePostgres.SecretOutputs["connectionString"] = "myconnectionstring"; 493azurePostgres.SecretOutputs["connectionString"] = "myconnectionstring";
AzureResourcePreparerTests.cs (2)
400context.EnvironmentVariables["NULL_ENV"] = null!; 401context.EnvironmentVariables["VALID_ENV"] = "valid_value";
AzureSearchExtensionsTests.cs (1)
30search.Resource.Outputs["connectionString"] = fakeConnectionString;
AzureServiceBusExtensionsTests.cs (1)
752serviceBus.Resource.Outputs["serviceBusEndpoint"] = "mynamespaceEndpoint";
AzureSqlExtensionsTests.cs (2)
252azureSql.Outputs["sqlServerFqdn"] = "myserver"; 283azureSql.Outputs["sqlServerFqdn"] = "myserver";
AzureStorageExtensionsTests.cs (16)
203storage.Resource.Outputs["blobEndpoint"] = blobsConnectionString; 257storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 309storage.Resource.Outputs["queueEndpoint"] = connectionString; 361storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 456storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 457storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 458storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 541storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 542storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 543storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 629storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 630storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 631storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 760storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 761storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 762storage.Resource.Outputs["tableEndpoint"] = "https://mytable";
AzureWebPubSubExtensionsTests.cs (4)
158wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint"; 193wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint"; 272wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint"; 332wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint";
BicepUtilitiesTests.cs (6)
315bicep.Parameters["normalParam"] = "normalValue"; 316bicep.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = "someId"; 317bicep.Parameters[AzureBicepResource.KnownParameters.Location] = "someLocation"; 460bicep.Parameters["param1"] = "value1"; 524bicep.Parameters[AzureBicepResource.KnownParameters.PrincipalType] = null; 525bicep.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = null;
DefaultArmClientProviderTests.cs (2)
877_headers[name] = values; 891=> _headers[name] = [value];
DefaultAzurePrincipalProviderTests.cs (3)
332payload["upn"] = upn; 336payload["email"] = email; 340payload["idtyp"] = idtyp;
FoundryExtensionsTests.cs (7)
328environment.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"] = "example.azurecontainerapps.io"; 388context.EnvironmentVariables["WEATHER_HEALTH_URL"] = ReferenceExpression.Create($"{weatherAgent.GetEndpoint("http")}/health"); 398environment.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"] = "example.azurecontainerapps.io"; 429context.EnvironmentVariables["WEATHER_HOST_AND_PORT"] = weatherAgent.GetEndpoint("http").Property(EndpointProperty.HostAndPort); 439environment.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"] = "example.azurecontainerapps.io"; 497project.Outputs["endpoint"] = "https://account.services.ai.azure.com/api/projects/my-project"; 498project.Outputs["APPLICATION_INSIGHTS_CONNECTION_STRING"] = "";
tests\Shared\InMemoryDeploymentStateManager.cs (4)
23_sections[name] = data; 24_versions[name] = 1; 39_sections[section.SectionName] = section.Data; 40_versions[section.SectionName] = section.Version + 1;
Aspire.Hosting.Azure.WebPubSub (2)
AzureWebPubSubExtensions.cs (2)
136resource.Parameters[parameter.BicepIdentifier] = urlExpression; 193builder.Resource.Hubs[hubName] = hubResource;
Aspire.Hosting.Blazor (8)
BlazorGatewayExtensions.cs (7)
377context.EnvironmentVariables["staticWebAssets"] = mergedRuntimePath; 462context.EnvironmentVariables[$"{envPrefix}__PathPrefix"] = reg.PathPrefix; 463context.EnvironmentVariables[$"{envPrefix}__EndpointsManifest"] = $"/app/{reg.PathPrefix}.endpoints.json"; 464context.EnvironmentVariables[$"{envPrefix}__ConfigEndpointPath"] = $"{reg.PathPrefix}/_blazor/_configuration"; 521context.EnvironmentVariables[$"{envPrefix}__PathPrefix"] = reg.PathPrefix; 522context.EnvironmentVariables[$"{envPrefix}__EndpointsManifest"] = destEndpoints; 523context.EnvironmentVariables[$"{envPrefix}__ConfigEndpointPath"] = $"{reg.PathPrefix}/_blazor/_configuration";
Manifests\EndpointsManifestTransformer.cs (1)
111mergedChildren[prefix] = new AssetNode { Children = appChildren };
Aspire.Hosting.Browsers (9)
BrowserHostRegistry.cs (1)
98_hosts[identity] = new BrowserHostEntry(host, userDataDirectory.ProfileDirectoryName, ReferenceCount: 1);
BrowserLogsCdpProtocol.cs (1)
920properties[propertyName] = ReadValue(ref reader, options);
BrowserLogsConfigurationManager.cs (2)
234options[browserProfile.DirectoryName] = FormatProfileOption(browserProfile); 249options[profile] = profile;
BrowserLogsConfigurationStore.cs (1)
38_resourceConfigurations[resourceName] = configuration;
BrowserLogsEventLogger.cs (1)
121_networkRequests[requestId] = new BrowserNetworkRequestState
BrowserLogsSessionManager.cs (1)
148resourceState.ActiveSessions[session.SessionId] = new ActiveBrowserSession(
ChromiumBrowserResolver.cs (2)
199profiles[directoryName] = new ChromiumBrowserProfile(directoryName, DisplayName: null, ShortcutName: null); 297profiles[profileEntry.Name] = new ChromiumBrowserProfile(
Aspire.Hosting.Browsers.Tests (10)
BrowserLogsBuilderExtensionsTests.cs (1)
1956Secrets[name] = value;
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
98_hosts[identity] = new BrowserHostEntry(host, userDataDirectory.ProfileDirectoryName, ReferenceCount: 1);
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
920properties[propertyName] = ReadValue(ref reader, options);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (2)
234options[browserProfile.DirectoryName] = FormatProfileOption(browserProfile); 249options[profile] = profile;
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationStore.cs (1)
38_resourceConfigurations[resourceName] = configuration;
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (1)
121_networkRequests[requestId] = new BrowserNetworkRequestState
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
148resourceState.ActiveSessions[session.SessionId] = new ActiveBrowserSession(
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (2)
199profiles[directoryName] = new ChromiumBrowserProfile(directoryName, DisplayName: null, ShortcutName: null); 297profiles[profileEntry.Name] = new ChromiumBrowserProfile(
Aspire.Hosting.CodeGeneration.Go (17)
AtsGoCodeGenerator.cs (14)
132_enumNames[enumType.TypeId] = ReserveName(SanitizeIdentifier(enumType.Name), takenLowercase: false); 141_dtoNames[dto.TypeId] = ReserveName(SanitizeIdentifier(dto.Name), takenLowercase: false); 157_isInterfaceType[handleType.AtsTypeId] = handleType.IsInterface; 158_isResourceBuilder[handleType.AtsTypeId] = handleType.IsResourceBuilder; 230_interfaceNames[typeId] = interfaceName; 233_implNames[typeId] = ToCamelCase(interfaceName); 272optionsNameFirstCapability[simpleName] = capability; 293optionsNameFirstCapability[resolvedName] = capability; 302optionsNameFirstCapability[resolvedName] = capability; 305_optionsTypeNames[capability.CapabilityId] = resolvedName; 400result[capability.TargetTypeId] = list; 445result[targetType.TypeId] = list; 742current.Children[segment] = child; 1658seenForCapability[capability.CapabilityId] = name;
GoLanguageSupport.cs (3)
36files["apphost.go"] = """ 72files["go.mod"] = """ 92files["apphost.run.json"] = $$"""
Aspire.Hosting.CodeGeneration.Java (18)
AtsJavaCodeGenerator.cs (14)
59files["sources.txt"] = string.Join( 593_enumNames[enumType.TypeId] = SanitizeIdentifier(enumType.Name); 599_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 917current.Children[segment] = child; 952_capabilityOptionsClassMap[capabilityId] = baseClassName; 961_optionsClassesToGenerate[suffixedName] = [.. optionalParameters]; 962_capabilityOptionsClassMap[capabilityId] = suffixedName; 968_capabilityOptionsClassMap[capabilityId] = suffixedName; 974_optionsClassesToGenerate[baseClassName] = [.. optionalParameters]; 975_capabilityOptionsClassMap[capabilityId] = baseClassName; 2370_classNames[typeId] = CreateClassName(typeId); 2447result[targetType.TypeId] = list; 2636typeIds[typeRef.TypeId] = false; // false = List 2643typeIds[typeRef.TypeId] = true; // true = Dict
JavaLanguageSupport.cs (4)
50files[".gitignore"] = """ 55files["AppHost.java"] = """ 82files["apphost.run.json"] = $$""" 104files[".vscode/settings.json"] = """
Aspire.Hosting.CodeGeneration.Python (24)
AtsPythonCodeGenerator.cs (20)
412_mergedCapabilityDispatches[baseCapabilityId] = new MergedCapabilityDispatch(alternateCapabilityId, extraParamName); 641files["aspire_app.py"] = GenerateAspireSdk(context); 642files["pyproject.toml"] = GetEmbeddedResource("pyproject.toml"); 758_enumTypeNames[enumType.TypeId] = ExtractSimpleTypeName(enumType.TypeId); 775_wrapperClassNames[resource.TypeId] = resource.BuilderClassName; 984current.Children[segment] = child; 1023_moduleBuilder.TypeClasses[className] = sb; 1047_moduleBuilder.HandleRegistrations[model.TypeId] = className; 1379_moduleBuilder.InterfaceClasses[builder.BuilderClassName] = sb; 1439_moduleBuilder.ResourceClasses[builder.BuilderClassName] = sb; 1440_moduleBuilder.ResourceOptions[builder.BuilderClassName] = sbOptions; 1441_moduleBuilder.HandleRegistrations[builder.TypeId] = builder.BuilderClassName; 1533_moduleBuilder.ResourceOptionNames[builder.BuilderClassName] = optionNames; 1856interfaceCapabilities[targetTypeId] = interfaceList; 1857typeRefsByTypeId[targetTypeId] = targetTypeRef; 1871capabilitiesByTypeId[expandedType.TypeId] = list; 1872typeRefsByTypeId[expandedType.TypeId] = expandedType; 1884capabilitiesByTypeId[targetTypeId] = list; 1885typeRefsByTypeId[targetTypeId] = targetTypeRef; 2454_moduleBuilder.MethodParameters[methodName] = parameters;
PythonLanguageSupport.cs (4)
69files["apphost.py"] = """ 83files["pylock.apphost.toml"] = $$""" 97files["apphost_requirements.txt"] = """ 114files["apphost.run.json"] = $$"""
Aspire.Hosting.CodeGeneration.Rust (8)
AtsRustCodeGenerator.cs (5)
90_enumNames[enumType.TypeId] = SanitizeIdentifier(enumType.Name); 96_dtoNames[dto.TypeId] = SanitizeIdentifier(dto.Name); 332current.Children[segment] = child; 814_structNames[typeId] = CreateStructName(typeId); 866result[targetType.TypeId] = list;
RustLanguageSupport.cs (3)
39files[AppHostFileName] = """ 62files["Cargo.toml"] = """ 96files["apphost.run.json"] = $$"""
Aspire.Hosting.CodeGeneration.TypeScript (41)
AtsTypeScriptCodeGenerator.cs (3)
428files["transport.mts"] = EmbeddedResources.Read("transport.mts"); 429files["base.mts"] = EmbeddedResources.Read("base.mts"); 432files["aspire.mts"] = GenerateAspireSdk(context);
TypeScriptApiProjector.cs (32)
189_dtoTypesById[dtoType.TypeId] = dtoType; 196_handleDocumentationById[handleType.AtsTypeId] = handleType.Documentation; 202_wrapperClassNames[builder.TypeId] = builder.BuilderClassName; 203_concreteTypeIds[builder.TypeId] = builder.TypeId; 206_typeRefsById[builder.TypeId] = targetType; 223_wrapperClassNames[alias.TypeId] = builder.BuilderClassName; 224_concreteTypeIds[alias.TypeId] = builder.TypeId; 225_typeRefsById[alias.TypeId] = builder.TargetType ?? alias; 233_wrapperClassNames[typeClass.TypeId] = DeriveClassName(typeClass.TypeId); 234_concreteTypeIds[typeClass.TypeId] = typeClass.TypeId; 237_typeRefsById[typeClass.TypeId] = targetType; 264_enumTypeNames[InputTypeTypeId] = GetInputTypeEnumName(); 267_enumTypeNames[enumType.TypeId] = enumType.Name; 476declarations[declaration.Id] = declaration; 495declarations[declaration.Id] = declaration; 505declarations[declaration.Id] = declaration; 520declarations[declaration.Id] = declaration; 552declarations[declaration.Id] = declaration; 564declarations[declaration.Id] = declaration; 605declarations[$"{owningAssembly}:handle:{handleName}"] = new TypeScriptApiDeclaration 627declarations[$"{owningAssembly}:opaque:{name}"] = new TypeScriptApiDeclaration 645declarations[$"{owningAssembly}:opaque:{promiseName}"] = new TypeScriptApiDeclaration 935current.Children[segment] = child; 2212_optionsInterfacesToGenerate[interfaceName] = [.. optionalParams]; 2215_capabilityOptionsInterfaceMap[capabilityId] = interfaceName; 2216_optionsInterfaceOwningAssemblies[interfaceName] = owningAssemblyName; 2612capabilitiesByTypeId[expandedType.TypeId] = list; 2614typeRefsByTypeId[expandedType.TypeId] = expandedType; 2625interfaceCapabilities[targetTypeId] = interfaceList; 2627typeRefsByTypeId[targetTypeId] = targetTypeRef; 2638capabilitiesByTypeId[targetTypeId] = list; 2640typeRefsByTypeId[targetTypeId] = targetTypeRef;
TypeScriptLanguageSupport.cs (6)
68files[AppHostFileName] = """ 83files[".gitignore"] = """ 88files[PackageJsonFileName] = CreatePackageJson(request); 91files[EslintConfigFileName] = s_eslintConfigContent; 94files[AppHostTsConfigFileName] = s_appHostTsConfigContent; 104files["apphost.run.json"] = $$"""
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
1315constructorHandleTypes[match.Groups[1].Value] = match.Groups[2].Value;
Aspire.Hosting.DevTunnels (3)
DevTunnelResourceBuilderExtensions.cs (3)
517context.EnvironmentVariables[key] = port.TunnelEndpoint; 518schemeIndexTracker[schemeKey] = index + 1; 524context.EnvironmentVariables[endpointKey] = port.TunnelEndpoint;
Aspire.Hosting.Docker (13)
DockerComposeEnvironmentContext.cs (1)
22environment.ResourceMapping[resource] = serviceResource;
DockerComposeEnvironmentResource.cs (4)
393context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint] = otlpEndpoint; 394context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol] = "grpc"; 395context.EnvironmentVariables[KnownOtelConfigNames.ServiceName] = resource.Name; 555CapturedEnvironmentVariables[name] = new CapturedEnvironmentVariable
DockerComposeResourceExtensions.cs (1)
175composeFile.Secrets[name] = secret;
DockerComposeServiceResource.cs (2)
193composeService.DependsOn[waitAnnotation.Resource.Name.ToLowerInvariant()] = new() 225env[kv.Key] = value?.ToString() ?? string.Empty;
Resources\ComposeFile.cs (4)
117Networks[network.Name] = network; 128Services[service.Name] = service; 139Volumes[volume.Name] = volume; 150Configs[config.Name] = config;
Resources\ComposeNodes\Service.cs (1)
505Environment[key] = value ?? string.Empty;
Aspire.Hosting.Docker.Tests (19)
DockerComposePublisherTests.cs (8)
68context.EnvironmentVariables["TP"] = resource.GetEndpoint("http").Property(EndpointProperty.TargetPort); 69context.EnvironmentVariables["TPH2"] = resource.GetEndpoint("h2").Property(EndpointProperty.TargetPort); 224composeService.Labels["custom-label"] = "test-value"; 305context.EnvironmentVariables[param.Name] = param; 767context.EnvironmentVariables["MY_VAR"] = new TestConditionProvider("resolved-value"); 1068context.EnvironmentVariables["TLS_SUFFIX"] = conditional; 1076context.EnvironmentVariables["TLS_SUFFIX_FALSE"] = conditionalFalse; 1110context.EnvironmentVariables["TLS_SUFFIX"] = conditional;
DockerComposeResourceExtensionsTests.cs (6)
18network.Labels["purpose"] = "validation"; 53volume.DriverOpts["type"] = "none"; 54volume.Labels["purpose"] = "validation"; 73config.Labels["purpose"] = "validation"; 92secret.Labels["purpose"] = "validation"; 110volume.Labels["purpose"] = "validation";
DockerComposeTests.cs (1)
670acr.Resource.Outputs["loginServer"] = "myacr.azurecr.io";
tests\Shared\InMemoryDeploymentStateManager.cs (4)
23_sections[name] = data; 24_versions[name] = 1; 39_sections[section.SectionName] = section.Data; 40_versions[section.SectionName] = section.Version + 1;
Aspire.Hosting.EntityFrameworkCore (10)
EFCoreOperationExecutor.cs (9)
575args["--output-dir"] = outputDir; 580args["--namespace"] = @namespace; 705args["--idempotent"] = null; 710args["--no-transactions"] = null; 715args["--output"] = outputPath; 736args["--output"] = outputPath; 741args["--target-runtime"] = targetRuntime; 746args["--self-contained"] = null; 750args["--force"] = null;
EFMigrationResourceBuilderExtensions.cs (1)
340context.EnvironmentVariables[envVar] = new ConnectionStringReference(connectionStringResource, optional: false);
Aspire.Hosting.Foundry (5)
HostedAgent\AzureHostedAgentResource.cs (4)
346resolvedEnvVars[key] = string.Empty; 349resolvedEnvVars[key] = s; 352resolvedEnvVars[key] = await ResolveValueProviderAsync(provider, context, hostedAgent, resource, key, cancellationToken).ConfigureAwait(false) ?? string.Empty; 355resolvedEnvVars[key] = f.ToString(null, CultureInfo.InvariantCulture);
HostedAgent\HostedAgentBuilderExtension.cs (1)
415ctx.EnvironmentVariables["OTEL_EXPORTER_ENDPOINT"] = endpointVar.Value;
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
717project.Outputs["endpoint"] = "https://account.services.ai.azure.com/api/projects/my-project"; 718project.Outputs["APPLICATION_INSIGHTS_CONNECTION_STRING"] = "";
PromptAgentTests.cs (1)
92project.Resource.Outputs["endpoint"] = "https://account.services.ai.azure.com/api/projects/my-project";
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
141context.EnvironmentVariables["GARNET_PASSWORD"] = password;
Aspire.Hosting.Java (4)
JavaHostingExtensions.cs (4)
518context.EnvironmentVariables[quarkusName] = value; 1603environmentVariables[JavaToolOptions] = appended; 1607environmentVariables[JavaToolOptions] = existing switch 2196attributes[name] = value.ToString();
Aspire.Hosting.JavaScript (13)
JavaScriptHostingExtensions.cs (13)
315ctx.EnvironmentVariables["NODE_EXTRA_CA_CERTS"] = ctx.CertificateBundlePath; 321ctx.EnvironmentVariables["NODE_OPTIONS"] = existingOptionsObj switch 331ctx.EnvironmentVariables["NODE_OPTIONS"] = "--use-openssl-ca"; 752ctx.EnvironmentVariables["NODE_EXTRA_CA_CERTS"] = ctx.CertificateBundlePath; 763ctx.EnvironmentVariables["NODE_OPTIONS"] = existingOptionsObj switch 772ctx.EnvironmentVariables["NODE_OPTIONS"] = "--use-openssl-ca"; 950ctx.EnvironmentVariables["YARP_ENABLE_STATIC_FILES"] = "true"; 959ctx.EnvironmentVariables["REVERSEPROXY__ROUTES__api__CLUSTERID"] = "api"; 960ctx.EnvironmentVariables["REVERSEPROXY__ROUTES__api__MATCH__PATH"] = $"{apiPath}/{{**catch-all}}"; 961ctx.EnvironmentVariables["REVERSEPROXY__CLUSTERS__api__DESTINATIONS__destination1__ADDRESS"] = destinationAddress; 965ctx.EnvironmentVariables["REVERSEPROXY__ROUTES__api__TRANSFORMS__0__PATHREMOVEPREFIX"] = apiPath; 1595ctx.EnvironmentVariables["TLS_CONFIG_PFX"] = ctx.PfxPath; 1598ctx.EnvironmentVariables["TLS_CONFIG_PASSWORD"] = ctx.Password;
Aspire.Hosting.JavaScript.Tests (1)
AddViteAppTests.cs (1)
934configPaths[resourceName] = Assert.IsType<string>(args[configIndex + 1]);
Aspire.Hosting.Kafka (6)
KafkaBuilderExtensions.cs (6)
148context.EnvironmentVariables[$"KAFKA_CLUSTERS_{index}_NAME"] = endpoint.Resource.Name; 149context.EnvironmentVariables[$"KAFKA_CLUSTERS_{index}_BOOTSTRAPSERVERS"] = bootstrapServers; 216context.EnvironmentVariables[$"KAFKA_LISTENERS"] = $"PLAINTEXT://localhost:29092,CONTROLLER://localhost:29093,PLAINTEXT_HOST://0.0.0.0:{KafkaBrokerPort},PLAINTEXT_INTERNAL://0.0.0.0:{KafkaInternalBrokerPort}"; 218context.EnvironmentVariables["KAFKA_LISTENER_SECURITY_PROTOCOL_MAP"] = "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT"; 231context.EnvironmentVariables["KAFKA_ADVERTISED_LISTENERS"] = advertisedListeners; 240context.EnvironmentVariables["KAFKA_LOG_DIRS"] = Target;
Aspire.Hosting.Keycloak (11)
KeycloakResourceBuilderExtensions.cs (11)
81context.EnvironmentVariables[AdminEnvVarName] = resource.AdminReference; 82context.EnvironmentVariables[AdminPasswordEnvVarName] = resource.AdminPasswordParameter; 83context.EnvironmentVariables[HealthCheckEnvVarName] = "true"; 86context.EnvironmentVariables[EnabledFeaturesEnvVarName] = string.Join(',', resource.EnabledFeatures); 90context.EnvironmentVariables[DisabledFeaturesEnvVarName] = string.Join(',', resource.DisabledFeatures); 98ctx.EnvironmentVariables["KC_HTTPS_CERTIFICATE_FILE"] = ctx.CertificatePath; 99ctx.EnvironmentVariables["KC_HTTPS_CERTIFICATE_KEY_FILE"] = ctx.KeyPath; 103ctx.EnvironmentVariables["KC_HTTPS_KEY_STORE_FILE"] = ctx.PfxPath; 104ctx.EnvironmentVariables["KC_HTTPS_KEY_STORE_TYPE"] = "pkcs12"; 105ctx.EnvironmentVariables["KC_HTTPS_KEY_STORE_PASSWORD"] = ctx.Password; 120context.EnvironmentVariables["KC_HTTPS_PORT"] = keycloak.GetEndpoint(KeycloakResource.PrimaryEndpointName).Property(EndpointProperty.TargetPort);
Aspire.Hosting.Kubernetes (45)
Deployment\HelmDeploymentEngine.cs (4)
314resolvedLookup[$"{captured.Section}.{captured.ResourceKey}.{captured.ValueKey}"] = resolvedValue; 374overrideValues[section] = sectionDict; 380sectionDict[resourceKey] = resourceValues; 383resourceValues[valueKey] = value;
Extensions\ResourceExtensions.cs (3)
90secret.StringData[kvp.Key] = expression.EnsureStringOutput(); 122configMap.Data[kvp.Key] = expression.EnsureStringOutput(); 223bindingsByVolumeName[binding.Volume.Name] = binding;
KubernetesEnvironmentContext.cs (1)
25_kubernetesComponents[resource] = serviceResource;
KubernetesEnvironmentResource.cs (8)
490deploymentTargets[r] = existingServiceResource; 537deploymentTargets[r] = serviceResource; 576context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint] = otlpEndpoint; 577context.EnvironmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol] = "grpc"; 578context.EnvironmentVariables[KnownOtelConfigNames.ServiceName] = resource.Name; 774ingress.Metadata.Annotations[key] = await ResolveExpressionAsync(value, ingressResource.Name, cancellationToken).ConfigureAwait(false); 1013claim.Metadata.Annotations[key] = await ResolveExpressionAsync(value, volumeResource.Name, cancellationToken).ConfigureAwait(false); 1095gateway.Metadata.Annotations[key] = await ResolveExpressionAsync(value, gatewayResource.Name, cancellationToken).ConfigureAwait(false);
KubernetesGatewayExtensions.cs (2)
303builder.Resource.GatewayAnnotations[key] = ReferenceExpression.Create($"{value}"); 325builder.Resource.GatewayAnnotations[key] = ReferenceExpression.Create($"{value.Resource}");
KubernetesHelmChartExtensions.cs (1)
154builder.Resource.Values[key] = value;
KubernetesIngressExtensions.cs (2)
352builder.Resource.IngressAnnotations[key] = ReferenceExpression.Create($"{value}"); 374builder.Resource.IngressAnnotations[key] = ReferenceExpression.Create($"{value.Resource}");
KubernetesManifestResource.cs (5)
52Metadata.Labels[key] = value; 69Metadata.Annotations[key] = value; 133current[segment] = childFields; 138current[segments[^1]] = value; 246result[key] = NormalizeManifestValue(entry.Value);
KubernetesPersistentVolumeExtensions.cs (2)
195builder.Resource.VolumeAnnotations[key] = ReferenceExpression.Create($"{value}"); 218builder.Resource.VolumeAnnotations[key] = ReferenceExpression.Create($"{value.Resource}");
KubernetesPublishingContext.cs (6)
179section[captured.ResourceKey] = resourceSection; 239result[valuesKey] = value; 280paramValues[valuesKey] = string.Empty; 343paramValues[valuesKey] = value ?? string.Empty; 362helmSection[resource.Name.ToHelmValuesSectionName()] = paramValues; 476podSpec.NodeSelector[nodePool.NodeSelectorLabelKey] = nodePool.Name;
KubernetesResource.cs (11)
215Parameters[imageEnvName] = expression; 256EndpointMappings[endpoint.Name] = new(endpoint.UriScheme, GetKubernetesProtocolName(endpoint.Protocol), resource.Name.ToServiceName(), httpMapping.Port, endpoint.Name); 276EndpointMappings[endpoint.Name] = new(endpoint.UriScheme, GetKubernetesProtocolName(endpoint.Protocol), resource.Name.ToServiceName(), HelmValue.Literal(portValue), endpoint.Name, ServicePort: servicePort); 290Parameters[paramName] = helmValue; 291EndpointMappings[endpoint.Name] = new(endpoint.UriScheme, GetKubernetesProtocolName(endpoint.Protocol), resource.Name.ToServiceName(), helmValue, endpoint.Name); 454Secrets[key] = new(key.ToHelmSecretExpression(TargetResource.Name), secretValue); 457Secrets[key] = helmExpression; 460EnvironmentVariables[key] = helmExpression; 475Secrets[key] = new(secretExpression, stringValue); 480EnvironmentVariables[key] = new(configExpression, stringValue); 486EnvironmentVariables[key] = new(configExpression, value.ToString() ?? string.Empty);
Aspire.Hosting.Kubernetes.Tests (22)
KubernetesDeployTests.cs (3)
1436context.EnvironmentVariables["CACHE_PASSWORD"] = ReferenceExpression.Create($"{cachePassword.Resource}"); 1647context.EnvironmentVariables["TLS_SUFFIX"] = ReferenceExpression.CreateConditional( 1691context.EnvironmentVariables["DEFERRED_VALUE"] = provider;
KubernetesPublisherTests.cs (15)
998context.EnvironmentVariables["FIRST"] = ReferenceExpression.CreateConditional( 1003context.EnvironmentVariables["SECOND"] = ReferenceExpression.CreateConditional( 1126context.EnvironmentVariables["TLS_SUFFIX"] = conditional; 1134context.EnvironmentVariables["TLS_SUFFIX_FALSE"] = conditionalFalse; 1185context.EnvironmentVariables["OPTIONS"] = ReferenceExpression.CreateConditional( 1241context.EnvironmentVariables["TLS_SUFFIX"] = conditional; 1306context.EnvironmentVariables["TLS_SUFFIX"] = conditional; 1353context.EnvironmentVariables["BOOL_TRUE"] = true; 1354context.EnvironmentVariables["BOOL_FALSE"] = false; 1355context.EnvironmentVariables["INT_VALUE"] = 42; 1356context.EnvironmentVariables["DOUBLE_VALUE"] = 3.14; 1357context.EnvironmentVariables["DATETIMEOFFSET_VALUE"] = new DateTimeOffset(2024, 1, 2, 3, 4, 5, TimeSpan.Zero); 1358context.EnvironmentVariables["TIMESPAN_VALUE"] = TimeSpan.FromMinutes(90); 1359context.EnvironmentVariables["URI_VALUE"] = new Uri("https://example.com/path"); 1361context.EnvironmentVariables["NULLABLE_INT_WITH_VALUE"] = nullableIntWithValue!;
tests\Shared\InMemoryDeploymentStateManager.cs (4)
23_sections[name] = data; 24_versions[name] = 1; 39_sections[section.SectionName] = section.Data; 40_versions[section.SectionName] = section.Version + 1;
Aspire.Hosting.Maui (10)
MauiAndroidExtensions.cs (4)
180msBuildProperties[KnownMauiMSBuildProperties.AdbTarget] = $"-s {deviceId}"; 185msBuildProperties[KnownMauiMSBuildProperties.AdbTarget] = "-d"; 385msBuildProperties[KnownMauiMSBuildProperties.AdbTarget] = $"-s {emulatorId}"; 390msBuildProperties[KnownMauiMSBuildProperties.AdbTarget] = "-e";
MauiiOSExtensions.cs (2)
194msBuildProperties[KnownMauiMSBuildProperties.DeviceName] = deviceId; 397msBuildProperties[KnownMauiMSBuildProperties.DeviceName] = $":v2:udid={simulatorId}";
MauiPlatformHelper.cs (2)
201context.EnvironmentVariables[KnownOtelConfigNames.ServiceName] = resource.Name; 213context.EnvironmentVariables[KnownOtelConfigNames.ResourceAttributes] = $"service.instance.id={instanceId}";
Utilities\MauiEnvironmentHelper.cs (1)
53environmentVariables[normalizedKey] = envVar.Value;
Utilities\ProjectFileReader.cs (1)
49platformCache[platformIdentifier] = tfm;
Aspire.Hosting.Milvus (2)
MilvusBuilderExtensions.cs (2)
71ctx.EnvironmentVariables["COMMON_SECURITY_DEFAULTROOTPASSWORD"] = milvus.ApiKeyParameter; 236context.EnvironmentVariables["MILVUS_URL"] = $"{resource.PrimaryEndpoint.Scheme}://{resource.Name}:{resource.PrimaryEndpoint.TargetPort}";
Aspire.Hosting.MongoDB (7)
MongoDBBuilderExtensions.cs (7)
93context.EnvironmentVariables[UserEnvVarName] = mongoDBContainer.UserNameReference; 94context.EnvironmentVariables[PasswordEnvVarName] = mongoDBContainer.PasswordParameter!; 274context.EnvironmentVariables["ME_CONFIG_MONGODB_SERVER"] = resource.Name; 278context.EnvironmentVariables["ME_CONFIG_MONGODB_PORT"] = targetPortValue.ToString(CultureInfo.InvariantCulture); 280context.EnvironmentVariables["ME_CONFIG_BASICAUTH"] = "false"; 283context.EnvironmentVariables["ME_CONFIG_MONGODB_ADMINUSERNAME"] = resource.UserNameReference; 284context.EnvironmentVariables["ME_CONFIG_MONGODB_ADMINPASSWORD"] = resource.PasswordParameter;
Aspire.Hosting.MySql (4)
MySqlBuilderExtensions.cs (4)
88context.EnvironmentVariables[PasswordEnvVarName] = resource.PasswordParameter; 281context.EnvironmentVariables["PMA_HOST"] = $"{endpoint.Resource.Name}:{endpoint.TargetPort}"; 282context.EnvironmentVariables["PMA_USER"] = "root"; 283context.EnvironmentVariables["PMA_PASSWORD"] = singleInstance.PasswordParameter;
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
66context.EnvironmentVariables[PasswordEnvVarName] = oracleDatabaseServer.PasswordParameter;
Aspire.Hosting.Orleans (7)
OrleansServiceExtensions.cs (7)
173orleansServiceBuilder.GrainStorage[name] = provider; 230orleansServiceBuilder.Streaming[name] = provider; 260orleansServiceBuilder.BroadcastChannel[name] = provider; 358orleansServiceBuilder.GrainDirectory[name] = provider; 452context.EnvironmentVariables["Orleans__ClusterId"] = res.ClusterId; 453context.EnvironmentVariables["Orleans__ServiceId"] = res.ServiceId; 458context.EnvironmentVariables["Orleans__EnableDistributedTracing"] = "true";
Aspire.Hosting.PostgreSQL (9)
PostgresBuilderExtensions.cs (9)
120context.EnvironmentVariables[UserEnvVarName] = postgresServer.UserNameReference; 121context.EnvironmentVariables[PasswordEnvVarName] = postgresServer.PasswordParameter; 401context.EnvironmentVariables[PostgresMcpDatabaseUriEnvVarName] = builder.Resource.UriExpression; 417context.EnvironmentVariables["PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED"] = "False"; 418context.EnvironmentVariables["PGADMIN_CONFIG_SERVER_MODE"] = "False"; 421context.EnvironmentVariables["PGADMIN_DEFAULT_EMAIL"] = "admin@domain.com"; 422context.EnvironmentVariables["PGADMIN_DEFAULT_PASSWORD"] = "admin"; 430context.EnvironmentVariables["PGADMIN_CONFIG_PROXY_X_HOST_COUNT"] = "1"; 431context.EnvironmentVariables["PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT"] = "1";
Aspire.Hosting.Python (8)
PythonAppResourceBuilderExtensions.cs (8)
386context.EnvironmentVariables["OTEL_TRACES_EXPORTER"] = "otlp"; 387context.EnvironmentVariables["OTEL_LOGS_EXPORTER"] = "otlp"; 388context.EnvironmentVariables["OTEL_METRICS_EXPORTER"] = "otlp"; 392context.EnvironmentVariables["OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED"] = "true"; 398context.EnvironmentVariables["PYTHONUTF8"] = "1"; 417ctx.EnvironmentVariables["REQUESTS_CA_BUNDLE"] = ctx.CertificateBundlePath; 421ctx.EnvironmentVariables["CURL_CA_BUNDLE"] = ctx.CertificateBundlePath; 426ctx.EnvironmentVariables["OTEL_EXPORTER_OTLP_CERTIFICATE"] = ctx.CertificateBundlePath;
Aspire.Hosting.Qdrant (4)
QdrantBuilderExtensions.cs (4)
83context.EnvironmentVariables[ApiKeyEnvVarName] = qdrant.ApiKeyParameter; 89context.EnvironmentVariables[EnableStaticContentEnvVarName] = "0"; 184context.EnvironmentVariables[$"{connectionStringName}"] = qdrantResource.Resource.ConnectionStringExpression; 187context.EnvironmentVariables[$"{connectionStringName}_{QdrantServerResource.HttpEndpointName}"] = qdrantResource.Resource.HttpConnectionStringExpression;
Aspire.Hosting.RabbitMQ (3)
RabbitMQBuilderExtensions.cs (3)
83context.EnvironmentVariables["RABBITMQ_DEFAULT_USER"] = rabbitMq.UserNameReference; 84context.EnvironmentVariables["RABBITMQ_DEFAULT_PASS"] = rabbitMq.PasswordParameter; 288context.EnvironmentVariables["RABBITMQ_NODENAME"] = nodeName;
Aspire.Hosting.Radius (33)
Annotations\RadiusRecipeParametersAnnotation.cs (1)
78target[key] = value;
Publishing\BicepPostProcessor.cs (1)
314seen[identifier] = description;
Publishing\RadiusInfrastructureBuilder.cs (27)
262typeInstancesByResourceName[resource.Name] = typeInstance; 263instanceParents[typeInstance] = (parentEnv, parentApp); 294containerConnectionTargets[containerConstruct] = connectionTargets; 295containerPortSnapshots[resource.Name] = ports.ToDictionary( 356options.RecipeParameters[name] = parameter; 363options.RecipeParameterBindings[identifier] = parameter; 388deployParameters[identifier] = parameter; 675resolved[resource] = resolvedType; 878entries[resourceType] = byName; 1014connections[referencedResource.Name] = targetConstruct; 1101ports[endpoint.Name] = port; 1167result[key] = new ContainerEnvVarConstruct { Value = BuildEnvBicepValue(parts) }; 1343_envParametersByName[parameter.Name] = provisioningParameter; 1344_deployParametersByIdentifier[identifier] = parameter; 1462containersByMapKey[container.ContainerMapKey] = container; 1681effective[key] = value; 1848_recipeParameters[parameter.Name] = provisioningParameter; 1849_recipeParameterIdentifiers[identifier] = parameter.Name; 1852_recipeParameterBindings[identifier] = parameter; 1967storeConstructs[store.Name] = construct; 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> 2040recipeConfig["envSecrets"] = envSecrets; 2151options.SealedSecretManifests[store.Name] = manifest;
Recipes\RadiusRecipeParameterExtensions.cs (1)
113annotation.ByResourceType[resourceType] = target;
Secrets\RadiusSecretStoreExtensions.cs (1)
155population.Data[key] = binding;
Secrets\RadiusSecretStoreValidation.cs (2)
368appScoped[identifier] = store; 383envScoped[envKey] = store;
Aspire.Hosting.Redis (9)
RedisBuilderExtensions.cs (9)
107context.EnvironmentVariables["REDIS_PASSWORD"] = password; 341context.EnvironmentVariables[$"RI_REDIS_HOST{counter}"] = redisInstance.PrimaryEndpoint.Property(EndpointProperty.Host); 342context.EnvironmentVariables[$"RI_REDIS_PORT{counter}"] = redisInstance.PrimaryEndpoint.TargetPort!.Value; 343context.EnvironmentVariables[$"RI_REDIS_ALIAS{counter}"] = redisInstance.Name; 346context.EnvironmentVariables[$"RI_REDIS_TLS{counter}"] = "true"; 350context.EnvironmentVariables[$"RI_REDIS_PASSWORD{counter}"] = redisInstance.PasswordParameter; 366ctx.EnvironmentVariables[$"RI_REDIS_TLS_CA_PATH{counter}"] = ctx.CertificateBundlePath; 375ctx.EnvironmentVariables["RI_SERVER_TLS_CERT"] = ctx.CertificatePath; 376ctx.EnvironmentVariables["RI_SERVER_TLS_KEY"] = ctx.KeyPath;
Aspire.Hosting.RemoteHost (24)
Ats\CapabilityDispatcher.cs (1)
506_polyglotMethodNamesByClrName[clrMemberName] = names;
AtsCapabilityScanner.cs (14)
77context.Methods[id] = method; 81context.Properties[id] = property; 108_enums[typeId] = new AtsEnumTypeInfo 172seenCapabilities[capability.CapabilityId] = capability; 351methods[id] = method; 355properties[id] = property; 402methods[id] = method; 406properties[id] = property; 444methods[capability.CapabilityId] = method; 924map[key] = list; 981expandedTargetsToRemove[collidingCapability.CapabilityId] = targetIds; 1710properties[getCapabilityId] = property; 1762properties[setCapabilityId] = property; 1923methods[methodCapabilityId] = method;
AtsContextFilter.cs (4)
152apiExportContext.Methods[capability.CapabilityId] = method; 157apiExportContext.Properties[capability.CapabilityId] = property; 295filteredContext.Methods[capability.CapabilityId] = method; 300filteredContext.Properties[capability.CapabilityId] = property;
CodeGeneration\CodeGeneratorResolver.cs (2)
122generators[generator.Language] = generator; 174exporters[exporter.Language] = exporter;
Language\LanguageSupportResolver.cs (1)
107languages[language.Language] = language;
src\Shared\IntegrationPackageProbeManifest.cs (2)
274lookup[CreateManagedAssemblyLookupKey(assembly.Name, assembly.Culture)] = assembly.Path; 291lookup[key] = paths;
Aspire.Hosting.RemoteHost.Tests (5)
AtsContextFilterTests.cs (4)
91context.Properties["removed"] = property; 97context.Methods["removed"] = method; 627context.Methods[selectedCapabilityId] = testMethod; 628context.Methods[unrelatedCapabilityId] = typeof(DistributedApplication)
CodeGeneration\ApiReferenceExportTests.cs (1)
230configurationValues[key] = value;
Aspire.Hosting.Rust (2)
RustHostingExtensions.cs (2)
776dockerfile.BuildArguments[buildArgument.Key] = buildArgument.Value; 781dockerfile.BuildSecrets[buildSecret.Key] = buildSecret.Value;
Aspire.Hosting.Rust.Tests (2)
RustPublicApiTests.cs (2)
313context.EnvironmentVariables["CARGO_TARGET_DIR"] = "/wrong"; 314context.EnvironmentVariables["CARGO_BUILD_TARGET"] = "wrong-target";
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
604environment["ASPIRE_HOME"] = aspireHome;
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
61context.EnvironmentVariables["MSSQL_SA_PASSWORD"] = sqlServer.PasswordParameter;
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (3)
228additionalConfig[key] = value; 236additionalConfig[primaryKey] = value; 327additionalConfig[key] = value;
Aspire.Hosting.Tests (61)
ApplicationModel\Docker\DockerfileBuildAnnotationTests.cs (4)
44annotation.BuildArguments["ARG1"] = "value1"; 45annotation.BuildArguments["ARG2"] = null; 60annotation.BuildSecrets["SECRET1"] = "secret-value"; 61annotation.BuildSecrets["SECRET2"] = 42;
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (11)
390.WithEnvironment(context => context.EnvironmentVariables["POSTGRES_PASSWORD"] = passwordParameter); 438.WithEnvironment(context => context.EnvironmentVariables["REFERENCED_SECRET"] = referencedParameter); 505.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = referencedSecret); 582.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = referencedSecret); 652.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 723.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 808.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 863.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = coldSecret.Resource); 966context.EnvironmentVariables["SECRET"] = "resolved"; 1019.WithEnvironment(context => context.EnvironmentVariables["DB_PASSWORD"] = secret); 1071.WithEnvironment(context => context.EnvironmentVariables["DB_PASSWORD"] = secret);
ConnectionPropertiesExtensionsTests.cs (1)
30dict[property.Key] = property.Value.ValueExpression;
Dashboard\DashboardResourceTests.cs (2)
276config[KnownConfigNames.AllowUnsecuredTransport] = allowUnsecuredTransport.Value.ToString(); 815config["AppHost:BrowserToken"] = browserToken;
Dcp\DcpExecutorTests.cs (16)
557c.EnvironmentVariables["CALL_COUNT"] = callCount.ToString(); 4606context.EnvironmentVariables["DEBUG_VALUE"] = $"resolved-{currentInvocation}"; 5352ctx.EnvironmentVariables["TEST_BUNDLE"] = ctx.CreateCustomBundle(static (_, _) => Task.FromResult(new byte[] { 1, 2, 3 })); 9017c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port); 9052c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port); 9132c.EnvironmentVariables["DEFERRED_ENV"] = "true"; 9177c.EnvironmentVariables["DEFERRED_ENV"] = "true"; 9223c.EnvironmentVariables["PERSISTENT_ENV"] = "true"; 9276c.EnvironmentVariables["PERSISTENT_ENV"] = "true"; 10361settings.Profiles["Foo"] = new LaunchProfile 10371settings.Profiles["http"] = new LaunchProfile 10393settings.Profiles["http"] = new LaunchProfile 10418settings.Profiles["Zed"] = new LaunchProfile { CommandName = "Project", ApplicationUrl = "http://localhost:6001" }; 10419settings.Profiles["Alpha"] = new LaunchProfile { CommandName = "Project", ApplicationUrl = "http://localhost:6002" }; 10420settings.Profiles["Beta"] = new LaunchProfile { CommandName = "Project", ApplicationUrl = "http://localhost:6003" }; 10438settings.Profiles["Aspire_TestFunction"] = new LaunchProfile
DistributedApplicationTests.cs (2)
1127ctx.EnvironmentVariables["CALLBACK_ADDED_VAR"] = "CallbackValue"; 1129ctx.EnvironmentVariables["INITIAL_REFERENCE_EXPRESSION"] = ReferenceExpression.Create($"{initialRE}_AppendedInCallback");
ExecutionConfigurationGathererTests.cs (7)
146.WithEnvironment(ctx => ctx.EnvironmentVariables["KEY2"] = "value2") 189ctx.EnvironmentVariables["ASYNC_KEY"] = "async-value"; 453ctx.EnvironmentVariables["CUSTOM_BUNDLE"] = bundlePath; 518ctx.EnvironmentVariables["BUNDLE1"] = bundle1; 519ctx.EnvironmentVariables["BUNDLE2"] = bundle2; 578ctx.EnvironmentVariables["JAVAX_NET_SSL_TRUSTSTORE"] = bundlePath; 579ctx.EnvironmentVariables["JAVAX_NET_SSL_TRUSTSTOREPASSWORD"] = password;
ExpressionResolverTests.cs (1)
170env.EnvironmentVariables["envname"] = new HostUrl(hostUrlVal);
FileSystemServiceTests.cs (1)
19configDict["ASPIRE_PRESERVE_TEMP_FILES"] = "true";
Orchestrator\ParameterProcessorTests.cs (2)
803context.EnvironmentVariables["TEST_ENV"] = param; 833context.EnvironmentVariables["EXCLUDED_ENV"] = param;
Pipelines\DistributedApplicationPipelineTests.cs (5)
938lock (executionOrder) { executionOrder.Add("A"); executionTimes["A"] = DateTime.UtcNow; } 944lock (executionOrder) { executionOrder.Add("B"); executionTimes["B"] = DateTime.UtcNow; } 950lock (executionOrder) { executionOrder.Add("C"); executionTimes["C"] = DateTime.UtcNow; } 956lock (executionOrder) { executionOrder.Add("D"); executionTimes["D"] = DateTime.UtcNow; } 2032executionOrder[stepTitle] = ++executionCounter;
Publishing\ResourceContainerImageManagerTests.cs (1)
967annotation.BuildSecrets["FILE_SECRET"] = new FileInfo(tempSecretFile);
ResourceDependencyTests.cs (1)
248context.EnvironmentVariables["CONFIG"] = param.Resource;
ResourceExtensionsTests.cs (1)
219context.EnvironmentVariables["ELASTIC_PASSWORD"] = "p@ssw0rd1";
UserSecretsParameterDefaultTests.cs (1)
404secrets[kvp.Key] = kvp.Value;
WithCertificateAuthorityCollection.cs (1)
25context.EnvironmentVariables["SP_AVAILABLE"] = sp is not null ? "true" : "false";
WithEnvironmentTests.cs (3)
25context.EnvironmentVariables["SP_AVAILABLE"] = sp is not null ? "true" : "false"; 185context.EnvironmentVariables["myName"] = environmentValue; 209context.EnvironmentVariables["myName"] = environmentValue;
WithOtlpExporterTests.cs (1)
236context.EnvironmentVariables["OTEL_EXPORTER_OTLP_ENDPOINT"] = collectorEndpoint;
Aspire.Hosting.TestUtilities (2)
Utils\MockUserSecretsManager.cs (1)
38Secrets[name] = value;
Utils\TestDcpExecutor.cs (1)
30_resources[dcpResourceName] = new TestResourceReference(modelResource, dcpResourceName);
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
156context.EnvironmentVariables["VALKEY_PASSWORD"] = password;
Aspire.Hosting.Yarp (5)
YarpEnvConfigGenerator.cs (1)
31environmentVariables[$"{Prefix}CLUSTERS__{cluster.ClusterConfig.ClusterId}__DESTINATIONS__destination{i + 1}__ADDRESS"] = targets[i];
YarpResourceExtensions.cs (4)
49ctx.EnvironmentVariables["Kestrel__Certificates__Default__Path"] = ctx.CertificatePath; 50ctx.EnvironmentVariables["Kestrel__Certificates__Default__KeyPath"] = ctx.KeyPath; 53ctx.EnvironmentVariables["Kestrel__Certificates__Default__Password"] = ctx.Password; 90ctx.EnvironmentVariables["YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE"] = "true";
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (3)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (3)
81protected override void SetHeader(string name, string value) => _headers[name] = [value]; 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
65renamedVolumes[name] = $"{name}-{Convert.ToHexString(RandomNumberGenerator.GetBytes(4))}";
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\ToolCommand.cs (2)
45Environment[key] = value; 55Environment[key] = value;
Aspire.TerminalHost (1)
TerminalReplica.cs (1)
435_peers[e.PeerId] = new TerminalHostPeerInfo
AspireWithNode.AppHost (3)
AppHost.cs (3)
37ctx.EnvironmentVariables["HTTPS_CERT_FILE"] = ctx.CertificatePath; 38ctx.EnvironmentVariables["HTTPS_CERT_KEY_FILE"] = ctx.KeyPath; 44ctx.EnvironmentVariables["HTTPS_REDIRECT_PORT"] = httpsEndpoint.Property(EndpointProperty.Port);
AzureAppService.AppHost (1)
AppHost.cs (1)
43context.EnvironmentVariables["AZURE_PRINCIPAL_NAME"] = identity.IdentityResource.PrincipalName;
AzureContainerApps.AppHost (1)
AppHost.cs (1)
52context.EnvironmentVariables["AZURE_PRINCIPAL_NAME"] = identity.IdentityResource.PrincipalName;
cdac-build-tool (13)
ContractDescriptorSourceFileEmitter.cs (4)
36Elements[PointerDataCount] = count.ToString(); 41Elements[PlatformFlags] = $"0x{platformFlags:x8}"; 73Elements[JsonDescriptorKey] = escaped; 74Elements[JsonDescriptorSizeKey] = count.ToString();
DataDescriptorModel.cs (9)
120_types[name] = type; 135_globals[name] = global; 151_subDescriptors[name] = subDescriptor; 163_contracts[name] = contract; 204types[typeName] = typeBuilder.Build(typeName); 214globals[globalName] = new GlobalModel { Type = globalBuilder.Type, Value = v.Value }; 224subDescriptors[subDescriptorName] = new GlobalModel { Type = subDescriptorBuilder.Type, Value = v.Value }; 229contracts[contractName] = contractBuilder.Build(); 259_fields[name] = field;
ConfigurationSchemaGenerator (4)
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
86cache[key] = entryCollection = new TValue();
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (2)
117: (_seenTransitiveTypes[typeRef] = TryRegisterCore()); 211_typesForGen[method] = types = new HashSet<TypeSpec>();
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
140_invocationInfoBuilderCache[type] = invocationInfoBuilder = new TypedInterceptorInvocationInfo.Builder(overload, type);
csc (5)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
392properties[key] = value;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
520environmentVariables[key] = string.Empty; 524environmentVariables[key] = value ?? string.Empty; 532environmentVariables[RuntimeHostInfo.DotNetRootEnvironmentName] = dotNetRoot; 539environmentVariables[RuntimeHostInfo.DotNetTieredCompilationEnvironmentName] = value;
CSharpSyntaxGenerator (1)
Grammar\GrammarGenerator.cs (1)
78rules[name] = [new("/* see lexical specification */")];
dotnet (62)
CliSchema.cs (3)
133dict[argument.Name] = CreateArgumentDetails(index, argument); 147dict[option.Name] = CreateOptionDetails(option); 161dict[subcommand.Name] = CreateCommandDetails(subcommand);
CommandFactory\CommandResolution\ActivityContextFactory.cs (4)
33environment[Activities.TRACEPARENT] = $"00-{activityContext.TraceId}-{activityContext.SpanId}-{(byte)activityContext.TraceFlags:x2}"; 36environment[Activities.TRACESTATE] = activityContext.TraceState; 48environment[Activities.TRACEPARENT] = value; 51environment[Activities.TRACESTATE] = value;
Commands\MSBuild\MSBuildLogger.cs (5)
267stringProperties[kvp.Key] = kvp.Value.ToString(CultureInfo.InvariantCulture); 279_aggregatedEvents[args.EventName] = eventData; 288eventData[kvp.Key] = count; 292eventData[kvp.Key] += count; 369properties[propertyToBeHashed] = Sha256Hasher.HashWithNormalizedCasing(value!);
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (2)
167evaluatedTfmBasedProjects[tfm] = RunEvaluate(projectPath, tfm); 218globalProperties["TargetFramework"] = tfm;
Commands\Pack\PackCommand.cs (1)
128packArgs.Properties["configuration"] = configuration;
Commands\Package\VirtualProjectPackageReflector.cs (1)
34packageReferences[item.Include] = version;
Commands\Run\CommonRunHelpers.cs (1)
107globalProperties[Constants.MSBuildExtensionsPath] = AppContext.BaseDirectory;
Commands\Run\EnvironmentVariablesToMSBuild.cs (1)
68result[item.EvaluatedInclude] = item.GetMetadataValue(ValueMetadataName);
Commands\Run\RunCommand.cs (4)
259globalProperties["Device"] = Device; 315properties["RuntimeIdentifier"] = runtimeIdentifier; 1097globalProperties[Constants.EnableDefaultItems] = "false"; 1098globalProperties[Constants.MSBuildExtensionsPath] = AppContext.BaseDirectory;
Commands\Run\RunCommandSelector.cs (1)
171_globalProperties[key] = value;
Commands\Run\RunTelemetry.cs (9)
59properties["launch_profile_requested"] = "none"; 63properties["launch_profile_requested"] = "explicit"; 64properties["launch_profile_is_default"] = IsDefaultProfile(launchProfile) ? "true" : "false"; 68properties["launch_profile_requested"] = "default_used"; 69properties["launch_profile_is_default"] = IsDefaultProfile(launchSettings.LaunchProfileName) ? "true" : "false"; 73properties["launch_profile_requested"] = "false"; 79properties["additional_properties_count"] = additionalPropertiesCount.ToString(); 82properties["used_msbuild"] = usedMSBuild.Value ? "true" : "false"; 86properties["used_roslyn_compiler"] = usedRoslynCompiler.Value ? "true" : "false";
Commands\Run\VirtualProjectBuildingCommand.cs (2)
341globalProperties[key] = value; 350globalProperties[key] = value;
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
186missingOptionsToModules[missingKey] = modules;
Commands\Test\MTP\MSBuildUtility.cs (1)
154properties[ProjectProperties.TargetFramework] = targetFramework;
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
532devicesByTfm[framework] = (device, rid);
Commands\Test\MTP\Terminal\TestProgressState.cs (4)
267_testUidToResults[testNodeUid] = incrementTestNodeInfoEntry(value); 283_uidWithEarlierFailure[testNodeUid] = displayName; 286_testUidToResults[testNodeUid] = incrementTestNodeInfoEntry((Passed: 0, Skipped: 0, Failed: 0, LastAttemptNumber: currentAttemptNumber, Attempts: value.Attempts + 1)); 342_testUidToDuration[testNodeUid] = (displayName, duration.Value);
Commands\Test\MTP\TestApplicationHandler.cs (2)
583_testSessionEventCountPerSessionUid[sessionUid] = count; 591_testSessionEventCountPerSessionUid[sessionUid] = count;
Commands\Test\VSTest\TestCommand.cs (1)
365globalProperties[propertyName] = propertyKeyValue.value;
Commands\Workload\GlobalJsonWorkloadSetFile.cs (1)
32globalJsonWorkloadSetVersions[globalJsonPath] = workloadSetVersion;
Commands\Workload\Install\WorkloadGarbageCollector.cs (4)
90_workloadSets[installState.WorkloadVersion] = GCAction.Keep; 104_workloadSets[latestWorkloadSetVersion] = GCAction.Keep; 113_workloadSets[workloadSetVersion] = GCAction.Keep; 164_manifests[manifestKey] = gcAction;
Commands\Workload\List\InstalledWorkloadsCollection.cs (2)
47_workloads[workloadId] = installationSource; 51_workloads[workloadId] += $", {installationSource}";
ReleasePropertyProjectLocator.cs (3)
82newConfigurationArgs[MSBuildPropertyNames.CONFIGURATION] = MSBuildPropertyNames.CONFIGURATION_RELEASE_VALUE; 87newConfigurationArgs[$"_SolutionLevel{propertyToCheck}"] = propertyToCheckValue; 303newDictionary[MSBuildPropertyNames.TARGET_FRAMEWORK] = commandOptions.FrameworkOption;
ShellShim\ShellShimRepository.cs (1)
128files[file.Value] = tempPath;
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildProtocol.cs (1)
392properties[key] = value;
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildServerConnection.cs (4)
520environmentVariables[key] = string.Empty; 524environmentVariables[key] = value ?? string.Empty; 532environmentVariables[RuntimeHostInfo.DotNetRootEnvironmentName] = dotNetRoot; 539environmentVariables[RuntimeHostInfo.DotNetTieredCompilationEnvironmentName] = value;
Telemetry\TelemetryFilter.cs (2)
63properties["globalJson"] = globalJsonState; 71properties["help"] = "true";
dotnet-aot (15)
src\sdk\src\Cli\dotnet\CliSchema.cs (3)
133dict[argument.Name] = CreateArgumentDetails(index, argument); 147dict[option.Name] = CreateOptionDetails(option); 161dict[subcommand.Name] = CreateCommandDetails(subcommand);
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\ActivityContextFactory.cs (4)
33environment[Activities.TRACEPARENT] = $"00-{activityContext.TraceId}-{activityContext.SpanId}-{(byte)activityContext.TraceFlags:x2}"; 36environment[Activities.TRACESTATE] = activityContext.TraceState; 48environment[Activities.TRACEPARENT] = value; 51environment[Activities.TRACESTATE] = value;
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (3)
167launchEnvironment[rootVariableName] = NativeEntryPoint.DotnetRoot; 174(name, value) => launchEnvironment[name] = value); 254globalProperties["NuGetInteractive"] = parseResult.GetValue(definition.InteractiveOption) ? "true" : "false";
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
107globalProperties[Constants.MSBuildExtensionsPath] = AppContext.BaseDirectory;
src\sdk\src\Cli\dotnet\Commands\Workload\List\InstalledWorkloadsCollection.cs (2)
47_workloads[workloadId] = installationSource; 51_workloads[workloadId] += $", {installationSource}";
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (2)
63properties["globalJson"] = globalJsonState; 71properties["help"] = "true";
dotnet-format (1)
Workspaces\MSBuildWorkspaceLoader.cs (1)
34properties["TargetFramework"] = targetFramework;
dotnet-openapi (4)
Commands\BaseCommand.cs (4)
178metadata[SourceUrlAttrName] = sourceUrl; 183metadata[CodeGeneratorAttrName] = codeGenerator.ToString(); 469packageVersionsDictionary[packageVersion.Name] = packageVersion.Value.GetString(); 494result[package.Name] = package.Version;
dotnet-svcutil-lib (76)
CmdCredentialsProvider.cs (2)
172_validatedClientCerts[selectedCert.GetCertHashString()] = selectedCert; 228_validatedServerCerts[certhash] = AcceptCert ? true : PromptEnterOrEscape(throwOnEscape: false);
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
18_nameTable[member.Name] = member;
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
235methodNames[method.Name] = member.Name;
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
44_privateIfaceMethods[method.Name] = new PrivateInterfaceMethod(null);
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (2)
29_xmlTypes[type.FullName] = type; 40_codeDomTypes[type.FullName] = type;
CodeDomFixup\CodeDomVisitors\PropertyFieldNameScope.cs (2)
18_nameTable[property.Name] = property; 23_nameTable[field.Name] = field;
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
102_specialIXmlSerializableTypes[typeName] = _typeDeclCollection.AllTypeDecls[typeName];
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (2)
47AllTypeDecls[fullName] = typeDeclaration; 48TypeNamespaceMappings[fullName] = typeNamespace;
CommandProcessorOptions.cs (2)
959specifiedTypes[foundTypeName] = type; 980foundCollectionTypes[collectionType] = foundType;
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
2489_namespaces[prefix] = decl; 2500_namespaces[decl.prefix] = decl.prevLink;
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriter.cs (1)
64_lookupCDataElems[name] = 0;
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriterV1.cs (1)
85_lookupCDataElems[name] = null;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (2)
1504_nsHashtable[prefix] = namespaceIndex; 1519_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (3)
1885_nsHashtable[prefix] = namespaceIndex; 1924_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex; 2276_attrHashTable[localName] = 0; // overwrite on collision
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
366_mappings[uri] = data;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (4)
269schemaInfo.TargetNamespaces[element.QualifiedName.Namespace] = true; 274schemaInfo.TargetNamespaces[attribute.QualifiedName.Namespace] = true; 279schemaInfo.TargetNamespaces[type.QualifiedName.Namespace] = true; 288schemaInfo.TargetNamespaces[notation.QualifiedName.Namespace] = true;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (1)
141schemaInfo.TargetNamespaces[tns] = true;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (1)
71dict[prefix] = ns;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
37_table[name] = value; //set new value 56_table[name] = value; //set new value
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
2702_locals[key] = value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (4)
1160memberInfos[mappings[i].Name] = mappings[i].MemberInfo; 1162memberInfos[mappings[i].ChoiceIdentifier.MemberName] = mappings[i].ChoiceIdentifier.MemberInfo; 1164memberInfos[mappings[i].Name + "Specified"] = mappings[i].CheckSpecifiedMemberInfo; 1194memberInfos[pair.Key] = pair.Value;
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (5)
121_hashTable[_nsdecls[decl].prefix] = _nsdecls[decl].previousNsIndex; 181_hashTable[prefix] = _lastDecl; 191_hashTable[_nsdecls[i].prefix] = i; 226prefixes[_nsdecls[thisDecl].prefix] = _nsdecls[thisDecl].prefix; 268dict[prefix] = uri;
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (2)
540dict["xml"] = XmlReservedNs.NsXml; 552dict[prefix] = ns;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
300_localNames[local] = name;
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (5)
54_properties[TokenTypeProperty] = value; 67_properties[IsOptionalTokenProperty] = value; 80_properties[RequireCryptographicTokenProperty] = (object)value; 94_properties[KeyUsageProperty] = (object)value; 108_properties[KeyTypeProperty] = (object)value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
154headers[key] = headers[key] + 1;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (3)
244importer.State[SecureConversationBootstrapEncryptionRequirements] = endpointEncryptedParts; 246importer.State[SecureConversationBootstrapSignatureRequirements] = endpointSignedParts; 420importer.State[contractAssociationName] = new ContractProtectionLevel(hasContractProtectionLevel, isContractProtectionLevelUniform, contractProtectionLevel);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
90_operationSupportingTokenParameters[key] = (SupportingTokenParameters)elementToBeCloned._operationSupportingTokenParameters[key].Clone(); 95_optionalOperationSupportingTokenParameters[key] = (SupportingTokenParameters)elementToBeCloned._optionalOperationSupportingTokenParameters[key].Clone();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (2)
267counterValue[digits[i].Key] = digits[i].Value.Current; 300counterValue[digits[i].Key] = digits[i].Value.Current;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SoapHelper.cs (1)
166exporter.State[s_soapVersionStateKey] = versions;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TransactionFlowAttribute.cs (2)
42dictionary[da] = option; 65dictionary[new DirectionalAction(description.Messages[0].Direction, description.Messages[0].Action)] = _transactions;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
63_partInfoTable[part] = partInfo;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (3)
61_actionParts[action] = p; 94_actionParts[action] = new MessagePartSpecification(); 194_readOnlyNormalizedActionParts[action] = p;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2725importer.State[SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode] = SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
128ScopedCertificates[targetService] = certificate;
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
256_dictionary[newKey] = item;
ImportModule.cs (2)
394_bindingWsdlMapping[context.Endpoint.Binding] = wsdlBindingQName; 398_bindingPortMapping[wsdlBindingQName] = context.WsdlPort;
Metadata\ServiceDescriptorFactory.cs (1)
55_cache[key] = serviceDescriptor;
Shared\MSBuildProj.cs (2)
967this.GlobalProperties["TargetFramework"] = this.TargetFrameworks.FirstOrDefault(); 972this.GlobalProperties["SdkVersion"] = this.SdkVersion;
Shared\ProjectPropertyResolver.cs (3)
61propertyTable[propertyName] = propertyValue; 78propertyTable[propertyName] = propertyValue; 107propertyTable[propertyName] = string.Empty;
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
501specifiedTypes[foundTypeName] = type;
dotnet-user-secrets (1)
Internal\ListCommand.cs (1)
58secrets[item.Key] = item.Value;
GenerateDocumentationAndConfigFiles (27)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
199ruleIdToComments[currentRuleId] = currentXmlComment.ToString();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
67documentToLinkedDocuments[document.Id] = linkedDocuments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
225importToSyntax[namespaceSymbol] = namespaceSyntax;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
57mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 129mapping[typeParameter] = newTypeParameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
102collisionMap[name] = isCollision;
HelixTestTasks (1)
ComputeBatchTimeout.cs (1)
81counts[bid] = current + 1;
ILAssembler (20)
EntityRegistry.cs (1)
588_seenEntities[table] = entities = new List<EntityBase>();
GrammarVisitor.cs (18)
410_documentHandles[debugInfo.DocumentPath] = documentHandle; 1638_mappedFieldDataReferenceFixups[name] = fixups = new(); 2724var start = _currentMethod!.Labels.TryGetValue(VisitId(id).Value, out LabelHandle startLabel) ? startLabel : _currentMethod.Labels[VisitId(id).Value] = _currentMethod.Definition.MethodBody.DefineLabel(); 2786var start = _currentMethod!.Labels.TryGetValue(VisitId(ids[0]).Value, out LabelHandle startLabel) ? startLabel : _currentMethod.Labels[VisitId(ids[0]).Value] = _currentMethod.Definition.MethodBody.DefineLabel(); 2787var end = _currentMethod!.Labels.TryGetValue(VisitId(ids[1]).Value, out LabelHandle endLabel) ? endLabel : _currentMethod.Labels[VisitId(ids[1]).Value] = _currentMethod.Definition.MethodBody.DefineLabel(); 2952_currentMethod.Labels[label] = handle; 2956_currentMethod.UndefinedLabelReferences[label] = context; 3148_currentMethod.Labels[labelName] = handle; 3152_currentMethod.UndefinedLabelReferences[labelName] = context; 3424_currentMethod.Labels[labelName] = label; 3665currentMethod.Labels[labelName] = label; 4984var start = _currentMethod!.Labels.TryGetValue(VisitId(ids[0]).Value, out LabelHandle startLabel) ? startLabel : _currentMethod.Labels[VisitId(ids[0]).Value] = _currentMethod.Definition.MethodBody.DefineLabel(); 4985var end = _currentMethod!.Labels.TryGetValue(VisitId(ids[1]).Value, out LabelHandle endLabel) ? endLabel : _currentMethod.Labels[VisitId(ids[1]).Value] = _currentMethod.Definition.MethodBody.DefineLabel(); 5186_typedefs[alias] = new TypedefEntry.TypeBlob(copy); 5192_typedefs[alias] = new TypedefEntry.Type(typeEntity); 5198_typedefs[alias] = new TypedefEntry.Member(member); 5206_typedefs[alias] = new TypedefEntry.CustomAttribute(attr.Constructor, attr.Value); 5215_typedefs[alias] = new TypedefEntry.CustomAttribute(attr.Constructor, attr.Value);
NamedElementList.cs (1)
28_elementsByName[value.Name] = value;
ilc (4)
ConfigurablePInvokePolicy.cs (1)
77_directPInvokes[entry] = null;
Program.cs (3)
89warningsAsErrors[warning] = true; 93warningsAsErrors[warning] = false; 389featureSwitches[switchAndValue[0]] = switchValue;
ILCompiler.Compiler (55)
Compiler\BodySubstitutionParser.cs (4)
89_methodSubstitutions[method] = stubBody; 154_fieldSubstitutions[field] = substitution; 251_bodySubstitutions[kvp.Key] = kvp.Value; 254_fieldSubstitutions[kvp.Key] = kvp.Value;
Compiler\Dataflow\CompilerGeneratedState.cs (2)
266generatedTypeToTypeArgs[stateMachineType] = new TypeArgumentInfo(method, null); 458generatedTypeToTypeArgs[generatedType] = typeInfo with { OriginalAttributes = typeArgs };
Compiler\Dataflow\MethodBodyScanner.cs (4)
150knownStacks[newOffset] = MergeStack(knownStack, newStack); 275valueCollection[collectionKey] = new ValueBasicBlockPair(value, curBasicBlock); 280valueCollection[collectionKey] = new ValueBasicBlockPair(valueToStore, curBasicBlock); 1421arr.IndexValues[index.Value] = new ValueBasicBlockPair(UnknownValue.Instance, curBasicBlock);
Compiler\Dataflow\TrimAnalysisPatternStore.cs (2)
44AssignmentPatterns[key] = pattern.Merge(Lattice, existingPattern); 55MethodCallPatterns[pattern.Origin] = pattern.Merge(Lattice, existingPattern);
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
58_insertedSymbolsDictionary[key] = index;
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (1)
70_gvmImplementations[openCallingMethod] = new Dictionary<TypeDesc, MethodDesc>();
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (2)
92_interfaceGvmSlots[openCallingMethod] = new HashSet<object>(); 102_interfaceImpls[openImplementationMethod] = new Dictionary<TypeDesc, HashSet<int>>();
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
160methodsEmitted[mappingEntry.MetadataHandle] = cache = new HashSet<TypeDesc>();
Compiler\ILScanner.cs (1)
684_implementators[type] = implList;
Compiler\MetadataManager.cs (2)
853methodMetadataMappings[methodMapping.Key] = writer.GetRecordHandle(methodMapping.Value); 898fieldMetadataMappings[field.GetTypicalFieldDefinition()] = writer.GetRecordHandle(record);
Compiler\MstatObjectDumper.cs (1)
105_blobs[nodeName] = size + objectData.Data.Length;
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (1)
104_fileNameToIndex[fileName] = fileNameIndex;
Compiler\RuntimeConfigurationRootProvider.cs (1)
90settings[key] = valueNode;
Compiler\SubstitutionProvider.cs (1)
232InlineableResourceStrings[key] = value;
Compiler\TypePreinit.cs (1)
396_fieldValues[field] = value;
Compiler\UnmanagedEntryPointsRootProvider.cs (1)
170context.NodeAliases[methodEntryPoint] = (exportName, _isHidden);
Compiler\UsageBasedMetadataManager.cs (1)
994_dictionary[key] = value;
Compiler\UserDefinedTypeDescriptor.cs (7)
283_knownReferenceWrappedTypes[type] = variableTypeIndex; 297_enumTypes[type] = variableTypeIndex; 457_knownTypes[type] = typeIndex; 458_completeKnownTypes[type] = typeIndex; 566_knownTypes[type] = typeIndex; 745_completeKnownTypes[type] = completeTypeIndex; 854_primitiveTypes[type] = typeIndex;
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (2)
184supportMatrix[arch] = ComputeInstructSetSupportForArch(arch); 195matrix[arch] = ComputeNonSpecifiableInstructionSetSupportForArch(arch);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
135_sectionNumberToComdatAuxRecord[_sections.Count] = auxRecord;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (3)
164_symbolNameToIndex[sectionNameUtf8] = (uint)_symbols.Count; 331_symbolNameToIndex[definedSymbol.Name] = symbolIndex; 359_symbolNameToIndex[externSymbol] = thunkSymbolIndex;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (3)
131_symbolNameToIndex[machSymbol.Name] = sectionIndex; 589_symbolNameToIndex[definedSymbol.Name] = symbolIndex; 617_symbolNameToIndex[externSymbol] = symbolIndex;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
149_relocCounts[relocType] = relocTypeCount + 1;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
569_resolvableRelocations[sectionIndex] = resolvable = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
164_stringToOffset[text] = offset;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (1)
69_resolvableRelocations[sectionIndex] = resolvable = new List<SymbolicRelocation>();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (3)
287typeMapStates[currentTypeMapGroup] = typeMapState = new Map(currentTypeMapGroup); 342typeMapStates[typeMapGroup] = typeMapState = new Map(typeMapGroup); 396typeMapStates[typeMapGroup] = value;
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
667dataMerger[mergedElem] = mergedElem;
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
146_assemblyRefNameHandles[name.FullName] = handle;
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (3)
74branchInput[entryOut.Value] = new TState() 123finallyInputState[finallyRegion] = state; 146exceptionFinallyState[branch] = state;
ILCompiler.MetadataTransform (1)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
182_recordPool[rec] = rec;
ILCompiler.ReadyToRun (37)
Compiler\CallChainProfile.cs (1)
120_resolveFails[methodName]++;
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (1)
43_cachedMapping[node] = existing.Node;
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (1)
134_assemblyRefToModuleIdMap[assemblyName] = assemblyRefIndex;
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (1)
61_insertedMethodNodes[method] = runtimeFunctionIndex;
Compiler\FileLayoutOptimizer.cs (5)
214nameMap[methods[i].GetMangledName(_nodeFactory.NameMangler)] = methods[i]; 215order[methods[i]] = int.MaxValue; 228order[m] = line++; 307methodMap[call.Caller] = null; 312methodMap[call.Callee] = null;
Compiler\PettisHansenSort\CallGraphNode.cs (1)
21OutgoingEdges[callee] = curCount + count;
Compiler\ProfileData.cs (3)
86mergedCallWeights[entry.Key] = initialWeight + entry.Value; 90mergedCallWeights[entry.Key] = entry.Value; 111mergedProfileData[data.Method] = new MethodProfileData(data.Method, dataToMerge.Flags | data.Flags, data.ExclusiveWeight + dataToMerge.ExclusiveWeight, mergedCallWeights, dataToMerge.ScenarioMask | data.ScenarioMask, mergedSchemaData);
Compiler\ReadyToRunTableManager.cs (1)
86_methodsGenerated[module] = perModuleData;
IBC\IBCDataReader.cs (2)
81seenFlags[index] = reader.ReadUInt32(); 665IfPresent(sectionTable, section, () => result.Tokens[section] = ReadTokenSection(section));
IBC\MIbcProfileParser.cs (1)
302keyValue[fieldName] = ldStrValue;
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (2)
184supportMatrix[arch] = ComputeInstructSetSupportForArch(arch); 195matrix[arch] = ComputeNonSpecifiableInstructionSetSupportForArch(arch);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
135_sectionNumberToComdatAuxRecord[_sections.Count] = auxRecord;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (3)
164_symbolNameToIndex[sectionNameUtf8] = (uint)_symbols.Count; 331_symbolNameToIndex[definedSymbol.Name] = symbolIndex; 359_symbolNameToIndex[externSymbol] = thunkSymbolIndex;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (3)
131_symbolNameToIndex[machSymbol.Name] = sectionIndex; 589_symbolNameToIndex[definedSymbol.Name] = symbolIndex; 617_symbolNameToIndex[externSymbol] = symbolIndex;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
149_relocCounts[relocType] = relocTypeCount + 1;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
569_resolvableRelocations[sectionIndex] = resolvable = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
164_stringToOffset[text] = offset;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
473_resolvableRelocations[sectionIndex] = resolvable = new List<SymbolicRelocation>();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (3)
287typeMapStates[currentTypeMapGroup] = typeMapState = new Map(currentTypeMapGroup); 342typeMapStates[typeMapGroup] = typeMapState = new Map(typeMapGroup); 396typeMapStates[typeMapGroup] = value;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
804_methodILScopeToHandle[owningMethod] = handle = ObjectToHandleUnchecked((object)methodIL);
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
103_config[param.Key] = param.Value;
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
667dataMerger[mergedElem] = mergedElem;
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
146_assemblyRefNameHandles[name.FullName] = handle;
ILCompiler.RyuJit (10)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (3)
214nameMap[methods[i].GetMangledName(_nodeFactory.NameMangler)] = methods[i]; 215order[methods[i]] = int.MaxValue; 228order[m] = line++;
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\CallGraphNode.cs (1)
21OutgoingEdges[callee] = curCount + count;
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ProfileData.cs (3)
86mergedCallWeights[entry.Key] = initialWeight + entry.Value; 90mergedCallWeights[entry.Key] = entry.Value; 111mergedProfileData[data.Method] = new MethodProfileData(data.Method, dataToMerge.Flags | data.Flags, data.ExclusiveWeight + dataToMerge.ExclusiveWeight, mergedCallWeights, dataToMerge.ScenarioMask | data.ScenarioMask, mergedSchemaData);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (1)
302keyValue[fieldName] = ldStrValue;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
804_methodILScopeToHandle[owningMethod] = handle = ObjectToHandleUnchecked((object)methodIL);
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
103_config[param.Key] = param.Value;
illink (42)
ILLink.RoslynAnalyzer (11)
DataFlow\LocalDataFlowVisitor.cs (1)
921savedTargetValues[operation] = value;
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (3)
74branchInput[entryOut.Value] = new TState() 123finallyInputState[finallyRegion] = state; 146exceptionFinallyState[branch] = state;
TrimAnalysis\TrimAnalysisPatternStore.cs (6)
48BackingFieldAccessPatterns[pattern.Operation] = pattern.Merge(FeatureContextLattice, existingPattern); 67AssignmentPatterns[trimAnalysisPattern.Operation] = trimAnalysisPattern.Merge(Lattice, FeatureContextLattice, existingPattern); 78FieldAccessPatterns[pattern.Operation] = pattern.Merge(FeatureContextLattice, existingPattern); 89GenericInstantiationPatterns[pattern.Operation] = pattern.Merge(FeatureContextLattice, existingPattern); 100MethodCallPatterns[pattern.Operation] = pattern.Merge(Lattice, FeatureContextLattice, existingPattern); 111ReflectionAccessPatterns[pattern.Operation] = pattern.Merge(FeatureContextLattice, existingPattern);
TrimAnalysis\TrimAnalysisVisitor.cs (1)
339arr.IndexValues[index.Value] = merge
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
172namespaceDictionary[lhs] = namespaceDefElements[2]; 179namespaceDictionary[lhs] = namespaceDictionary[prefix] + namespaceDefElements[3]; 451classIdsToClassNames[classId] = fullClassName; 460classNamesToClassMembers[fullClassName] = members; 469currentFeatureSwitchMembers[fullClassName] = members;
Infrastructure.Common (36)
artifacts\bin\Infrastructure.Common\Debug\_ServiceModel.TestProperties.Generated.cs (34)
42properties["ServicePort"] = "44283"; 43properties["ServiceHttpPort"] = "8081"; 44properties["ServiceHttpsPort"] = "44285"; 45properties["ServiceTcpPort"] = "8808"; 46properties["ServiceWebSocketPort"] = "8083"; 47properties["ServiceSecureWebSocketPort"] = "8084"; 48properties["TestRootCertificatePassword"] = "test"; 49properties["TestRootCertificateValidityPeriod"] = "7.00:00:00"; 50properties["MaxTestTimeSpan"] = "00:01:00"; 51properties["NegotiateTestRealm"] = ""; 52properties["NegotiateTestDomain"] = ""; 53properties["NegotiateTestSpn"] = ""; 54properties["NegotiateTestUpn"] = ""; 55properties["Domain_Joined"] = ""; 56properties["Server_Domain_Joined"] = ""; 57properties["Root_Certificate_Installed"] = ""; 58properties["Client_Certificate_Installed"] = ""; 59properties["Peer_Certificate_Installed"] = ""; 60properties["OSXPeer_Certificate_Installed"] = ""; 61properties["SPN_Available"] = ""; 62properties["UPN_Available"] = ""; 63properties["Server_Accepts_Certificates"] = ""; 64properties["Ambient_Credentials_Available"] = ""; 65properties["Explicit_Credentials_Available"] = ""; 66properties["Basic_Authentication_Available"] = ""; 67properties["Digest_Authentication_Available"] = ""; 68properties["Windows_Authentication_Available"] = ""; 69properties["NTLM_Available"] = ""; 70properties["ServiceUri"] = "localhost"; 71properties["ExplicitUserName"] = ""; 72properties["ExplicitPassword"] = ""; 73properties["SSL_Available"] = ""; 74properties["IncludeTestsWithIssues"] = ""; 75properties["RunWithCoreWCF"] = "";
ConditionalWcfTest.cs (1)
82s_evaluatedConditions[conditionName] = result;
JsonSerializer.cs (1)
45dictionary[key] = value;
Infrastructure.Tests (21)
PowerShellScripts\DownloadNativeArchivesTests.cs (10)
468_artifactZips[name] = BuildZip(zipEntries); 502_artifactZips[name] = BuildZip(zipEntries); 503_flakyRemaining[name] = failTimes; 515_artifactZips[name] = BuildZip(zipEntries); 516_truncatedRemaining[name] = truncateTimes; 529_artifactZips[name] = BuildZip(zipEntries); 530_corruptRemaining[name] = corruptTimes; 607_flakyRemaining[fileName] = remaining - 1; 619_truncatedRemaining[fileName] = truncateLeft - 1; 633_corruptRemaining[fileName] = corruptLeft - 1;
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
657results[key] = ParseGitHubMatrixJson(value);
PowerShellScripts\PowerShellCommand.cs (1)
46Environment[key] = value;
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
296dict[key] = prop.GetValue(entry)!; 318results[key] = ParseGitHubMatrixJson(value);
TestTriggerMap\SelectTestsCliTests.cs (2)
1082map[line[..eq]] = line[(eq + 1)..]; 1095map[name] = value ? "true" : "false";
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (1)
365map[line[..eq]] = line[(eq + 1)..];
tools\GenerateCITimeline\GitHubApi.cs (1)
95merged[prop.Name] = list;
tools\GenerateCITimeline\TimelineRenderer.cs (2)
260groups[baseName] = group; 412phaseJobs[phase] = list;
WorkflowScripts\NodeCommand.cs (1)
34Environment[key] = value;
installer.tasks (4)
GenerateFileVersionProps.cs (4)
71fileVersions[fileName] = current; 78fileVersions[fileName] = current; 89fileVersions[fileName] = current; 95fileVersions[fileName] = current;
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
TestCommandExtensions.cs (1)
13command.EnvironmentVariables[name] = value;
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationHandlerProvider.cs (1)
55_handlerMap[authenticationScheme] = handler;
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
82queryStrings["state"] = Options.StateDataFormat.Protect(properties);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
MicrosoftAccountHandler.cs (3)
91queryStrings[OAuthConstants.CodeChallengeKey] = codeChallenge; 92queryStrings[OAuthConstants.CodeChallengeMethodKey] = OAuthConstants.CodeChallengeMethodS256; 124queryStrings[name] = value;
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (3)
325parameters[OAuthConstants.CodeChallengeKey] = codeChallenge; 326parameters[OAuthConstants.CodeChallengeMethodKey] = OAuthConstants.CodeChallengeMethodS256; 329parameters["state"] = Options.StateDataFormat.Protect(properties);
Microsoft.AspNetCore.Authorization (2)
AuthorizationOptions.cs (2)
59PolicyMap[name] = Task.FromResult<AuthorizationPolicy?>(policy); 74PolicyMap[name] = Task.FromResult<AuthorizationPolicy?>(policyBuilder.Build());
Microsoft.AspNetCore.Components (19)
CascadingParameterValueProvider.cs (1)
38_subscriptions[key] = _subscribeFactory(subscriber, (TAttribute)parameterInfo.Attribute, parameterInfo);
NavigationManagerExtensions.cs (1)
585parameterSources[pair.EncodedName] = source;
ParameterView.cs (1)
111result[entry.Name] = entry.Value;
Reflection\ComponentProperties.cs (2)
134unmatched[parameterName] = parameter.Value; 155unmatched[parameterName] = parameter.Value;
Reflection\MemberAssignment.cs (1)
36dictionary[property.Name] = many;
Rendering\RenderTreeBuilder.cs (2)
857seenAttributeNames[frame.AttributeNameField] = i; 915seenAttributeNames[name] = _entries.Count; // See comment in ProcessAttributes for why this is OK.
RenderTree\Renderer.cs (1)
337_rootComponentsLatestParameters[componentId] = initialParameters.Clone();
RenderTree\RenderTreeDiffBuilder.cs (6)
140keyedItemInfos[oldKey] = oldKeyItemInfo.WithOldSiblingIndex(diffContext.SiblingIndex); 141keyedItemInfos[newKey] = newKeyItemInfo.WithNewSiblingIndex(diffContext.SiblingIndex); 342result[key] = new KeyedItemInfo(oldStartIndex, -1); 356result[key] = new KeyedItemInfo(-1, newStartIndex); 365result[key] = new KeyedItemInfo(existingEntry.OldIndex, newStartIndex); 510diffContext.AttributeDiffSet[newTree[i].AttributeNameField] = i;
ResourceAssetCollection.cs (1)
42mappings[property.Value] = resource;
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
605updatedDefaults[parameter.Name] = parameter.Default;
src\aspnetcore\src\Http\Routing\src\RouteOptions.cs (1)
175constraintMap[text] = typeof(TConstraint);
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
41_store[category] = new CategoryLink(activityLink, tag);
Microsoft.AspNetCore.Components.AI.SourceGenerators (3)
ToolBlockEmitter.cs (1)
197seen[c.ToolName] = c;
ToolBlockParser.cs (2)
143seenKeys[argKey] = prop.Name; 187seenResultKeys[resultKey] = prop.Name;
Microsoft.AspNetCore.Components.Analyzers (1)
StateHasChangedAnalyzer.cs (1)
208callLocations[stateCall.SpanStart] = stateCall.GetLocation();
Microsoft.AspNetCore.Components.Endpoints (18)
Assets\ImportMapDefinition.cs (5)
72importMap._integrity[$"./{asset.Url}"] = integrity; 78importMap._imports[$"./{label}"] = $"./{asset.Url}"; 128importMap._imports[key] = value; 146importMap._scopes[key] = new Dictionary<string, string>(value); 156importMap._integrity[key] = value;
Builder\ResourcePreloadCollection.cs (1)
40groupHeaders = _storage[group] = new List<PreloadAsset>();
CacheView\CacheViewService.cs (1)
110resolutions[key] = (cacheView, resolution.Task);
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
57_context.TypeMetadata[type] = result;
Rendering\SSRRenderModeBoundary.cs (4)
131_topLevelCaptures[name] = capture; 132parametersDict[name] = (RenderFragment)capture.Invoke; 259dict[name] = new SerializedRenderFragment 266dict[name] = value;
Serialization\JsonStoredDataSerializer.cs (1)
77result[key] = DeserializeEntry(element);
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
88_childCaptures[j - start] = innerCapture;
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
41_store[category] = new CategoryLink(activityLink, tag);
TempData\TempData.cs (3)
45Data[key] = value; 92dataToSave[key] = _data[key]; 103_data[kvp.Key] = kvp.Value;
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
29_contents[key] = value;
Microsoft.AspNetCore.Components.Server (2)
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
88_childCaptures[j - start] = innerCapture;
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
41_store[category] = new CategoryLink(activityLink, tag);
Microsoft.AspNetCore.Components.Testing (8)
Infrastructure\PlaywrightExtensions.cs (1)
40headers["X-Test-Backend"] = server.Id;
Infrastructure\ServerInstance.cs (7)
227environment["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = testAssemblyName; 228environment["DOTNET_STARTUP_HOOKS"] = testAssemblyLocation; 236environment["DOTNET_ROOT"] = dotnetRoot; 242environment["E2E_TEST_SERVICES_TYPE"] = options.ServiceOverrideTypeName; 243environment["E2E_TEST_SERVICES_METHOD"] = options.ServiceOverrideMethodName!; 248environment[key] = value; 253environment[key] = value;
Microsoft.AspNetCore.Components.Testing.Tasks (2)
GenerateE2EManifest.cs (2)
120manifest.Apps[name] = entry; 173manifest.Apps[publishKey] = publishEntry;
Microsoft.AspNetCore.Components.Web (2)
Forms\ClientValidation\RenderedFieldRegistry.cs (1)
22=> _fields[fieldIdentifier] = renderedName;
Forms\InputBase.cs (1)
355additionalAttributes["aria-invalid"] = "true";
Microsoft.AspNetCore.Components.WebAssembly (4)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (3)
48parametersDictionary[definition.Name] = null; 63parametersDictionary[definition.Name] = RenderFragmentSerializer.Deserialize(serialized!.Nodes, WebAssemblyComponentSerializationSettings.JsonSerializationOptions, _parametersCache); 103parametersDictionary[definition.Name] = parameterValue;
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
88_childCaptures[j - start] = innerCapture;
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Models\InteractiveRequestOptions.cs (1)
73AdditionalRequestParameters[name] = value;
Microsoft.AspNetCore.DataProtection (4)
KeyManagement\XmlKeyManager.cs (1)
205keyIdToKeyMap[key.KeyId] = key;
XmlEncryption\XmlEncryptionExtensions.cs (2)
57placeholderReplacements[newPlaceholder] = decryptedElement; 138placeholderReplacements[newPlaceholder] = encryptedXmlInfo;
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
33certificates = _certs[key] = new List<X509Certificate2>();
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (2)
src\aspnetcore\src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
34ConfigTypes[NamedConfiguration.Default] = configType; 39ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
57parametersToRedact[p.ParameterInfo.Name!] = classification;
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\Json\EnumNameHelpers.cs (1)
98removeEnumPrefixMapping[item.Key] = item.Value;
Internal\Json\MessageTypeInfoResolver.cs (2)
198map[field.Name] = field; 202map[field.JsonName] = field;
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
64properties[name] = values;
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
543queryParameters[joinedPath] = fieldDescriptor; 553queryParameters[joinedPath] = fieldDescriptor;
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
95Store[key] = value;
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
126_dictionaryStorage[key] = value; 521_dictionaryStorage[item.Key] = item.Value;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
1023requestHeaders[header.Key] = header.Value;
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
57_context.TypeMetadata[type] = result;
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
451errorDictionary[error.Code] = newDescriptions;
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (1)
254_logs[assembly] = log;
Tracing\CollectingEventListener.cs (1)
47_existingSources[eventSource.Name] = eventSource;
Tracing\EventSourceValidator.cs (1)
73seenIds[eventAttr.EventId] = method.Name;
xunit\AspNetTestAssemblyRunner.cs (1)
75_assemblyFixtureMappings[fixtureAttribute.FixtureType] = instance;
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelMetadata.cs (2)
678parameterMapping[parameter] = property; 679propertyMapping[property] = parameter;
ModelBinding\Validation\ValidationStateDictionary.cs (1)
41_inner[key] = value!;
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
ApiResponseTypeProvider.cs (4)
287results[key] = apiResponseType; 293statusCodeScopes[statusCode] = attributeScope; 294results[key] = apiResponseType; 365results[key] = apiResponseType;
Microsoft.AspNetCore.Mvc.Core (9)
Builder\ControllerEndpointRouteBuilderExtensions.cs (3)
36result.Items[EndpointRouteBuilderKey] = endpoints; 59dataSource.DefaultBuilder.Items[EndpointRouteBuilderKey] = endpoints; 108dataSource.DefaultBuilder.Items[EndpointRouteBuilderKey] = endpoints;
Controllers\ControllerBinderDelegateProvider.cs (1)
84arguments[parameter.Name] = result.Model;
Formatters\FormatterMappings.cs (1)
45_map[format] = contentType.ToString();
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
28dictionary[normalizedKey] = originalValue.Value;
ModelBinding\ModelBinderFactory.cs (2)
138visited[key] = binder; 168visited[key] = result;
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
BsonTempDataSerializer.cs (4)
75convertedDictionary[item.Key] = result; 87convertedDictionary[item.Key] = null; 102convertedDictionary[item.Key] = result; 116convertedDictionary[item.Key] = (int)longValue;
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
68_hotReloadedViews[identifierAttribute.Value] = type;
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
40output[assemblyName] = contentRoot;
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
41builder.Items[ResourceCollectionResolverKey] = resolver;
FormContext.cs (2)
155RenderedFields[fieldName] = value; 171InvariantFields[fieldName] = value;
HtmlHelper.cs (1)
1396groupList[keyValuePair.Key.Group] = group;
Infrastructure\DefaultTempDataSerializer.cs (2)
74deserialized[item.Name] = deserializedValue; 122dictionary[item.Name] = item.Value.GetString();
TempDataDictionary.cs (1)
101_data[key] = value;
TryGetValueProvider.cs (1)
74_tryGetValueDelegateCache[targetType] = result;
Microsoft.AspNetCore.OpenApi (11)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
83values[key] = (T)JsonSerializer.Deserialize(ref reader, typeof(T), context)!;
Services\OpenApiDocumentService.cs (3)
304operations[method] = operation; 409responses[group.Key] = await GetResponseAsync(document, description, statusCode, group.ToList(), scopedServiceProvider, schemaTransformers, cancellationToken); 470schemasByContentType[contentType] = contentTypeSchemas;
Services\OpenApiGenerator.cs (7)
148eligibileAnnotations[statusCode] = (discoveredTypeAnnotation, discoveredContentTypeAnnotation); 188eligibileAnnotations[statusCode] = (discoveredTypeAnnotation, discoveredContentTypeAnnotation); 206responseContent[contentType] = new OpenApiMediaType(); 209responses[statusCode.ToString(CultureInfo.InvariantCulture)] = new OpenApiResponse 280requestBodyContent[contentType] = new OpenApiMediaType(); 301requestBodyContent["multipart/form-data"] = new OpenApiMediaType(); 305requestBodyContent["application/json"] = new OpenApiMediaType();
Microsoft.AspNetCore.OutputCaching (3)
Memory\MemoryOutputCacheStore.cs (1)
97_taggedEntries[tag] = keys;
OutputCacheOptions.cs (2)
56NamedPolicies[name] = policy; 78NamedPolicies[name] = builder.Build();
Microsoft.AspNetCore.Razor.Runtime (2)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
266_perEncoderChildContent[encoder] = childContent;
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\IISRewriteMap.cs (1)
28_map[key] = value;
IISUrlRewrite\IISRewriteMapCollection.cs (1)
16_rewriteMaps[rewriteMap.Name] = rewriteMap;
Microsoft.AspNetCore.Routing (6)
EndpointNameAddressScheme.cs (2)
52entries[endpointName] = new[] { endpoint }; 64entries[endpointName] = newEntry;
Matching\DfaMatcherBuilder.cs (1)
149_cachedParameters[inlineText] = createdParameterPolicy;
Matching\HttpMethodMatcherPolicy.cs (1)
286edges[new EdgeKey(AnyMethod, false)] = matches;
Patterns\RoutePatternFactory.cs (1)
605updatedDefaults[parameter.Name] = parameter.Default;
RouteOptions.cs (1)
175constraintMap[text] = typeof(TConstraint);
Microsoft.AspNetCore.Server.HttpSys (3)
StandardFeatureCollection.cs (3)
46_featureFuncLookup[typeof(IHttpUpgradeFeature)] = _identityFunc; 48_featureFuncLookup[typeof(ITlsHandshakeFeature)] = ctx => ctx.GetTlsHandshakeFeature(); 53_featureFuncLookup[typeof(IHttpSysRequestDelegationFeature)] = _identityFunc;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\HttpRequestHeaders.cs (2)
147Unknown[GetInternedHeaderName(key)] = value; 163Unknown[name] = AppendValue(existing, valueString);
Internal\Http\HttpResponseHeaders.cs (1)
128Unknown[GetInternedHeaderName(key)] = value;
Internal\Http\HttpResponseTrailers.cs (1)
35Unknown[GetInternedHeaderName(key)] = value;
Internal\Http2\Http2Connection.cs (1)
1300_streams[_incomingFrame.StreamId] = _currentHeadersStream;
Internal\Http3\Http3Connection.cs (2)
841_streams[stream.StreamId] = stream; 937_webtransportSessions[http3Stream.StreamId] = session;
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (4)
TlsEventPump.cs (4)
282_handshaking[fd] = conn; 681_handshaking[clientFd] = new HandshakingConnection 938_handshaking[fd] = conn; 962_handshaking[fd] = conn;
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
20public void SetValue(EncodedKey key, byte[] value) => _store[key] = value;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1054readers[id] = arg;
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Parser.cs (1)
271providerSymbols[symbol.Name] = (symbol, memberAccess);
HubServerProxyGenerator.Parser.cs (1)
248hubSymbols[symbol.Name] = (symbol, memberAccess);
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (1)
917_methods[methodName] = new HubMethodDescriptor(executor, serviceProviderIsService, authorizationMetadata);
Internal\DefaultHubProtocolResolver.cs (1)
27_availableProtocols[protocol.Name] = protocol;
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
504headers[propertyName] = reader.GetString()!;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
501headers[propertyName] = reader.Value.ToString()!;
Microsoft.AspNetCore.WebUtilities (5)
KeyValueAccumulator.cs (5)
39_accumulator[key] = new string[] { values[0]!, value }; 45_accumulator[key] = default(StringValues); 60_expandingAccumulator[key] = list; 66_accumulator[key] = new StringValues(value); 101_accumulator[entry.Key] = new StringValues(entry.Value.ToArray());
Microsoft.Build (188)
BackEnd\BuildManager\BuildManager.cs (3)
1634_unnamedProjectInstanceToNames[submission.BuildRequestData.ProjectInstance!] = tempName; 2773_nodeIdToKnownConfigurations[node] = configurationsOnNode; 3260_projectStartedEvents[e.BuildEventContext.SubmissionId] = e;
BackEnd\BuildManager\BuildParameters.cs (1)
383environment[name] = value;
BackEnd\BuildManager\CacheAggregator.cs (1)
77configIdMapping[config.ConfigurationId] = _lastConfigurationId;
BackEnd\Client\MSBuildClient.cs (1)
642envVars[pair.Key] = pair.Value;
BackEnd\Components\BuildComponentFactoryCollection.cs (21)
62_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton); 63_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton); 64_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton); 65_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton); 66_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton); 68_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton); 69_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton); 70_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton); 71_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton); 76_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton); 80_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null); 81_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways); 83_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton); 84_componentEntriesByType[BuildComponentType.TelemetryCollector] = new BuildComponentEntry(BuildComponentType.TelemetryCollector, TelemetryCollectorProvider.CreateComponent, CreationPattern.Singleton); 85_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways); 86_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways); 87_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton); 90_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton); 128_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, existingEntry.Pattern); 139_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, instance); 150_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, creationPattern);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
435_requestsByGlobalRequestId[request.GlobalRequestId] = entry;
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
444_outstandingResults[requestEntry.Key] = new BuildResult(requestEntry.Value, new BuildAbortedException()); 454_outstandingResults[request.NodeRequestId] = new BuildResult(request, new BuildAbortedException());
BackEnd\Components\Logging\ProjectTelemetry.cs (3)
111_msbuildTaskSubclassUsage[baseTypeName] = count + 1; 181properties[propertyName] = count.ToString(CultureInfo.InvariantCulture); 225properties[propertyName] = kvp.Value.ToString(CultureInfo.InvariantCulture);
BackEnd\Components\RequestBuilder\BatchingEngine.cs (4)
227itemListsToBeBatched[consumedMetadataReference.ItemName] = null; 271itemListsToBeBatched[consumedItemName] = items; 411itemMetadataValues[metadataQualifiedName] = String.Empty; 419itemMetadataValues[metadataQualifiedName] = ((IItem)item).GetMetadataValueEscaped(metadataName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
786_addTable[name] = value;
BackEnd\Components\RequestBuilder\Lookup.cs (5)
229lookupHash[propertyName] = ((IProperty)property).EvaluatedValueEscaped; 870PrimaryModifyTable[itemType] = modifiesOfType; 919_cloneTable[cloneItem] = originalItem; 1207_modifications[modificationPair.Key] = modificationPair.Value; 1271_modifications[metadataName] = value;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
485_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.GlobalRequestId;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
843itemVectorCollection[itemVectorType] = itemVectorPartition; 847itemVectorPartition[item] = itemVectorContents; 855discreteItems[item] = item;
BackEnd\Components\Scheduler\SchedulableRequest.cs (7)
140_timeRecords[SchedulableRequestState.Unscheduled] = new ScheduleTimeRecord(); 141_timeRecords[SchedulableRequestState.Blocked] = new ScheduleTimeRecord(); 142_timeRecords[SchedulableRequestState.Yielding] = new ScheduleTimeRecord(); 143_timeRecords[SchedulableRequestState.Executing] = new ScheduleTimeRecord(); 144_timeRecords[SchedulableRequestState.Ready] = new ScheduleTimeRecord(); 145_timeRecords[SchedulableRequestState.Completed] = new ScheduleTimeRecord(); 362_requestsWeAreBlockedBy[key] = blockingRequest;
BackEnd\Components\Scheduler\Scheduler.cs (3)
550_availableNodes[nodeInfo.NodeId] = nodeInfo; 1366configurationCountsByNode[availableNodeId] = _schedulingData.GetConfigurationsCountByNode(availableNodeId, true /* excludeTraversals */, _configCache); 2424availableNodeIdsToIndex[availableNodeId] = indexIntoArrays;
BackEnd\Components\Scheduler\SchedulingData.cs (11)
266_unscheduledRequestNodesByRequest[request] = requestNode; 273_configurationToRequests[request.BuildRequest.ConfigurationId] = requests; 281_buildHierarchy[request] = new List<SchedulableRequest>(8); 335_scheduledRequestsByNode[request.AssignedNode] = requestsAssignedToNode; 346_configurationsByNode[request.AssignedNode] = configurationsAssignedToNode; 363_blockedRequests[request.BuildRequest.GlobalRequestId] = request; 368_yieldingRequests[request.BuildRequest.GlobalRequestId] = request; 387_executingRequests[request.BuildRequest.GlobalRequestId] = request; 389_configurationToNode[request.BuildRequest.ConfigurationId] = request.AssignedNode; 399_readyRequests[request.BuildRequest.GlobalRequestId] = request; 404_readyRequestsByNode[request.AssignedNode] = readyRequestsOnNode;
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
305_configIdToPaths[root.ConfigId] = pathsForConfig; 414_configIdToData[configId] = data; 415_configPathToData[configFullPath] = data; 466accumulatedTimeByConfiguration[request.BuildRequest.ConfigurationId] = accumulatedTime + request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalMilliseconds;
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
299_manifestToResolvers[resolverManifest] = newResolvers; 447_manifestToResolvers[sdkResolverManifest] = resolvers;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
609setParameters[parameter.Key] = String.Empty; 1243_intrinsicTasks[_taskName] = returnClass; 1248_intrinsicTasks[_taskName] = returnClass;
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
66_projectsPerOutputPath[targetPath] = context.Data.ProjectFilePath; 95_projectsPerReferencePath[referenceFullPath] = (context.Data.ProjectFilePath, evaluatedReferencePath);
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
137_writenProperties[writeData.PropertyName] = writeData.ElementLocation; 194_uninitializedReadsInScope[readData.PropertyName] = readData.ElementLocation; 199_uninitializedReadsOutOfScope[readData.PropertyName] = readData.ElementLocation;
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
87_projectsPerOutputPath[path!] = projectPath;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
702_deferredEvalDiagnostics[eventArgs.BuildEventContext.EvaluationId] = list;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
219taskData.TaskParameters[parameterName] = new TaskInvocationCheckData.TaskParameter(parameterValue, isOutput);
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
176filteredConfig[newKey] = kv.Value;
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
94resultingDictionary[property.Key] = property.Value;
Collections\ItemDictionary.cs (3)
328_itemLists[itemType] = list; 373_itemLists[itemType] = listWithRemoves; 388_itemLists[projectItem.Key] = list;
Collections\ItemDictionarySlim.cs (4)
40_itemLists[projectItem.ItemType] = list; 68_itemLists[itemType] = itemsToAdd; 81_itemLists[itemType] = list; 98_itemLists[itemType] = list;
Collections\PropertyDictionary.cs (1)
570dictionary[property.Key] = property.EscapedValue;
Collections\WeakValueDictionary.cs (1)
133_dictionary[key] = wrappedValue;
Construction\ProjectTaskElement.cs (1)
153parametersClone[entry.Key] = entry.Value.Item1;
Construction\Solution\ProjectInSolution.cs (1)
286_projectConfigurations[configurationName] = configuration;
Construction\Solution\SolutionFile.cs (4)
511_solutionFoldersByGuid[proj.ProjectGuid] = proj; 699_solutionConfigurationsByFullName[solutionConfiguration.FullName] = solutionConfiguration; 1281_projectsByGuid[proj.ProjectGuid] = proj; 1732rawProjectConfigurationsEntries[nameValue[0].Trim()] = nameValue[1].Trim();
Construction\Solution\SolutionProjectGenerator.cs (4)
2143properties[property.Item1] = EscapingUtilities.Escape(traversalProject.GetPropertyValue(property.Item1)); 2147properties[property.Item1] = EscapingUtilities.Escape(property.Item2); 2154properties[globalProperty.Name] = ((IProperty)globalProperty).EvaluatedValueEscaped; 2163properties[Constants.SubToolsetVersionPropertyName] = traversalProject.SubToolsetVersion;
Definition\Project.cs (1)
2178dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped;
Definition\ProjectCollection.cs (3)
683dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 1155_toolsets[toolset.ToolsVersion] = toolset; 1325mergedProperties[property.Key] = property.Value;
Definition\ToolsetConfigurationReader.cs (1)
217_projectImportSearchPathsCache[key] = kindToPathsCache;
Definition\ToolsetReader.cs (2)
433toolsets[toolset.ToolsVersion] = toolset; 486subToolsets[subToolsetVersion] = new SubToolset(subToolsetVersion, subToolsetProperties);
Evaluation\ConditionEvaluator.cs (1)
87conditionedPropertiesTable[propertyNameString] = conditionedPropertyValues;
Evaluation\Evaluator.cs (5)
997_projectSupportsReturnsAttribute[currentProjectOrImport] = projectSupportsReturnsAttribute || (target.Returns != null); 1136activeTargets[targetName] = activeTargetsByEvaluationOrder.AddLast(targetElement); 1158targetsWhichRunBeforeByTarget[unescapedBeforeTarget] = beforeTargetsForTarget; 1181targetsWhichRunAfterByTarget[unescapedAfterTarget] = afterTargetsForTarget; 2074escapedMetadata[metadata.Key] = EscapingUtilities.Escape(metadata.Value);
Evaluation\EvaluatorMetadataTable.cs (1)
95_metadata[xml.Name] = evaluatedValueEscaped;
Evaluation\Expander.ItemExpander.Transforms.cs (1)
372directoryNameTable[unescapedPath] = directoryName;
Evaluation\ExpressionShredder.cs (1)
431pair.Metadata[qualifiedMetadataName] = new MetadataReference(itemName, metadataName);
Evaluation\GlobResultBuilder.cs (1)
180removeElementCache[itemElement.ItemType] = cumulativeRemoveElementData;
Evaluation\LazyItemEvaluator.cs (2)
242_cache[globsToIgnore] = items; 529_itemLists[itemElement.ItemType] = newList;
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (4)
78_dictionaryBuilder[oldNormalizedValue] = oldDictionaryEntry; 83_dictionaryBuilder[newNormalizedValue] = newDictionaryEntry; 90_dictionaryBuilder[newNormalizedValue] = dictionaryEntry; 189_dictionaryBuilder[key] = dictionaryValue;
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
136capturedItemsFromReferencedItemTypes[referencedItem.Item.Key] = referencedItem.Item;
Evaluation\ParserIgnoreConfiguration.cs (2)
249destination[kvp.Key] = names; 361destination[elementName] = names;
Evaluation\Preprocessor.cs (2)
126_importTable[element] = list; 149_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>();
Evaluation\Profiler\EvaluationProfiler.cs (1)
154_evaluationProfiler._timeSpent[Location] = updatedTimeSpent;
Evaluation\ToolsetProvider.cs (1)
41_toolsets[toolset.ToolsVersion] = toolset;
Graph\GraphBuilder.cs (2)
194transitiveReferenceCache[parsedProject.GraphNode] = transitiveReferences; 226projectsByPath[projectPath] = new List<ProjectGraphNode> { project.Value.GraphNode };
Graph\ParallelWorkSet.cs (1)
57completedWork[kvp.Key] = workItem.Value;
Graph\ProjectGraph.cs (3)
609if (--inDegree[reference] == 0) 743targetLists[node] = targetLists[node].AddRange(requestedTargets); 810targetLists[pair.Key] = pair.Value;
Instance\HostServices.cs (6)
224_projectAffinities[projectFile] = nodeAffinity; 238_hostObjectMap[newFullPath] = hostObjects; 300_hostObjectMap[projectFile] = hostObjects; 323hostObjectMap[pairKey] = hostObject; 443_hostObjects[new TargetTaskKey(targetName, taskName)] = new MonikerNameOrITaskHost(hostObject); 459_hostObjects[new TargetTaskKey(targetName, taskName)] = new MonikerNameOrITaskHost(monikerName);
Instance\ProjectInstance.cs (1)
2709globalProperties[propertyInstance.Name] = ((IProperty)propertyInstance).EvaluatedValueEscaped;
Instance\ProjectItemInstance.cs (2)
1637clonedMetadata[metadatum.Key] = EscapingUtilities.UnescapeAll(metadatum.Value); 1654clonedMetadata[metadatum.Key] = metadatum.Value;
Instance\ProjectTaskInstance.cs (1)
240filteredParameters[parameter.Key] = parameter.Value.Item1;
Instance\TaskFactories\TaskHostTask.cs (1)
455result[kvp.Key] = kvp.Value;
Instance\TaskFactoryWrapper.cs (3)
294namesOfPropertiesWithAmbiguousMatches[propertyInfo.Name] = String.Empty; 305namesOfPropertiesWithRequiredAttribute[propertyInfo.Name] = String.Empty; 316namesOfPropertiesWithOutputAttribute[propertyInfo.Name] = String.Empty;
Instance\TaskRegistry.cs (2)
693_taskRegistrations[taskIdentity] = registeredTaskEntries; 1371_taskNamesCreatableByFactory[taskIdentity] = creatableByFactory;
Logging\BaseConsoleLogger.cs (1)
686table[scopeName] = counter;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
725d[evaluationLocation] = profiledLocation; 1581result[key] = value;
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
1224nameValueListHashes[hash] = nameValueRecordId; 1365stringHashes[hash] = stringRecordId;
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
589propertyOutputMap[projectKey] = result; 600propertyOutputMap[projectKey] = value; 1230propertyOutputMap[evaluationKey] = value; 1681table[scopeName] = counter;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (3)
57_projectKey[e.ProjectFile] = _projectIncrementKey; 65_projectTargetKey[e.ProjectFile] = projectTargetKeyLocal; 72_projectTargetKey[e.ProjectFile] = projectTargetKeyLocal;
Logging\ProfilerLogger.cs (2)
167_aggregatedLocations[EvaluationLocation.CreateLocationForAggregatedGlob()] = 231result[key.WithParentId(parentId)] = prunedPair.Value;
Logging\TerminalLogger\TerminalLogger.cs (2)
762_projects[c] = projectInfo; 928_projectEvaluations[c] = evalInfo;
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (1)
1163accumulator[key] = arrayBuilder;
src\msbuild\src\Shared\NodePacketFactory.cs (1)
35_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
src\msbuild\src\Shared\PlatformNegotiation.cs (1)
119table[keyVal[0]] = keyVal[1];
src\msbuild\src\Shared\PropertyParser.cs (2)
68propertiesTable[propertyName] = propertyValue; 183finalPropertiesTable[propertyNameValuePair.Name] = propertyValue;
src\msbuild\src\Shared\TaskHostBuildResponse.cs (2)
70dict[entry.Key] = (ITaskItem[]?)entry.Value?.WrappedParameter ?? []; 101dict[entry.Key] = new TaskParameter(entry.Value);
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
237_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
src\msbuild\src\Shared\TaskHostTaskComplete.cs (1)
129_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
src\msbuild\src\Shared\TaskParameter.cs (3)
633_customEscapedMetadata[ItemSpecModifiers.RecursiveDir] = recursiveDirEscaped; 642_customEscapedMetadata[ItemSpecModifiers.RecursiveDir] = EscapingUtilities.Escape(recursiveDir); 758_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
src\msbuild\src\Shared\Tracing.cs (1)
111s_counts[counter] = incremented;
src\msbuild\src\Shared\TypeLoader.cs (1)
310assembliesDictionary[Path.GetFileName(path)] = path;
Microsoft.Build.Framework (62)
BackEnd\CommunicationsUtilities.cs (1)
302table[key] = value;
BinaryTranslator.cs (2)
636additionalEntries[key] = value; 741dictionary[key] = value;
BuildException\BuildExceptionSerializationHelper.cs (1)
59exceptionFactories[key] = exceptionFactory;
BuildSubmissionStartedEventArgs.cs (1)
91globalProperties[key] = value;
DotnetHostEnvironmentHelper.cs (1)
102overrides[varName] = null;
EscapingUtilities.cs (1)
46s_escapedStringCache[key] = value;
Loader\CoreCLRAssemblyLoader.cs (3)
120_pathsToAssemblies[fullPath] = assembly; 218_pathsToAssemblies[fullPath] = assembly; 219_namesToAssemblies[name] = assembly;
MultiThreadedTaskEnvironmentDriver.cs (2)
96_environmentVariables[name] = value; 112_environmentVariables[entry.Key] = entry.Value;
MutableTaskItem.cs (1)
28public void SetMetadata(string metadataName, string metadataValue) => _metadata[metadataName] = metadataValue;
SolutionConfiguration.cs (4)
74_cachedProjectElements[projectGuid] = xmlElement; 77_cachedProjectElementsByAbsolutePath[projectAbsolutePath] = xmlElement; 78_cachedProjectAbsolutePathsByGuid[projectGuid] = projectAbsolutePath; 79_cachedProjectGuidsByAbsolutePath[projectAbsolutePath] = projectGuid;
Telemetry\BuildCheckTelemetry.cs (23)
26properties["SubmissionId"] = _submissionId.ToString(); 27properties["AssemblyName"] = assemblyName; 31properties["ExceptionType"] = exceptionType; 37properties["ExceptionMessage"] = sanitizedMessage; 56properties["SubmissionId"] = _submissionId.ToString(); 57properties["RulesCount"] = rulesCount.ToString(CultureInfo.InvariantCulture); 58properties["CustomRulesCount"] = customRulesCount.ToString(CultureInfo.InvariantCulture); 59properties["ViolationsCount"] = violationsCount.ToString(CultureInfo.InvariantCulture); 60properties["TotalRuntimeInMilliseconds"] = totalRuntime.TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 67properties["SubmissionId"] = _submissionId.ToString(); 68properties["RuleId"] = buildCheckRuleTelemetryData.RuleId; 69properties["CheckFriendlyName"] = buildCheckRuleTelemetryData.CheckFriendlyName; 70properties["IsBuiltIn"] = buildCheckRuleTelemetryData.IsBuiltIn.ToString(CultureInfo.InvariantCulture); 71properties["DefaultSeverityId"] = ((int)buildCheckRuleTelemetryData.DefaultSeverity).ToString(CultureInfo.InvariantCulture); 72properties["DefaultSeverity"] = buildCheckRuleTelemetryData.DefaultSeverity.ToString(); 73properties["EnabledProjectsCount"] = buildCheckRuleTelemetryData.ProjectNamesWhereEnabled.Count.ToString(CultureInfo.InvariantCulture); 77properties["ExplicitSeverities"] = buildCheckRuleTelemetryData.ExplicitSeverities 79properties["ExplicitSeveritiesIds"] = buildCheckRuleTelemetryData.ExplicitSeverities 83properties["ViolationMessagesCount"] = buildCheckRuleTelemetryData.ViolationMessagesCount.ToString(CultureInfo.InvariantCulture); 84properties["ViolationWarningsCount"] = buildCheckRuleTelemetryData.ViolationWarningsCount.ToString(CultureInfo.InvariantCulture); 85properties["ViolationErrorsCount"] = buildCheckRuleTelemetryData.ViolationErrorsCount.ToString(CultureInfo.InvariantCulture); 86properties["IsThrottled"] = buildCheckRuleTelemetryData.IsThrottled.ToString(CultureInfo.InvariantCulture); 87properties["TotalRuntimeInMilliseconds"] = buildCheckRuleTelemetryData.TotalRuntime.TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
Telemetry\BuildTelemetry.cs (3)
235properties[TelemetryConstants.BuildDurationPropertyName] = 241properties[TelemetryConstants.InnerBuildDurationPropertyName] = 251properties[key] = value;
Telemetry\CrashTelemetry.cs (1)
629properties[key] = value;
Telemetry\LoggingConfigurationTelemetry.cs (11)
89properties["TerminalLogger"] = TerminalLogger.ToString(CultureInfo.InvariantCulture); 93properties["TerminalLoggerUserIntent"] = TerminalLoggerUserIntent; 98properties["TerminalLoggerUserIntentSource"] = TerminalLoggerUserIntentSource; 103properties["TerminalLoggerDefault"] = TerminalLoggerDefault; 108properties["TerminalLoggerDefaultSource"] = TerminalLoggerDefaultSource; 111properties["ConsoleLogger"] = ConsoleLogger.ToString(CultureInfo.InvariantCulture); 115properties["ConsoleLoggerVerbosity"] = ConsoleLoggerVerbosity; 118properties["FileLogger"] = FileLogger.ToString(CultureInfo.InvariantCulture); 122properties["FileLoggerVerbosity"] = FileLoggerVerbosity; 125properties["BinaryLogger"] = BinaryLogger.ToString(CultureInfo.InvariantCulture); 126properties["BinaryLoggerUsedDefaultName"] = BinaryLoggerUsedDefaultName.ToString(CultureInfo.InvariantCulture);
Telemetry\TelemetryDataUtils.cs (2)
401properties[key] = list; 409properties[key] = value;
Telemetry\WorkerNodeTelemetryData.cs (4)
41TasksExecutionData[task] = taskExecutionStats; 64TargetsExecutionData[target] = TargetExecutionStats.Executed(); 68TargetsExecutionData[target] = TargetExecutionStats.Skipped(skipReason); 74TargetsExecutionData[target] = wasExecuted
Utilities\FileMatcher.cs (1)
3866searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
Microsoft.Build.NuGetSdkResolver (1)
GlobalJsonReader.cs (1)
198versionsByName[name] = value;
Microsoft.Build.Tasks.CodeAnalysis (6)
src\roslyn\src\Compilers\Core\MSBuildTask\PropertyDictionary.cs (1)
29set { base[name] = value; }
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
392properties[key] = value;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
520environmentVariables[key] = string.Empty; 524environmentVariables[key] = value ?? string.Empty; 532environmentVariables[RuntimeHostInfo.DotNetRootEnvironmentName] = dotNetRoot; 539environmentVariables[RuntimeHostInfo.DotNetTieredCompilationEnvironmentName] = value;
Microsoft.Build.Tasks.Core (49)
AssemblyDependency\Node\RarTaskParameters.cs (1)
67taskParameters[property.Target.Name] = new TaskParameter(value);
AssemblyDependency\Reference.cs (2)
155_sourceItems[itemSpec] = sourceItem; 736_preUnificationVersions[key] = unificationVersion;
AssemblyDependency\ReferenceTable.cs (8)
367_resolvedSDKReferences[sdkName] = resolvedSDK; 452References[assemblyName] = reference; 1378_externallyResolvedImmutableFiles[resolvedPath] = GetAssemblyNameFromItemMetadata(reference.PrimarySourceItem); 1441goodReferences[assemblyName] = assemblyReference; 1469goodReferences[assemblyName] = assemblyReference; 1937fullNameToReference[key] = assemblyNameReference; 1942fullNameToReference[key] = assemblyNameReference; 2232baseNameToReferences[baseName] = refs;
AssemblyDependency\ResolveAssemblyReference.cs (3)
1970_showAssemblyFoldersExLocations[location.SearchPath] = importance; 3232tableMap[listPath] = AssemblyTableInfo.CreateFromRelativePath(listPath, targetFrameworkDirectory, TaskEnvironment, Log); 3256tableMap[installedAssemblyTable.ItemSpec] = AssemblyTableInfo.CreateFromRelativePath(installedAssemblyTable.ItemSpec, frameworkDirectory, TaskEnvironment, Log);
BootstrapperUtil\BootstrapperBuilder.cs (1)
1537eulas[key] = de;
Copy.cs (2)
546filesActuallyCopied[destAbsolutePath] = sourceAbsolutePath; 629partitionsByDestination[destPath] = sourceIndices;
CreateItem.cs (1)
225uniqueItems[item.ItemSpec] = String.Empty;
CreateManifestResourceName.cs (1)
226itemSpecToTaskitem[resourceFile.ItemSpec] = resourceFile;
ManifestUtil\ApplicationManifest.cs (2)
670targetPathList[key] = true; // only warn once per path 716targetPathList[key] = true; // only warn once per path
ManifestUtil\Manifest.cs (1)
644identityList[key] = true; // only warn once per identity
RedistList.cs (3)
669denyListOfAssemblyNames[name] = null; 844assemblyEntries[hashIndex] = newEntry; 1120s_subsetListPathCache[key] = subsetFilesForFrameworkDirectory.ToArray();
ResolveSDKReference.cs (2)
294_runtimeReferenceOnlyDependenciesByName[dependencyName] = dependencyVersion; 309sdkItems[sdkName] = installedsdk;
ResourceHandling\MSBuildResXReader.cs (1)
72aliases[alias] = name;
src\msbuild\src\Shared\NodePacketFactory.cs (1)
35_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
src\msbuild\src\Shared\PlatformNegotiation.cs (1)
119table[keyVal[0]] = keyVal[1];
src\msbuild\src\Shared\PropertyParser.cs (2)
68propertiesTable[propertyName] = propertyValue; 183finalPropertiesTable[propertyNameValuePair.Name] = propertyValue;
src\msbuild\src\Shared\TaskParameter.cs (3)
633_customEscapedMetadata[ItemSpecModifiers.RecursiveDir] = recursiveDirEscaped; 642_customEscapedMetadata[ItemSpecModifiers.RecursiveDir] = EscapingUtilities.Escape(recursiveDir); 758_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
src\msbuild\src\Shared\Tracing.cs (1)
111s_counts[counter] = incremented;
system.design\stronglytypedresourcebuilder.cs (1)
810reverseFixupTable[newKey] = key;
SystemState.cs (10)
377upToDateLocalFileStateCache[path] = state; 400instanceLocalFileStateCache[path] = cachedProcessFileState; 405instanceLocalOutgoingFileStateCache[path] = cachedProcessFileState; 414instanceLocalOutgoingFileStateCache[path] = cachedInstanceFileState; 428instanceLocalLastModifiedCache[path] = lastModified; 441instanceLocalFileStateCache[path] = fileState; 442instanceLocalOutgoingFileStateCache[path] = fileState; 627retVal.instanceLocalFileStateCache[fullPath] = fileState; 680instanceLocalDirectories[path] = directories; 723instanceLocalDirectoryExists[path] = exists;
WriteCodeFragment.cs (2)
354parameterTypes[parameterNameKey] = new ParameterType 387parameterTypes[parameterNameKey] = new ParameterType
Microsoft.Build.Utilities.Core (12)
MuxLogger.cs (2)
308_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value + 1; 328_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value - 1;
src\msbuild\src\Shared\Tracing.cs (1)
111s_counts[counter] = incremented;
ToolLocationHelper.cs (9)
410extensionSDKs[extension.Key] = extension.Value; 457extensionSDKsAndVersions[extension.Key] = Tuple.Create<string, string>(extension.Value, moniker.TargetPlatformVersion.ToString()); 1432s_vsInstallFolders[versionRange] = vsInstallFolders; 2267s_cachedReferenceAssemblyPaths[referenceAssemblyCacheKey] = dotNetFrameworkReferenceAssemblies; 2321s_cachedTargetFrameworkDisplayNames[targetFrameworkDirectory] = displayName; 3123s_chainedReferenceAssemblyPath[path] = null; 3124s_cachedTargetFrameworkDisplayNames[path] = null; 3184s_cachedTargetFrameworkDisplayNames[path] = displayName; 3217s_chainedReferenceAssemblyPath[path] = pathToReturn;
Microsoft.CodeAnalysis (42)
Binding\AbstractLookupSymbolsInfo.cs (1)
258_nameMap[name] = pair;
CodeGen\CompilationTestData.cs (1)
74map[name] = default(MethodData);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
150hashBucketLabelsMap[hashValue] = hashBucketLabel;
CodeGen\SynthesizedLocalOrdinalsDispenser.cs (1)
58_lazyMap[key] = ordinal + 1;
Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
Collections\IdentifierCollection.cs (1)
73_map[identifier] = new HashSet<string> { identifier, strValue };
Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
Collections\TopologicalSort.cs (2)
76predecessorCounts[succ] = count - 1; 130predecessorCounts[succ] = succPredecessorCount + 1;
CommandLine\SarifV1ErrorLogger.cs (1)
273_counters[descriptor.Id] = ++counter;
CommandLine\SarifV2ErrorLogger.cs (1)
481_distinctDescriptors[descriptor] = descriptorInfoWithIndex;
DiagnosticAnalyzer\AnalysisResultBuilder.cs (5)
58map[analyzer] = default; 291_analyzerExecutionTimeOpt[analyzer] = fullCompilationDiagnostics ? 354lazyLocalDiagnostics[key] = allDiagnostics; 361allDiagnostics[analyzer] = analyzerDiagnostics; 381_nonLocalDiagnosticsOpt[analyzer] = currentDiagnostics;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
92_loadContextByDirectory[fullDirectoryPath] = loadContext;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
187_assemblySimpleNameToOriginalPathListMap[simpleName] = set;
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
208map[analyzer] = specificOptions;
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (2)
174_lazyPendingMemberSymbolsMap[symbol] = dependentSymbols; 474_lazyPendingSymbolEndActionsMap[symbol] = (symbolEndActions, symbolDeclaredEvent);
DiagnosticAnalyzer\CompilationAnalysisValueProviderFactory.cs (1)
30_lazySharedStateProviderMap[analysisSharedStateProvider] = value;
DiagnosticAnalyzer\DiagnosticQueue.cs (1)
147diagnosticsMap[analyzer] = new SimpleDiagnosticQueue(diagnostic);
Emit\EditAndContinue\DeltaMetadataWriter.cs (4)
223generationOrdinals[addedType] = currentGenerationOrdinal; 289result[pair.Key] = pair.Value; 1629_map[index] = item; 1645_map[index] = item;
Emit\EditAndContinue\SymbolChanges.cs (1)
458changesBuilder[newMember] = change;
InternalUtilities\ConcurrentLruCache.cs (1)
129_cache[key] = result;
InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
MetadataReader\MetadataHelpers.cs (1)
913names[nestedNamespaces[i].Key] = i;
MetadataReader\PEAssembly.cs (1)
149ivtMap[identity.Name] = keys;
MetadataReader\PEModule.cs (1)
3915typesToAssemblyIndexMap[name] = indices;
MetadataReference\AssemblyIdentityMap.cs (1)
104_map[identity.Name] = _map.TryGetValue(identity.Name, out sameName) ? sameName.Add(pair) : OneOrMany.Create(pair);
Operations\ControlFlowGraphBuilder.cs (4)
593regionMap[block] = region; 652regionMap[blocks[i]] = enclosing; 668regionMap[blocks[i]] = enclosing; 6441_currentImplicitInstance.AnonymousTypePropertyValues[initializedProperty] = captured;
RuleSet\RuleSet.cs (2)
161effectiveSpecificOptions[item.Key] = item.Value; 177effectiveSpecificOptions[item.Key] = item.Value;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
Microsoft.CodeAnalysis.Analyzers (33)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (1)
210map[namedType] = value;
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (2)
421lastEntriesByRuleMap[ruleId] = (unshippedVersion, releaseTrackingLine); 455lastEntriesByRuleMap[ruleId] = (version, releaseTrackingLine);
MetaAnalyzers\PreferIsKindAnalyzer.cs (2)
54containingTypeMap[csharpKindExtensions] = csharpIsKindExtensions; 60containingTypeMap[vbKindExtensions] = vbIsKindExtensions;
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
489_nestedActionsMap[contextParameter] = registerInvocations;
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
199ruleIdToComments[currentRuleId] = currentXmlComment.ToString();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
67documentToLinkedDocuments[document.Id] = linkedDocuments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
225importToSyntax[namespaceSymbol] = namespaceSyntax;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
57mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 129mapping[typeParameter] = newTypeParameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
102collisionMap[name] = isCollision;
Microsoft.CodeAnalysis.AnalyzerUtilities (39)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
199ruleIdToComments[currentRuleId] = currentXmlComment.ToString();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
271allResults[kvp.Key] = PropertySetAnalysis.MergeHazardousUsageEvaluationResult(existingValue, kvp.Value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (2)
267_analysisEntityMap[operation] = analysisEntity; 393_tupleElementEntitiesMap[tupleOperation] = elementEntities;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (7)
137blockToUniqueInputFlowMap[block.Ordinal] = null; 285blockToUniqueInputFlowMap[block.Ordinal] = null; 384inputDataFromInfeasibleBranchesMap[successorBlock.Ordinal] = newSuccessorInput; 409blockToUniqueInputFlowMap[successorBlock.Ordinal] = null; 443blockToUniqueInputFlowMap[successorBlock.Ordinal] = (block.Ordinal, blockToSuccessorBranchKind); 460blockToUniqueInputFlowMap[i] = null; 557catchBlockInputDataMap[tryAndCatchRegion] = catchBlockInputData;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
41_info[block] = newData;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (4)
733AnalysisDataForUnhandledThrowOperations[info] = GetClonedCurrentAnalysisData(); 927AnalysisDataForUnhandledThrowOperations[DefaultThrownExceptionInfo] = data!; 1197TaskWrappedValuesMap[pointsToValueForTask] = wrappedValue; 2182AnalysisDataForUnhandledThrowOperations[exceptionInfo] = mergedAnalysisDataAtException;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
49_coreAnalysisData[key] = value;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
46rvalueFlowCaptureIds[flowCaptureReference.Id] = operations;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.CodeStyle (26)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
84result[kind] = index;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (3)
567pragmasToIsUsedMap[pragma] = true; 570pragmasToIsUsedMap[lastEnablePragma.Value] = true; 601suppressMessageAttributesToIsUsedMap[attributeNode] = true;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
343_symbolValueUsageStateMap_doNotAccessDirectly[symbol] = info;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
180result[typeArguments[i]] = typeParameters[i];
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
384canEditMap[documentId] = canEditDocument;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
67documentToLinkedDocuments[document.Id] = linkedDocuments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
225importToSyntax[namespaceSymbol] = namespaceSyntax;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
57mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 129mapping[typeParameter] = newTypeParameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
102collisionMap[name] = isCollision;
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_Lambda.cs (1)
477bindings[syntax] = ++count;
Binder\DecisionDagBuilder.cs (2)
1281: tempIdentifierMap[e] = ++nextTempNumber; 2831return (e == null) ? 0 : tempIdentifierMap.TryGetValue(e, out int value) ? value : tempIdentifierMap[e] = ++nextTempNumber;
Binder\OpenTypeVisitor.cs (1)
46_allowedMap[node] = !_seenConstructed;
Binder\RefSafetyAnalysis.cs (2)
254_placeholderScopes[placeholder] = valEscapeScope; 532_localEscapeScopes[local] = (refEscapeScope, valEscapeScope);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
2362dictionary[@interface] = merged; 3464candidates[bound] = newBound; 3506candidates[oldCandidate] = merged;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
913containingTypeMap[containingType] = builder; 1914resultsByContainingType[containingType] = OneOrMany.Create(result); 1918resultsByContainingType[containingType] = previousResults.Add(result);
BoundTree\LengthBasedStringSwitchData.cs (2)
238countPerChar[currentChar] = currentCount + 1; 242countPerChar[currentChar] = 1;
CommandLine\CSharpCommandLineParser.cs (6)
921warnAsErrors[key] = ReportDiagnostic.Error; 962warnAsErrors[id] = ruleSetValue; 966warnAsErrors[id] = ReportDiagnostic.Default; 1408diagnosticOptions[o.Key] = o.Value; 1414diagnosticOptions[o.Key] = o.Value; 2150d[id] = kind;
Compilation\CSharpCompilation.cs (3)
5215_cache[mergedNamespace.ConstituentNamespaces.OfType<SourceNamespaceSymbol>().First().MergedDeclaration] = symbol; 5222_cache[sourceNamespace.MergedDeclaration] = sourceNamespace; 5229_cache[sourceType.MergedDeclaration] = sourceType;
Declarations\MergedNamespaceDeclaration.cs (5)
194namespaceCounts[name] = count; 204namespaceCounts[name] = count; 222namespaceGroups[name] = (declarations, index); 235namespaceGroups[name] = (declarations, index); 275typeGroups[id] = builder;
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
108hoistedLocals[key] = slotIndex;
FlowAnalysis\AbstractFlowPass.cs (4)
702_loopHeadState[node] = this.State.Clone(); 713_loopHeadState[node] = oldState; 804_labels[label] = state; 3381_labels[label] = this.State.Clone();
FlowAnalysis\ControlFlowPass.cs (2)
329_labelsDefined[node.Label] = _currentBlock; 410_labelsDefined[label.Label] = node;
FlowAnalysis\NullableWalker_Patterns.cs (3)
919nodeStateMap[node] = (PossiblyConditionalState.Create(this), believedReachable); 951nodeStateMap[node] = (result, believedReachable); 1231TargetTypedAnalysisCompletion[node] =
FlowAnalysis\NullableWalker.cs (5)
3954TargetTypedAnalysisCompletion[node] = 4350TargetTypedAnalysisCompletion[node] = 6651TargetTypedAnalysisCompletion[node] = 10928TargetTypedAnalysisCompletion[node] = 11082_methodGroupReceiverMapOpt[receiver] = type;
FlowAnalysis\NullableWalker.Variables.cs (1)
306variables._variableTypes[symbol] = type;
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
374closuresCapturingScopeVariables[scope] = PooledHashSet<NestedFunction>.GetInstance(); 375environmentsToScopes[scope.DeclaredEnvironment] = scope;
Lowering\ClosureConversion\ClosureConversion.cs (3)
193_framePointers[thisType] = thisParameter; 720proxies[_innermostFramePointer] = new CapturedToFrameSymbolReplacement(capturedFrame, isReusable: false); 748proxies[_innermostFramePointer] = oldInnermostFrameProxy;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
869_parameterMap[p] = parameterReference;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
79_dagNodeLabels[node] = d.Label;
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
363_boundRefLocalInitializers[local] = node.Right;
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
307noPiaLocalTypes[typeDefName] = t;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
272this.RetargetingAssemblyMap[retargetFrom] = destination;
Symbols\Source\ConstantEvaluationHelpers.cs (5)
135graph[field] = node; 148graph[dependency] = node; 198graph[dependedOnBy] = n; 232graph[dependency] = n; 244graph[dependedOnBy] = n;
Symbols\Source\ExtensionGroupingInfo.cs (2)
339counts[attribute] = counts.TryGetValue(attribute, out var foundCount) ? foundCount + 1 : 1; 354counts[attribute] = foundCount - 1;
Symbols\Source\QuickAttributeChecker.cs (1)
83_nameToAttributeMap[name] = newValue;
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2543indexersBySignature[indexer] = indexer; 2646membersByName[pair.Key] = concatMembers(members, extension, pair.Value, ref membersUnordered); 3322membersByName[name] = membersForName.Concat(typesAsSymbols);
Utilities\FirstAmongEqualsSet.cs (2)
63_dictionary[item] = item; 104_dictionary[item] = item;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
159methodToDiagnostic[owningMethod] = DiagnosticHelper.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\UnnecessaryNullableWarningSuppressionsUtilities.cs (1)
69nodeToAnnotation[node] = new SyntaxAnnotation();
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\UnnecessaryUnsafeModifierUtilities.cs (1)
84nodeToAnnotation[node] = new SyntaxAnnotation();
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
536candidateMembersToRemove[member] = parameter;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
90tokenToToken[secondBrace] = updatedSecondBrace;
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (5)
76replacementMap[colonToken] = colonToken.WithLeadingTrivia(colonToken.LeadingTrivia.AddRange(colonToken.TrailingTrivia).AddRange(thisBaseKeyword.LeadingTrivia)) 78replacementMap[thisBaseKeyword] = thisBaseKeyword.WithoutLeadingTrivia(); 92replacementMap[closeParen] = ComputeNewCloseParen(colonToken, closeParen); 96replacementMap[colonToken] = colonToken.WithLeadingTrivia(thisBaseKeyword.LeadingTrivia).WithTrailingTrivia(SyntaxFactory.Space); 99replacementMap[thisBaseKeyword] = thisBaseKeyword.WithoutLeadingTrivia();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
687result[returnTypeParameter] = inferredType;
Microsoft.CodeAnalysis.CSharp.Features (19)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
86s_operatorNameToInfo[opName] = (sortOrder: i, position);
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
42s_cachedRules[context] = MakeRule(context);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
193locationToField[location] = field;
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
190expressionToProvider[expression] = provider;
Copilot\CSharpCopilotCodeFixProvider.DismissChangesCodeAction.cs (5)
44m["FixedMethod"] = fix; 47m["PromptTitle"] = promptTitle; 49m["DiagnosticId"] = diagnostic.Id; 50m["Message"] = diagnostic.GetMessage(); 51m["OriginalMethod"] = originalMethodNode.ToFullString();
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
159methodToDiagnostic[owningMethod] = DiagnosticHelper.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\UnnecessaryNullableWarningSuppressionsUtilities.cs (1)
69nodeToAnnotation[node] = new SyntaxAnnotation();
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\UnnecessaryUnsafeModifierUtilities.cs (1)
84nodeToAnnotation[node] = new SyntaxAnnotation();
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
536candidateMembersToRemove[member] = parameter;
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
90tokenToToken[secondBrace] = updatedSecondBrace;
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (5)
76replacementMap[colonToken] = colonToken.WithLeadingTrivia(colonToken.LeadingTrivia.AddRange(colonToken.TrailingTrivia).AddRange(thisBaseKeyword.LeadingTrivia)) 78replacementMap[thisBaseKeyword] = thisBaseKeyword.WithoutLeadingTrivia(); 92replacementMap[closeParen] = ComputeNewCloseParen(colonToken, closeParen); 96replacementMap[colonToken] = colonToken.WithLeadingTrivia(thisBaseKeyword.LeadingTrivia).WithTrailingTrivia(SyntaxFactory.Space); 99replacementMap[thisBaseKeyword] = thisBaseKeyword.WithoutLeadingTrivia();
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
51identifierGenerator = scopeMap[block] = new IdentifierGenerator(editor.SemanticModel, block);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
119aliasMap[usingDecl.Alias.Name.Identifier.ValueText] = mappedName;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
687result[returnTypeParameter] = inferredType;
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.Features (182)
BracePairs\IBracePairsService.cs (1)
42_bracePairKinds[open.Value] = close.Value;
ChangeSignature\AbstractChangeSignatureService.cs (4)
414updatedRoots[docId] = formattedRoot; 453definitionToUse[nodeToUpdate] = symbolWithSemanticParameters; 490argumentToParameterMap[arg] = decl; 496parameterToIndexMap[decl] = updatedIndex ?? -1;
ChangeSignature\ChangeSignatureTelemetryLogger.cs (1)
187m[kv.Key.ToString()] = kv.Value.GetCount();
CodeFixes\Service\CodeFixService.cs (3)
533m[TelemetryLogging.KeyName] = fixerName; 534m[TelemetryLogging.KeyLanguageName] = document.Project.Language; 710uniqueDiagosticToEquivalenceKeysMap[diagnostic] = equivalenceKeys;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (2)
162currentDiagnosticSpans[diagnostic] = currentSpan; 169currentDiagnosticSpans[diagnostic] = currentSpan;
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (3)
130m[FixAllLogger.CorrelationId] = correlationId; 170m[FixAllLogger.CorrelationId] = fixAllContext.State.CorrelationId; 171m[FixAllLogger.FixAllScope] = fixAllContext.State.Scope.ToString();
CodeRefactorings\CodeRefactoringService.cs (2)
211m[TelemetryLogging.KeyName] = providerName; 212m[TelemetryLogging.KeyLanguageName] = document.Project.Language;
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
149_childFolders[firstFolder] = firstFolderInfo;
Completion\CompletionService_GetCompletions.cs (3)
333result[completionProvider] = i; 423_displayNameToItemsMap[entireDisplayText] = _service.GetBetterItem(item, sameNamedItem); 429_displayNameToItemsMap[entireDisplayText] = new List<CompletionItem>() { sameNamedItem, item };
Completion\Log\CompletionProvidersLogger.cs (1)
96m[kv.Key.ToString()] = kv.Value.GetCount();
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
87typeConvertibilityCache[type] = CompletionUtilities.IsTypeImplicitlyConvertible(syntaxContext.SemanticModel.Compilation, type, syntaxContext.InferredTypes); 101typeConvertibilityCache[symbol] = isConvertible;
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
322overloads[type.Name] = overloadInfo.Aggregate(type);
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.cs (3)
175overloadMap[overloadKey] = (bestSymbol, overloadCount, includeInTargetTypedCompletion); 211typeConvertibilityCache[returnType] = isConvertible; 229stringCache[symbol] = name;
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
388parameterToPropMap[parameter.Name] = prop;
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
935parameterToPropMap[parameter.Name] = field;
Copilot\CopilotChangeAnalysisUtilities.cs (23)
74d["Accepted"] = accepted; 75d["FeatureId"] = featureId; 76d["ProposalId"] = proposalId; 78d["Succeeded"] = analysisResult.Succeeded; 80d["OldDocumentLength"] = analysisResult.OldDocumentLength; 81d["NewDocumentLength"] = analysisResult.NewDocumentLength; 82d["TextChangeDelta"] = analysisResult.TextChangeDelta; 84d["ProjectDocumentCount"] = analysisResult.ProjectDocumentCount; 85d["ProjectSourceGeneratedDocumentCount"] = analysisResult.ProjectSourceGeneratedDocumentCount; 86d["ProjectConeCount"] = analysisResult.ProjectConeCount; 92d[$"{keyPrefix}_ComputationTime"] = Stringify(diagnosticAnalysis.ComputationTime); 93d[$"{keyPrefix}_IdToCount"] = StringifyDictionary(diagnosticAnalysis.IdToCount); 94d[$"{keyPrefix}_CategoryToCount"] = StringifyDictionary(diagnosticAnalysis.CategoryToCount); 95d[$"{keyPrefix}_SeverityToCount"] = StringifyDictionary(diagnosticAnalysis.SeverityToCount); 98d["CodeFixAnalysis_TotalComputationTime"] = Stringify(analysisResult.CodeFixAnalysis.TotalComputationTime); 99d["CodeFixAnalysis_TotalApplicationTime"] = Stringify(analysisResult.CodeFixAnalysis.TotalApplicationTime); 100d["CodeFixAnalysis_DiagnosticIdToCount"] = StringifyDictionary(analysisResult.CodeFixAnalysis.DiagnosticIdToCount); 101d["CodeFixAnalysis_DiagnosticIdToApplicationTime"] = StringifyDictionary(analysisResult.CodeFixAnalysis.DiagnosticIdToApplicationTime); 102d["CodeFixAnalysis_DiagnosticIdToProviderName"] = StringifyDictionary(analysisResult.CodeFixAnalysis.DiagnosticIdToProviderName); 103d["CodeFixAnalysis_ProviderNameToApplicationTime"] = StringifyDictionary(analysisResult.CodeFixAnalysis.ProviderNameToApplicationTime); 104d["CodeFixAnalysis_ProviderNameToHasConflict"] = StringifyDictionary(analysisResult.CodeFixAnalysis.ProviderNameToHasConflict); 105d["CodeFixAnalysis_ProviderNameToTotalCount"] = StringifyDictionary(analysisResult.CodeFixAnalysis.ProviderNameToTotalCount); 106d["CodeFixAnalysis_ProviderNameToSuccessCount"] = StringifyDictionary(analysisResult.CodeFixAnalysis.ProviderNameToSuccessCount);
Copilot\ICopilotChangeAnalysisService.cs (3)
153map[key] = idCount + 1; 159map[key] = currentElapsed + elapsed; 319providerNameToHasConflict[providerName] = storedHasConflictValue || newHasConflictValue;
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
38analyzerMap[analyzer.GetAnalyzerId()] = analyzer;
Diagnostics\DiagnosticAnalyzerTelemetry.cs (21)
72m["Id"] = correlationId; 79m["Analyzer.Name"] = analyzerName; 84m["Analyzer.NameHashCode"] = AnalyzerNameForTelemetry.ComputeSha256Hash(analyzerName); 87m["Analyzer.CodeBlock"] = analyzerInfo.CodeBlockActionsCount; 88m["Analyzer.CodeBlockStart"] = analyzerInfo.CodeBlockStartActionsCount; 89m["Analyzer.CodeBlockEnd"] = analyzerInfo.CodeBlockEndActionsCount; 90m["Analyzer.Compilation"] = analyzerInfo.CompilationActionsCount; 91m["Analyzer.CompilationStart"] = analyzerInfo.CompilationStartActionsCount; 92m["Analyzer.CompilationEnd"] = analyzerInfo.CompilationEndActionsCount; 93m["Analyzer.SemanticModel"] = analyzerInfo.SemanticModelActionsCount; 94m["Analyzer.SyntaxNode"] = analyzerInfo.SyntaxNodeActionsCount; 95m["Analyzer.SyntaxTree"] = analyzerInfo.SyntaxTreeActionsCount; 96m["Analyzer.AdditionalFile"] = analyzerInfo.AdditionalFileActionsCount; 97m["Analyzer.Operation"] = analyzerInfo.OperationActionsCount; 98m["Analyzer.OperationBlock"] = analyzerInfo.OperationBlockActionsCount; 99m["Analyzer.OperationBlockStart"] = analyzerInfo.OperationBlockStartActionsCount; 100m["Analyzer.OperationBlockEnd"] = analyzerInfo.OperationBlockEndActionsCount; 101m["Analyzer.Symbol"] = analyzerInfo.SymbolActionsCount; 102m["Analyzer.SymbolStart"] = analyzerInfo.SymbolStartActionsCount; 103m["Analyzer.SymbolEnd"] = analyzerInfo.SymbolEndActionsCount; 104m["Analyzer.Suppression"] = analyzerInfo.SuppressionActionsCount;
Diagnostics\Log\DiagnosticLogger.cs (4)
26m[From] = from; 27m[Id] = telemetry ? id : id.GetHashCode().ToString(); 28m[HasDescription] = description; 29m[Uri] = telemetry ? uri : uri.GetHashCode().ToString();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
1647map[oldNode] = newNode; 1683activeOrMatchedLambdas[oldLambdaBody] = info.WithMatch(lambdaBodyMatch, newLambdaBody); 5972runtimeRudeEditsBuilder[newQueryClause] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingQueryLambdaType, cancellationToken);
EditAndContinue\CommittedSolution.cs (2)
116_documentState[documentId] = state; 320_documentState[documentId] = newState;
EditAndContinue\DebuggingSession.cs (2)
362_projectBaselines[baselineProject.Id] = baselines; 653_projectBaselines[updatedBaseline.ProjectId] = [.. _projectBaselines[updatedBaseline.ProjectId]
EditAndContinue\DebuggingSessionTelemetry.cs (29)
82map["SolutionSessionId"] = data.SolutionSessionId.ToString("B").ToUpperInvariant(); 83map[SessionId] = debugSessionId; 84map["SessionCount"] = data.EditSessionData.Count(session => session.InBreakState); 85map["EmptySessionCount"] = data.EmptyEditSessionCount; 86map["HotReloadSessionCount"] = data.EditSessionData.Count(session => !session.InBreakState); 87map["EmptyHotReloadSessionCount"] = data.EmptyHotReloadEditSessionCount; 96map[SessionId] = debugSessionId; 97map[EditSessionId] = editSessionId; 100map["HadCompilationErrors"] = editSessionData.HasSyntaxErrors; 103map["HadRudeEdits"] = editSessionData.HadBlockingRudeEdits; 107map["HadValidChanges"] = editSessionData.HadValidChanges; 108map["HadValidInsignificantChanges"] = editSessionData.HadValidInsignificantChanges; 111map["RudeEditsCount"] = editSessionData.RudeEdits.Length; 115map["EmitDeltaErrorIdCount"] = editSessionData.EmitErrorIds.Length; 118map["InBreakState"] = editSessionData.InBreakState; 120map["Capabilities"] = (int)editSessionData.Capabilities; 123map["ProjectIdsWithAppliedChanges"] = editSessionData.Committed ? editSessionData.ProjectsWithValidDelta.Select(ProjectIdToPii) : ""; 126map["ProjectIdsWithUpdatedBaselines"] = editSessionData.ProjectsWithUpdatedBaselines.Select(ProjectIdToPii); 129map["EmitDifferenceMilliseconds"] = (long)editSessionData.EmitDifferenceTime.TotalMilliseconds; 135map["TotalAnalysisMilliseconds"] = (long)editSessionData.AnalysisTime.TotalMilliseconds; 142map[SessionId] = debugSessionId; 143map[EditSessionId] = editSessionId; 144map["ErrorId"] = errorId; 152map[SessionId] = debugSessionId; 153map[EditSessionId] = editSessionId; 155map["RudeEditKind"] = editKind; 156map["RudeEditSyntaxKind"] = syntaxKind; 157map["RudeEditBlocking"] = editSessionData.HadBlockingRudeEdits; 158map["RudeEditProjectId"] = ProjectIdToPii(projectId);
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
228_analyses[documentId] = (lazyResults, oldProject, newDocument, activeStatementSpans);
EditAndContinue\EditSession.cs (1)
1160changedDocumentsStaleness[path] = null;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (17)
51m[Id] = correlationId; 52m[Kind] = workspaceKind; 60m[Id] = correlationId; 72m[Id] = correlationId; 73m[Analyzer] = analyzer.ToString(); 74m[DocumentCount] = documentCount; 75m[Languages] = languages; 106m[Id] = correlationId; 107m[AnalyzerCount] = reordered.Length; 114m[Id] = correlationId; 115m[Analyzer] = analyzer.ToString(); 124m[Id] = correlationId; 135m[Id] = correlationId; 140m[change] = kv.Value.GetCount(); 192m[Id] = correlationId; 193m[SolutionHash] = solutionHash.ToString(); 200m[stringKey] = counter.GetCount();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (1)
108documentMap[key] = existingWorkItem.With(item.InvocationReasons, item.ActiveMember, item.SpecificAnalyzers, item.IsRetry, item.AsyncToken);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncProjectWorkItemQueue.cs (1)
74_projectWorkQueue[key] = existingWorkItem.With(item.InvocationReasons, item.ActiveMember, item.SpecificAnalyzers, item.IsRetry, item.AsyncToken);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
255_pendingWork[documentId] = new UnitTestingData(project, documentId, document, data.ChangedMember == changedMember ? changedMember : null, newAsyncToken);
ExtractMethod\AbstractSyntaxTriviaService.cs (7)
78map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeBeginningOfSpan]); 81map[tokens[TriviaLocation.AfterBeginningOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterBeginningOfSpan]); 84map[tokens[TriviaLocation.BeforeEndOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeEndOfSpan]); 87map[tokens[TriviaLocation.AfterEndOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterEndOfSpan]); 114tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true); 115tokens[TriviaLocation.BeforeEndOfSpan] = root.FindTokenOnLeftOfPosition(textSpan.End, includeSkipped: false); 116tokens[TriviaLocation.AfterEndOfSpan] = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (6)
64map[localCopy.Item1.PreviousToken] = previousToken.WithTrailingTrivia(localCopy.Item2.TrailingTrivia); 67map[localCopy.Item1.NextToken] = nextToken.WithLeadingTrivia(localCopy.Item2.LeadingTrivia); 180map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = new LeadingTrailingTriviaPair 187map[tokens[TriviaLocation.AfterBeginningOfSpan]] = new LeadingTrailingTriviaPair 194map[tokens[TriviaLocation.BeforeEndOfSpan]] = new LeadingTrailingTriviaPair 201map[tokens[TriviaLocation.AfterEndOfSpan]] = new LeadingTrailingTriviaPair
ExtractMethod\ExtractMethodFlowControlInformation.cs (4)
95flowValues[FlowControlKind.Break] = values[valuesIndex++]; 97flowValues[FlowControlKind.Continue] = values[valuesIndex++]; 99flowValues[FlowControlKind.Return] = values[valuesIndex++]; 101flowValues[FlowControlKind.FallThrough] = values[valuesIndex++];
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
102_definitionToItem[group] = definitionItem;
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
365renameTable[symbol] = semanticFacts
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
632mapping[argumentParameter] = i;
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (3)
384lastVariableUsageIndex[referencedVariable] = statementIndex; 393variableDeclarationIndex[declaredVariable] = statementIndex; 394lastVariableUsageIndex[declaredVariable] = statementIndex;
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
128anonymousTypeToName[type] = GenerateStructuralTypeName(current);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
74_namedTypes[symbol] = orderAndCount;
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
535result[group] = taggedText;
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AnonymousTypes.cs (1)
45_groupMap[group] = typeDisplayInfo.ReplaceStructuralTypes(parts, _semanticModel, _position);
MetadataAsSource\TelemetryMessage.cs (5)
55properties["pdb"] = _pdbSource ?? "none"; 56properties["source"] = _sourceFileSource ?? "none"; 57properties["referenceassembly"] = _referenceAssembly ?? "no"; 60properties["dll"] = new PiiValue(_dll); 63properties["decompiled"] = _decompiled switch
QuickInfo\OnTheFlyDocsLogger.cs (1)
47m[kv.Key.ToString()] = kv.Value.GetCount();
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
61currentRoots[typeNode.SyntaxTree] = typeNodeRoot.ReplaceNode(typeNode, typeNode.WithAdditionalAnnotations(typeNodeAnnotation)); 93currentRoots[tree] = root.ReplaceToken(token, token.WithAdditionalAnnotations(annotation));
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
84result[kind] = index;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (3)
567pragmasToIsUsedMap[pragma] = true; 570pragmasToIsUsedMap[lastEnablePragma.Value] = true; 601suppressMessageAttributesToIsUsedMap[attributeNode] = true;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
343_symbolValueUsageStateMap_doNotAccessDirectly[symbol] = info;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
180result[typeArguments[i]] = typeParameters[i];
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
384canEditMap[documentId] = canEditDocument;
UnusedReferences\UnusedReferencesRemover.cs (1)
105referencesByType[referenceType] = unusedReferences;
Microsoft.CodeAnalysis.NetAnalyzers (44)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumShouldNotHaveDuplicatedValues.cs (1)
87membersByValue[constantValue] = field;
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldDifferByMoreThanCase.cs (3)
161membersByName[name] = membersWithName; 250typesByName[name] = typesWithName; 282namespacesByName[name] = namespacesWithName;
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\FlowAnalysis\GlobalFlowStateDictionaryAnalysisValue.cs (3)
51builder[kvp.Key] = kvp.Value; 60builder[key] = intersectValueInCommonKeys 66builder[key] = kvp.Value;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
551capturedVersions[info.PlatformName] = info.Version;
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (2)
92knownPlatforms[Browser] = 2; 121knownPlatforms[platformName] = versionPartsCount; // only keep highest count
Microsoft.NetCore.Analyzers\Performance\AvoidPotentiallyExpensiveCallWhenLogging.cs (7)
286case "LogTrace": logExtensionsMethods[m] = LogLevelTrace; break; 287case "LogDebug": logExtensionsMethods[m] = LogLevelDebug; break; 288case "LogInformation": logExtensionsMethods[m] = LogLevelInformation; break; 289case "LogWarning": logExtensionsMethods[m] = LogLevelWarning; break; 290case "LogError": logExtensionsMethods[m] = LogLevelError; break; 291case "LogCritical": logExtensionsMethods[m] = LogLevelCritical; break; 292case "Log": logExtensionsMethods[m] = LogLevelPassedAsParameter; break;
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.cs (2)
664localRefSymbolCountMap[local] = count + 1; 675computeHashSymbolCountMap[local] = count + 1;
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (2)
266results[methodSymbol] = methodSymbolSet; 286results[methodSymbol] = methodSymbolSet;
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (1)
350seen[successor] = successorConsumption;
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (4)
409_xmlDocumentEnvironments[variable] = xmlDocumentEnvironment; 485_xmlTextReaderEnvironments[variable] = env; 500_xmlReaderSettingsEnvironments[variable] = xmlReaderSettingsEnv; 654_xmlReaderSettingsEnvironments[assignedSymbol] = env;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
198ruleIdToComments[currentRuleId] = currentXmlComment.ToString();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
270allResults[kvp.Key] = PropertySetAnalysis.MergeHazardousUsageEvaluationResult(existingValue, kvp.Value);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (2)
265_analysisEntityMap[operation] = analysisEntity; 391_tupleElementEntitiesMap[tupleOperation] = elementEntities;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (7)
135blockToUniqueInputFlowMap[block.Ordinal] = null; 283blockToUniqueInputFlowMap[block.Ordinal] = null; 382inputDataFromInfeasibleBranchesMap[successorBlock.Ordinal] = newSuccessorInput; 407blockToUniqueInputFlowMap[successorBlock.Ordinal] = null; 441blockToUniqueInputFlowMap[successorBlock.Ordinal] = (block.Ordinal, blockToSuccessorBranchKind); 458blockToUniqueInputFlowMap[i] = null; 555catchBlockInputDataMap[tryAndCatchRegion] = catchBlockInputData;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
40_info[block] = newData;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (4)
730AnalysisDataForUnhandledThrowOperations[info] = GetClonedCurrentAnalysisData(); 924AnalysisDataForUnhandledThrowOperations[DefaultThrownExceptionInfo] = data!; 1194TaskWrappedValuesMap[pointsToValueForTask] = wrappedValue; 2179AnalysisDataForUnhandledThrowOperations[exceptionInfo] = mergedAnalysisDataAtException;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
48_coreAnalysisData[key] = value;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
46rvalueFlowCaptureIds[flowCaptureReference.Id] = operations;
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\Components\ComponentBindLoweringPass.cs (1)
341duplicates[directiveAttribute.AttributeName] = builder;
Language\Components\ComponentGenericTypePass.cs (2)
89node.ProvidesCascadingGenericTypes[typeArgumentNode.TypeParameterName] = new CascadingGenericTypeParameter 153node.ProvidesCascadingGenericTypes[typeName] = provideCascadingGenericTypes;
Language\Components\ComponentMarkupDiagnosticPass.cs (2)
65_attributes[attribute.AttributeName] = (attribute.AttributeName, attribute); 109_attributes[attribute.AttributeName] = (attribute.AttributeName, attribute);
Microsoft.CodeAnalysis.ResxSourceGenerator (22)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
199ruleIdToComments[currentRuleId] = currentXmlComment.ToString();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
433_assembliesLoadedFromLocationByFullPath[originalPath] = assemblyAndLocation;
ScriptState.cs (1)
126map[Variables[i].Name] = i;
Microsoft.CodeAnalysis.Workspaces (103)
CodeFixesAndRefactorings\FixAllLogger.cs (23)
63m[CorrelationId] = fixAllState.CorrelationId; 67m[providerKey] = fixAllState.Provider.GetType().FullName!; 68m[CodeActionEquivalenceKey] = fixAllState.CodeActionEquivalenceKey; 69m[LanguageName] = fixAllState.Project.Language; 73m[providerKey] = fixAllState.Provider.GetType().FullName!.GetHashCode().ToString(); 74m[CodeActionEquivalenceKey] = fixAllState.CodeActionEquivalenceKey?.GetHashCode().ToString(); 75m[LanguageName] = fixAllState.Project.Language.GetHashCode().ToString(); 78m[FixAllScope] = fixAllState.Scope.ToString(); 82m[DocumentCount] = fixAllState.Project.DocumentIds.Count; 86m[DocumentCount] = fixAllState.Solution.Projects.Sum(p => p.DocumentIds.Count); 119m[CorrelationId] = correlationId; 120m[Result] = value; 148m[CorrelationId] = correlationId; 151m[Result] = value; 159m[CorrelationId] = correlationId; 160m[DocumentsWithDiagnosticsToFix] = documentsAndDiagnosticsToFixMap.Count; 161m[TotalDiagnosticsToFix] = documentsAndDiagnosticsToFixMap.Values.Sum(v => v.Length); 169m[CorrelationId] = correlationId; 170m[ProjectsWithDiagnosticsToFix] = projectsAndDiagnosticsToFixMap.Count; 171m[TotalDiagnosticsToFix] = projectsAndDiagnosticsToFixMap.Values.Sum(v => v.Length); 179m[CorrelationId] = correlationId; 180m[TotalFixesToMerge] = count; 185=> KeyValueLogMessage.Create(LogType.UserAction, static (m, correlationId) => m[CorrelationId] = correlationId, correlationId);
ExtensionManager\IExtensionManagerExtensions.cs (2)
104map[type] = map.TryGetValue(type, out var existing) 128map[kind] = map.TryGetValue(kind, out var existing)
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
138result[assembly] = projectAndVisibility; 393s_metadataIdToAssemblyName[metadataId] = name;
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
224hasInheritanceRelationshipCache[key] = relationship;
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
243symbolsWithin[symbol] = group;
FindSymbols\StreamingProgressCollector.cs (1)
58_symbolToLocations[definition] = [];
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (3)
52map[symbolAndProjectId] = symbol; 58_groupMap[dehydrated] = symbolGroup; 60_definitionMap[pair.Key] = pair.Value;
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
328interceptsLocationInfo[interceptsLocationData] = node.FullSpan;
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (3)
369extensionMemberInfo[receiverTypeName] = arrayBuilder; 394allAliases[aliasName] = null; 398allAliases[aliasName] = name;
ReassignedVariable\AbstractReassignedVariableService.cs (1)
170symbolToIsReassigned[symbol] = reassignedResult;
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
375reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan); 461reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
50signatureToConflictingMember[signature] = member;
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
36_documentToModifiedSpansMap[documentId] = spans; 47_documentToComplexifiedSpansMap[documentId] = spans;
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
92_loadContextByDirectory[fullDirectoryPath] = loadContext;
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
187_assemblySimpleNameToOriginalPathListMap[simpleName] = set;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
67documentToLinkedDocuments[document.Id] = linkedDocuments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
225importToSyntax[namespaceSymbol] = namespaceSyntax;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
57mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 129mapping[typeParameter] = newTypeParameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
44m[kv.Key.ToString()] = kv.Value.GetCount();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
102collisionMap[name] = isCollision;
Storage\StorageDatabaseLogger.cs (2)
43m[Kind] = ex.GetType().ToString(); 44m[Reason] = ex.ToString();
Telemetry\TelemetryLogging.cs (3)
68m[KeyName] = name.GetFormattedText(); 69m[KeyValue] = value; 97m[KeyName] = metricName.GetFormattedText();
Utilities\Documentation\XmlDocumentationProvider.cs (1)
78comments[name] = memberXml;
Workspace\Host\Metadata\MetadataReferenceCache.cs (1)
70_references[properties] = new WeakReference<PortableExecutableReference>(mref);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (3)
179_analyzerFileReferencePathToMvid[filePath] = mvid; 285s_checksumToReferenceSet[checksum] = new(s_lastCreatedAnalyzerReferenceSet); 302pathToMvidMap[analyzerFileReference.FullPath] = TryGetFileReferenceMvid(analyzerFileReference.FullPath);
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
303m["ProjectGuid"] = projectState.ProjectInfo.Attributes.TelemetryId.ToString("B"); 304m["SyntaxTreesParsed"] = parsedTrees; 305m["HadCompilation"] = hadCompilation;
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (2)
114_referenceFileWatchingTokens[fullFilePath] = (token, RefCount: count + 1); 143_referenceFileWatchingTokens[fullFilePath] = (watchedFileReference.Token, newRefCount);
Workspace\Solution\FileTextLoader.cs (2)
248m["FileLength"] = fileLength; 249m["Ext"] = PathUtilities.GetExtension(path);
Workspace\Solution\ProjectState.cs (1)
137result[contentHash] = documentId;
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
284m["Errors"] = string.Join(";", groups);
Workspace\Solution\TextDocumentStates.cs (1)
366result[filePath] = result.TryGetValue(filePath, out var existingValue)
Workspace\Workspace_Editor.cs (4)
815_bufferToDocumentInCurrentContextMap[textContainer] = id; 818_bufferToAssociatedDocumentsMap[textContainer] = docIds; 845_bufferToAssociatedDocumentsMap[textContainer] = docIds; 846_bufferToDocumentInCurrentContextMap[textContainer] = docIds[0];
Workspace\Workspace_EventsLegacy.cs (2)
111_disposableEventHandlers[key] = (adviseCountAndDisposer.adviseCount + 1, adviseCountAndDisposer.disposer); 117_disposableEventHandlers[key] = (adviseCount: 1, disposer);
Workspace\Workspace.cs (3)
388relatedDocumentIdsAndStates[relatedDocumentId] = changedDocumentState; 1448outputAssemblyToProjectIdMap[p.OutputFilePath!] = p.Id; 1453outputAssemblyToProjectIdMap[p.OutputRefFilePath!] = p.Id;
Workspace\WorkspaceEventMap.cs (2)
25_eventTypeToHandlerSet[eventType] = GetEventHandlerSet_NoLock(eventType).AddHandler(handlerAndOptions); 42_eventTypeToHandlerSet[eventType] = newHandlers;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\ProjectFileExtensionRegistry.cs (1)
44_extensionToLanguageMap[fileExtension] = language;
MSBuild\ProjectMap.cs (1)
119_projectPathToProjectInfosMap[projectFilePath] = projectInfos;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Build\ProjectBuildManager.cs (2)
87allProperties[kvp.Key] = kvp.Value; 222mergedGlobalProperties[pair.Key] = pair.Value;
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
804s_internalsVisibleToCache[key] = result;
Microsoft.Data.Analysis (5)
DataFrame.IO.cs (1)
401names[fields[i]] = ++index;
DataFrameColumnCollection.cs (4)
94_columnNameToIndexDictionary[column.Name] = columnIndex; 97_columnNameToIndexDictionary[this[i].Name]++; 117_columnNameToIndexDictionary[column.Name] = columnIndex; 130_columnNameToIndexDictionary[this[i].Name]--;
Microsoft.Diagnostics.DataContractReader (6)
ContractDescriptorTarget.cs (6)
220types[DataType.pointer.ToString()] = new TypeInfo { Size = (uint)_config.PointerSize }; 237contracts[name] = version; 250fieldInfos[fieldName] = new Target.FieldInfo() 265types[name] = typeInfo; 284globals[name] = new GlobalValue 293globals[name] = new GlobalValue
Microsoft.Diagnostics.DataContractReader.Contracts (22)
Contracts\CallingConvention\CallingConvention_1.cs (1)
110_signatureTypeInfoProviders[moduleHandle] = provider;
Contracts\Debugger\Debugger_1.cs (1)
208patches[patch.CodeAddress] = (byte)patch.Opcode.Value;
Contracts\EcmaMetadata_1.cs (3)
68_readOnlyMetadataAddress[handle] = result; 111_metadata[handle] = (generation, provider); 161_readWriteMetadataBlob[handle] = (generation, blob);
Contracts\GCInfo\GCInfoDecoder.cs (2)
827activeSlots[slotIndex] = DenormInterruptibleOffset(prevNormOffset); 842activeSlots[slotIndex] = DenormInterruptibleOffset(prevNormOffset);
Contracts\GCInfo\X86\GCArgTable.cs (1)
43Transitions[transition.CodeOffset] = value;
Contracts\Loader_1.cs (5)
796heaps[LoaderAllocatorHeapType.FixupPrecodeHeap] = loaderAllocator.FixupPrecodeHeap!.Value; 799heaps[LoaderAllocatorHeapType.NewStubPrecodeHeap] = loaderAllocator.NewStubPrecodeHeap!.Value; 802heaps[LoaderAllocatorHeapType.DynamicHelpersStubHeap] = loaderAllocator.DynamicHelpersStubHeap!.Value; 809heaps[LoaderAllocatorHeapType.IndcellHeap] = vcsMgr.IndcellHeap; 812heaps[LoaderAllocatorHeapType.CacheEntryHeap] = vcsMgr.CacheEntryHeap!.Value;
Contracts\ManagedTypeSource_1.cs (7)
75_typeInfoCache[fullyQualifiedName] = null; 79_typeInfoCache[fullyQualifiedName] = info; 107_typeHandleCache[fullyQualifiedName] = null; 111_typeHandleCache[fullyQualifiedName] = typeHandle; 196_fieldDescCache[key] = TargetPointer.Null; 201_fieldDescCache[key] = fieldDescAddr; 240instanceFields[fieldName] = new Target.FieldInfo
Contracts\RuntimeTypeSystem_1.cs (1)
54_targetTypeHandles[address] = handle;
Contracts\Signature\Signature_1.cs (1)
41_thProviders[moduleHandle] = newProvider;
Microsoft.Diagnostics.DataContractReader.Legacy (4)
MetaDataImportImpl.cs (2)
2330lookup[MetadataTokens.GetRowNumber(ih)] = typeToken; 2346lookup[MetadataTokens.GetRowNumber(ph)] = methodToken;
SOSDacImpl.cs (2)
4931expectedElementsDict[default]++; // Increment the count for verification 4996expectedElementsDict[default]++; // Increment the count for verification
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\ProcessEnvironment.cs (1)
59env[pair.Substring(0, equalsIdx)] = equalsIdx != pair.Length - 1 ? pair.Substring(equalsIdx + 1) : "";
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
74runtimeItems[runtimeName] = runtimeItems[runtimeName].Concat(items);
Microsoft.DotNet.Build.Manifest (1)
MSBuildListSplitter.cs (1)
44values[key] = value;
Microsoft.DotNet.Build.Tasks.Installers (7)
src\CreateWixBuildWixpack.cs (7)
236_defineVariablesDictionary[match.Groups[1].Value] = ResolvePath(match.Groups[2].Value); 256_defineConstantsDictionary["ProjectDir"] = "."; 262_defineConstantsDictionary["ProjectPath"] = Path.GetFileName(projectPath); 268_defineConstantsDictionary["OutDir"] = "%outputfolder%"; 274_defineConstantsDictionary["TargetDir"] = "%outputfolder%"; 280_defineConstantsDictionary["TargetPath"] = Path.Combine("%outputfolder%", Path.GetFileName(targetPath)); 475dict[key] = value;
Microsoft.DotNet.Build.Tasks.Packaging (23)
ApplyBaseLine.cs (1)
67baseLineVersions[baseLinePackage.ItemSpec] = versions = new SortedSet<Version>();
ApplyMetaPackages.cs (1)
111metaPackagesToAdd[metaPackage] = metaPackageFrameworks = new HashSet<NuGetFramework>();
ApplyPreReleaseSuffix.cs (1)
130_stablePackageVersions[stablePackageId] = newVersion;
GeneratePackageReport.cs (3)
148report.Targets[target] = reportTarget; 306packageItems[packageId] = new List<PackageItem>(); 331_targetPathToPackageItem[packageSpecificTargetPath] = packageItem;
GenerateRuntimeDependencies.cs (1)
86packageAliases[alias] = dependency.ItemSpec;
GetApplicableAssetsFromPackages.cs (2)
163_packageToPackageItems[packageItem.Package] = new List<PackageItem>(); 187_targetPathToPackageItem[packageSpecificTargetPath] = packageFile;
GetLastStablePackage.cs (3)
89latestPackages[packageId] = nuGetVersion?.Version; 90originalItems[packageId] = latestPackage; 121lastStablePackages[packageId] = stableVersion;
GetPackageDescription.cs (2)
68s_descriptionCache[descriptionPath] = descriptionTable; 98descriptions[metadata.Name] = FormatDescription(metadata, descriptionPath);
NuGetAssetResolver.cs (1)
179_packages[packageId] = new ContentItemCollection();
NugetPropertyStringProvider.cs (1)
23propertyDictionary[property.Item1] = property.Item2;
SplitReferences.cs (2)
110collection[item.ItemSpec] = item; 115collection[item.ItemSpec] = item;
ValidatePackage.cs (4)
336implementationFiles[fileName] = implementationAssembly; 485_frameworks[fx] = new ValidationFramework(fx); 594_frameworks[inboxPair.Key] = new ValidationFramework(inboxPair.Key) 631_frameworks[framework] = new ValidationFramework(framework)
ValidationTask.cs (1)
140_suppressions[key] = values;
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
37values[key] = value;
Microsoft.DotNet.Build.Tasks.Workloads (9)
Swix\ComponentSwixProject.cs (6)
29ReplacementTokens[SwixTokens.__VS_COMPONENT_TITLE__] = component.Title; 30ReplacementTokens[SwixTokens.__VS_COMPONENT_DESCRIPTION__] = component.Description; 31ReplacementTokens[SwixTokens.__VS_COMPONENT_CATEGORY__] = component.Category; 32ReplacementTokens[SwixTokens.__VS_IS_UI_GROUP__] = component.IsUiGroup ? DefaultValues.Swix.Yes : DefaultValues.Swix.No; 33ReplacementTokens[SwixTokens.__VS_PACKAGE_OUT_OF_SUPPORT__] = OutOfSupport ? DefaultValues.Swix.Yes : DefaultValues.Swix.No; 34ReplacementTokens[SwixTokens.__VS_IS_ADVERTISED_PACKAGE__] = component.Advertise ? DefaultValues.Swix.Yes : DefaultValues.Swix.No;
Swix\SwixProjectBase.cs (3)
62ReplacementTokens[SwixTokens.__VS_PACKAGE_NAME__] = Id; 63ReplacementTokens[SwixTokens.__VS_PACKAGE_VERSION__] = $"{Version}"; 64ReplacementTokens[SwixTokens.__MICROSOFT_BUILD_NOTARGETS_PACKAGE_VERSION__] = "3.7.0";
Microsoft.DotNet.Cli.CommandLine (5)
ForwardedOptionExtensions.cs (4)
87s_forwardingFunctions[option] = option.GetForwardingFunction(func); 100s_forwardingFunctions[option] = option.GetForwardingFunction(o => [format(o)]); 113s_forwardingFunctions[option] = option.GetForwardingFunction(func); 164s_forwardingFunctions[option] = wrapped;
SymbolDocumentationExtensions.cs (1)
36s_documentationLinks[symbol] = value;
Microsoft.DotNet.Cli.Definitions (3)
Common\CommonOptions.cs (2)
62dictionary[kvp.key] = kvp.value; 327result[name] = value;
Help\HelpBuilder.cs (1)
75_customizationsBySymbol[symbol] = new Customization(firstColumnText, secondColumnText, defaultValue);
Microsoft.DotNet.Cli.Telemetry (17)
Implementation\AzureMonitorLogSerializer.cs (8)
64state.Properties[key] = value; 87properties[BreezeSchema.OriginalFormatProperty] = 101properties[key] = value; 109properties[BreezeSchema.CategoryNameProperty] = 115properties[BreezeSchema.EventIdProperty] = logRecord.EventId.Id.ToString(CultureInfo.InvariantCulture); 120properties[BreezeSchema.EventNameProperty] = 198tags[BreezeSchema.OperationId] = logRecord.TraceId.ToHexString(); 202tags[BreezeSchema.OperationParentId] = logRecord.SpanId.ToHexString();
Implementation\AzureMonitorTelemetrySerializer.cs (5)
190properties[key] = value; 218tags[BreezeSchema.OperationParentId] = activity.ParentSpanId.ToHexString(); 220tags[BreezeSchema.OperationId] = traceId; 223tags[BreezeSchema.OperationName] = BreezeSchema.Truncate(activity.DisplayName, BreezeSchema.OperationNameMaxLength)!; 253properties[key] = value;
Implementation\BreezeWriter.cs (4)
41tags[BreezeSchema.CloudRole] = BreezeSchema.Truncate(resource.RoleName, BreezeSchema.CloudRoleMaxLength)!; 45tags[BreezeSchema.CloudRoleInstance] = BreezeSchema.Truncate(resource.RoleInstance, BreezeSchema.CloudRoleInstanceMaxLength)!; 49tags[BreezeSchema.ApplicationVersion] = BreezeSchema.Truncate(resource.ApplicationVersion, BreezeSchema.ApplicationVersionMaxLength)!; 51tags[BreezeSchema.InternalSdkVersion] = BreezeSchema.Truncate(resource.SdkVersion, BreezeSchema.SdkVersionMaxLength)!;
Microsoft.DotNet.Cli.Utils (5)
MSBuildArgs.cs (3)
247newRestoreProperties[kvp.Key] = kvp.Value; 297newProperties[kvp.Key] = kvp.Value; 380newdict[restoreKvp.Key] = restoreKvp.Value;
MSBuildForwardingAppWithoutLogging.cs (2)
176_msbuildRequiredEnvironmentVariables["MSBUILDUSESERVER"] = "0"; 242savedEnvironmentVariables[kvp.Key] = Environment.GetEnvironmentVariable(kvp.Key);
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
86parsedPinvokes[splitCount[1]] = splitCount[0];
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
84dictionary[key] = value;
Microsoft.DotNet.HotReload.Watch (5)
Aspire\AspireServiceFactory.cs (1)
174_sessions[sessionId] = new Session(dcpId, sessionId, runningProject, outputReader);
Process\ProjectLauncher.cs (4)
68environmentBuilder[name] = value; 72environmentBuilder[EnvironmentVariables.Names.DotnetWatch] = "1"; 73environmentBuilder[EnvironmentVariables.Names.DotnetWatchIteration] = (Iteration + 1).ToString(CultureInfo.InvariantCulture); 77environmentBuilder[EnvironmentVariables.Names.HotReloadDeltaClientLogMessages] =
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
94map[partUri] = ReplacementFiles[i];
Microsoft.DotNet.PackageTesting (4)
VerifyClosure.cs (3)
122assemblies[assemblyInfo.Name] = assemblyInfo; 147ignoredReferences[name] = version; 314suspectCycles[suspectAssembly] = cycle;
VerifyTypes.cs (1)
120assemblies[assemblyInfo.Name] = assemblyInfo;
Microsoft.DotNet.ProjectTools (1)
BuildService.cs (1)
101mergedGlobalProperties[pair.Key] = pair.Value;
Microsoft.DotNet.SharedFramework.Sdk (8)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (3)
122assemblies[assemblyInfo.Name] = assemblyInfo; 147ignoredReferences[name] = version; 314suspectCycles[suspectAssembly] = cycle;
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
120assemblies[assemblyInfo.Name] = assemblyInfo;
src\ValidateFileVersions.cs (4)
42fileVersions[fileName] = current; 49fileVersions[fileName] = current; 60fileVersions[fileName] = current; 66fileVersions[fileName] = current;
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
232packageOrigin[id] = origin;
Microsoft.DotNet.TemplateLocator (5)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
121_knownManifestIdsAndOrder[manifestId] = lineNumber++; 355manifestIdsToManifests[manifestId] = readableManifest; 392directoriesWithManifests[Path.GetFileName(workloadManifestDirectory)] = workloadManifestDirectory; 651availableWorkloadSets[workloadSet.Version!] = workloadSet;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (1)
288packs[packId] = pack;
Microsoft.DotNet.XliffTasks (1)
Model\JsonDocument.cs (1)
41json[Id] = translation;
Microsoft.Extensions.AI (5)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1605messagesById[previousMessageKey] = currentMessage;
ChatCompletion\ImageGeneratingChatClient.cs (4)
391List<AIContent> imageContents = _imageContentByCallId[callId] = []; 414_imageContentByCallId[callId] = []; 454List<AIContent> imageContents = _imageContentByCallId[callId] = []; 511_imageContentById[imageId] = imageContent;
Microsoft.Extensions.AI.Abstractions (5)
AdditionalPropertiesDictionary{TValue}.cs (2)
64set => _dictionary[key] = value; 209_dictionary[item.Key] = item.Value;
ChatCompletion\ChatResponseExtensions.cs (2)
216imageResultIndexById[imageResult.CallId] = i; 270webSearchCallIndexById[webSearchCall.CallId] = i;
Functions\AIFunctionArguments.cs (1)
101set => _arguments[key] = value;
Microsoft.Extensions.AI.Abstractions.Tests (4)
Functions\AIFunctionArgumentsTests.cs (4)
224originalArgs["key3"] = "value3"; 252originalDict["key3"] = "value3"; 277originalDict["key3"] = "value3"; 303originalDict["key3"] = "value3";
Microsoft.Extensions.AI.Evaluation.Console (16)
Commands\CleanCacheCommand.cs (2)
45telemetryProperties[PropertyNames.StorageType] = PropertyValues.StorageTypeDisk; 54telemetryProperties[PropertyNames.StorageType] = PropertyValues.StorageTypeAzure;
Commands\CleanResultsCommand.cs (2)
49telemetryProperties[PropertyNames.StorageType] = PropertyValues.StorageTypeDisk; 58telemetryProperties[PropertyNames.StorageType] = PropertyValues.StorageTypeAzure;
Commands\ReportCommand.cs (12)
59telemetryProperties[PropertyNames.StorageType] = PropertyValues.StorageTypeDisk; 68telemetryProperties[PropertyNames.StorageType] = PropertyValues.StorageTypeAzure; 183usageDetailsByModel[key] = usageDetails; 244properties[PropertyNames.Model] = model; 250properties[PropertyNames.InputTokenCount] = inputTokenCount; 256properties[PropertyNames.OutputTokenCount] = outputTokenCount; 262properties[PropertyNames.DurationInMilliseconds] = durationInMilliseconds; 267properties[PropertyNames.IsInterpretedAsFailed] = failed.ToTelemetryPropertyValue(); 319properties[PropertyNames.CachedInputTokenCount] = cachedInputTokenCount.ToTelemetryPropertyValue(); 324properties[PropertyNames.CachedOutputTokenCount] = 330properties[PropertyNames.NonCachedInputTokenCount] = 336properties[PropertyNames.NonCachedOutputTokenCount] =
Microsoft.Extensions.AI.Evaluation.NLP (7)
Common\BLEUAlgorithm.cs (4)
84maxCounts[ct.Key] = Math.Max(val, ct.Value); 88maxCounts[ct.Key] = ct.Value; 98clippedCounts[h.Key] = Math.Min(h.Value, v); 103clippedCounts[h.Key] = 0;
Common\MatchCounter.cs (3)
35_counts[item] = currentCount + 1; 39_counts[item] = 1; 68intersection._counts[kvp.Key] = Math.Min(kvp.Value, otherCount);
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyServicePayloadUtilities.cs (2)
427currentTurn["question"] = message; 431currentTurn["answer"] = message;
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (1)
437additionalProperties["strict"] = true;
VerbatimMultiPartHttpHandler.cs (1)
144parameters[key] = list[0];
Microsoft.Extensions.AI.OpenAI (7)
OpenAIChatClient.cs (1)
422functionCallInfos[toolCallUpdate.Index] = existing = new();
OpenAIRealtimeClientSession.cs (2)
257metadata[kvp.Key] = BinaryData.FromString(kvp.Value?.ToString() ?? string.Empty); 563sdkHeaders[kvp.Key] = kvp.Value;
OpenAIResponsesChatClient.cs (4)
1049namespaceGroups[ns] = group; 1163namespacedToolNames[toolName] = ns; 1182namespacedToolNames[deferredTool] = GetOrCreateNamespace(namespacesByName, nsName, toolSearch.NamespaceDescription); 1204namespacesByName[name] = existing;
Microsoft.Extensions.AI.Templates.Tests (1)
TestCommandExtensions.cs (1)
13command.EnvironmentVariables[name] = value;
Microsoft.Extensions.Caching.Hybrid.Tests (2)
StampedeTests.cs (1)
471counts[obj] = count + 1;
TestEventListener.cs (1)
106_counters[name] = (displayName, value.Value);
Microsoft.Extensions.Compliance.Redaction (2)
RedactionBuilder.cs (1)
42_ = Services.Configure<RedactorProviderOptions>(options => options.Redactors[c] = redactorType);
RedactorProvider.cs (1)
53dict[m.Key] = r;
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
278_properties[key] = value;
Microsoft.Extensions.Configuration.Binder.SourceGeneration (4)
Parser\Extensions.cs (1)
86cache[key] = entryCollection = new TValue();
Specs\BindingHelperInfo.cs (2)
117: (_seenTransitiveTypes[typeRef] = TryRegisterCore()); 242_typesForGen[method] = types = new HashSet<TypeSpec>();
Specs\InterceptorInfo.cs (1)
142_invocationInfoBuilderCache[type] = invocationInfoBuilder = new TypedInterceptorInvocationInfo.Builder(overload, type);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
128data[key] = value;
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
170data[normalizedKey.Substring(_normalizedPrefix.Length)] = value;
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
81data[key] = value;
Microsoft.Extensions.Configuration.Json (3)
JsonConfigurationFileParser.cs (3)
77_data[_paths.Peek()] = null; 85_data[_paths.Peek()] = string.Empty; 113_data[key] = value.ValueKind == JsonValueKind.Null ? null : value.ToString();
Microsoft.Extensions.DataIngestion (1)
Writers\VectorStoreWriter.cs (1)
92record[metadata.Key] = metadata.Value;
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\CallSiteChain.cs (1)
35_callSiteChain[serviceIdentifier] = new ChainItemInfo(_callSiteChain.Count, implementationType);
ServiceLookup\CallSiteFactory.cs (2)
85_descriptorLookup[cacheKey] = cacheItem.Add(descriptor); 416keyedSlotAssignment[key] = slot + 1;
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
875_stringPool[s] = s;
Microsoft.Extensions.Diagnostics (1)
Tracing\DefaultActivitySourceFactory.cs (1)
94_cachedSources[options.Name] = grown;
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
HttpExceptionSummaryProvider.cs (2)
48socketErrors[socketError] = descriptions.Count; 63webStatuses[status] = descriptions.Count;
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
65entries[registration.Name] = tasks[index++].Result;
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\CollectedMeasurement.cs (1)
31d[tag.Key] = tag.Value;
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
119dict[name] = new List<string> { file };
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientBuilderExtensions.cs (3)
710registry.KeyedLifetimeMap[name] = clientLifetime; 748registry.KeyedLifetimeMap[name] = HttpClientKeyedLifetime.Disabled; 782registry.NamedClientRegistrations[name] = type;
Microsoft.Extensions.Http.Diagnostics (4)
Latency\Internal\HttpRequestLatencyListener.cs (4)
153socket[key] = tokenIssuer.GetCheckpointToken(_socketMap[key]); 159nameResolution[key] = tokenIssuer.GetCheckpointToken(_nameResolutionMap[key]); 165http[key] = tokenIssuer.GetCheckpointToken(_httpMap[key]); 171httpMeasures[key] = tokenIssuer.GetMeasureToken(_httpMeasureMap[key]);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
371Tags[tag.Key] = tag.Value;
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (1)
161options.Tokens.ProviderMap[providerName] = new TokenProviderDescriptor(provider);
UserManager.cs (1)
1943_tokenProviders[providerName] = provider;
Microsoft.Extensions.Logging.Generators (5)
LoggerMessageGenerator.Parser.cs (3)
625methods[lm.Name] = currentCount + 1; 630methods[lm.Name] = 1; //start from 1 879templateMap[templateName] = templateName;
LoggerMessageGenerator.Roslyn4.0.cs (2)
182allLogClasses[classKey] = FromSpec(item.LoggerClassSpec); 289lm.TemplateMap[kvp.Key] = kvp.Value;
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLoggerProvider.cs (1)
30_loggers[categoryName] = logger;
Microsoft.Extensions.Options.SourceGeneration (3)
OptionsSourceGenContext.cs (1)
40AttributesToGenerate[attributeName] = value;
Parser.cs (2)
863_synthesizedValidators[mt] = isAsync ? (cached.Sync, result) : (result, cached.Async); 877_usedSynthesizedValidatorNames[@namespace] = namesInNamespace;
Microsoft.Extensions.ServiceDiscovery.Dns (1)
FallbackDnsResolver.cs (1)
60lookupMapping[record.DomainName] = addresses;
Microsoft.Extensions.ServiceDiscovery.Tests (2)
ConfigurationServiceEndpointResolverTests.cs (2)
235data["services:basket:default:0"] = "https://default-host:8080"; 240data["services:basket:https:0"] = "https://https-host:8080";
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
45results[name] = config;
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLoggerFactory.cs (1)
156_loggers[categoryName] = logger;
Microsoft.Extensions.VectorData.Abstractions (2)
ProviderServices\CollectionModelBuilder.cs (2)
105definitionByName[p.Name] = p; 507storageNameMap[property.StorageName] = property;
Microsoft.Extensions.VectorData.ConformanceTests (10)
TypeTests\DataTypeTests.cs (10)
290mainRecord[nameof(RecordBase.Key)] = fixture.MainRecordKey; 291mainRecord[nameof(RecordBase.Vector)] = fixture.Vector; 292mainRecord[propertyName] = mainValue; 295otherRecord[nameof(RecordBase.Key)] = fixture.OtherRecordKey; 296otherRecord[nameof(RecordBase.Vector)] = fixture.Vector; 297otherRecord[propertyName] = otherValue; 305nullRecord[nameof(RecordBase.Key)] = fixture.NullRecordKey; 306nullRecord[nameof(RecordBase.Vector)] = fixture.Vector; 307nullRecord[propertyName] = null; 320record[property.Name] = GenerateEmptyProperty(property);
Microsoft.Gen.ComplianceReports (2)
Parser.cs (2)
131classifiedMembers[ci.Name] = ci; 192classifiedMembers[ci.Name] = ci;
Microsoft.Gen.Logging (2)
Parser.cs (1)
111parameterSymbols[lp] = paramSymbol;
Parser.LogProperties.cs (1)
116sensitivePropsFromCtor[parameter.Name] = maybeDataClasses;
Microsoft.Gen.Logging.Generated.Tests (2)
TagProviderTests.cs (2)
379expectedState["param.MyIntProperty"] = classToLog1.MyIntProperty.ToInvariantString(); 380expectedState["param2.MyIntProperty_test"] = classToLog2.MyIntProperty.ToInvariantString();
Microsoft.Gen.MetadataExtractor (2)
Parser.cs (2)
131classifiedMembers[ci.Name] = ci; 192classifiedMembers[ci.Name] = ci;
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceContext.cs (3)
56nameToContextCache[iface.ThisInterfaceKey] = baselessCtx; 74nameToContextCache[iface.ThisInterfaceKey] = diagnostic; 80nameToContextCache[iface.ThisInterfaceKey] = ctx;
ComMethodContext.cs (1)
171allMethodsCache[iface] = imm;
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
49uniqueMarshallersToFix[uniqueMarshallerFixKey] = membersToAdd = new HashSet<string>(); 81partiallyUpdatedSymbols[marshallerType] = newMarshallerType;
Microsoft.Maui (21)
CommandMapper.cs (1)
24 _mapper[key] = action;
Fonts\FontRegistrar.cs (7)
35 _embeddedFonts[filename] = (filename, alias, assembly); 38 _embeddedFonts[alias!] = (filename, alias, assembly); 44 _nativeFonts[filename] = (filename, alias); 47 _nativeFonts[alias!] = (filename, alias); 74 return _fontLookupCache[font] = null; 86 return _fontLookupCache[cacheKey] = result; 98 return _fontLookupCache[cacheKey] = result;
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
24 _interfaceTypeMapping[typeof(TImageSource)] = typeof(TImageSourceService); 28 _concreteTypeMapping[typeof(TImageSource)] = typeof(TImageSourceService);
Hosting\Internal\MauiServiceCollection.cs (2)
30 _descriptorDictionary[item.ServiceType] = item; 64 _descriptorDictionary[item.ServiceType] = item;
HotReload\HotReloadHelper.cs (3)
44 currentViews[view] = parameters; 152 replacedViews[oldViewType] = newViewType; 170 replacedHandlers[oldViewType] = views.ToList();
Layouts\GridLayoutManager.cs (2)
510 _spans[span.Key] = span; 515 _spans[span.Key] = span;
LifecycleEvents\LifecycleEventService.cs (1)
26 _mapper[eventName] = delegates = new List<Delegate>();
PropertyMapper.cs (3)
42 _mapper[key] = action; 74 cachedMappers[key] = mapper; 192 cachedMappers[key] = mapper;
Microsoft.Maui.Controls (45)
AnimationExtensions.cs (2)
280 s_animations[key] = info; 319 s_kinetics[key] = tick;
DataTemplateSelector.cs (1)
36 _dataTemplates[item.GetType()] = dataTemplate;
DependencyService.cs (3)
40 DependencyImplementations[targetType] = (dependencyImplementation = implementor != null ? new DependencyData { ImplementorType = implementor } : null); 77 DependencyImplementations[targetType] = new DependencyData { ImplementorType = implementorType }; 87 DependencyImplementations[targetType] = new DependencyData { ImplementorType = implementorType, GlobalInstance = instance };
DragAndDrop\DataPackagePropertySet.cs (1)
22 set => _propertyBag[key] = value;
Element\Element.cs (1)
792 DynamicResources[property] = (key, specificity);
Interactivity\TriggerBase.cs (1)
83 bindable._triggerSpecificity[this] = specificity;
Internals\NameScope.cs (2)
28 _names[name] = scopedElement; 29 _values[scopedElement] = name;
Layout\AbsoluteLayout.cs (3)
166 _viewInfo[view] = new AbsoluteLayoutInfo(); 188 _viewInfo[view] = new AbsoluteLayoutInfo(); 200 _viewInfo[view] = new AbsoluteLayoutInfo();
Layout\Grid.cs (3)
255 _viewInfo[view] = new GridInfo(); 277 _viewInfo[view] = new GridInfo(); 289 _viewInfo[view] = new GridInfo();
LegacyLayouts\RelativeLayout.cs (2)
73 solveTable[child] = false; 86 solveTable[child] = true;
MessagingCenter.cs (1)
239 _subscriptions[key] = list;
OrderedDictionary.cs (2)
196 _dict[key] = value; 266 _dict[value.Key] = value.Value;
Registrar.cs (5)
65 _handlers[tview] = visualRenderers; 73 visualRenderers[supportedVisuals[i]] = new(trender, priority); 76 visualRenderers[supportedVisuals[i]] = new(trender, priority); 371 properties[attribute.CssPropertyName] = new List<StylePropertyAttribute> { attribute }; 414 Effects[resolutionName + "." + id] = new(effectType);
ResourceDictionary.cs (1)
236 _innerDictionary[index] = value;
ResourcesExtensions.cs (3)
29 resources[res.Key] = mergedClassStyles; 44 resources[res.Key] = mergedClassStyles; 50 resources[AppThemeBinding.AppThemeResource] = app.RequestedTheme;
Routing.cs (2)
33 s_implicitPageRoutes[route] = page; 211 s_routes[route] = factory;
Shell\ShellNavigationManager.cs (1)
331 returnValue[datum.Key] = datum.Value;
Shell\ShellNavigationQueryParameters.cs (1)
47 _internal[key] = value;
Shell\ShellRouteParameters.cs (2)
97 this[item.Key] = item.Value; 113 lookupDict[p[0]] = p[1];
StyleSheets\Style.cs (1)
79 convertedValues[decl] = (value = Convert(styleable, decl.Value, property));
TemplatedItemsList.cs (1)
1329 _oldNames[list] = list.ShortName;
VisualElement\VisualElement.cs (1)
1206 _measureCache[constraintSize] = r;
Visuals\VisualTypeConverter.cs (5)
108 mappings[attribute.Key] = visual; 131 mappings[name] = registeredVisual; 132 mappings[fullName] = registeredVisual; 133 mappings[$"{name}Visual"] = registeredVisual; 134 mappings[$"{fullName}Visual"] = registeredVisual;
Microsoft.Maui.Controls.Build.Tasks (21)
CompiledMarkupExtensions\ArrayExtension.cs (1)
37 context.Variables[node] = vardef;
CompiledMarkupExtensions\TypeExtension.cs (2)
27 node.Properties[name] = typeNameNode; 33 context.TypeExtensions[node] = typeref ?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.Value);
CreateObjectVisitor.cs (6)
41 Context.Values[node] = node.Value; 71 Context.Variables[node] = vardef; 89 Context.Variables[node] = vardef; 112 Context.Variables[node] = vardef; 198 Context.Variables[node] = vardef; 263 Context.Variables[node] = vardef;
ExpandMarkupsVisitor.cs (2)
51 ((IElementNode)parentNode).Properties[propertyName] = node; 212 _node.Properties[childname] = childnode;
PerformanceProvider.cs (1)
91 Statistics[id] = stats = new Statistic();
SetNamescopesAndRegisterNamesVisitor.cs (5)
32 Context.Scopes[node] = Context.Scopes[parentNode]; 41 Context.Scopes[node] = Context.Scopes[parentNode]; 74 Context.Scopes[node] = new Tuple<VariableDefinition, IList<string>>(namescopeVarDef, namesInNamescope); 83 Context.Scopes[node] = new System.Tuple<VariableDefinition, IList<string>>(namescopeVarDef, namesInNamescope); 88 Context.Scopes[node] = Context.Scopes[parentNode];
SetPropertiesVisitor.cs (3)
122 Context.Variables[node] = vardef; 777 locs[importedPropDeclTypeRef] = loc; 1900 templateContext.Scopes[kvp.Key] = new Tuple<VariableDefinition, IList<string>>(varDefScope, kvp.Value.Item2);
XamlCache.cs (1)
27 value = dictionary[key] = valueFactory(key);
Microsoft.Maui.Controls.Xaml (21)
CreateValuesVisitor.cs (6)
40 Values[node] = node.Value; 62 Context.Types[node] = type; 125 Values[node] = value; 160 Values[node] = value; 180 Values[node] = rnode.Root; 181 Context.Types[node] = rnode.Root.GetType();
ExpandMarkupsVisitor.cs (2)
60 ((IElementNode)parentNode).Properties[propertyName] = node; 219 _node.Properties[childname] = childnode;
NamescopingVisitor.cs (5)
21 public void Visit(ValueNode node, INode parentNode) => _scopes[node] = _scopes[parentNode]; 22 public void Visit(MarkupNode node, INode parentNode) => _scopes[node] = _scopes[parentNode]; 25 => _scopes[node] = node.NameScopeRef = (parentNode == null || IsDataTemplate(node, parentNode) || IsStyle(node, parentNode) || IsVisualStateGroupList(node)) 29 public void Visit(RootNode node, INode parentNode) => _scopes[node] = node.NameScopeRef = new NameScopeRef { NameScope = new NameScope() }; 32 _scopes[node] = _scopes[parentNode];
SimplifyOnPlatformVisitor.cs (2)
58 parentEnode.Properties[name] = targetNode; 65 parentEnode.Properties[name] = node.CollectionItems[0];
SimplifyTypeExtensionVisitor.cs (1)
35 (parentNode as IElementNode).Properties[propertyName] = typeNameValueNode;
XamlServiceProvider.cs (5)
48 set => services[typeof(IProvideValueTarget)] = value; 54 set => services[typeof(IXamlTypeResolver)] = value; 60 set => services[typeof(IRootObjectProvider)] = value; 66 set => services[typeof(IXmlLineInfoProvider)] = value; 72 set => services[typeof(IValueConverterProvider)] = value;
Microsoft.Maui.Essentials (4)
Types\Shared\WebUtils.shared.cs (1)
76 parameters[name] = Uri.UnescapeDataString(value);
WebAuthenticator\WebAuthenticatorResult.shared.cs (3)
45 Properties[kvp.Key] = kvp.Value; 56 Properties[kvp.Key] = kvp.Value; 80 => Properties[key] = value;
Microsoft.Maui.Graphics (4)
Text\TextAttributes.cs (2)
20 this[entry.Key] = entry.Value; 23 this[entry.Key] = entry.Value;
Text\TextAttributesExtensions.cs (1)
33 attributes[type] = value;
Text\XmlAttributedTextReader.cs (1)
127 attributes[key] = attributeValue;
Microsoft.Maui.Graphics.Text.Markdig (4)
Renderer\HtmlInlineRenderer.cs (2)
51 attributes[TextAttribute.Color] = color; 55 attributes[TextAttribute.Background] = background;
Renderer\ListRenderer.cs (1)
30 attributes[TextAttribute.UnorderedList] = "True";
Renderer\SimpleCssParser.cs (1)
25 values[key] = value;
Microsoft.Maui.Resizetizer (2)
ColorTable.cs (1)
39 dictionary[field.Name] = (SKColor)field.GetValue(null)!;
ResizetizeImages.cs (1)
150 imagesPairs[image.OutputName] = image;
Microsoft.ML.AutoML (21)
ColumnInference\ColumnInformationUtil.cs (1)
158result[purpose.Value] = ++count;
SweepableEstimator\MultiModelPipeline.cs (1)
185estimators[id] = (SweepableEstimator)sweepableEntity0.Estimator;
SweepableEstimator\SweepablePipeline.cs (1)
245estimators[id] = (SweepableEstimator)sweepableEntity0.Estimator;
TrainerExtensions\TrainerExtensionUtil.cs (7)
149props[sweepParam.Name] = sweepParam.ProcessedValue(); 152props[LabelColumn] = labelColumn; 155props[WeightColumn] = weightColumn; 177props[LightGbmBoosterPropName] = boosterCustomProp; 180props[LabelColumn] = labelColumn; 183props[WeightColumn] = weightColumn; 187props[GroupColumn] = groupColumn;
Tuner\AutoZeroTuner.cs (1)
105_configLookBook[settings.TrialId] = config;
Tuner\CostFrugalTuner.cs (3)
61_trialProposedBy[trialId] = _currentThreadId; 66_trialProposedBy[trialId] = _currentThreadId; 90_searchThreadPool[_currentThreadId] = _localSearch.CreateSearchThread(parameter, loss, cost);
Tuner\PipelineProposer.cs (7)
162_k1[schema] += duration; 168_k2[schema] = _k1[schema]; 169_k1[schema] = duration; 170_e2[schema] = _e1[schema]; 171_e1[schema] = loss; 183_eci[schema] = Math.Max(eci1, estimatorCostForBreakThrough); 188_eci[schema] = _eci.Select(kv => kv.Value).Max() * 2;
Microsoft.ML.Core (6)
ComponentModel\ComponentCatalog.cs (3)
530_signatures[sigType] = true; 584_entryPointMap[entryPointInfo.Name] = entryPointInfo; 635_componentMap[tag] = info;
Data\Repository.cs (1)
477_entries[path] = entry;
Environment\HostEnvironmentBase.cs (1)
605Options[name] = value;
Utilities\Utils.cs (1)
170map[key] = value;
Microsoft.ML.Core.Tests (10)
UnitTests\ColumnTypes.cs (10)
36dict[tmp] = tmp.ToString(); 42dict[tmp1] = tmp1.ToString(); 48dict[tmp2] = tmp2.ToString(); 63dict[tmp] = tmp.ToString(); 69dict[tmp1] = tmp1.ToString(); 75dict[tmp2] = tmp2.ToString(); 83dict[tmp] = tmp.ToString(); 89dict[tmp1] = tmp1.ToString(); 95dict[tmp2] = tmp2.ToString(); 108dict[tmp4] = tmp4.ToString();
Microsoft.ML.Data (57)
Commands\DataCommand.cs (2)
174averageMetric[nameOfMetric] += metricValue; 185averageMetric[nameOfMetric] = Double.NaN;
Commands\TypeInfoCommand.cs (2)
110srcToDstMap[types[i].GetRawKind()] = dstKinds; 113dstToSrcMap[dstKinds] = srcKinds = new HashSet<InternalDataKind>();
Data\SchemaDefinition.cs (2)
264AnnotationInfos[kind] = new AnnotationInfo<T>(kind, value, annotationType); 269AnnotationInfos[kind] = info;
DataLoadSave\Binary\BinaryLoader.cs (1)
357map[kind] = entry;
DataLoadSave\Binary\UnsafeTypeOps.cs (12)
33_type2ops[typeof(sbyte)] = new SByteUnsafeTypeOps(); 34_type2ops[typeof(Byte)] = new ByteUnsafeTypeOps(); 35_type2ops[typeof(short)] = new Int16UnsafeTypeOps(); 36_type2ops[typeof(UInt16)] = new UInt16UnsafeTypeOps(); 37_type2ops[typeof(int)] = new Int32UnsafeTypeOps(); 38_type2ops[typeof(UInt32)] = new UInt32UnsafeTypeOps(); 39_type2ops[typeof(long)] = new Int64UnsafeTypeOps(); 40_type2ops[typeof(UInt64)] = new UInt64UnsafeTypeOps(); 41_type2ops[typeof(Single)] = new SingleUnsafeTypeOps(); 42_type2ops[typeof(Double)] = new DoubleUnsafeTypeOps(); 43_type2ops[typeof(TimeSpan)] = new TimeSpanUnsafeTypeOps(); 44_type2ops[typeof(DataViewRowId)] = new UgUnsafeTypeOps();
DataLoadSave\Database\DatabaseLoader.cs (1)
536nameToInfoIndex[name] = iinfo;
DataLoadSave\Text\TextLoader.cs (2)
837nameToInfoIndex[name] = iinfo; 985nameToInfoIndex[name] = iinfo;
DataView\Transposer.cs (1)
766nameToCol[_input.Schema[toSlice[c]].Name] = outputColumnCount - 1;
Deprecated\Instances\HeaderSchema.cs (2)
340lookup[name] = index; 472lookup[name] = _indices[iv];
EntryPoints\EntryPointNode.cs (11)
304_vars[binding.VariableName] = v; 329_vars[name] = v; 391_vars[name] = v; 636_inputBindingMap[inputName] = new List<ParameterBinding>(); 639_inputMap[paramBinding] = varBinding; 660_inputBindingMap[inputName] = new List<ParameterBinding>(); 663_inputMap[paramBinding] = varBinding; 700_outputMap[pair.Key] = varBinding.VariableName; 712_inputMap[parameterBinding] = newBinding; 729_outputMap[key] = newName; 759_outputMap[kvp.Key] = kvp.Value;
EntryPoints\InputBuilder.cs (1)
595dict[pair.Key] = (T)GetFieldAssignableValue(ectx, typeof(T), ParseJsonValue(ectx, typeof(T), attributes, pair.Value, catalog));
Evaluators\EvaluatorUtils.cs (4)
489slotNames[name] = slotNames.Count; 589reconciledKeyNames[name] = reconciledKeyNames.Count; 875firstDvKeyNoNamesColumns[name] = typeKeyCount; 877firstDvKeyNoNamesColumns[name] = typeKeyCount;
Model\Pfa\BoundPfaContext.cs (2)
93_nameToVarName[_nameToVarName.Keys.First()] = "input"; 214_nameToVarName[colName] = names[i];
Prediction\CalibratorCatalog.cs (1)
125outColumns[DefaultColumnNames.Probability] = new SchemaShape.Column(DefaultColumnNames.Probability,
Training\TrainerEstimatorBase.cs (1)
87outColumns[col.Name] = col;
Transforms\ColumnConcatenatingEstimator.cs (1)
149result[_name] = CheckInputsAndMakeColumn(inputSchema, _name, _source);
Transforms\ColumnCopying.cs (1)
82resultDic[outputColumnName] = col;
Transforms\FeatureContributionCalculationTransformer.cs (1)
355result[DefaultColumnNames.FeatureContributions] = new SchemaShape.Column(
Transforms\Hashing.cs (1)
1968result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, colInfo.Combine ? SchemaShape.Column.VectorKind.Scalar : col.Kind,
Transforms\InvertHashUtils.cs (2)
281pairSet = _slotToValueSet[dstSlot] = new HashSet<Pair>(_comparer); 296pairSet = _slotToValueSet[dstSlot] = new HashSet<Pair>(_comparer);
Transforms\KeyToValue.cs (1)
652result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, keyMetaCol.ItemType, keyMetaCol.IsKey, metadata);
Transforms\KeyToVector.cs (1)
838result[colInfo.Name] = new SchemaShape.Column(colInfo.Name,
Transforms\Normalizer.cs (1)
365result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, col.ItemType, col.IsKey, meta);
Transforms\TypeConverting.cs (1)
646result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, newType, false, col.Annotations);
Transforms\ValueMapping.cs (1)
129resultDic[outputColumnName] = col;
Transforms\ValueToKeyMappingEstimator.cs (1)
204result[colInfo.OutputColumnName] = new SchemaShape.Column(colInfo.OutputColumnName, col.Kind, NumberDataViewType.UInt32, true, metadata);
Microsoft.ML.DataView (2)
DataViewSchema.cs (2)
433nameMap[_items[i].Name] = i; 457_nameMap[_columns[i].Name] = i;
Microsoft.ML.EntryPoints (2)
MacroUtils.cs (2)
133inputMap[paramBinding] = new SimpleVariableBinding(predModelVars[i].VarName); 156inputMap[paramBinding] = new SimpleVariableBinding(vars[i].VarName);
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
230groupMetric[kv.Key] = metrics;
Microsoft.ML.FastTree (11)
Dataset\Dataset.cs (3)
341newAuxData[pair.Key] = pair.Value.GetSubset(pair.Value.IsQueryLevel ? queryIndices.Distinct().ToArray() : docIndices); 811auxNames[name] = true; 878AuxiliaryData[name] = dd;
Dataset\DatasetUtils.cs (1)
51uvalToOrder[uintQid] = uvalToOrder.Count;
GamModelParameters.cs (2)
109_inputFeatureToShapeFunctionMap[_shapeToInputMap[i]] = i; 158_inputFeatureToShapeFunctionMap[key] = val;
Training\ScoreTracker.cs (1)
154_treeMultiplierMap[t] = new Dictionary<int, double>();
TreeEnsemble\InternalTreeEnsemble.cs (1)
395base[key] = value;
TreeEnsembleFeaturizationEstimator.cs (3)
137result[TreesColumnName] = new SchemaShape.Column(TreesColumnName, 141result[LeavesColumnName] = new SchemaShape.Column(LeavesColumnName, 145result[PathsColumnName] = new SchemaShape.Column(PathsColumnName,
Microsoft.ML.GenAI.Core (6)
Extension\ModuleExtension.cs (5)
43dict[key] = value.GetSizeInBytes(); 50dict[key + "." + subKey] = subValue; 186deviceMap[key] = device; 228deviceMap[key] = device; 235deviceMap[key] = device;
Utility\Cache.cs (1)
47this[layerIndex] = (newKey, newValue);
Microsoft.ML.GenAI.Mistral (2)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
192propertiesSchemas[param.Name] = schema;
MistralTokenizerHelper.cs (1)
80specialTokens[key] = value;
Microsoft.ML.ImageAnalytics (6)
ImageGrayscale.cs (1)
257result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, col.ItemType, col.IsKey, col.Annotations);
ImageLoader.cs (2)
449result[outputColumnName] = new SchemaShape.Column(outputColumnName, SchemaShape.Column.VectorKind.Scalar, new ImageDataViewType(), false); 451result[outputColumnName] = new SchemaShape.Column(outputColumnName, SchemaShape.Column.VectorKind.VariableVector, NumberDataViewType.Byte, false);
ImagePixelExtractor.cs (1)
821result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, itemType, false);
ImageResizer.cs (1)
520result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Scalar, colInfo.Type, false);
VectorToImageTransform.cs (1)
755result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Scalar, itemType, false);
Microsoft.ML.IntegrationTests (4)
Common.cs (4)
34types[property.Name] = property.PropertyType; 41types[property.Name] = vBufferType.MakeGenericType(typeArgs); 44counts[property.Name] = 0; 50Assert.Equal(1, ++counts[column.Name]);
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
100assemblyHasAttrMap[symbolAssembly] = assemblyWantsBestFriends;
Microsoft.ML.LightGbm (46)
LightGbmArguments.cs (1)
188res[name] = field.GetValue(BoosterOptions);
LightGbmBinaryTrainer.cs (5)
184res[GetOptionName(nameof(UnbalancedSets))] = UnbalancedSets; 185res[GetOptionName(nameof(WeightOfPositiveExamples))] = WeightOfPositiveExamples; 186res[GetOptionName(nameof(Sigmoid))] = Sigmoid; 187res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString()); 280=> GbmOptions["objective"] = "binary";
LightGbmMulticlassTrainer.cs (7)
126res[GetOptionName(nameof(UnbalancedSets))] = UnbalancedSets; 127res[GetOptionName(nameof(Sigmoid))] = Sigmoid; 128res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString()); 322GbmOptions["min_data_per_leaf"] = minimumExampleCountPerLeaf; 339GbmOptions["num_class"] = _numberOfClassesIncludingNan; 353GbmOptions["objective"] = "multiclass"; 355GbmOptions["objective"] = "multiclassova";
LightGbmRankingTrainer.cs (5)
168res[GetOptionName(nameof(Sigmoid))] = Sigmoid; 169res[GetOptionName(nameof(CustomGains))] = string.Join(",", CustomGains); 170res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString()); 291GbmOptions["objective"] = "lambdarank"; 295GbmOptions["eval_at"] = "5";
LightGbmRegressionTrainer.cs (2)
153res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString()); 243GbmOptions["objective"] = "regression";
LightGbmTrainerBase.cs (24)
288res["boosting_type"] = boosterParams.BoosterName; 290res["verbose"] = Silent ? "-1" : "1"; 292res["nthread"] = NumberOfThreads.Value; 294res["seed"] = (Seed.HasValue) ? Seed : host.Rand.Next(); 296res[GetOptionName(nameof(MaximumBinCountPerFeature))] = MaximumBinCountPerFeature; 297res[GetOptionName(nameof(HandleMissingValue))] = HandleMissingValue; 298res[GetOptionName(nameof(UseZeroAsMissingValue))] = UseZeroAsMissingValue; 299res[GetOptionName(nameof(MinimumExampleCountPerGroup))] = MinimumExampleCountPerGroup; 300res[GetOptionName(nameof(MaximumCategoricalSplitPointCount))] = MaximumCategoricalSplitPointCount; 301res[GetOptionName(nameof(CategoricalSmoothing))] = CategoricalSmoothing; 302res[GetOptionName(nameof(L2CategoricalRegularization))] = L2CategoricalRegularization; 303res[GetOptionName(nameof(Deterministic))] = Deterministic; 304res[GetOptionName(nameof(ForceColumnWise))] = ForceColumnWise; 305res[GetOptionName(nameof(ForceRowWise))] = ForceRowWise; 413GbmOptions["objective"] = split[0].Split('=')[1]; 496GbmOptions["tree_learner"] = ParallelTraining.ParallelType(); 501GbmOptions[pair.Key] = pair.Value; 534GbmOptions["learning_rate"] = learningRate; 535GbmOptions["num_leaves"] = numberOfLeaves; 536GbmOptions["min_data_per_leaf"] = minimumExampleCountPerLeaf; 661GbmOptions["categorical_feature"] = string.Join(",", catIndices); 893ivPair[idx] = -1; 905ivPair[newColIdx] = fv; 914ivPair[newColIdx] = fv;
WrappedLightGbmBooster.cs (2)
217parameters[param[0]] = param[1].Trim(); 239kvPairs[kv[0].Trim()] = kv[1].Trim();
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
901result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, col.IsKey, null);
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
220_columnNameMap[colName] = makeUniqueName ? GetUniqueName(colName, _variableNames.Contains) : colName;
Microsoft.ML.OnnxTransformer (7)
OnnxTransform.cs (3)
250shapeDictionary[customShape.Name] = customShape.Shape; 702outputCache.Outputs[outputNameOnnxValue.Name] = outputNameOnnxValue; 1085resultDic[Transformer.Outputs[i]] = new SchemaShape.Column(Transformer.Outputs[i],
OnnxUtils.cs (4)
264inputTypePool[valueInfo.Name] = OnnxTypeParser.GetDataViewType(valueInfo.Type); 268initializerTypePool[valueInfo.Name] = OnnxTypeParser.GetScalarDataViewType(valueInfo.DataType); 275outputTypePool[valueInfo.Name] = OnnxTypeParser.GetDataViewType(valueInfo.Type); 276casterPool[valueInfo.Name] = OnnxTypeParser.GetDataViewValueCasterAndResultedType(valueInfo.Type, out Type actualType);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
827result[colInfo.Name] = new SchemaShape.Column(colInfo.Name,
Microsoft.ML.Predictor.Tests (2)
CompareBaselines.cs (2)
82names2[nameLower] = true; 105names2[nameLower] = true;
Microsoft.ML.Recommender (1)
MatrixFactorizationTrainer.cs (1)
583outColumns[col.Name] = col;
Microsoft.ML.ResultProcessor (8)
ResultProcessor.cs (8)
806runResults[name] = new ResultMetric(value, deviation); 810runResults[name + "_STDEV"] = new ResultMetric(deviation); 821runResults[name] = new ResultMetric(value); 918foldResults[thisFoldResults.Key] = thisFoldResults.Value; 939metricToFoldValuesDict[kvp1.Key] = metricDict; 941metricDict[foldIdx] = kvp1.Value; 947perFoldMetrics[metricValues.Key] = new ResultMetric(float.NaN) 998valuesDict[nameValCols[0]] = value;
Microsoft.ML.Samples (15)
Dynamic\Transforms\Conversion\MapValue.cs (10)
32timeframeMap["0-4yrs"] = "Short"; 33timeframeMap["0-5yrs"] = "Short"; 34timeframeMap["6-11yrs"] = "Medium"; 35timeframeMap["12-25yrs"] = "Long"; 36timeframeMap["25+yrs"] = "Long"; 41timeframeKeyMap["0-4yrs"] = 1; 42timeframeKeyMap["0-5yrs"] = 1; 43timeframeKeyMap["6-11yrs"] = 2; 44timeframeKeyMap["12-25yrs"] = 3; 45timeframeKeyMap["25+yrs"] = 3;
Dynamic\Transforms\Conversion\MapValueToArray.cs (5)
36timeframeMap["0-4yrs"] = new int[] { 0, 5, 300 }; 37timeframeMap["0-5yrs"] = new int[] { 0, 5, 300 }; 38timeframeMap["6-11yrs"] = new int[] { 6, 11, 300 }; 39timeframeMap["12-25yrs"] = new int[] { 12, 50, 300 }; 40timeframeMap["25+yrs"] = new int[] { 12, 50, 300 };
Microsoft.ML.StandardTrainers (4)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
649outColumns[col.Name] = col;
Standard\LogisticRegression\LogisticRegression.cs (1)
298weightIndicesInvMap[i] = j++;
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (1)
156outColumns[col.Name] = col;
Standard\Simple\SimpleTrainers.cs (1)
323outColumns[column.Name] = column;
Microsoft.ML.Sweeper (2)
Algorithms\KdoSweeper.cs (2)
361labelToIndex[param[j].ValueText] = j; 403labelToIndex[param[j].ValueText] = j;
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
773outputCache.Outputs[activeOutputColNames[j]] = tensors[j]; 1046resultDic[_options.OutputColumns[i]] = new SchemaShape.Column(_options.OutputColumns[i],
Microsoft.ML.Tests (8)
TextLoaderTests.cs (8)
736irisFirstRow["SepalLength"] = 5.1f; 737irisFirstRow["SepalWidth"] = 3.5f; 738irisFirstRow["PetalLength"] = 1.4f; 739irisFirstRow["PetalWidth"] = 0.2f; 845irisFirstRow["SepalLength"] = 5.1f; 846irisFirstRow["SepalWidth"] = 3.5f; 847irisFirstRow["PetalLength"] = 1.4f; 848irisFirstRow["PetalWidth"] = 0.2f;
Microsoft.ML.TimeSeries (10)
IidChangePointDetector.cs (1)
275resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.Column(
IidSpikeDetector.cs (1)
250resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.Column(
RootCauseAnalyzer.cs (2)
640newDim[key] = value; 715distribution[dimVal] = distribution[dimVal] + 1;
SRCNNAnomalyDetector.cs (1)
282resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.Column(
SsaChangePointDetector.cs (1)
310resultDic[_options.Name] = new SchemaShape.Column(
SSaForecasting.cs (3)
340resultDic[_options.Name] = new SchemaShape.Column( 345resultDic[_options.ConfidenceLowerBoundColumn] = new SchemaShape.Column( 349resultDic[_options.ConfidenceUpperBoundColumn] = new SchemaShape.Column(
SsaSpikeDetector.cs (1)
289resultDic[_options.Name] = new SchemaShape.Column(
Microsoft.ML.Tokenizers (19)
Model\BertTokenizer.cs (3)
823notNormalizedSpecialTokens[token] = id; 835vocab[new StringSpanOrdinalKey(normalizedToken)] = id; 838specialTokens[normalizedToken] = id;
Model\BPETokenizer.cs (1)
1186_charToString[c] = s;
Model\Cache.cs (2)
41_map[key] = value; 52_map[key] = value;
Model\EnglishRobertaTokenizer.cs (2)
1178_stringSymbolToIndexMapping[symbol] = idx; 1190_idToIndex[id] = idx;
Model\SentencePieceTokenizer.cs (4)
724mergedSpecialTokens[kvp.Key] = kvp.Value; 736mergedSpecialTokens[token] = id; 740mergedSpecialTokens[token] = id; 789result[contentElement.GetString()!] = idElement.GetInt32();
Model\TiktokenTokenizer.cs (3)
240encoder[tokenBytes] = rank; 241decoder[rank] = tokenBytes; 247vocab[new StringSpanOrdinalKey(decodedToken)] = (rank, decodedToken);
Utils\LruCache.cs (1)
117_cache[new StringSpanOrdinalKey(key)] = node;
Utils\StringSpanOrdinalKey.cs (1)
122_map[new StringSpanOrdinalKey(k)] = v;
Utils\TokenizerExtensions.cs (2)
31dic[key] = setValue; 42dictionary[pair.Value] = pair.Key;
Microsoft.ML.Tokenizers.Tests (1)
BpeTests.cs (1)
1087specialTokens[content] = idElement.GetInt32();
Microsoft.ML.TorchSharp (26)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
186groundTruthBoxes[gt.Category]++; // ground truth number
AutoFormerV2\ObjectDetectionTrainer.cs (6)
464outColumns[Option.PredictedLabelColumnName] = new SchemaShape.Column(Option.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector, 467outColumns[Option.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Option.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector, 470outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector, 562outColumns[Options.PredictedLabelColumnName] = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector, 565outColumns[Options.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector, 568outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
NasBert\Modules\IncrementalState.cs (1)
87incrementalState[fullKey] = value;
NasBert\Modules\MultiHeadAttention.cs (2)
236savedState[PrevKeyKey] = k?.view(batchSize, _numHeads, -1, _headDim); 238savedState[PrevValueKey] = v?.view(batchSize, _numHeads, -1, _headDim);
NasBert\NasBertTrainer.cs (7)
335outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.Scalar, 338outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.Vector, 350outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.VariableVector, 355outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.Scalar, 440outColumns[Options.PredictionColumnName] = new SchemaShape.Column(Options.PredictionColumnName, SchemaShape.Column.VectorKind.Scalar, 443outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.Vector, 448outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.Scalar,
Roberta\QATrainer.cs (8)
467mapping[i - surrogateDeduce] = tid; 476mapping[i - surrogateDeduce] = mapping[i + 1 - surrogateDeduce] = tid; 483mapping[i - surrogateDeduce] = tid; 519outColumns[Option.PredictedAnswerColumnName] = new SchemaShape.Column(Option.PredictedAnswerColumnName, SchemaShape.Column.VectorKind.VariableVector, 522outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector, 606outColumns[Options.PredictedAnswerColumnName] = new SchemaShape.Column(Options.PredictedAnswerColumnName, SchemaShape.Column.VectorKind.VariableVector, 609outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
Utils\DefaultDictionary.cs (1)
39_dictionary[key] = value;
Microsoft.ML.Transforms (29)
CountFeatureSelection.cs (1)
183result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
CustomMappingTransformer.cs (1)
277result[addedCol.Name] = addedCol;
Dracula\CountTableTransformer.cs (1)
345result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false, meta);
Dracula\DictCountTable.cs (1)
216dest[pair.Key] = (float)pair.Value;
Expression\KeyWordTable.cs (1)
76_mpnstrtidPunc[nstr] = tid;
Expression\LambdaParser.cs (2)
247_mapTidStr[kvp.Value.Kind] = kvp.Key.Value.ToString(); 250_mapTidStr[kvp.Value] = kvp.Key.Value.ToString();
ExpressionTransformer.cs (1)
206columnDictionary[_columns[i].Name] = outputSchemaShapeColumn;
GcnTransform.cs (1)
924result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
KeyToVectorMapping.cs (1)
484result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName,
MissingValueDroppingTransformer.cs (1)
52resultDic[outputColumnName] = col;
MissingValueIndicatorTransformer.cs (1)
549result[colPair.outputColumnName] = new SchemaShape.Column(colPair.outputColumnName, col.Kind, type, false, new SchemaShape(metadata.ToArray()));
MissingValueReplacing.cs (1)
1053result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, type, false, new SchemaShape(metadata.ToArray()));
MissingValueReplacingUtils.cs (1)
399_valueCounts[val] = count;
MutualInformationFeatureSelection.cs (1)
250result[colPair.outputColumnName] = new SchemaShape.Column(colPair.outputColumnName, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
RandomFourierFeaturizing.cs (1)
733result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false);
StatefulCustomMappingTransformer.cs (1)
410result[addedCol.Name] = addedCol;
Text\LdaTransform.cs (1)
1331result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false);
Text\NgramHashingTransformer.cs (1)
1229result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false, new SchemaShape(metadata));
Text\NgramTransform.cs (1)
1090result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false, new SchemaShape(metadata));
Text\StopWordsRemovingTransformer.cs (2)
679result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.Instance, false); 1247result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.Instance, false);
Text\TextFeaturizingEstimator.cs (2)
656result[OutputColumn] = new SchemaShape.Column(OutputColumn, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false, 662result[name] = new SchemaShape.Column(name, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.Instance, false);
Text\TextNormalizing.cs (1)
588result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind == SchemaShape.Column.VectorKind.Scalar ? SchemaShape.Column.VectorKind.Scalar : SchemaShape.Column.VectorKind.VariableVector, col.ItemType, false);
Text\TokenizingByCharacters.cs (1)
696result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, SchemaShape.Column.VectorKind.VariableVector, NumberDataViewType.UInt16, true, new SchemaShape(metadata.ToArray()));
Text\WordEmbeddingsExtractor.cs (2)
720_vocab[_modelFileNameWithPath] = new WeakReference<Model>(model, false); 941result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false);
Text\WordTokenizing.cs (1)
540result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.VariableVector, col.ItemType, false);
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (4)
541_idvToTfMapping[x] = x; 544_idvToTfMapping[x] = x; 940outputCache.Outputs[activeOutputColNames[j]] = tensors[j]; 1270resultDic[_options.OutputColumns[i]] = new SchemaShape.Column(_options.OutputColumns[i],
Microsoft.NET.Build.Containers (11)
AuthHandshakeMessageHandler.cs (7)
466parameters["grant_type"] = "refresh_token"; 467parameters["refresh_token"] = privateRepoCreds.IdentityToken; 471parameters["grant_type"] = "password"; 472parameters["username"] = privateRepoCreds.Username; 473parameters["password"] = privateRepoCreds.Password; 477parameters["service"] = bearerAuthInfo.Service; 481parameters["scope"] = bearerAuthInfo.Scope;
ImageConfig.cs (3)
208_environmentVariables[envVarName] = value; 213_labels[name] = value; 272labels[propertyName] = propertyValue.ToString();
Layer.cs (1)
98entryAttributes["MSWINDOWS.rawsd"] = BuiltinUsersSecurityDescriptor;
Microsoft.NET.Build.Extensions.Tasks (11)
AddFacadesToReferences.cs (2)
30facadeDict[filename] = facadeWithMetadata; 51facadeDict[filename] = newFacade;
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (4)
65_unresolvedConflictItems[itemKey] = unresolvedConflictsForKey; 84_winningItemsByKey[itemKey] = conflictItem; 133_unresolvedConflictItems[itemKey] = newUnresolvedConflicts; 139_winningItemsByKey[itemKey] = conflictItem;
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
35OverriddenPackages[package.id] = package.version;
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (3)
50result[packageOverride.PackageName] = packageOverride; 74existingPackageOverride.OverriddenPackages[newOverride.Key] = newOverride.Value; 79existingPackageOverride.OverriddenPackages[newOverride.Key] = newOverride.Value;
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
24packageRanks[preferredPackageId] = i;
Microsoft.NET.Build.Tasks (31)
CreateWindowsSdkKnownFrameworkReferences.cs (1)
98knownFrameworkReferencesByWindowsSdkVersion[windowsSdkVersionParsed] = new();
DependencyContextBuilder.cs (3)
77_libraryDependencies[library.Name] = library.Dependencies 233_runtimePackAssets[dependencyLibrary.Name] = runtimePackGroup.ToList(); 348referenceNameToRealName[GetReferenceLibraryName(directReference)] = directReference.Name;
FrameworkPackages\FrameworkPackages.cs (2)
151frameworkPackages.Packages[packageOverride.Item1] = packageOverride.Item2; 181this.Packages[id] = NuGetVersion.Parse(version);
GetPackageDirectory.cs (1)
57originalByAbsolute[absolutePackageFolders[i]] = PackageFolders[i];
GetPackagesToPrune.cs (1)
384packagesToPrune[package.id] = package.version;
LockFileLookup.cs (2)
28_packages[new KeyValuePair<string, NuGetVersion>(library.Name, library.Version)] = library; 32_projects[library.Name] = library;
ProduceContentAssets.cs (1)
136preprocessorValues[preprocessorValueItem.ItemSpec] = preprocessorValueItem.GetMetadata("Value");
ResolvePackageAssets.cs (4)
1559packageReverseDependencies[parentPackage.Name] = new HashSet<string>(StringComparer.OrdinalIgnoreCase); 1569packageReverseDependencies[dependency] = parentPackages; 1614diagnosticLevels[package] = messageLevel; 2003paths[library.Name] = NuGetPackageResolver.NormalizeRelativePath(library.MSBuildProject);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
121_knownManifestIdsAndOrder[manifestId] = lineNumber++; 355manifestIdsToManifests[manifestId] = readableManifest; 392directoriesWithManifests[Path.GetFileName(workloadManifestDirectory)] = workloadManifestDirectory; 651availableWorkloadSets[workloadSet.Version!] = workloadSet;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (1)
288packs[packId] = pack;
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (4)
65_unresolvedConflictItems[itemKey] = unresolvedConflictsForKey; 84_winningItemsByKey[itemKey] = conflictItem; 133_unresolvedConflictItems[itemKey] = newUnresolvedConflicts; 139_winningItemsByKey[itemKey] = conflictItem;
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
35OverriddenPackages[package.id] = package.version;
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (3)
50result[packageOverride.PackageName] = packageOverride; 74existingPackageOverride.OverriddenPackages[newOverride.Key] = newOverride.Value; 79existingPackageOverride.OverriddenPackages[newOverride.Key] = newOverride.Value;
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
24packageRanks[preferredPackageId] = i;
TypeLibraryDictionaryBuilder.cs (1)
59typeLibraryIdMap[id] = typeLibrary.ItemSpec;
ValidateExecutableReferences.cs (1)
49projectAdditionalProperties[propertyElement.Name.LocalName] = propertyElement.Value;
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (12)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (9)
347deferred[assets[i].Identity] = parentIndex; 359deferred[assets[i].Identity] = placeableIndex; 386deferred[assets[tail].Identity] = tail; 487result[reqName] = reqValue; 1762result[key] = (asset, null); 1776result[key] = (null, [existingAsset, asset]); 1781result[key] = (asset, null); 1976_additionalCustomMetadata[metadataName] = metadataValue; 2012result[kvp.Key] = kvp.Value;
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (3)
284dictionary[tokenNameString] = part.Value.ToString(); 301dictionary[tokenNameString] = tokenValue; 326dictionary[part.Name.ToString()] = part.Value.ToString();
Microsoft.NET.Sdk.Publish.Tasks (6)
MsDeploy\CommonUtility.cs (5)
1439FoundDictionary[itemSpec] = true; 1458FoundDictionary[itemSpec] = true; // mark that we already found the item; 1466FoundDictionary[itemSpec] = false; // mark that we scan through the item and not found anything 1805versionsList[str] = str; 1810versionsList[MSDeploymentDllFallback] = MSDeploymentDllFallback;
MsDeploy\VsMSDeployObject.cs (1)
323m_NameValueDictionary[name] = value;
Microsoft.NET.Sdk.Razor.Tasks (4)
ReferenceResolver.cs (4)
28Lookup[item.AssemblyName] = item; 59_classifications[assemblyItem] = classification; 98_classifications[assemblyItem] = classification; 134Lookup[referenceName] = assemblyItem;
Microsoft.NET.Sdk.StaticWebAssets.Tasks (36)
ApplyCompressionNegotiation.cs (1)
206result[endpoint.Route] = routeEndpoints;
Data\ContentTypeProvider.cs (1)
412_customMappings[mapping.Pattern] = mapping;
Data\StaticWebAsset.cs (9)
347deferred[assets[i].Identity] = parentIndex; 359deferred[assets[i].Identity] = placeableIndex; 386deferred[assets[tail].Identity] = tail; 487result[reqName] = reqValue; 1762result[key] = (asset, null); 1776result[key] = (null, [existingAsset, asset]); 1781result[key] = (asset, null); 1976_additionalCustomMetadata[metadataName] = metadataValue; 2012result[kvp.Key] = kvp.Value;
Data\StaticWebAssetEndpoint.cs (3)
188result[assetFile] = endpoints; 521_additionalCustomMetadata[metadataName] = metadataValue; 542result[kvp.Key] = kvp.Value;
Data\StaticWebAssetEndpointGroup.cs (1)
30groups[endpoint.Route] = group;
Data\StaticWebAssetPathPattern.cs (3)
284dictionary[tokenNameString] = part.Value.ToString(); 301dictionary[tokenNameString] = tokenValue; 326dictionary[part.Name.ToString()] = part.Value.ToString();
DefineStaticWebAssetEndpoints.cs (1)
98existingEndpointsByAssetFile[assetFile] = set;
DefineStaticWebAssets.Cache.cs (2)
168CachedAssets[hash] = asset; 178CachedCopyCandidates[hash] = copyCandidate;
DefineStaticWebAssets.cs (1)
799result[def.SourceId] = list;
GeneratePackageAssetsManifestFile.cs (2)
97identityToPackagePath[parsedAssets[i].Identity] = packagePath; 158assets[packagePath] = manifestAsset;
GenerateStaticWebAssetsManifest.cs (1)
177result[targetPath] = (existing.First, asset, null);
JSModules\ApplyJsModules.cs (1)
129jsModuleByItem[itemCandidate.ItemSpec] = [jsModuleCandidate];
OverrideHtmlAssetPlaceholders.cs (3)
249integrity[$"./{asset.Url}"] = asset.Integrity; 256imports[$"./{asset.Label}"] = $"./{asset.Url}"; 274mappings[resource.Label] = resource;
ReadPackageAssetsManifest.cs (1)
129frameworkPaths[originalIdentity] = materialized.Identity;
ScopedCss\ApplyCssScopes.cs (1)
135scopedCssByItem[itemCandidate.ItemSpec] = [scopedCssCandidate];
UpdateExternallyDefinedStaticWebAssets.cs (1)
91assetMapping[oldIdentity] = (materialized.Identity, oldBasePath);
UpdatePackageStaticWebAssets.cs (2)
67assetMapping[oldPath] = (transformed.Identity, oldBasePath); 101endpointsByRoute[endpoint.Route] = group;
Utils\Globbing\StaticWebAssetGlobMatcherBuilder.cs (2)
115current.LiteralsDictionary[literal] = literalNode; 193current.ExtensionsDictionary[extension] = extensionNode;
Microsoft.NET.Sdk.WorkloadManifestReader (5)
SdkDirectoryWorkloadManifestProvider.cs (4)
121_knownManifestIdsAndOrder[manifestId] = lineNumber++; 355manifestIdsToManifests[manifestId] = readableManifest; 392directoriesWithManifests[Path.GetFileName(workloadManifestDirectory)] = workloadManifestDirectory; 651availableWorkloadSets[workloadSet.Version!] = workloadSet;
WorkloadManifestReader.cs (1)
288packs[packId] = pack;
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
107_internCallCountsByString[internedString] = priorCount + 1;
Microsoft.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (1)
46_strings[value] = CurrentId;
System\Private\Windows\Ole\DataStore.cs (1)
101_mappedData[format] = new DataStoreEntry(data, autoConvert);
Microsoft.TemplateEngine.Cli (28)
Alias\AliasRegistry.cs (3)
60aliasesWithCandidate[aliasName] = aliasTokens; 203result[property.Key] = new List<string>() { property.Value.GetValue<string>() }; 215result[property.Key] = values;
CliEnvironment.cs (1)
22variables[key] = (env[key] as string) ?? string.Empty;
CliTemplateInfo.cs (2)
106parameters[parameter.Name] = new ChoiceTemplateParameter(parameter, CliData); 110parameters[parameter.Name] = new CliTemplateParameter(parameter, CliData);
Commands\BaseFilterableArgs.cs (1)
55filterValues[FilterOptionDefinition.AllDefinitions[option.Name]] = value;
Commands\create\CombinedChoiceTemplateParameter.cs (2)
23_combinedParameters[choice.Key] = choice.Value; 45_combinedParameters[choice.Key] = choice.Value;
Commands\create\InvalidTemplateOptionResult.cs (1)
140validChoices[choice.Key] = choice.Value;
Commands\create\TemplateCommand.cs (1)
333_templateSpecificOptions[parameter.Name] = option;
Commands\create\TemplateCommandArgs.cs (1)
47_templateOptions[opt.Key] = result;
HostSpecificTemplateData.cs (3)
52symbolProperties[symbolProperty.Key] = ""; 57symbolProperties[symbolProperty.Key] = kind switch 67symbolsInfo[symbolInfo.Key] = symbolProperties;
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\WideTable.cs (1)
36_lookup[version] = table;
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\ZeroTable.cs (1)
36_lookup[version] = table;
TabularOutput\TabularOutput.cs (2)
87columnWidthLookup[i] = header[i].MaxWidth; 98columnWidthLookup[i] = Math.Max(columnWidthLookup[i], row[i].MaxWidth);
TemplatePackageCoordinator.cs (5)
195details[InstallerConstants.NuGetSourcesKey] = string.Join(InstallerConstants.NuGetSourcesSeparator.ToString(), args.AdditionalSources); 199details[InstallerConstants.InteractiveModeKey] = "true"; 203details[InstallerConstants.PrereleaseModeKey] = "true"; 681packagesToUninstall[templatePackage.ManagedProvider] = new List<IManagedTemplatePackage>() { templatePackage }; 703packagesToUninstall[templatePackage.ManagedProvider] = new List<IManagedTemplatePackage>() { templatePackage };
TemplateResolution\TemplateGroupMatchInfo.cs (1)
274validChoices[choice.Key] = choice.Value;
TemplateResolution\TemplateResolutionResult.cs (1)
272parameterList[parameterMatchInfo.InputFormat ?? parameterMatchInfo.Name] = parameterMatchInfo.Value;
TemplateSearch\CliHostSearchCacheData.cs (1)
40cliData[data.Key] = new HostSpecificTemplateData(data.Value as JsonObject);
TemplateSearch\CliSearchFiltersFactory.cs (1)
22filterData[descriptor.Identifier] = descriptor.Version;
Microsoft.TemplateEngine.Core (9)
Expressions\OperatorSetBuilder.cs (6)
156_operatorScopeLookupFactory[Operators.Not] = 158_tokensToOperatorsMap[token] = Operators.Not; 180_operatorScopeLookupFactory[@operator] = nodeFactory; 181_tokensToOperatorsMap[token] = @operator; 530_operatorScopeLookupFactory[op] = 532_tokensToOperatorsMap[token] = op;
Matching\Trie.cs (1)
31current[path[i]] = next = new TrieNode<T>(path[i])
Operations\PhasedOperation.cs (2)
41existingMatchToken = tokenMap[c.Match] = tokens.Count; 56existingResetToken = tokenMap[reset] = tokens.Count;
Microsoft.TemplateEngine.Edge (33)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (2)
39_installersByName[installerFactory.Name] = installer; 40_installersByGuid[installerFactory.Id] = installer;
DefaultEnvironment.cs (1)
61variables[key] = (string)env[key];
Mount\Archive\ZipFileMountPoint.cs (3)
61universe[path] = parentDirEntry = new ZipFileDirectory(this, path, parts[i]); 67universe[path] = parentDirEntry = new ZipFileDirectory(this, file.FullPath, file.Name); 77universe[path] = new ZipFileFile(this, path, unescaped, entry);
Settings\ComponentManager.cs (10)
47_componentIdsByType[interfaceType] = bucket.Value; 55_componentIdToAssemblyQualifiedTypeName[componentId] = entry.Value; 76_componentIdsByType[typeof(T)] = ids; 217_componentIdToAssemblyQualifiedTypeName[instance.Id] = type.AssemblyQualifiedName; 218_settings.ComponentGuidToAssemblyQualifiedName[instance.Id.ToString()] = type.AssemblyQualifiedName; 222_componentIdsByType[interfaceType] = idsForInterfaceType = new HashSet<Guid>(); 234_settings.ComponentTypeToGuidList[interfaceType.AssemblyQualifiedName] = idsForInterfaceTypeForSettings = new HashSet<Guid>(); 283ComponentCache[type] = typeCache; 285typeCache[component.Id] = component; 290_componentIdsByType[type] = ids;
Settings\SettingsStore.cs (2)
29ComponentGuidToAssemblyQualifiedName[entry.Key] = entry.Value.GetValue<string>(); 58ComponentTypeToGuidList[entry.Key] = set;
Settings\TemplateCache.cs (1)
46templateDeduplicationDictionary[template.Identity] = new List<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint)>
Settings\TemplateInfo.cs (3)
173tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 178tags[parameter.Name] = new CacheTag(parameter.DisplayName, parameter.Documentation, choices, parameter.DefaultValue); 197cacheParameters[parameter.Name] = new CacheParameter()
Settings\TemplatePackageManager.cs (4)
97_cachedSources[provider] = Task.Run(() => provider.GetAllTemplatePackagesAsync(default)); 266_cachedSources[provider] = provider.GetAllTemplatePackagesAsync(default); 269_cachedSources[provider] = Task.Run(() => provider.GetAllTemplatePackagesAsync(default)); 320mountPoints[package.MountPointUri] = package.LastChangeTime;
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
275propertyIndexes[prop.Name] = result.Count; 305result[property.Key] = property.Value.GetValue<string>(); 323result[property.Key] = property.Value; 342result[property.Key] = property.Value.ToJsonString();
Template\ParameterSetBuilder.cs (2)
97_resolvedValues[parameter] = new EvalData(evaluatedParameterData); 237parametersDependencies[parameter] = new HashSet<EvalData>(referencedVariablesKeys.Select(idx => variables[idx]));
TemplateConstraintManager.cs (1)
27_templateConstrains[constraintFactory.Type] = Task.Run(() => constraintFactory.CreateTemplateConstraintAsync(engineEnvironmentSettings, _cancellationTokenSource.Token));
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (35)
ConfigModel\TemplateConfigModel.cs (14)
97symbols[NameSymbol.Name] = NameSymbol; 106symbols[tagInfo.Key] = ParameterSymbol.FromDeprecatedConfigTag(tagInfo.Key, tagInfo.Value); 137symbols[prop.Key] = new ParameterSymbol(modelForParameterSymbol, existingParameterSymbol.Forms); 142symbols[prop.Key] = modelForSymbol; 150symbols[symbol.Name] = symbol; 327_symbols[NameSymbolName] = NameSymbol; 352_symbols[NameSymbolName] = NameSymbol; 357_symbols[symbol.Name] = symbol; 373_forms[kvp.Key] = kvp.Value; 448_symbols[name] = NameSymbol; 504parameters[parameterSymbol.Name] = parameter; 532formMap[builtInForm.Key] = builtInForm.Value.Create(); 548formMap[form.Key] = ValueFormRegistry.GetForm(form.Key, o); 567allBaselines[property.Key] = baseline;
FileRenameGenerator.cs (1)
76allRenames[sourceTemplateRelativePath] = renameFinalTargetValue;
GlobalRunSpec.cs (1)
31operationConfigLookup[opConfig.Key] = opConfig;
LocalizationModelDeserializer.cs (3)
83results[symbolName] = paramLoc; 146results[postActionId] = new PostActionLocalizationModel() 179results[id] = text;
ParameterBasedVariableCollection.cs (1)
62collections[source.Key] = variablesForSource;
PostAction.cs (1)
87processedArgs[arg.Key] = model.ApplyFileRenamesToArgs.Contains(arg.Key, StringComparer.OrdinalIgnoreCase)
RunnableProjectConfig.cs (2)
521_guidToGuidPrefixMap[guid] = replacementId; 562fileRenamesFromSource[property.Key] = property.Value;
RunnableProjectConfig.ITemplate.cs (3)
94tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 99tags[parameter.Name] = new CacheTag(parameter.DisplayName, parameter.Description, choices, parameter.DefaultValue); 113cacheParameters[parameter.Name] = new CacheParameter()
RunnableProjectGenerator.cs (3)
510tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 515tags[parameter.Name] = new CacheTag(parameter.DisplayName, parameter.Description, choices, parameter.DefaultValue); 529cacheParameters[parameter.Name] = new CacheParameter()
ScannedTemplateInfo.cs (1)
81localizations[locale] = new TemplateLocalizationInfo(locale, locModel, locFile);
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
275propertyIndexes[prop.Name] = result.Count; 305result[property.Key] = property.Value.GetValue<string>(); 323result[property.Key] = property.Value; 342result[property.Key] = property.Value.ToJsonString();
Validation\ValidationManager.cs (1)
68_cachedValidators[templateValidator.Factory.Id] = templateValidator;
Microsoft.TemplateEngine.Utils (18)
DefaultTemplateEngineHost.cs (1)
125_diagnosticLoggers[category] = messageHandler;
DirectedGraph.cs (2)
49inDegreeLookup[depPair.Key] = depPair.Value?.Count ?? 0; 62if (--inDegreeLookup[dependent] == 0)
FileSystemInfoExtensions.cs (1)
82sourceSegments[current.FullPath] = ++index;
InMemoryFileSystem.cs (9)
54currentDir.Directories[parts[i]] = dir; 78currentDir.Directories[parts[i]] = dir; 87currentDir.Files[parts[parts.Length - 1]] = targetFile; 452currentDir.Directories[parts[i]] = dir; 508currentDir.Directories[parts[i]] = dir; 566currentDir.Directories[parts[i]] = dir; 598currentDir.Directories[parts[i]] = dir; 629currentDir.Directories[parts[i]] = dir; 660currentDir.Directories[parts[i]] = dir;
ListExtensions.cs (1)
24groups[x] = group = new List<TElement>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
275propertyIndexes[prop.Name] = result.Count; 305result[property.Key] = property.Value.GetValue<string>(); 323result[property.Key] = property.Value; 342result[property.Key] = property.Value.ToJsonString();
Microsoft.TemplateSearch.Common (15)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
275propertyIndexes[prop.Name] = result.Count; 305result[property.Key] = property.Value.GetValue<string>(); 323result[property.Key] = property.Value; 342result[property.Key] = property.Value.ToJsonString();
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (7)
243tags[item.Key] = item.Value.ToString(); 244legacyTags[item.Key] = new BlobLegacyCacheTag( 262choicesAndDescriptions[cdPair.Key] = new ParameterChoice(null, cdPair.Value?.ToString() ?? string.Empty); 263legacyChoices[cdPair.Key] = cdPair.Value?.ToString() ?? string.Empty; 270legacyTags[item.Key] = new BlobLegacyCacheTag( 276tags[item.Key] = tagObj.ToString("defaultValue") ?? string.Empty; 293legacyParams[item.Key] = new BlobLegacyCacheParameter(
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (3)
39data[reader.Key] = dict[template.Identity]; 186workingPackToTemplateMap[packName] = new PackToTemplateEntry(version, templatesInPack); 239workingAdditionalData[dataReadInfo.Key] = dataReadInfo.Value(dataObject);
TemplateSearchCache\TemplateSearchCache.Json.cs (1)
90additionalData[dataReadInfo.Key] = dataReadInfo.Value(dataObject);
Microsoft.TestPlatform.CommunicationUtilities (2)
Serialization\ObjectConverter.cs (2)
58dict[key] = ReadValue(ref reader, options); 113dict[key] = ObjectConverter.ReadValue(ref reader, options)!;
Microsoft.TestPlatform.CrossPlatEngine (8)
Client\LoggerNameValueConfigurationManager.cs (1)
70NameValuePairs[settingName] = settingValue;
Client\Parallel\ParallelRunDataAggregator.cs (1)
89testOutcomeMap[kvp.Key] = currentCount + kvp.Value;
Client\TestLoggerManager.cs (3)
690loggerParams[DefaultLoggerParameterNames.TestRunDirectory] = _testRunDirectory; 691loggerParams[DefaultLoggerParameterNames.TargetFramework] = _targetFramework; 696loggerParams[ObjectModel.Constants.TreatNoTestsAsError] = _treatNoTestsAsError.ToString();
EventHandlers\PathConverter.cs (2)
154discoveryCriteria.AdapterSourceMap[adapter.Key] = updatedPaths; 163testRunCriteriaWithSources.AdapterSourceMap[adapter.Key] = UpdatePaths(adapter.Value, updateDirection)!);
Execution\TestRunCache.cs (1)
216_runStats[testResult.Outcome] = count;
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\DefaultTestHostManager.cs (4)
454highestFileVersions[extensionAssemblyName] = currentVersion; 455conflictingExtensions[extensionAssemblyName] = currentVersion; 456selectedExtensions[extensionAssemblyName] = extensionFullPath; 462conflictingExtensions[extensionAssemblyName] = oldVersion;
Microsoft.VisualStudio.TestPlatform.Common (12)
DataCollection\DataCollectionManager.cs (1)
568RunDataCollectors[dataCollectorConfig.DataCollectorType] = dataCollectorInfo;
ExtensionFramework\TestExecutorExtensionManager.cs (1)
94cache[testExtension.TestPluginInfo.IdentifierData] = new(testExtension.Value, testExtension.Metadata);
ExtensionFramework\TestPluginCache.cs (2)
512_resolvedAssemblies[args.Name] = null; 517_resolvedAssemblies[args.Name] = assembly;
ExtensionFramework\Utilities\TestExtensions.cs (1)
148result[kvp.Key] = MergeSets(result[kvp.Key], kvp.Value);
Utilities\AssemblyResolver.cs (4)
118_resolvedAssemblies[args.Name] = null; 153_resolvedAssemblies[args.Name] = null; 180_resolvedAssemblies[args.Name] = assembly; 214_resolvedAssemblies[args.Name] = null;
Utilities\SimpleJSON.cs (3)
865_dict[aKey] = value; 882_dict[key] = value; 898_dict[aKey] = aItem;
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
ObjectModel\TestElement.cs (1)
257testIdParameters[TestId.IdLocationKey] = "@id";
XML\XmlPersistence.cs (1)
875QueryCache[queryIn] = queryString;
Microsoft.VisualStudio.TestPlatform.ObjectModel (11)
Navigation\FullSymbolReader.cs (6)
263_typeSymbols[name] = typeSymbol; 279_methodSymbols[name] = methodSymbolsForType; 369_typeSymbols[typeName] = typeSymbol; 398_methodSymbols[symbolName] = methodSymbolsForType; 444methodSymbolsForType[methodName] = methodSymbol; 466methodSymbolCache[methodName] = methodSymbol;
Navigation\PortableSymbolReader.cs (2)
117methodsNavigationData[methodInfo.Name] = diaNavigationData; 127_methodsNavigationDataForType[type.FullName!] = methodsNavigationData;
Nuget.Frameworks\FrameworkReducer.cs (1)
408scores[pair.Key]++;
RunSettings\TestRunParameters.cs (1)
59testParameters[paramName] = paramValue;
TestProperty\TestProperty.cs (1)
354Properties[id] = propertyTypePair;
Microsoft.Web.XmlTransform (11)
XmlAttributePreservationDict.cs (5)
133attributeExists[attributeName] = false; 141attributeExists[attribute.Name] = true; 183leadingSpaces[key] = keepLeadingWhitespace; 193leadingSpaces[key] = " "; 197leadingSpaces[key] = GetAttributeNewLineString(formatter);
XmlTransforms.cs (6)
553paramDictionary[XPathWithIndex] = xpath; 554paramDictionary[TokenNumber] = index.ToString(System.Globalization.CultureInfo.InvariantCulture); 565paramDictionary[name] = val; 576paramDictionary[Token] = strTokenFormat; 595paramDictionary[keyindex] = newVal; 610paramDictionary[XPathWithLocator] = xpathwithlocator;
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
337s_handlers[key] = invokeItems;
MSBuild (12)
src\msbuild\src\Shared\NodePacketFactory.cs (1)
35_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (2)
70dict[entry.Key] = (ITaskItem[]?)entry.Value?.WrappedParameter ?? []; 101dict[entry.Key] = new TaskParameter(entry.Value);
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
237_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
src\msbuild\src\Shared\TaskHostTaskComplete.cs (1)
129_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
src\msbuild\src\Shared\TaskParameter.cs (3)
633_customEscapedMetadata[ItemSpecModifiers.RecursiveDir] = recursiveDirEscaped; 642_customEscapedMetadata[ItemSpecModifiers.RecursiveDir] = EscapingUtilities.Escape(recursiveDir); 758_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
src\msbuild\src\Shared\TypeLoader.cs (1)
310assembliesDictionary[Path.GetFileName(path)] = path;
XMake.cs (3)
2226restoreGlobalProperties[MSBuildConstants.MSBuildRestoreSessionId] = Guid.NewGuid().ToString("D"); 2229restoreGlobalProperties[MSBuildConstants.MSBuildIsRestoring] = bool.TrueString; 3788properties[parameterSections[0]] = parameterSections[1];
MSBuild.Coordinator (2)
CoordinatorServer.cs (2)
370_clientsById[connection.Id] = client; 506_activeRootGrantsById[grant.GrantId] = grant;
NuGet.Build.Tasks (20)
GenerateRestoreGraphFileTask.cs (2)
40options["GenerateRestoreGraphFile"] = true.ToString(CultureInfo.CurrentCulture); 41options[nameof(RestoreGraphOutputPath)] = RestoreGraphOutputPath;
RestoreTaskEx.cs (14)
108options[nameof(EnableBinaryLogger)] = bool.TrueString; 109options[nameof(BinaryLoggerParameters)] = Uri.EscapeDataString(BinaryLoggerParameters); 114options[nameof(EnableBinaryLogger)] = bool.TrueString; 117options[nameof(CleanupAssetsForUnsupportedProjects)] = CleanupAssetsForUnsupportedProjects.ToString(); 118options[nameof(DisableParallel)] = DisableParallel.ToString(); 119options[nameof(Force)] = Force.ToString(); 120options[nameof(ForceEvaluate)] = ForceEvaluate.ToString(); 121options[nameof(HideWarningsAndErrors)] = HideWarningsAndErrors.ToString(); 122options[nameof(IgnoreFailedSources)] = IgnoreFailedSources.ToString(); 123options[nameof(Interactive)] = Interactive.ToString(); 124options[nameof(NoCache)] = NoCache.ToString(); 125options[nameof(NoHttpCache)] = NoHttpCache.ToString(); 126options[nameof(RestorePackagesConfig)] = RestorePackagesConfig.ToString(); 129options[nameof(EmbedFilesInBinlog)] = EmbedFilesInBinlog;
StaticGraphRestoreTaskBase.cs (4)
329newGlobalProperties[item.Key] = item.Value; 333newGlobalProperties["ExcludeRestorePackageImports"] = bool.TrueString; 334newGlobalProperties["OriginalMSBuildStartupDirectory"] = MSBuildStartupDirectory; 338newGlobalProperties["SolutionPath"] = SolutionPath;
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (2)
537projectTargetFrameworks[projectTargetFramework] = innerNode; 544projectTargetFrameworks[string.Empty] = project;
Program.cs (2)
155properties[pair[0].Trim()] = pair[1].Trim(); 290globalProperties[reader.ReadString()] = reader.ReadString();
NuGet.Build.Tasks.Pack (9)
PackTaskLogic.cs (9)
378targetAliasToNuGetFramework[tfm.TargetAlias] = tfmShortName; 382frameworkToAliases[tfmShortName] = [tfm.TargetAlias]; 673fileModel[sourcePath] = existingContentMetadata.Concat(totalContentMetadata); 863sourceFiles[sourcePath] = sourceProjectFile; 1053dependenciesByFramework[framework.FrameworkName] = dependencies; 1075dependenciesByFramework[framework.FrameworkName] = dependencies; 1136packageSpecificNoWarnProperties[packageDependency.Name] = nowarnProperties; 1155dictionary[key] = value; 1162dictionary[key] = value;
NuGet.CommandLine.XPlat (7)
Commands\Package\Update\PackageUpdateCommandRunner.cs (3)
453projectPackageUpdates[projectPath] = packagesToUpdate; 706allPackages[dependency.Name] = (existing.version, existing.tfms, hasError: true); 715allPackages[dependency.Name] = (version, tfms, hasError: false);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (2)
439packageMetadata => packageMetadataById[packageMetadata.Key] = packageMetadata.Value, 551_sourceRepositoryCache[source] = sourceRepository;
Commands\Why\DependencyGraphFinder.cs (1)
67result[displayName] = projectNode?.Children.ToList();
Utility\TableParser.cs (1)
76columnQueues[colIndex] = queue;
NuGet.Commands (26)
CommandRunners\PackCommandRunner.cs (1)
452_packArgs.Properties["version"] = _packArgs.Version;
RestoreCommand\DependencyGraphResolver.cs (2)
902pinnedPackageVersions[libraryDependencyIndex] = item.Value.VersionRange; 1134evictions[evictedLibraryRangeIndex] = (DependencyGraphItemIndexer.CreatePathToRef(currentDependencyGraphItem.Path, currentDependencyGraphItem.LibraryRangeIndex), currentDependencyGraphItem.LibraryDependencyIndex, chosenResolvedItem.LibraryDependency.LibraryRange.TypeConstraint);
RestoreCommand\LockFileBuilder.cs (4)
351libraryReferences[libraryKey] = lib; 356libraryReferences[libraryKey] = lib; 384libraryReferences[library] = library; 389libraryReferences[library] = library;
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (7)
146dependencyMapping[dependencyGraphItem.Key.Name] = lookUpNode; 247warningPropertiesCache[key] = frameworkCollection; 284seen[id] = nodeProps.GetIntersect(visitedProps); 412merged[id] = MergeCodes(codes, pair.Value); 561result[framework] = frameworkCollection; 567frameworkCollection[libraryId] = codes; 608result[libraryId] = codes;
RestoreCommand\RequestFactory\RestoreArgs.cs (3)
154sourceObjects[dgSpecSources[i].Source] = dgSpecSources[i]; 163sourceObjects[sourceUri] = new PackageSource(sourceUri); 172sourceObjects[source.Source] = source;
RestoreCommand\RestoreSummary.cs (2)
128installed[restoreSummary.InputPath] += restoreSummary.InstallCount; 132installed[restoreSummary.InputPath] = restoreSummary.InstallCount;
RestoreCommand\RestoreTargetGraph.cs (1)
151conflicts[node.Key.Name] = ranges;
RestoreCommand\Utility\AuditUtility.cs (2)
154SuppressedAdvisories[knownVulnerability.Url.OriginalString] = true; 404SuppressedAdvisories[knownVulnerability.Url.OriginalString] = true;
RestoreCommand\Utility\IncludeFlagUtils.cs (2)
55result[dependency.Name] = includeType; 145result[rootId] = (currentTypes | node.DependencyType);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
816isPruningEnabled[tfm] = isPackagePruningEnabled; 1298versions[centralPackageVersion.Name] = centralPackageVersion;
NuGet.Common (1)
KeyedLock.cs (1)
126_locks[key] = lockState;
NuGet.Configuration (7)
PackageSource\MinPublishAgeExceptions.cs (1)
45itemsByPattern[pattern.Trim()] = item;
PackageSource\PackageSourceProvider.cs (2)
440packageSourceLookup[packageSource.Name] = new IndexedPackageSource 1106existingSettingsLookup[setting.Key] = setting;
PackageSourceMapping\SearchTree.cs (1)
63currentNode.Children[c] = new SearchNode();
Settings\SettingElement.cs (2)
161MutableAttributes[attributeName] = newValue; 186MutableAttributes[attributeName] = value;
Settings\Settings.cs (1)
156_computedSections[sectionName] = new VirtualSettingSection(settingFileSection!);
NuGet.DependencyResolver.Core (3)
GraphModel\GraphOperations.cs (2)
168workingDowngrades[node] = sideNode; 518acceptedLibraries[node.Key.Name] = node;
GraphModel\Tracker.cs (1)
85_entryByLibraryName[item.Key.Name] = entry;
NuGet.Frameworks (1)
FrameworkReducer.cs (1)
408scores[pair.Key]++;
NuGet.PackageManagement (13)
Audit\AuditChecker.cs (1)
396suppressedAdvisories[advisoryUrl] = true;
IDE\PackageRestoreManager.cs (1)
217restoreAuditProperties[nuGetProjectName] = auditProperties;
NuGetPackageManager.cs (9)
1021preferredVersions[installedPackage.Id] = installedPackage; 1041preferredVersions[packageIdentity.Id] = packageIdentity; 2244nugetProjectActionsLookup[buildIntegratedProject.MSBuildProjectPath] = actions; 2959nugetProjectActionsLookup[buildIntegratedProject.MSBuildProjectPath] = nuGetProjectActions; 2985nuGetProjectSourceLookup[buildIntegratedProject.MSBuildProjectPath] = sources; 3000originalNugetPackageSpecLookup[buildIntegratedProject.MSBuildProjectPath] = originalPackageSpec; 3022lockFileLookup[buildIntegratedProject.MSBuildProjectPath] = originalLockFile; 3044updatedNugetPackageSpecLookup[buildIntegratedProject.MSBuildProjectPath] = updatedPackageSpec; 3045dependencyGraphContext.PackageSpecCache[buildIntegratedProject.MSBuildProjectPath] = updatedPackageSpec;
Resolution\PrunePackageTree.cs (1)
221installed[packageReference.PackageIdentity.Id] = packageReference.PackageIdentity.Version;
Resolution\UninstallResolver.cs (1)
35dependentsDict[dependencyPackageIdentity] = dependents = new HashSet<PackageIdentity>(PackageIdentity.Comparer);
NuGet.Packaging (18)
ContentModel\ContentItemCollection.cs (1)
108groupAssets[item] = assets;
ContentModel\ManagedCodeConventions.cs (9)
86props[AnyProperty.Name] = AnyProperty; 87props[AssemblyProperty.Name] = AssemblyProperty; 88props[LocaleProperty.Name] = LocaleProperty; 89props[MSBuildProperty.Name] = MSBuildProperty; 90props[SatelliteAssemblyProperty.Name] = SatelliteAssemblyProperty; 91props[CodeLanguageProperty.Name] = CodeLanguageProperty; 92props[AnalyzerAssemblyProperty.Name] = AnalyzerAssemblyProperty; 94props[PropertyNames.RuntimeIdentifier] = new ContentPropertyDefinition( 99props[PropertyNames.TargetFrameworkMoniker] = new ContentPropertyDefinition(
RuntimeModel\RuntimeDescription.cs (2)
104newSets[dependencySet.Id] = dependencySet; 110newSets[dependencySet.Id] = dependencySet;
RuntimeModel\RuntimeGraph.cs (6)
102clone[pair.Key] = cloneFunc(pair.Value); 129runtimes[pair.Key] = pair.Value; 139runtimes[pair.Key] = RuntimeDescription.Merge(leftRuntime, pair.Value); 143runtimes[pair.Key] = pair.Value; 152supports[compatProfile.Key] = compatProfile.Value; 160supports[compatProfile.Key] = compatProfile.Value;
NuGet.ProjectModel (2)
LockFile\LockFileTargetLibrary.cs (2)
48_propertyValues[key] = list; 58_propertyValues[key] = list;
NuGet.Protocol (5)
Converters\FingerprintsConverter.cs (1)
25dict[fingerprint.Key] = fingerprint.Value?.ToString() ?? string.Empty;
Converters\FingerprintsStjConverter.cs (1)
28dict[key] = reader.GetString() ?? string.Empty;
HttpSource\HttpSourceAuthenticationHandler.cs (1)
253_authStates[correlationId] = authState;
Resources\ServiceIndexResourceV3.cs (2)
229result[type] = result[type].OrderByDescending(e => e.ClientVersion).ToList(); 303result[type] = result[type].OrderByDescending(e => e.ClientVersion).ToList();
NuGet.Versioning (1)
NuGetVersionFactory.cs (1)
111ParsedNuGetVersionsMapping[value] = version;
PresentationBuildTasks (12)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
102s_switchMap[switchName] = initialValue;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
396_compatTable[oldXmlns] = newXmlns; 397_compatTableReverse[newXmlns] = oldXmlns;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (9)
55_namespaceMap[xmlNamespace] = xmlNamespace; 85_namespaceMap[xmlNamespace] = xmlNamespace; 142_namespaceMap[key] = newNamespace; 147_namespaceMap[oldNamespace] = newNamespace; 823_namespaceMap[namespaceName] = namespaceName; 852_namespaceMap[namespaceName] = null; 883_subsumingNamespaces[namespaceName] = null; 910_knownNamespaces[namespaceName] = null; 1838_ignorables[namespaceName] = null; // we don't care about value, just key
PresentationCore (75)
MS\Internal\Automation\EventMap.cs (1)
142_eventsTable[idEvent] = new EventInfo();
MS\Internal\DeferredElementTreeState.cs (2)
17_oldCoreParents[element] = parent; 78_oldLogicalParents[element] = parent;
MS\Internal\FontCache\FontResourceCache.cs (2)
137folderResourceMap[folderName] = new List<string>(1); 141folderResourceMap[resourceFullName] = new List<string>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
178_familyMapRangesByLanguage[matchingLanguage] = ranges;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
856adjInformation[edge] = edgeInfo;
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
102s_switchMap[switchName] = initialValue;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
108_nodeLookup[key] = node;
System\Windows\Input\ManipulationDevice.cs (1)
87_manipulationDevices[element] = device;
System\Windows\Input\ManipulationLogic.cs (1)
545_currentManipulators[id] = new Manipulator2D(id, (float)position.X, (float)position.Y);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
402_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice;
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (1)
130_tabletDeviceMap[tablet.Device] = tablet;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
193_coalescedMoves[stylusDevice] = inputReport; 221_coalescedMoves[stylusDevice] = coalescedMove; 238_lastMovesQueued[stylusDevice] = coalescedMove; 3031__stylusDeviceMap[stylusDeviceId] = stylusDevice; 3162__penContextsMap[inputSource] = penContexts;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
74_pointerLogic.PlugInManagers[_source] = new PointerStylusPlugInManager(_source);
System\Windows\Media\FontEmbeddingManager.cs (2)
52glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>(); 56glyphSet[glyphIndex] = true;
System\Windows\Media\Knowncolors.cs (1)
208s_solidColorBrushCache[argb] = scp;
System\Windows\Media\SolidColorBrush.cs (2)
284fwdDictionary[key] = value; 290revDictionary[value] = keys;
System\Windows\Media\textformatting\TextFormatterContext.cs (43)
411dict[contextInfo.wchHyphen] = true; 412dict[contextInfo.wchTab] = true; 413dict[contextInfo.wchPosTab] = true; 414dict[contextInfo.wchEndPara1] = true; 415dict[contextInfo.wchEndPara2] = true; 416dict[contextInfo.wchAltEndPara] = true; 417dict[contextInfo.wchEndLineInPara] = true; 418dict[contextInfo.wchColumnBreak] = true; 419dict[contextInfo.wchSectionBreak] = true; 420dict[contextInfo.wchPageBreak] = true; 421dict[contextInfo.wchNonBreakSpace] = true; 422dict[contextInfo.wchNonBreakHyphen] = true; 423dict[contextInfo.wchNonReqHyphen] = true; 424dict[contextInfo.wchEmDash] = true; 425dict[contextInfo.wchEnDash] = true; 426dict[contextInfo.wchEmSpace] = true; 427dict[contextInfo.wchEnSpace] = true; 428dict[contextInfo.wchNarrowSpace] = true; 429dict[contextInfo.wchOptBreak] = true; 430dict[contextInfo.wchNoBreak] = true; 431dict[contextInfo.wchFESpace] = true; 432dict[contextInfo.wchJoiner] = true; 433dict[contextInfo.wchNonJoiner] = true; 434dict[contextInfo.wchToReplace] = true; 435dict[contextInfo.wchReplace] = true; 436dict[contextInfo.wchVisiNull] = true; 437dict[contextInfo.wchVisiAltEndPara] = true; 438dict[contextInfo.wchVisiEndLineInPara] = true; 439dict[contextInfo.wchVisiEndPara] = true; 440dict[contextInfo.wchVisiSpace] = true; 441dict[contextInfo.wchVisiNonBreakSpace] = true; 442dict[contextInfo.wchVisiNonBreakHyphen] = true; 443dict[contextInfo.wchVisiNonReqHyphen] = true; 444dict[contextInfo.wchVisiTab] = true; 445dict[contextInfo.wchVisiPosTab] = true; 446dict[contextInfo.wchVisiEmSpace] = true; 447dict[contextInfo.wchVisiEnSpace] = true; 448dict[contextInfo.wchVisiNarrowSpace] = true; 449dict[contextInfo.wchVisiOptBreak] = true; 450dict[contextInfo.wchVisiNoBreak] = true; 451dict[contextInfo.wchVisiFESpace] = true; 452dict[contextInfo.wchEscAnmRun] = true; 453dict[contextInfo.wchPad] = true;
System\Windows\Media\UniqueEventHelper.cs (2)
95delegates[handler] = refCount + 1; 121delegates[handler] = refCount - 1;
System\Windows\Media\Visual.cs (6)
836channelsToCyclicBrushMap[channel] = 1; 842channelsToCyclicBrushMap[channel] += 1; 862cyclicBrushToChannelsMap[cyclicBrush] = 1; 868cyclicBrushToChannelsMap[cyclicBrush] += 1; 907cyclicBrushToChannelsMap[cyclicBrush] -= 1; 917channelsToCyclicBrushMap[channel] -= 1;
PresentationFramework (61)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
104s_ZLevel[type] = level;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
271_attachedAnnotations[attachedAnnotation] = currentList;
MS\Internal\Annotations\ObservableDictionary.cs (1)
256_nameValues[key] = value;
MS\Internal\Annotations\XmlElementCollection.cs (3)
148_xmlDocsRefCounts[element.OwnerDocument]--; 179_xmlDocsRefCounts[element.OwnerDocument] = 1; 188_xmlDocsRefCounts[element.OwnerDocument]++;
MS\Internal\AppModel\MimeObjectFactory.cs (1)
53_objectConvertersCore[contentType] = method;
MS\Internal\Data\AccessorTable.cs (1)
87_table[new AccessorTableKey(sourceValueType, type, name)] = value;
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
524_nameToGroupMap[nameKey] = new WeakReference(subgroup);
MS\Internal\Data\LiveShapingList.cs (2)
720this[path] = dp; 737this[path] = dp;
MS\Internal\Globalization\BamlTreeMap.cs (3)
453_classAttributeTable[className] = loc; 482_propertyAttributeTable[fullName] = loc; 510_classAttributeTable[className] = new ElementLocalizability(formattingTag, null);
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
739_uidToNewBamlNodeIndexMap[uid] = _tree.Size - 1; 742_keyToNewBamlNodeIndexMap[key] = _tree.Size - 1;
MS\Internal\Interop\InternalDispatchObject.cs (1)
64_dispId2MethodMap[dispid] = method;
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
111_cache[fileName] = module;
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
102s_switchMap[switchName] = initialValue;
System\Windows\Controls\DataGrid.cs (1)
8226dataGridStringBuilders[format] = new StringBuilder();
System\Windows\Controls\DataGridColumnCollection.cs (1)
1468_originalWidthsForResize[column] = column.Width;
System\Windows\Controls\DataGridHelper.cs (2)
425transferEnabledMap[p] = true; 427transferEnabledMap[p] = false;
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
14map[property] = value; 69_itemStorageMap[item] = map;
System\Windows\Data\BindingGroup.cs (1)
1126_notifyDataErrors[itemWR] = itemErrors;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (1)
455_resultCache[wrKey] = new WeakReference<ResourceDictionary>(result.Dictionary);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
71_instances[language] = new SpellCheckerCreationHelper(language);
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (2)
190_instanceInfo.NumCallsMeasured[_action]++; 191_instanceInfo.CumulativeCallTime100Ns[_action] += ticks;
System\Windows\Documents\WinRTSpellerInterop.cs (4)
298_spellCheckers[culture] = null; 328_spellCheckers[culture] = null; 332_spellCheckers[culture] = new Tuple<WordsSegmenter, SpellChecker>(wordBreaker, spellChecker); 466_customDictionaryFiles[ietfLanguageTag] = new List<string>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1593_enumTypeConverterMap[propertyType] = converter; 1602_typeConverterMap[typeConverterId] = converter;
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
430_bamlXmlnsMappings[xmlns] = assemblies;
System\Windows\Markup\BamlReader.cs (1)
2684_reverseXmlnsTable[fullName] = list;
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
216_dictionary[key] = value;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
701_keyTypeMap[type] = result;
System\Windows\Markup\Primitives\MarkupWriter.cs (10)
591writtenAttributes[property.Name] = property.Name; 706writtenAttributes[property.Name] = property.Name; 816writtenAttributes[contentProperty.Name] = contentProperty.Name; 829writtenAttributes[property.Name] = property.Name; 1393_uriToPrefix[uri] = prefix; 1394_prefixToUri[prefix] = uri; 1562DefaultPrefixes[prefix.XmlNamespace] = prefix.Prefix; 1565XmlnsDefinitions[assembly] = namespaceToUri; 1588namespaceToUri[definition.ClrNamespace] = definition.XmlNamespace; 1597assembliesNamespacetoUri[definition.ClrNamespace] = definition.XmlNamespace;
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
46initializedTypes[currentType] = currentType;
System\Windows\Markup\XamlTypeMapper.cs (1)
161_piReverseTable[fullName] = xmlNamespace;
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
203_piNamespaces[xamlNamespace] = clrNs;
System\Windows\Markup\XmlnsCache.cs (2)
396_compatTable[oldXmlns] = newXmlns; 397_compatTableReverse[newXmlns] = oldXmlns;
System\Windows\ResourceDictionary.cs (1)
1819this._weakDeferredResourceReferencesMap[resourceKey] = weakDeferredResourceReferences;
System\Windows\Shell\JumpList.cs (1)
227s_applicationMap[application] = value;
System\Windows\SystemResources.cs (3)
1121_hwndNotify[hwndDpiInfo] = hwndNotify; 1123_hwndNotifyHook[hwndDpiInfo] = new HwndWrapperHook(SystemThemeFilterMessage); 1137_hwndNotifyHook[hwndDpiInfo] = null;
System\Windows\VisualStateManager.cs (1)
703result[new TimelineDataToken(child)] = child;
PresentationUI (2)
MS\Internal\Documents\RightsManagementProvider.cs (2)
691rights[rmLicense.LicensedUser] = rmLicense; 719rights[_user] = ConvertGrantList(_user, grantList);
ReachFramework (44)
packaging\XpsDigitalSignature.cs (10)
318hashTable[uri] = uri; 381uriHashTable[selector.SourceUri] = relHash; 386relHash[selector.SelectionCriteria] = 0; 423_optionalSignedTypes[XpsS0Markup.CoreDocumentPropertiesType.OriginalString] = ""; 424_optionalSignedTypes[XpsS0Markup.PrintTicketContentType.OriginalString] = ""; 425_optionalSignedTypes[XpsS0Markup.SigOriginContentType.OriginalString] = ""; 426_optionalSignedTypes[XpsS0Markup.SigCertContentType.OriginalString] = ""; 427_optionalSignedTypes[XpsS0Markup.DiscardContentType.OriginalString] = ""; 431_optionalSignedTypes[XpsS0Markup.StoryFragmentsContentType.OriginalString] = ""; 433_optionalSignedTypes[XpsS0Markup.RelationshipContentType.OriginalString] = "";
Packaging\XpsDocument.cs (1)
768dependentList[_thumbnail.Uri] = _thumbnail.Uri;
Packaging\XpsFixedDocumentReaderWriter.cs (3)
712dependentList[Uri] = Uri; 733dependentList[signatureDefinitionPart.Uri] = signatureDefinitionPart.Uri; 833dependents[_documentStructure.Uri] = _documentStructure.Uri;
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
444dependentList[Uri] = Uri;
Packaging\XpsFixedPageReaderWriter.cs (19)
824_resourceCache[xpsResource.Uri] = xpsResource; 1360dependentList[Uri] = Uri; 1412dependents[uri] = uri; 1419dependents[uri] = uri; 1426dependents[uri] = uri; 1433dependents[uri] = uri; 1441dependents[uri] = uri; 1446dependents[_storyFragment.Uri] = _storyFragment.Uri; 1456dependents[_thumbnail.Uri] = _thumbnail.Uri; 1521restictedFontRels[absUri] = rel; 1537_imageCache[absUri] = image; 1547_fontCache[absUri] = font; 1560_colorContextCache[absUri] = colorContext; 1569_resourceDictionaryCache[absUri] = resourceDictionary; 1589_resourceCache[absUri] = xpsResource; 1638_imageCache[xpsImage.Uri] = xpsImage; 1679_fontCache[xpsFont.Uri] = xpsFont; 1751_colorContextCache[xpsColorContext.Uri] = xpsColorContext; 1789_resourceDictionaryCache[xpsResourceDictionary.Uri] = xpsResourceDictionary;
Packaging\XpsManager.cs (10)
321_cachedParts[partUri] = metroPart; 407_cachedParts[partUri] = metroPart; 544_cachedParts[uri] = part; 776dependents[propertiesPart.Uri] = propertiesPart.Uri; 1105_contentTypes[pageContentKey] = 1; 1155_contentTypes[contentKey] = counter; 1235_contentTypes[key] = 1; 1264_packageCache[uri] = 1; 1275_packageCache[uri] += 1; 1292_packageCache[uri] = reference;
Roslyn.Diagnostics.Analyzers (27)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
224_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 441=> _analysisDataByBasicBlockMap[basicBlock] = data; 574_reachingDelegateCreationTargets[write] = targetsBuilder; 584_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 596_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 610_reachingDelegateCreationTargets[write] = targetsBuilder;
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
85dictionary[key] = values;
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
270_dictionary[k] = updated;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
813accumulator[key] = arrayBuilder;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
199ruleIdToComments[currentRuleId] = currentXmlComment.ToString();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
443nodeReplacements[currentNode] = newNode; 449tokenReplacements[currentToken] = newToken; 455triviaReplacements[currentTrivia] = newTrivia;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
178continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
80s_optionsToWhitespace[options] = (spaces, whitespaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
54_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
67documentToLinkedDocuments[document.Id] = linkedDocuments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
225importToSyntax[namespaceSymbol] = namespaceSyntax;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
57mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 129mapping[typeParameter] = newTypeParameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
102collisionMap[name] = isCollision;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
687result[returnTypeParameter] = inferredType;
rzc (6)
DefaultExtensionAssemblyLoader.cs (2)
139_loadedByPath[filePath] = (assembly, identity); 158_loadedByPath[filePath] = (assembly, identity);
GenerateCommand.cs (1)
348outputBySourcePath[item.SourcePath] = item.OutputPath;
RazorSourceGeneratorHost.cs (3)
66metadata["build_metadata.AdditionalFiles.CssScope"] = file.CssScope; 69fileOptions[file.SourcePath] = new RazorAnalyzerConfigOptions(metadata); 126options[key] = value;
sdk-tasks (1)
DeduplicateAssembliesWithLinks.cs (1)
81filesByHash[hash] = new List<FileEntry>();
SelectTests (7)
GraphAffectedProjects.cs (3)
208paths[name] = new AffectedPath(seedFile, chain); 396dependents[target] = list; 436parent[dependent] = current;
Program.cs (3)
298map[name] = relPath; 809groups[key] = members; 816members[project] = cause;
TestSelector.cs (1)
350causes[key] = list;
System.CodeDom (4)
System\CodeDom\CodeNamespaceImportCollection.cs (2)
34_keys[value.Namespace] = value; 60_keys[c.Namespace] = c;
System\CodeDom\Compiler\CodeDomProvider.cs (2)
41s_compilerLanguages[language] = compilerInfo; 46s_compilerExtensions[extension] = compilerInfo;
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (2)
57d[pair.Key] = pair.Value; 141newDictionary[pair.Key] = pair.Value;
System.CommandLine (5)
Help\HelpBuilder.cs (1)
79_customizationsBySymbol[symbol] = new Customization(firstColumnText, secondColumnText, defaultValue);
Parsing\CommandResult.cs (1)
164SymbolResultTree[argument] = argumentResult;
Parsing\StringExtensions.cs (1)
406tokens[tokenString] = new Token(tokenString, TokenType.Directive, directive, Token.ImplicitPosition);
Parsing\SymbolResultTree.cs (2)
149_symbolsByName[symbol.Name] = new(symbol, parent) 156_symbolsByName[symbol.Name] = new(symbol, parent);
System.CommandLine.StaticCompletions (2)
DynamicSymbolExtensions.cs (2)
38s_dynamicSymbols[option] = value; 63s_dynamicSymbols[argument] = value;
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (1)
200controlParameters[keyString] = value;
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
219propertyStoreItems[property.Name] = item;
System.ComponentModel.Composition (22)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
506metadata[CompositionConstants.GenericImportParametersOrderMetadataName] = GenericServices.GetGenericParametersOrder(type); 510metadata[CompositionConstants.GenericContractMetadataName] = ContractNameServices.GetTypeIdentity(type.GetGenericTypeDefinition()); 511metadata[CompositionConstants.GenericParametersMetadataName] = type.GetGenericArguments(); 519metadata[CompositionConstants.ImportSourceMetadataName] = attributedImport.Source;
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (2)
106_importCache[import] = exports; 175_importedDisposableExports[import] = disposableExports;
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (11)
180specializedPartMembers[closedGenericPartType.MetadataToken] = closedGenericPartType; 183specializedPartMembers[method.MetadataToken] = method; 188specializedPartMembers[field.MetadataToken] = field; 193specializedPartMembers[iface.MetadataToken] = iface; 198specializedPartMembers[type.MetadataToken] = type; 205specializedPartMembers[baseType.MetadataToken] = baseType; 229membersTable[lazyMemberInfo] = accessors; 245parametersTable[lazyParameter] = constructorParameters[lazyParameter.Value.Position]; 440metadata[CompositionConstants.GenericContractMetadataName] = GenericServices.GetGenericName(originalImport.ContractName, importParametersOrder, _specialization.Length); 441metadata[CompositionConstants.GenericParametersMetadataName] = GenericServices.Reorder(_specialization, importParametersOrder); 459metadata[CompositionConstants.ExportTypeIdentityMetadataName] = Translate(exportTypeIdentity, originalExport.Metadata.GetValue<int[]>(CompositionConstants.GenericExportParametersOrderMetadataName));
System\ComponentModel\Composition\ReflectionModel\PartCreatorExportDefinition.cs (2)
36metadata[CompositionConstants.ExportTypeIdentityMetadataName] = CompositionConstants.PartCreatorTypeIdentity; 37metadata[CompositionConstants.ProductDefinitionMetadataName] = _productDefinition;
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (3)
248ImportValues[item.Definition] = value; 576_exportsCache[exportIndex] = result; 590ImportsCache[definition] = result;
System.ComponentModel.TypeConverter (9)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
29dictionary[prop.Name] = (Color)prop.GetValue(null, null)!;
System\ComponentModel\AttributeCollection.cs (1)
283s_defaultAttributes[attributeType] = attr;
System\ComponentModel\ComponentResourceManager.cs (2)
111_resourceSets[culture] = resources; 119_resourceSets[culture] = resources;
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
116_relationships[new RelationshipEntry(source)] = new RelationshipEntry(relationship);
System\ComponentModel\Design\ServiceContainer.cs (3)
93Services[serviceType] = serviceInstance; 130Services[serviceType] = callback; 201Services[serviceType!] = service;
System\ComponentModel\LicenseManager.LicenseInteropHelper.cs (1)
75_savedLicenseKeys[type.AssemblyQualifiedName!] = key;
System.Console (2)
System\TerminalFormatStrings.cs (2)
233KeyFormatToConsoleKey[keyFormat] = new ConsoleKeyInfo(key == ConsoleKey.Enter ? '\r' : '\0', key, shift, alt, control); 252KeyFormatToConsoleKey[keyFormat] = new ConsoleKeyInfo('\0', key, shift, alt, control);
System.Data.Common (5)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
476parsetable[realkeyname] = keyvalue!; // last key-value pair wins (or first) 573parsetable[realkeyname] = keyvalue; // last key-value pair wins (or first)
System\Data\Common\AdapterUtil.Common.cs (1)
795hash[columnName] = i;
System\Data\Common\DbConnectionStringBuilder.cs (1)
106CurrentValues[keyword] = keyvalue;
System\Data\DataView.cs (1)
931_findIndexes[column] = findIndex;
System.Data.Odbc (5)
Common\System\Data\Common\DBConnectionString.cs (2)
102_parsetable[KEY.Password] = star; 106_parsetable[KEY.Pwd] = star;
src\runtime\src\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (1)
136hash[fieldName] = i;
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
476parsetable[realkeyname] = keyvalue!; // last key-value pair wins (or first) 573parsetable[realkeyname] = keyvalue; // last key-value pair wins (or first)
System.Data.OleDb (4)
OleDbConnectionString.cs (2)
263udlcache[udlfilename] = udlConnectionString; 282udlcache[udlfilename] = udlConnectionString;
OleDbConnectionStringBuilder.cs (1)
447providerInfo[info._description!] = info;
PropertyInfoSet.cs (1)
94propertyLookup[propertyInfo._lowercase] = propertyInfo;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
1161_customProperties[propertyName] = propertyValue!;
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
25_contents[key] = value;
System.DirectoryServices.AccountManagement (6)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
147propertyNameToLdapAttr[propertyName] = props;
System\DirectoryServices\AccountManagement\Principal.cs (4)
701_extensionCache.properties[attribute] = new ExtensionCacheValue((object[])value); 703_extensionCache.properties[attribute] = new ExtensionCacheValue(new object[] { value }); 716_extensionCache.properties[attribute] = new ExtensionCacheValue((object[])value, objectType, mt); 718_extensionCache.properties[attribute] = new ExtensionCacheValue(new object[] { value }, objectType, mt);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (1)
120s_validPropertyMap[propertyName] = currentMask | BitMask;
System.Drawing.Primitives (1)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
29dictionary[prop.Name] = (Color)prop.GetValue(null, null)!;
System.Formats.Nrbf (1)
System\Formats\Nrbf\RecordMap.cs (1)
43_map[record.Id] = record;
System.Formats.Tar (11)
System\Formats\Tar\PaxTarEntry.cs (3)
76_header.ExtendedAttributes[TarHeader.PaxEaName] = entryName; 104_header.ExtendedAttributes[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime); 108_header.ExtendedAttributes[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime);
System\Formats\Tar\TarHeader.cs (8)
196_ea[key] = value; 211_ea[key] = TarHelpers.GetTimestampStringFromDateTimeOffset(value); 225_ea[key] = value.ToString(); 254ea[PaxEaName] = _name; 255ea[PaxEaMTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(_mTime); 265ea[PaxEaLinkName] = _linkName; 278ea[key] = value; 290ea[key] = value.ToString();
System.IO.Packaging (10)
System\IO\Packaging\PartBasedPackageProperties.cs (1)
400_propertyDictionary[propertyenum] = value;
System\IO\Packaging\XmlCompatibilityReader.cs (9)
39_namespaceMap[xmlNamespace] = xmlNamespace; 69_namespaceMap[xmlNamespace] = xmlNamespace; 125_namespaceMap[key] = newNamespace; 130_namespaceMap[oldNamespace] = newNamespace; 762_namespaceMap[namespaceName] = namespaceName; 791_namespaceMap[namespaceName] = null!; 821_subsumingNamespaces[namespaceName] = null; 847_knownNamespaces[namespaceName] = null; 1648_ignorables[namespaceName] = null; // we don't care about value, just key
System.Linq.AsyncEnumerable (2)
System\Linq\AggregateBy.cs (2)
142dict[key] = await func(dict.TryGetValue(key, out TAccumulate? acc) ? acc : seed, value, cancellationToken); 278dict[key] = await func(
System.Linq.Expressions (19)
System\Dynamic\ExpandoClass.cs (1)
96_transitions[hashCode] = infos = new List<WeakReference>();
System\Dynamic\Utils\Helpers.cs (1)
38dict[key] = count + 1;
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
79curTypeInfo.TypeChain[lookingUp] = nextTypeInfo;
System\Linq\Expressions\Compiler\VariableBinder.cs (6)
87_scopes.Push(_tree.Scopes[node] = new CompilerScope(node, true)); 88_constants.Push(_tree.Constants[node] = new BoundConstants()); 103_scopes.Push(_tree.Scopes[node] = new CompilerScope(lambda, false)); 124_scopes.Push(_tree.Scopes[node] = new CompilerScope(node, false)); 138_scopes.Push(_tree.Scopes[node] = new CompilerScope(node, false)); 264definition.Definitions[node] = VariableStorageKind.Hoisted;
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
2799mapping[local] = ResolveLocal(local); 2879_definedParameters[param] = count + 1; 2883_definedParameters[param] = 1; 2899_definedParameters[param] = count - 1;
System\Linq\Expressions\Interpreter\LightLambda.cs (2)
109_tryStart[index] = count + 1; 115_handlerExit[index] = _handlerExit.TryGetValue(index, out count) ? count + 1 : 1;
System\Linq\Expressions\Interpreter\Utilities.cs (3)
288_dict[key] = value; 324_dict[_keysAndValues[i].Key] = _keysAndValues[i].Value; 328_dict[key] = value;
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
214cache[typeof(T)] = ruleCache = new RuleCache<T>();
System.Linq.Parallel (5)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
306leftLookup[wrappedLeftElement] = new Pair<TInputOutput, TLeftKey>(leftElement.First, leftKey);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
290_hashLookup[wrappedLeftElem] = new Pair<TInputOutput, TLeftKey>(leftElement.First, leftKey);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
360union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.First, key); 377union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.First, key);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
252_hashLookup[wrappedElem] = orderKey;
System.Net.Http (2)
System\Net\Http\HttpRequestOptions.cs (2)
30Options[key] = value; 84Options[key.Key] = value;
System.Net.HttpListener (5)
System\Net\Managed\HttpEndPointListener.cs (1)
357p2[prefix] = listener;
System\Net\Managed\HttpEndPointManager.cs (2)
145s_ipEndPoints[addr] = p; 163p[port] = epl;
System\Net\Managed\HttpListener.Managed.cs (2)
176_connections[cnc] = cnc; 192_listenerContexts[context] = context;
System.Net.Mail (5)
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
29_sessions[sessionCookie] = credential;
System\Net\Mail\SmtpNegotiateAuthenticationModule.cs (1)
42_sessions[sessionCookie] = clientContext =
System\Net\Mail\SmtpNtlmAuthenticationModule.cs (1)
30_sessions[sessionCookie] = clientContext =
System\Net\TrackingValidationObjectDictionary.cs (2)
77_internalObjects[key] = valueToAdd; 139_internalObjects[key] = value;
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
991s_tasks[key] = task;
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
217dict[newKey] = item;
System.Private.CoreLib (44)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
356s_delegates[functionPtr] = d;
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
93s_dataStore[name] = data; 229s_switches[switchName] = isEnabled;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1780this[tempKey] = (TValue)value!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
53m_subscriptions[eventListener] = new EventListenerSubscription(matchAnyKeywords, level);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1268args[key] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (6)
2860dispatcher.m_EventEnabled[eventId] = value; 2918eventEnabled[eventId] = false; 3592enabledDict[eventId] = false; 3675eventsByName[evtName] = evtName; 3994s_preregisteredEtwProviders[id] = etwProvider; 4002s_preregisteredEventPipeProviders[name] = eventPipeProvider;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (7)
81opcodeTab[value] = name; 100taskTab[value] = name; 123keywordTab[value] = name; 148channelTab[value] = new ChannelInfo { Name = name, Keywords = kwd, Attribs = channelAttribute }; 284perEventByteArrayArgIndices[eventName] = byteArrArgIndices; 292stringTab[prefixedEventName] = msg; 588stringTab[key] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
150cache[type] = instance;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Unix.cs (1)
56s_environment[variable] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
488tempHashTable[hashName] = retVal; 709tempHashTable[hashName] = culture;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
1014lcidTable[culture] = result; 1094nameTable[nameAndAltName] = result;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (1)
870_processDataHeaders[processDataHeader._id] = processDataHeader;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
950dictionary[key] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
297cache[key] = resEntry; 342caseInsensitiveTable[key] = resEntry;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
41s_registrations[signo] = tokens = new List<Token>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
147encodingInfoList[codePage] = new EncodingInfo(codePage, webNames[webNameIndices[i]..webNameIndices[i + 1]],
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (5)
458many[pair.Key] = pair.Value; 460many[key] = value; 496map[pair.Key] = pair.Value; 498map[key] = value; 532map[pair.Key] = pair.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
205activeTasks[taskId] = task; 247continuationTimestamps[newContinuation] = timestampVal; 320runtimeAsyncTaskTimestamps[task.Id] = timestamp;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
698nameToSlotMap[name] = slot;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
1202cachedData._timeZonesUsingAlternativeIds[id] = zone;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
314filteredTimeZones[timeZoneId] = timeZone;
System\GC.NativeAot.cs (2)
676configurationDictionary[nameAsString] = data; 682configurationDictionary[nameAsString] = dataAsString ?? string.Empty;
System.Private.CoreLib.Generators (3)
NativeRuntimeEventSourceGenerator.cs (3)
104inclusionList[providerName] = value; 247templateDict[name] = template; 269latestEventVersions[eventId] = version;
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (1)
46_strings[value] = CurrentId;
System\Private\Windows\Ole\DataStore.cs (1)
101_mappedData[format] = new DataStoreEntry(data, autoConvert);
System.Private.Xml (60)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
2469_namespaces[prefix] = decl; 2480_namespaces[decl.prefix] = decl.prevLink;
System\Xml\Core\QueryOutputWriter.cs (1)
65_lookupCDataElems[name] = 0;
System\Xml\Core\QueryOutputWriterV1.cs (1)
79_lookupCDataElems[name] = null;
System\Xml\Core\XmlTextWriter.cs (2)
1560_nsHashtable[prefix] = namespaceIndex; 1577_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex;
System\Xml\Core\XmlWellFormedWriter.cs (3)
1784_nsHashtable[prefix] = namespaceIndex; 1826_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex; 2148_attrHashTable[localName] = 0; // overwrite on collision
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
352_mappings[uri] = data;
System\Xml\Schema\SchemaCollectionCompiler.cs (4)
283schemaInfo.TargetNamespaces[element!.QualifiedName.Namespace] = true; 289schemaInfo.TargetNamespaces[attribute!.QualifiedName.Namespace] = true; 295schemaInfo.TargetNamespaces[type!.QualifiedName.Namespace] = true; 304schemaInfo.TargetNamespaces[notation!.QualifiedName.Namespace] = true;
System\Xml\Schema\SchemaSetCompiler.cs (1)
147schemaInfo.TargetNamespaces[tns] = true;
System\Xml\Schema\XmlAtomicValue.cs (1)
72dict[prefix] = ns;
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
31_table[name] = value; //set new value 50_table[name] = value; //set new value
System\Xml\Serialization\CodeGenerator.cs (1)
1606_locals[key] = value;
System\Xml\Serialization\Compilation.cs (4)
471scopeTable[mapping.Scope!] = mapping; 565serializers[xmlMappings[i].Key!] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass); 782cache[key] = assembly; 788cache[key] = assembly;
System\Xml\Serialization\NameTable.cs (3)
63_table[new NameKey(qname.Name, qname.Namespace)] = value; 75_table[new NameKey(name, ns)] = value; 88_table[new NameKey(name, ns)] = value;
System\Xml\Serialization\Types.cs (4)
1196memberInfos[mappings[i].Name] = mappings[i].MemberInfo!; 1198memberInfos[mappings[i].ChoiceIdentifier!.MemberName!] = mappings[i].ChoiceIdentifier!.MemberInfo!; 1200memberInfos[$"{mappings[i].Name}Specified"] = mappings[i].CheckSpecifiedMemberInfo!; 1227memberInfos[pair.Key] = pair.Value;
System\Xml\Serialization\XmlSerializer.cs (1)
747typedMappingTable[mappingKey] = serializers[index]!;
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
77NamespacesInternal[prefix] = new XmlQualifiedName(prefix, ns);
System\Xml\XmlNamespacemanager.cs (5)
109_hashTable[_nsdecls[decl].prefix] = _nsdecls[decl].previousNsIndex; 171_hashTable[prefix] = _lastDecl; 181_hashTable[_nsdecls[i].prefix] = i; 215prefixes[_nsdecls[thisDecl].prefix] = _nsdecls[thisDecl].prefix; 259dict[prefix] = uri;
System\Xml\XPath\XPathNavigator.cs (2)
485dict["xml"] = XmlReservedNs.NsXml; 497dict[prefix] = ns;
System\Xml\Xsl\QIL\QilVisitor.cs (1)
460_visitedRef[input] = true;
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (5)
450_usedPrefixes[prefix] = ns; 563_usedPrefixes[prefix] = ns; 737_usedPrefixes[prefix] = ns; 971_usedPrefixes[prefix] = ns; 1432_conflictPrefixes[ns] = genPrefix;
System\Xml\Xsl\Xslt\Compiler.cs (3)
127NsAliases[ssheetNsUri] = new NsAlias(resultNsUri, resultPrefix, importPrecedence); 148this.AttributeSets[attSetName] = sheet.AttributeSets[attSetName]; 174AllGlobalVarPars[var.Name!] = var;
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
286list = FixedNamePatterns[qname] = new List<Pattern>();
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2645functionsForMode = sheet.ApplyFunctions[mode] = new List<QilFunction>();
System\Xml\Xsl\Xslt\Scripts.cs (1)
61set => _backingDictionary[key] = value;
System\Xml\Xsl\Xslt\Stylesheet.cs (2)
54matchesForMode = TemplateMatches[template.Mode] = new List<TemplateMatch>(); 116_compiler.NamedTemplates[template.Name] = template;
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (6)
80adjList = this[v1] = new List<V>(); 87this[v2] = null; 281parentModeFlags[modeFlag.Key] = modeFlags | modeFlag.Value; 295parentModeFlags[tmpl.Mode] = modeFlags | templateFlags; 369modePar = _applyTemplatesParams[mn] = AstFactory.WithParam(instr.Name!); 671par = _applyTemplatesParams[mn] = AstFactory.WithParam(node.Name!);
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
1074_curStylesheet.AttributeSets[setName] = set;
System.Reflection.DispatchProxy (7)
System\Reflection\DispatchProxyGenerator.cs (7)
154_baseTypeAndInterfaceToGeneratedProxyType[baseType] = interfaceToProxy; 160interfaceToProxy[interfaceType] = generatedProxy; 338propertyMap[pi.GetMethod] = ai; 340propertyMap[pi.SetMethod] = ai; 348eventMap[ei.AddMethod] = ai; 350eventMap[ei.RemoveMethod] = ai; 352eventMap[ei.RaiseMethod] = ai;
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
195table[tuple.Key] = tuple.Value;
System.Resources.Extensions (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
297cache[key] = resEntry; 342caseInsensitiveTable[key] = resEntry;
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (2)
55_types[typeName.AssemblyQualifiedName] = binderType; 83_types[typeName.AssemblyQualifiedName] = type ?? throw new SerializationException(SR.Format(SR.Serialization_MissingType, typeName.AssemblyQualifiedName));
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (2)
271_surrogates[type] = surrogate; 354_deserializedObjects[completedId] = objectReference.GetRealObject(Options.StreamingContext);
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCache.cs (1)
795values[key] = value;
System\Runtime\Caching\MemoryCacheEntry.cs (1)
168_fields._dependents[dependent] = dependent;
System.Runtime.InteropServices.JavaScript (3)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (1)
70ctx.JSExportByHandle[methodHandle] = wrapper;
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (2)
332ThreadJsOwnedObjects[obj] = result; 467ThreadCsOwnedObjects[jsHandle] = new WeakReference<JSObject>(res, trackResurrection: true);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (1)
315DataContractSet.ProcessedContracts[dataContract] = contractCodeDomInfo;
System.Security.AccessControl (1)
System\Security\AccessControl\Privilege.cs (1)
131s_privileges[luid] = privilege;
System.Security.Claims (1)
System\Security\Claims\Claim.cs (1)
266_properties[propertyKey] = propertyValue!;
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
78_headerParameters[key] = value;
System.ServiceModel.Primitives (18)
Internals\System\Xml\XmlMtomReader.cs (1)
2468parameters[MtomGlobals.ActionParam] = paramValue;
System\IdentityModel\CryptoHelper.cs (4)
290s_algorithmDelegateDictionary[algorithm] = null; 295s_algorithmDelegateDictionary[algorithm] = null; 302s_algorithmDelegateDictionary[algorithm] = null; 314s_algorithmDelegateDictionary[algorithm] = delegateFunction;
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (5)
54_properties[TokenTypeProperty] = value; 67_properties[IsOptionalTokenProperty] = value; 80_properties[RequireCryptographicTokenProperty] = (object)value; 94_properties[KeyUsageProperty] = (object)value; 108_properties[KeyTypeProperty] = (object)value;
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
178headers[key] = headers[key] + 1;
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
67_operationSupportingTokenParameters[key] = elementToBeCloned._operationSupportingTokenParameters[key].Clone(); 73_optionalOperationSupportingTokenParameters[key] = elementToBeCloned._optionalOperationSupportingTokenParameters[key].Clone();
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (3)
50_actionParts[action] = p; 93_actionParts[action] = new MessagePartSpecification(); 210_readOnlyNormalizedActionParts[action] = p;
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
115ScopedCertificates[targetService] = certificate;
System\ServiceModel\SynchronizedKeyedCollection.cs (1)
302_dictionary[newKey] = item;
System.ServiceModel.Primitives.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
163properties[property.Key] = property.Value.ToString(); 172headers[header.Name] = values;
System.Speech (2)
Recognition\RecognizerBase.cs (1)
2711_bookmarkTable[unchecked((int)bookmarkId)] = userToken;
Recognition\RecognizerInfo.cs (1)
43attrs[keyName] = attributeValue;
System.Text.Json (6)
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
26dictionary[key] = value;
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (1)
21dictionary[key] = value;
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
22dictionary[key] = value;
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
157newDict[kvp.Key] = kvp.Value; 177newDict[kvp.Key] = kvp.Value;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1842state.AddedProperties[jsonPropertyInfo.Name] = (jsonPropertyInfo, index);
System.Text.Json.SourceGeneration (6)
JsonSourceGenerator.Emitter.cs (1)
1138genericAccessorEntries[key] = entries;
JsonSourceGenerator.Parser.cs (5)
1671acceptsNullByCase[caseType] = acceptsNull; 1708canonicalIndexByPatternKey[patternKey] = i; 1717canonicalIndexByPatternKey[patternKey] = i; 1805valueTypeToTypes[valueType] = typeNames; 2343state.AddedProperties[propertySpec.EffectiveJsonPropertyName] = (propertySpec, memberInfo, index);
System.Text.RegularExpressions (16)
System\Text\RegularExpressions\RegexCompiler.cs (2)
1956charToBranchIndex[c] = i; 1961charToBranchIndex[startingLiteralNode.FirstCharOfOneOrMulti()] = i;
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (2)
747combined[fixedSet.Distance] = value; 752combined[fixedSet.Distance] = (RegexCharClass.Parse(fixedSet.Set), 1);
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
212idmap[node] = i + 2;
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (1)
224_rangeCache[set] = ranges;
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (2)
202_operationCache[key] = result = GetOrCreateBDD(set.Ordinal, Not(set.One), Not(set.Zero)); 372cache[bdd] = result = GetOrCreateBDD(bdd.Ordinal, one, zero);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
143_singletonCache[_solver.Empty] = _nothing; 144_singletonCache[_solver.Full] = _anyChar;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (1)
175result[key] = (matcher.Solver.Or(entry.Rule, matcher._minterms[i]), entry.NfaTargets);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (4)
86builder._nodeCache[key] = node; 1155builder._pruneLowerPriorityThanNullabilityCache[key] = prunedNode; 1355builder._derivativeCache[key] = derivative; 1429builder._stripEffectsCache[this] = result;
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
44catMap[c] = new Ranges();
System.Text.RegularExpressions.Generator (5)
RegexGenerator.Emitter.cs (1)
1714usedNames[prefix] = count + 1;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (2)
747combined[fixedSet.Distance] = value; 752combined[fixedSet.Distance] = (RegexCharClass.Parse(fixedSet.Set), 1);
UpgradeToGeneratedRegexCodeFixer.cs (2)
497treeIndexMap[tree] = treeCounter++; 510semanticModelCache[syntaxRef.SyntaxTree] = declModel;
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (2)
113transferEnabledMap[p] = true; 115transferEnabledMap[p] = false;
Microsoft\Windows\Controls\KeyTipService.cs (4)
301processedElements[element] = true; 343elementToScopeMap[element] = newScope; 345processedElements[element] = true; 923cultureCache[language] = culture;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
180_childIndexToStarLayoutIndexMap[starChildIndex] = starLayoutIndex;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
682contextualTabHeaders[contextualTabGroupHeader] = new List<RibbonTabHeaderAndIndex>(); 694ribbon.TabDisplayIndexToIndexMap[displayIndex] = i; 695ribbon.TabIndexToDisplayIndexMap[i] = displayIndex; 734ribbon.TabDisplayIndexToIndexMap[displayIndex] = headerAndIndex.Index; 735ribbon.TabIndexToDisplayIndexMap[headerAndIndex.Index] = displayIndex;
System.Windows.Forms (1229)
System\Resources\ResXResourceReader.cs (1)
613_resData[nodeInfo.Name] = dataNode;
System\Resources\ResXResourceReader.ReaderAliasResolver.cs (1)
29_cachedAliases[alias] = name;
System\Resources\ResXResourceWriter.cs (1)
253_cachedAliases[assemblyName.FullName] = aliasName;
System\Windows\Forms\ActiveX\AxHost.cs (1)
2371_objectDefinedCategoryNames[propcat] = category;
System\Windows\Forms\Application.ComponentManager.cs (1)
123OleComponents[dwComponentID] = entry;
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
266s_processedLibraries[typeGuid] = new CachedProperties(properties, i == 0 ? defaultProperty : -1, versions[0], versions[1]); 801s_builtEnums[enumName] = t;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.cs (3)
495controlError[control] = outputError; 709_items[control] = item; 723_windows[parent] = window;
System\Windows\Forms\Components\HelpProvider.cs (4)
176_helpStrings[ctl] = helpString; 192_keywords[ctl] = keyword; 210_navigators[ctl] = navigator; 222_showHelp[ctl] = value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
3722_designerSelections[_designerHost.GetHashCode()] = _tabs.IndexOf(_selectedTab!); 4235_viewTabProperties[tabName] = _rootEntry;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (1)
66_foundAttributes[attributeType] = value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
257categories[category] = gridEntries;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1180)
344rgbTable[KnownColors.ButtonPressedHighlight] = GetAlphaBlendedColor( 349rgbTable[KnownColors.ButtonCheckedHighlight] = GetAlphaBlendedColor( 354rgbTable[KnownColors.ButtonSelectedHighlight] = rgbTable[KnownColors.ButtonCheckedHighlight]; 358rgbTable[KnownColors.ButtonPressedHighlight] = SystemColors.Highlight; 359rgbTable[KnownColors.ButtonCheckedHighlight] = SystemColors.ControlLight; 360rgbTable[KnownColors.ButtonSelectedHighlight] = SystemColors.ControlLight; 408rgbTable[KnownColors.msocbvcrCBBkgd] = buttonFace; 409rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = SystemColors.ControlLight; 410rgbTable[KnownColors.msocbvcrCBDragHandle] = controlText; 411rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzEnd] = buttonFace; 412rgbTable[KnownColors.msocbvcrCBGradOptionsBegin] = buttonShadow; 413rgbTable[KnownColors.msocbvcrCBGradOptionsMiddle] = buttonShadow; 414rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedBegin] = buttonShadow; 415rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedMiddle] = buttonShadow; 416rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedEnd] = buttonShadow; 417rgbTable[KnownColors.msocbvcrCBMenuBdrOuter] = controlText; 418rgbTable[KnownColors.msocbvcrCBMenuBkgd] = window; 419rgbTable[KnownColors.msocbvcrCBSplitterLine] = buttonShadow; 423rgbTable[KnownColors.msocbvcrCBBkgd] = GetAlphaBlendedColorHighRes(null, window, buttonFace, 165); 424rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = GetAlphaBlendedColorHighRes(null, highlight, window, 50); 425rgbTable[KnownColors.msocbvcrCBDragHandle] = GetAlphaBlendedColorHighRes(null, buttonShadow, window, 75); 426rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzEnd] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 205); 427rgbTable[KnownColors.msocbvcrCBGradOptionsBegin] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 70); 428rgbTable[KnownColors.msocbvcrCBGradOptionsMiddle] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 90); 429rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedBegin] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 40); 430rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedMiddle] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 70); 431rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedEnd] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 90); 432rgbTable[KnownColors.msocbvcrCBMenuBdrOuter] = GetAlphaBlendedColorHighRes(null, controlText, buttonShadow, 20); 433rgbTable[KnownColors.msocbvcrCBMenuBkgd] = GetAlphaBlendedColorHighRes(null, buttonFace, window, 143); 434rgbTable[KnownColors.msocbvcrCBSplitterLine] = GetAlphaBlendedColorHighRes(null, buttonShadow, window, 70); 437rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = (lowResolution) ? SystemColors.ControlLight : highlight; 439rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = buttonFace; 440rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = buttonShadow; 441rgbTable[KnownColors.msocbvcrCBBdrOuterFloating] = buttonShadow; 442rgbTable[KnownColors.msocbvcrCBCtlBdrMouseDown] = highlight; 444rgbTable[KnownColors.msocbvcrCBCtlBdrMouseOver] = highlight; 445rgbTable[KnownColors.msocbvcrCBCtlBdrSelected] = highlight; 446rgbTable[KnownColors.msocbvcrCBCtlBdrSelectedMouseOver] = highlight; 447rgbTable[KnownColors.msocbvcrCBCtlBkgd] = empty; 448rgbTable[KnownColors.msocbvcrCBCtlBkgdLight] = window; 449rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseDown] = highlight; 450rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = window; 451rgbTable[KnownColors.msocbvcrCBCtlText] = controlText; 452rgbTable[KnownColors.msocbvcrCBCtlTextDisabled] = buttonShadow; 453rgbTable[KnownColors.msocbvcrCBCtlTextLight] = grayText; 454rgbTable[KnownColors.msocbvcrCBCtlTextMouseDown] = highlightText; 455rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = windowText; 456rgbTable[KnownColors.msocbvcrCBDockSeparatorLine] = empty; 458rgbTable[KnownColors.msocbvcrCBDragHandleShadow] = window; 459rgbTable[KnownColors.msocbvcrCBDropDownArrow] = empty; 461rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzBegin] = buttonFace; 463rgbTable[KnownColors.msocbvcrCBGradMouseOverEnd] = msocbvcrCBCtlBkgdMouseOver; 464rgbTable[KnownColors.msocbvcrCBGradMouseOverBegin] = msocbvcrCBCtlBkgdMouseOver; 465rgbTable[KnownColors.msocbvcrCBGradMouseOverMiddle] = msocbvcrCBCtlBkgdMouseOver; 467rgbTable[KnownColors.msocbvcrCBGradOptionsEnd] = buttonShadow; 468rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverBegin] = empty; 469rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverEnd] = empty; 470rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverMiddle] = empty; 471rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedBegin] = empty; 472rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedEnd] = empty; 473rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedMiddle] = empty; 474rgbTable[KnownColors.msocbvcrCBGradSelectedBegin] = empty; 475rgbTable[KnownColors.msocbvcrCBGradSelectedEnd] = empty; 476rgbTable[KnownColors.msocbvcrCBGradSelectedMiddle] = empty; 478rgbTable[KnownColors.msocbvcrCBGradVertBegin] = gradientBegin; 479rgbTable[KnownColors.msocbvcrCBGradVertMiddle] = gradientMiddle; 480rgbTable[KnownColors.msocbvcrCBGradVertEnd] = gradientEnd; 482rgbTable[KnownColors.msocbvcrCBGradMouseDownBegin] = msocbvcrCBCtlBkgdMouseDown; 483rgbTable[KnownColors.msocbvcrCBGradMouseDownMiddle] = msocbvcrCBCtlBkgdMouseDown; 484rgbTable[KnownColors.msocbvcrCBGradMouseDownEnd] = msocbvcrCBCtlBkgdMouseDown; 486rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdBegin] = gradientBegin; 487rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdEnd] = gradientMiddle; 489rgbTable[KnownColors.msocbvcrCBIconDisabledDark] = buttonShadow; 490rgbTable[KnownColors.msocbvcrCBIconDisabledLight] = buttonFace; 491rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = buttonShadow; 492rgbTable[KnownColors.msocbvcrCBLowColorIconDisabled] = empty; 493rgbTable[KnownColors.msocbvcrCBMainMenuBkgd] = buttonFace; 495rgbTable[KnownColors.msocbvcrCBMenuCtlText] = windowText; 496rgbTable[KnownColors.msocbvcrCBMenuCtlTextDisabled] = grayText; 497rgbTable[KnownColors.msocbvcrCBMenuIconBkgd] = empty; 498rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = buttonShadow; 499rgbTable[KnownColors.msocbvcrCBMenuShadow] = empty; 500rgbTable[KnownColors.msocbvcrCBMenuSplitArrow] = buttonShadow; 501rgbTable[KnownColors.msocbvcrCBOptionsButtonShadow] = empty; 503rgbTable[KnownColors.msocbvcrCBShadow] = rgbTable[KnownColors.msocbvcrCBBkgd]; 505rgbTable[KnownColors.msocbvcrCBSplitterLineLight] = buttonHighlight; 506rgbTable[KnownColors.msocbvcrCBTearOffHandle] = empty; 507rgbTable[KnownColors.msocbvcrCBTearOffHandleMouseOver] = empty; 508rgbTable[KnownColors.msocbvcrCBTitleBkgd] = buttonShadow; 509rgbTable[KnownColors.msocbvcrCBTitleText] = buttonHighlight; 510rgbTable[KnownColors.msocbvcrDisabledFocuslessHighlightedText] = grayText; 511rgbTable[KnownColors.msocbvcrDisabledHighlightedText] = grayText; 512rgbTable[KnownColors.msocbvcrDlgGroupBoxText] = controlText; 513rgbTable[KnownColors.msocbvcrDocTabBdr] = buttonShadow; 514rgbTable[KnownColors.msocbvcrDocTabBdrDark] = buttonFace; 515rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseDown] = highlight; 516rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = SystemColors.MenuText; 517rgbTable[KnownColors.msocbvcrDocTabBdrLight] = buttonFace; 518rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseDown] = highlight; 519rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = SystemColors.MenuText; 520rgbTable[KnownColors.msocbvcrDocTabBdrMouseDown] = highlight; 521rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = SystemColors.MenuText; 522rgbTable[KnownColors.msocbvcrDocTabBdrSelected] = buttonShadow; 523rgbTable[KnownColors.msocbvcrDocTabBkgd] = buttonFace; 524rgbTable[KnownColors.msocbvcrDocTabBkgdMouseDown] = highlight; 525rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = highlight; 526rgbTable[KnownColors.msocbvcrDocTabBkgdSelected] = window; 527rgbTable[KnownColors.msocbvcrDocTabText] = controlText; 528rgbTable[KnownColors.msocbvcrDocTabTextMouseDown] = highlightText; 529rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = highlight; 530rgbTable[KnownColors.msocbvcrDocTabTextSelected] = windowText; 531rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = buttonFace; 532rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = buttonShadow; 533rgbTable[KnownColors.msocbvcrDWActiveTabText] = buttonFace; 534rgbTable[KnownColors.msocbvcrDWActiveTabText] = controlText; 535rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = buttonShadow; 536rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = controlText; 537rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = buttonFace; 538rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = buttonShadow; 539rgbTable[KnownColors.msocbvcrDWInactiveTabText] = buttonHighlight; 540rgbTable[KnownColors.msocbvcrDWInactiveTabText] = controlText; 541rgbTable[KnownColors.msocbvcrDWTabBkgdMouseDown] = buttonFace; 542rgbTable[KnownColors.msocbvcrDWTabBkgdMouseOver] = buttonFace; 543rgbTable[KnownColors.msocbvcrDWTabTextMouseDown] = controlText; 544rgbTable[KnownColors.msocbvcrDWTabTextMouseOver] = controlText; 545rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = buttonFace; 546rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = SystemColors.InactiveCaption; 547rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = controlText; 548rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = SystemColors.InactiveCaptionText; 549rgbTable[KnownColors.msocbvcrGDHeaderBdr] = highlight; 550rgbTable[KnownColors.msocbvcrGDHeaderBkgd] = window; 551rgbTable[KnownColors.msocbvcrGDHeaderCellBdr] = buttonShadow; 552rgbTable[KnownColors.msocbvcrGDHeaderCellBkgd] = buttonFace; 553rgbTable[KnownColors.msocbvcrGDHeaderCellBkgdSelected] = empty; 554rgbTable[KnownColors.msocbvcrGDHeaderSeeThroughSelection] = highlight; 555rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = buttonFace; 556rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = window; 557rgbTable[KnownColors.msocbvcrGSPGroupContentDarkBkgd] = window; 558rgbTable[KnownColors.msocbvcrGSPGroupContentLightBkgd] = window; 559rgbTable[KnownColors.msocbvcrGSPGroupContentText] = windowText; 560rgbTable[KnownColors.msocbvcrGSPGroupContentTextDisabled] = grayText; 561rgbTable[KnownColors.msocbvcrGSPGroupHeaderDarkBkgd] = window; 562rgbTable[KnownColors.msocbvcrGSPGroupHeaderLightBkgd] = window; 563rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = controlText; 564rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = windowText; 565rgbTable[KnownColors.msocbvcrGSPGroupline] = buttonShadow; 566rgbTable[KnownColors.msocbvcrGSPGroupline] = window; 567rgbTable[KnownColors.msocbvcrGSPHyperlink] = empty; 568rgbTable[KnownColors.msocbvcrGSPLightBkgd] = window; 569rgbTable[KnownColors.msocbvcrHyperlink] = empty; 570rgbTable[KnownColors.msocbvcrHyperlinkFollowed] = empty; 571rgbTable[KnownColors.msocbvcrJotNavUIBdr] = buttonShadow; 572rgbTable[KnownColors.msocbvcrJotNavUIBdr] = windowText; 573rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = buttonFace; 574rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = window; 575rgbTable[KnownColors.msocbvcrJotNavUIGradEnd] = window; 576rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = buttonFace; 577rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = window; 578rgbTable[KnownColors.msocbvcrJotNavUIText] = windowText; 579rgbTable[KnownColors.msocbvcrListHeaderArrow] = controlText; 580rgbTable[KnownColors.msocbvcrNetLookBkgnd] = empty; 581rgbTable[KnownColors.msocbvcrOABBkgd] = buttonShadow; 582rgbTable[KnownColors.msocbvcrOBBkgdBdr] = buttonShadow; 583rgbTable[KnownColors.msocbvcrOBBkgdBdrContrast] = window; 584rgbTable[KnownColors.msocbvcrOGMDIParentWorkspaceBkgd] = buttonShadow; 585rgbTable[KnownColors.msocbvcrOGRulerActiveBkgd] = window; 586rgbTable[KnownColors.msocbvcrOGRulerBdr] = controlText; 587rgbTable[KnownColors.msocbvcrOGRulerBkgd] = buttonFace; 588rgbTable[KnownColors.msocbvcrOGRulerInactiveBkgd] = buttonShadow; 589rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdr] = buttonShadow; 590rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdrHighlight] = buttonHighlight; 591rgbTable[KnownColors.msocbvcrOGRulerTabStopTicks] = buttonShadow; 592rgbTable[KnownColors.msocbvcrOGRulerText] = windowText; 593rgbTable[KnownColors.msocbvcrOGTaskPaneGroupBoxHeaderBkgd] = buttonFace; 594rgbTable[KnownColors.msocbvcrOGWorkspaceBkgd] = buttonShadow; 595rgbTable[KnownColors.msocbvcrOLKFlagNone] = buttonHighlight; 596rgbTable[KnownColors.msocbvcrOLKFolderbarDark] = buttonShadow; 597rgbTable[KnownColors.msocbvcrOLKFolderbarLight] = buttonShadow; 598rgbTable[KnownColors.msocbvcrOLKFolderbarText] = window; 599rgbTable[KnownColors.msocbvcrOLKGridlines] = buttonShadow; 600rgbTable[KnownColors.msocbvcrOLKGroupLine] = buttonShadow; 601rgbTable[KnownColors.msocbvcrOLKGroupNested] = buttonFace; 602rgbTable[KnownColors.msocbvcrOLKGroupShaded] = buttonFace; 603rgbTable[KnownColors.msocbvcrOLKGroupText] = buttonShadow; 604rgbTable[KnownColors.msocbvcrOLKIconBar] = buttonFace; 605rgbTable[KnownColors.msocbvcrOLKInfoBarBkgd] = buttonFace; 606rgbTable[KnownColors.msocbvcrOLKInfoBarText] = controlText; 607rgbTable[KnownColors.msocbvcrOLKPreviewPaneLabelText] = windowText; 608rgbTable[KnownColors.msocbvcrOLKTodayIndicatorDark] = highlight; 609rgbTable[KnownColors.msocbvcrOLKTodayIndicatorLight] = buttonFace; 610rgbTable[KnownColors.msocbvcrOLKWBActionDividerLine] = buttonShadow; 611rgbTable[KnownColors.msocbvcrOLKWBButtonDark] = buttonFace; 612rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = buttonFace; 613rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = buttonHighlight; 614rgbTable[KnownColors.msocbvcrOLKWBDarkOutline] = buttonShadow; 615rgbTable[KnownColors.msocbvcrOLKWBFoldersBackground] = window; 616rgbTable[KnownColors.msocbvcrOLKWBHoverButtonDark] = empty; 617rgbTable[KnownColors.msocbvcrOLKWBHoverButtonLight] = empty; 618rgbTable[KnownColors.msocbvcrOLKWBLabelText] = windowText; 619rgbTable[KnownColors.msocbvcrOLKWBPressedButtonDark] = empty; 620rgbTable[KnownColors.msocbvcrOLKWBPressedButtonLight] = empty; 621rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonDark] = empty; 622rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonLight] = empty; 623rgbTable[KnownColors.msocbvcrOLKWBSplitterDark] = buttonShadow; 624rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = buttonFace; 625rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = buttonShadow; 626rgbTable[KnownColors.msocbvcrPlacesBarBkgd] = buttonFace; 627rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabAreaBkgd] = buttonFace; 628rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabBdr] = buttonShadow; 629rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabInactiveBkgd] = buttonFace; 630rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabText] = windowText; 631rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelected] = highlight; 632rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelectedMouseOver] = highlight; 633rgbTable[KnownColors.msocbvcrPPSlideBdrInactiveSelected] = grayText; 634rgbTable[KnownColors.msocbvcrPPSlideBdrMouseOver] = highlight; 635rgbTable[KnownColors.msocbvcrPubPrintDocScratchPageBkgd] = buttonFace; 636rgbTable[KnownColors.msocbvcrPubWebDocScratchPageBkgd] = buttonFace; 637rgbTable[KnownColors.msocbvcrSBBdr] = buttonShadow; 638rgbTable[KnownColors.msocbvcrScrollbarBkgd] = buttonShadow; 639rgbTable[KnownColors.msocbvcrToastGradBegin] = buttonFace; 640rgbTable[KnownColors.msocbvcrToastGradEnd] = buttonFace; 641rgbTable[KnownColors.msocbvcrWPBdrInnerDocked] = empty; 642rgbTable[KnownColors.msocbvcrWPBdrOuterDocked] = buttonFace; 643rgbTable[KnownColors.msocbvcrWPBdrOuterFloating] = buttonShadow; 644rgbTable[KnownColors.msocbvcrWPBkgd] = window; 645rgbTable[KnownColors.msocbvcrWPCtlBdr] = buttonShadow; 646rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = buttonShadow; 647rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = controlText; 648rgbTable[KnownColors.msocbvcrWPCtlBdrDisabled] = buttonShadow; 649rgbTable[KnownColors.msocbvcrWPCtlBkgd] = buttonFace; 650rgbTable[KnownColors.msocbvcrWPCtlBkgdDisabled] = buttonFace; 651rgbTable[KnownColors.msocbvcrWPCtlText] = controlText; 652rgbTable[KnownColors.msocbvcrWPCtlTextDisabled] = buttonShadow; 653rgbTable[KnownColors.msocbvcrWPCtlTextMouseDown] = highlightText; 654rgbTable[KnownColors.msocbvcrWPGroupline] = buttonShadow; 655rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] = SystemColors.Info; 656rgbTable[KnownColors.msocbvcrWPInfoTipText] = SystemColors.InfoText; 657rgbTable[KnownColors.msocbvcrWPNavBarBkgnd] = buttonFace; 658rgbTable[KnownColors.msocbvcrWPText] = controlText; 659rgbTable[KnownColors.msocbvcrWPText] = windowText; 660rgbTable[KnownColors.msocbvcrWPTextDisabled] = grayText; 661rgbTable[KnownColors.msocbvcrWPTitleBkgdActive] = highlight; 662rgbTable[KnownColors.msocbvcrWPTitleBkgdInactive] = buttonFace; 663rgbTable[KnownColors.msocbvcrWPTitleTextActive] = highlightText; 664rgbTable[KnownColors.msocbvcrWPTitleTextInactive] = controlText; 665rgbTable[KnownColors.msocbvcrXLFormulaBarBkgd] = buttonFace; 670rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = Color.FromArgb(81, 94, 51); 671rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = Color.FromArgb(81, 94, 51); 672rgbTable[KnownColors.msocbvcrCBBdrOuterFloating] = Color.FromArgb(116, 134, 94); 673rgbTable[KnownColors.msocbvcrCBBkgd] = Color.FromArgb(209, 222, 173); 674rgbTable[KnownColors.msocbvcrCBCtlBdrMouseDown] = Color.FromArgb(63, 93, 56); 675rgbTable[KnownColors.msocbvcrCBCtlBdrMouseOver] = Color.FromArgb(63, 93, 56); 676rgbTable[KnownColors.msocbvcrCBCtlBdrSelected] = Color.FromArgb(63, 93, 56); 677rgbTable[KnownColors.msocbvcrCBCtlBdrSelectedMouseOver] = Color.FromArgb(63, 93, 56); 678rgbTable[KnownColors.msocbvcrCBCtlBkgd] = Color.FromArgb(209, 222, 173); 679rgbTable[KnownColors.msocbvcrCBCtlBkgdLight] = Color.FromArgb(255, 255, 255); 680rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseDown] = Color.FromArgb(254, 128, 62); 681rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = Color.FromArgb(255, 238, 194); 682rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = Color.FromArgb(255, 238, 194); 683rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = Color.FromArgb(255, 192, 111); 684rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = Color.FromArgb(254, 128, 62); 685rgbTable[KnownColors.msocbvcrCBCtlText] = Color.FromArgb(0, 0, 0); 686rgbTable[KnownColors.msocbvcrCBCtlTextDisabled] = Color.FromArgb(141, 141, 141); 687rgbTable[KnownColors.msocbvcrCBCtlTextLight] = Color.FromArgb(128, 128, 128); 688rgbTable[KnownColors.msocbvcrCBCtlTextMouseDown] = Color.FromArgb(0, 0, 0); 689rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 690rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 691rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 692rgbTable[KnownColors.msocbvcrCBDockSeparatorLine] = Color.FromArgb(96, 119, 66); 693rgbTable[KnownColors.msocbvcrCBDragHandle] = Color.FromArgb(81, 94, 51); 694rgbTable[KnownColors.msocbvcrCBDragHandleShadow] = Color.FromArgb(255, 255, 255); 695rgbTable[KnownColors.msocbvcrCBDropDownArrow] = Color.FromArgb(236, 233, 216); 696rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzBegin] = Color.FromArgb(217, 217, 167); 697rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzEnd] = Color.FromArgb(242, 241, 228); 698rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedBegin] = Color.FromArgb(230, 230, 209); 699rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedEnd] = Color.FromArgb(160, 177, 116); 700rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedMiddle] = Color.FromArgb(186, 201, 143); 701rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdBegin] = Color.FromArgb(237, 240, 214); 702rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdEnd] = Color.FromArgb(181, 196, 143); 703rgbTable[KnownColors.msocbvcrCBGradMouseDownBegin] = Color.FromArgb(254, 128, 62); 704rgbTable[KnownColors.msocbvcrCBGradMouseDownEnd] = Color.FromArgb(255, 223, 154); 705rgbTable[KnownColors.msocbvcrCBGradMouseDownMiddle] = Color.FromArgb(255, 177, 109); 706rgbTable[KnownColors.msocbvcrCBGradMouseOverBegin] = Color.FromArgb(255, 255, 222); 707rgbTable[KnownColors.msocbvcrCBGradMouseOverEnd] = Color.FromArgb(255, 203, 136); 708rgbTable[KnownColors.msocbvcrCBGradMouseOverMiddle] = Color.FromArgb(255, 225, 172); 709rgbTable[KnownColors.msocbvcrCBGradOptionsBegin] = Color.FromArgb(186, 204, 150); 710rgbTable[KnownColors.msocbvcrCBGradOptionsEnd] = Color.FromArgb(96, 119, 107); 711rgbTable[KnownColors.msocbvcrCBGradOptionsMiddle] = Color.FromArgb(141, 160, 107); 712rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverBegin] = Color.FromArgb(255, 255, 222); 713rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverEnd] = Color.FromArgb(255, 193, 118); 714rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverMiddle] = Color.FromArgb(255, 225, 172); 715rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedBegin] = Color.FromArgb(254, 140, 73); 716rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedEnd] = Color.FromArgb(255, 221, 152); 717rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedMiddle] = Color.FromArgb(255, 184, 116); 718rgbTable[KnownColors.msocbvcrCBGradSelectedBegin] = Color.FromArgb(255, 223, 154); 719rgbTable[KnownColors.msocbvcrCBGradSelectedEnd] = Color.FromArgb(255, 166, 76); 720rgbTable[KnownColors.msocbvcrCBGradSelectedMiddle] = Color.FromArgb(255, 195, 116); 721rgbTable[KnownColors.msocbvcrCBGradVertBegin] = Color.FromArgb(255, 255, 237); 722rgbTable[KnownColors.msocbvcrCBGradVertEnd] = Color.FromArgb(181, 196, 143); 723rgbTable[KnownColors.msocbvcrCBGradVertMiddle] = Color.FromArgb(206, 220, 167); 724rgbTable[KnownColors.msocbvcrCBIconDisabledDark] = Color.FromArgb(131, 144, 113); 725rgbTable[KnownColors.msocbvcrCBIconDisabledLight] = Color.FromArgb(243, 244, 240); 726rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(218, 227, 187); 727rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(218, 227, 187); 728rgbTable[KnownColors.msocbvcrCBLowColorIconDisabled] = Color.FromArgb(159, 174, 122); 729rgbTable[KnownColors.msocbvcrCBMainMenuBkgd] = Color.FromArgb(236, 233, 216); 730rgbTable[KnownColors.msocbvcrCBMenuBdrOuter] = Color.FromArgb(117, 141, 94); 731rgbTable[KnownColors.msocbvcrCBMenuBkgd] = Color.FromArgb(244, 244, 238); 732rgbTable[KnownColors.msocbvcrCBMenuCtlText] = Color.FromArgb(0, 0, 0); 733rgbTable[KnownColors.msocbvcrCBMenuCtlTextDisabled] = Color.FromArgb(141, 141, 141); 734rgbTable[KnownColors.msocbvcrCBMenuIconBkgd] = Color.FromArgb(216, 227, 182); 735rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(173, 181, 157); 736rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(173, 181, 157); 737rgbTable[KnownColors.msocbvcrCBMenuShadow] = Color.FromArgb(134, 148, 108); 738rgbTable[KnownColors.msocbvcrCBMenuSplitArrow] = Color.FromArgb(0, 0, 0); 739rgbTable[KnownColors.msocbvcrCBOptionsButtonShadow] = Color.FromArgb(255, 255, 255); 740rgbTable[KnownColors.msocbvcrCBShadow] = Color.FromArgb(96, 128, 88); 741rgbTable[KnownColors.msocbvcrCBSplitterLine] = Color.FromArgb(96, 128, 88); 742rgbTable[KnownColors.msocbvcrCBSplitterLineLight] = Color.FromArgb(244, 247, 222); 743rgbTable[KnownColors.msocbvcrCBTearOffHandle] = Color.FromArgb(197, 212, 159); 744rgbTable[KnownColors.msocbvcrCBTearOffHandleMouseOver] = Color.FromArgb(255, 238, 194); 745rgbTable[KnownColors.msocbvcrCBTitleBkgd] = Color.FromArgb(116, 134, 94); 746rgbTable[KnownColors.msocbvcrCBTitleText] = Color.FromArgb(255, 255, 255); 747rgbTable[KnownColors.msocbvcrDisabledFocuslessHighlightedText] = Color.FromArgb(172, 168, 153); 748rgbTable[KnownColors.msocbvcrDisabledHighlightedText] = Color.FromArgb(220, 224, 208); 749rgbTable[KnownColors.msocbvcrDlgGroupBoxText] = Color.FromArgb(153, 84, 10); 750rgbTable[KnownColors.msocbvcrDocTabBdr] = Color.FromArgb(96, 119, 107); 751rgbTable[KnownColors.msocbvcrDocTabBdrDark] = Color.FromArgb(176, 194, 140); 752rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseDown] = Color.FromArgb(63, 93, 56); 753rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(63, 93, 56); 754rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(63, 93, 56); 755rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(63, 93, 56); 756rgbTable[KnownColors.msocbvcrDocTabBdrLight] = Color.FromArgb(255, 255, 255); 757rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseDown] = Color.FromArgb(63, 93, 56); 758rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(63, 93, 56); 759rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(63, 93, 56); 760rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(63, 93, 56); 761rgbTable[KnownColors.msocbvcrDocTabBdrMouseDown] = Color.FromArgb(63, 93, 56); 762rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(63, 93, 56); 763rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(63, 93, 56); 764rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(63, 93, 56); 765rgbTable[KnownColors.msocbvcrDocTabBdrSelected] = Color.FromArgb(96, 128, 88); 766rgbTable[KnownColors.msocbvcrDocTabBkgd] = Color.FromArgb(218, 227, 187); 767rgbTable[KnownColors.msocbvcrDocTabBkgdMouseDown] = Color.FromArgb(254, 128, 62); 768rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 769rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 770rgbTable[KnownColors.msocbvcrDocTabBkgdSelected] = Color.FromArgb(255, 255, 255); 771rgbTable[KnownColors.msocbvcrDocTabText] = Color.FromArgb(0, 0, 0); 772rgbTable[KnownColors.msocbvcrDocTabTextMouseDown] = Color.FromArgb(0, 0, 0); 773rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 774rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 775rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 776rgbTable[KnownColors.msocbvcrDocTabTextSelected] = Color.FromArgb(0, 0, 0); 777rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(218, 227, 187); 778rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(218, 227, 187); 779rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(0, 0, 0); 780rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(0, 0, 0); 781rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(128, 128, 128); 782rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(128, 128, 128); 783rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(183, 198, 145); 784rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(183, 198, 145); 785rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 255, 255); 786rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 255, 255); 787rgbTable[KnownColors.msocbvcrDWTabBkgdMouseDown] = Color.FromArgb(254, 128, 62); 788rgbTable[KnownColors.msocbvcrDWTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 789rgbTable[KnownColors.msocbvcrDWTabTextMouseDown] = Color.FromArgb(0, 0, 0); 790rgbTable[KnownColors.msocbvcrDWTabTextMouseOver] = Color.FromArgb(0, 0, 0); 791rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(236, 233, 216); 792rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(236, 233, 216); 793rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(0, 0, 0); 794rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(0, 0, 0); 795rgbTable[KnownColors.msocbvcrGDHeaderBdr] = Color.FromArgb(191, 191, 223); 796rgbTable[KnownColors.msocbvcrGDHeaderBkgd] = Color.FromArgb(239, 235, 222); 797rgbTable[KnownColors.msocbvcrGDHeaderCellBdr] = Color.FromArgb(126, 125, 104); 798rgbTable[KnownColors.msocbvcrGDHeaderCellBkgd] = Color.FromArgb(239, 235, 222); 799rgbTable[KnownColors.msocbvcrGDHeaderCellBkgdSelected] = Color.FromArgb(255, 192, 111); 800rgbTable[KnownColors.msocbvcrGDHeaderSeeThroughSelection] = Color.FromArgb(128, 128, 128); 801rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(159, 171, 128); 802rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(159, 171, 128); 803rgbTable[KnownColors.msocbvcrGSPGroupContentDarkBkgd] = Color.FromArgb(217, 227, 187); 804rgbTable[KnownColors.msocbvcrGSPGroupContentLightBkgd] = Color.FromArgb(230, 234, 208); 805rgbTable[KnownColors.msocbvcrGSPGroupContentText] = Color.FromArgb(0, 0, 0); 806rgbTable[KnownColors.msocbvcrGSPGroupContentTextDisabled] = Color.FromArgb(150, 145, 133); 807rgbTable[KnownColors.msocbvcrGSPGroupHeaderDarkBkgd] = Color.FromArgb(161, 176, 128); 808rgbTable[KnownColors.msocbvcrGSPGroupHeaderLightBkgd] = Color.FromArgb(210, 223, 174); 809rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(90, 107, 70); 810rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(90, 107, 70); 811rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 255, 255); 812rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 255, 255); 813rgbTable[KnownColors.msocbvcrGSPHyperlink] = Color.FromArgb(0, 61, 178); 814rgbTable[KnownColors.msocbvcrGSPLightBkgd] = Color.FromArgb(243, 242, 231); 815rgbTable[KnownColors.msocbvcrHyperlink] = Color.FromArgb(0, 61, 178); 816rgbTable[KnownColors.msocbvcrHyperlinkFollowed] = Color.FromArgb(170, 0, 170); 817rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(96, 128, 88); 818rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(96, 128, 88); 819rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(217, 217, 167); 820rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(217, 217, 167); 821rgbTable[KnownColors.msocbvcrJotNavUIGradEnd] = Color.FromArgb(255, 255, 255); 822rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(242, 241, 228); 823rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(242, 241, 228); 824rgbTable[KnownColors.msocbvcrJotNavUIText] = Color.FromArgb(0, 0, 0); 825rgbTable[KnownColors.msocbvcrListHeaderArrow] = Color.FromArgb(172, 168, 153); 826rgbTable[KnownColors.msocbvcrNetLookBkgnd] = Color.FromArgb(255, 255, 237); 827rgbTable[KnownColors.msocbvcrOABBkgd] = Color.FromArgb(255, 255, 255); 828rgbTable[KnownColors.msocbvcrOBBkgdBdr] = Color.FromArgb(211, 211, 211); 829rgbTable[KnownColors.msocbvcrOBBkgdBdrContrast] = Color.FromArgb(128, 128, 128); 830rgbTable[KnownColors.msocbvcrOGMDIParentWorkspaceBkgd] = Color.FromArgb(151, 160, 123); 831rgbTable[KnownColors.msocbvcrOGRulerActiveBkgd] = Color.FromArgb(255, 255, 255); 832rgbTable[KnownColors.msocbvcrOGRulerBdr] = Color.FromArgb(0, 0, 0); 833rgbTable[KnownColors.msocbvcrOGRulerBkgd] = Color.FromArgb(226, 231, 191); 834rgbTable[KnownColors.msocbvcrOGRulerInactiveBkgd] = Color.FromArgb(171, 192, 138); 835rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdr] = Color.FromArgb(117, 141, 94); 836rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdrHighlight] = Color.FromArgb(255, 255, 255); 837rgbTable[KnownColors.msocbvcrOGRulerTabStopTicks] = Color.FromArgb(128, 128, 128); 838rgbTable[KnownColors.msocbvcrOGRulerText] = Color.FromArgb(0, 0, 0); 839rgbTable[KnownColors.msocbvcrOGTaskPaneGroupBoxHeaderBkgd] = Color.FromArgb(218, 227, 187); 840rgbTable[KnownColors.msocbvcrOGWorkspaceBkgd] = Color.FromArgb(151, 160, 123); 841rgbTable[KnownColors.msocbvcrOLKFlagNone] = Color.FromArgb(242, 240, 228); 842rgbTable[KnownColors.msocbvcrOLKFolderbarDark] = Color.FromArgb(96, 119, 66); 843rgbTable[KnownColors.msocbvcrOLKFolderbarLight] = Color.FromArgb(175, 192, 130); 844rgbTable[KnownColors.msocbvcrOLKFolderbarText] = Color.FromArgb(255, 255, 255); 845rgbTable[KnownColors.msocbvcrOLKGridlines] = Color.FromArgb(234, 233, 225); 846rgbTable[KnownColors.msocbvcrOLKGroupLine] = Color.FromArgb(181, 196, 143); 847rgbTable[KnownColors.msocbvcrOLKGroupNested] = Color.FromArgb(253, 238, 201); 848rgbTable[KnownColors.msocbvcrOLKGroupShaded] = Color.FromArgb(175, 186, 145); 849rgbTable[KnownColors.msocbvcrOLKGroupText] = Color.FromArgb(115, 137, 84); 850rgbTable[KnownColors.msocbvcrOLKIconBar] = Color.FromArgb(253, 247, 233); 851rgbTable[KnownColors.msocbvcrOLKInfoBarBkgd] = Color.FromArgb(151, 160, 123); 852rgbTable[KnownColors.msocbvcrOLKInfoBarText] = Color.FromArgb(255, 255, 255); 853rgbTable[KnownColors.msocbvcrOLKPreviewPaneLabelText] = Color.FromArgb(151, 160, 123); 854rgbTable[KnownColors.msocbvcrOLKTodayIndicatorDark] = Color.FromArgb(187, 85, 3); 855rgbTable[KnownColors.msocbvcrOLKTodayIndicatorLight] = Color.FromArgb(251, 200, 79); 856rgbTable[KnownColors.msocbvcrOLKWBActionDividerLine] = Color.FromArgb(200, 212, 172); 857rgbTable[KnownColors.msocbvcrOLKWBButtonDark] = Color.FromArgb(176, 191, 138); 858rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(234, 240, 207); 859rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(234, 240, 207); 860rgbTable[KnownColors.msocbvcrOLKWBDarkOutline] = Color.FromArgb(96, 128, 88); 861rgbTable[KnownColors.msocbvcrOLKWBFoldersBackground] = Color.FromArgb(255, 255, 255); 862rgbTable[KnownColors.msocbvcrOLKWBHoverButtonDark] = Color.FromArgb(247, 190, 87); 863rgbTable[KnownColors.msocbvcrOLKWBHoverButtonLight] = Color.FromArgb(255, 255, 220); 864rgbTable[KnownColors.msocbvcrOLKWBLabelText] = Color.FromArgb(50, 69, 105); 865rgbTable[KnownColors.msocbvcrOLKWBPressedButtonDark] = Color.FromArgb(248, 222, 128); 866rgbTable[KnownColors.msocbvcrOLKWBPressedButtonLight] = Color.FromArgb(232, 127, 8); 867rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonDark] = Color.FromArgb(238, 147, 17); 868rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonLight] = Color.FromArgb(251, 230, 148); 869rgbTable[KnownColors.msocbvcrOLKWBSplitterDark] = Color.FromArgb(64, 81, 59); 870rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(120, 142, 111); 871rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(120, 142, 111); 872rgbTable[KnownColors.msocbvcrPlacesBarBkgd] = Color.FromArgb(236, 233, 216); 873rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabAreaBkgd] = Color.FromArgb(242, 240, 228); 874rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabBdr] = Color.FromArgb(96, 128, 88); 875rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabInactiveBkgd] = Color.FromArgb(206, 220, 167); 876rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabText] = Color.FromArgb(0, 0, 0); 877rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelected] = Color.FromArgb(107, 129, 107); 878rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelectedMouseOver] = Color.FromArgb(107, 129, 107); 879rgbTable[KnownColors.msocbvcrPPSlideBdrInactiveSelected] = Color.FromArgb(128, 128, 128); 880rgbTable[KnownColors.msocbvcrPPSlideBdrMouseOver] = Color.FromArgb(107, 129, 107); 881rgbTable[KnownColors.msocbvcrPubPrintDocScratchPageBkgd] = Color.FromArgb(151, 160, 123); 882rgbTable[KnownColors.msocbvcrPubWebDocScratchPageBkgd] = Color.FromArgb(193, 198, 176); 883rgbTable[KnownColors.msocbvcrSBBdr] = Color.FromArgb(211, 211, 211); 884rgbTable[KnownColors.msocbvcrScrollbarBkgd] = Color.FromArgb(249, 249, 247); 885rgbTable[KnownColors.msocbvcrToastGradBegin] = Color.FromArgb(237, 242, 212); 886rgbTable[KnownColors.msocbvcrToastGradEnd] = Color.FromArgb(191, 206, 153); 887rgbTable[KnownColors.msocbvcrWPBdrInnerDocked] = Color.FromArgb(255, 255, 255); 888rgbTable[KnownColors.msocbvcrWPBdrOuterDocked] = Color.FromArgb(242, 241, 228); 889rgbTable[KnownColors.msocbvcrWPBdrOuterFloating] = Color.FromArgb(116, 134, 94); 890rgbTable[KnownColors.msocbvcrWPBkgd] = Color.FromArgb(243, 242, 231); 891rgbTable[KnownColors.msocbvcrWPCtlBdr] = Color.FromArgb(164, 185, 127); 892rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(0, 0, 0); 893rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(0, 0, 0); 894rgbTable[KnownColors.msocbvcrWPCtlBdrDisabled] = Color.FromArgb(128, 128, 128); 895rgbTable[KnownColors.msocbvcrWPCtlBkgd] = Color.FromArgb(197, 212, 159); 896rgbTable[KnownColors.msocbvcrWPCtlBkgdDisabled] = Color.FromArgb(222, 222, 222); 897rgbTable[KnownColors.msocbvcrWPCtlText] = Color.FromArgb(0, 0, 0); 898rgbTable[KnownColors.msocbvcrWPCtlTextDisabled] = Color.FromArgb(172, 168, 153); 899rgbTable[KnownColors.msocbvcrWPCtlTextMouseDown] = Color.FromArgb(0, 0, 0); 900rgbTable[KnownColors.msocbvcrWPGroupline] = Color.FromArgb(188, 187, 177); 901rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] = Color.FromArgb(255, 255, 204); 902rgbTable[KnownColors.msocbvcrWPInfoTipText] = Color.FromArgb(0, 0, 0); 903rgbTable[KnownColors.msocbvcrWPNavBarBkgnd] = Color.FromArgb(116, 134, 94); 904rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(0, 0, 0); 905rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(0, 0, 0); 906rgbTable[KnownColors.msocbvcrWPTextDisabled] = Color.FromArgb(172, 168, 153); 907rgbTable[KnownColors.msocbvcrWPTitleBkgdActive] = Color.FromArgb(216, 227, 182); 908rgbTable[KnownColors.msocbvcrWPTitleBkgdInactive] = Color.FromArgb(188, 205, 131); 909rgbTable[KnownColors.msocbvcrWPTitleTextActive] = Color.FromArgb(0, 0, 0); 910rgbTable[KnownColors.msocbvcrWPTitleTextInactive] = Color.FromArgb(0, 0, 0); 911rgbTable[KnownColors.msocbvcrXLFormulaBarBkgd] = Color.FromArgb(217, 217, 167); 916rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = Color.FromArgb(173, 174, 193); 917rgbTable[KnownColors.msocbvcrCBBdrOuterFloating] = Color.FromArgb(122, 121, 153); 918rgbTable[KnownColors.msocbvcrCBBkgd] = Color.FromArgb(219, 218, 228); 919rgbTable[KnownColors.msocbvcrCBCtlBdrMouseDown] = Color.FromArgb(75, 75, 111); 920rgbTable[KnownColors.msocbvcrCBCtlBdrMouseOver] = Color.FromArgb(75, 75, 111); 921rgbTable[KnownColors.msocbvcrCBCtlBdrSelected] = Color.FromArgb(75, 75, 111); 922rgbTable[KnownColors.msocbvcrCBCtlBdrSelectedMouseOver] = Color.FromArgb(75, 75, 111); 923rgbTable[KnownColors.msocbvcrCBCtlBkgd] = Color.FromArgb(219, 218, 228); 924rgbTable[KnownColors.msocbvcrCBCtlBkgdLight] = Color.FromArgb(255, 255, 255); 925rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseDown] = Color.FromArgb(254, 128, 62); 926rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = Color.FromArgb(255, 238, 194); 927rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = Color.FromArgb(255, 192, 111); 928rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = Color.FromArgb(254, 128, 62); 929rgbTable[KnownColors.msocbvcrCBCtlText] = Color.FromArgb(0, 0, 0); 930rgbTable[KnownColors.msocbvcrCBCtlTextDisabled] = Color.FromArgb(141, 141, 141); 931rgbTable[KnownColors.msocbvcrCBCtlTextLight] = Color.FromArgb(128, 128, 128); 932rgbTable[KnownColors.msocbvcrCBCtlTextMouseDown] = Color.FromArgb(0, 0, 0); 933rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 934rgbTable[KnownColors.msocbvcrCBDockSeparatorLine] = Color.FromArgb(110, 109, 143); 935rgbTable[KnownColors.msocbvcrCBDragHandle] = Color.FromArgb(84, 84, 117); 936rgbTable[KnownColors.msocbvcrCBDragHandleShadow] = Color.FromArgb(255, 255, 255); 937rgbTable[KnownColors.msocbvcrCBDropDownArrow] = Color.FromArgb(224, 223, 227); 938rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzBegin] = Color.FromArgb(215, 215, 229); 939rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzEnd] = Color.FromArgb(243, 243, 247); 940rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedBegin] = Color.FromArgb(215, 215, 226); 941rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedEnd] = Color.FromArgb(118, 116, 151); 942rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedMiddle] = Color.FromArgb(184, 185, 202); 943rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdBegin] = Color.FromArgb(232, 233, 242); 944rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdEnd] = Color.FromArgb(172, 170, 194); 945rgbTable[KnownColors.msocbvcrCBGradMouseDownBegin] = Color.FromArgb(254, 128, 62); 946rgbTable[KnownColors.msocbvcrCBGradMouseDownEnd] = Color.FromArgb(255, 223, 154); 947rgbTable[KnownColors.msocbvcrCBGradMouseDownMiddle] = Color.FromArgb(255, 177, 109); 948rgbTable[KnownColors.msocbvcrCBGradMouseOverBegin] = Color.FromArgb(255, 255, 222); 949rgbTable[KnownColors.msocbvcrCBGradMouseOverEnd] = Color.FromArgb(255, 203, 136); 950rgbTable[KnownColors.msocbvcrCBGradMouseOverMiddle] = Color.FromArgb(255, 225, 172); 951rgbTable[KnownColors.msocbvcrCBGradOptionsBegin] = Color.FromArgb(186, 185, 206); 952rgbTable[KnownColors.msocbvcrCBGradOptionsEnd] = Color.FromArgb(118, 116, 146); 953rgbTable[KnownColors.msocbvcrCBGradOptionsMiddle] = Color.FromArgb(156, 155, 180); 954rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverBegin] = Color.FromArgb(255, 255, 222); 955rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverEnd] = Color.FromArgb(255, 193, 118); 956rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverMiddle] = Color.FromArgb(255, 225, 172); 957rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedBegin] = Color.FromArgb(254, 140, 73); 958rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedEnd] = Color.FromArgb(255, 221, 152); 959rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedMiddle] = Color.FromArgb(255, 184, 116); 960rgbTable[KnownColors.msocbvcrCBGradSelectedBegin] = Color.FromArgb(255, 223, 154); 961rgbTable[KnownColors.msocbvcrCBGradSelectedEnd] = Color.FromArgb(255, 166, 76); 962rgbTable[KnownColors.msocbvcrCBGradSelectedMiddle] = Color.FromArgb(255, 195, 116); 963rgbTable[KnownColors.msocbvcrCBGradVertBegin] = Color.FromArgb(249, 249, 255); 964rgbTable[KnownColors.msocbvcrCBGradVertEnd] = Color.FromArgb(147, 145, 176); 965rgbTable[KnownColors.msocbvcrCBGradVertMiddle] = Color.FromArgb(225, 226, 236); 966rgbTable[KnownColors.msocbvcrCBIconDisabledDark] = Color.FromArgb(122, 121, 153); 967rgbTable[KnownColors.msocbvcrCBIconDisabledLight] = Color.FromArgb(247, 245, 249); 968rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(212, 212, 226); 969rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(212, 212, 226); 970rgbTable[KnownColors.msocbvcrCBLowColorIconDisabled] = Color.FromArgb(168, 167, 190); 971rgbTable[KnownColors.msocbvcrCBMainMenuBkgd] = Color.FromArgb(198, 200, 215); 972rgbTable[KnownColors.msocbvcrCBMenuBdrOuter] = Color.FromArgb(124, 124, 148); 973rgbTable[KnownColors.msocbvcrCBMenuBkgd] = Color.FromArgb(253, 250, 255); 974rgbTable[KnownColors.msocbvcrCBMenuCtlText] = Color.FromArgb(0, 0, 0); 975rgbTable[KnownColors.msocbvcrCBMenuCtlTextDisabled] = Color.FromArgb(141, 141, 141); 976rgbTable[KnownColors.msocbvcrCBMenuIconBkgd] = Color.FromArgb(214, 211, 231); 977rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(185, 187, 200); 978rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(185, 187, 200); 979rgbTable[KnownColors.msocbvcrCBMenuShadow] = Color.FromArgb(154, 140, 176); 980rgbTable[KnownColors.msocbvcrCBMenuSplitArrow] = Color.FromArgb(0, 0, 0); 981rgbTable[KnownColors.msocbvcrCBOptionsButtonShadow] = Color.FromArgb(255, 255, 255); 982rgbTable[KnownColors.msocbvcrCBShadow] = Color.FromArgb(124, 124, 148); 983rgbTable[KnownColors.msocbvcrCBSplitterLine] = Color.FromArgb(110, 109, 143); 984rgbTable[KnownColors.msocbvcrCBSplitterLineLight] = Color.FromArgb(255, 255, 255); 985rgbTable[KnownColors.msocbvcrCBTearOffHandle] = Color.FromArgb(192, 192, 211); 986rgbTable[KnownColors.msocbvcrCBTearOffHandleMouseOver] = Color.FromArgb(255, 238, 194); 987rgbTable[KnownColors.msocbvcrCBTitleBkgd] = Color.FromArgb(122, 121, 153); 988rgbTable[KnownColors.msocbvcrCBTitleText] = Color.FromArgb(255, 255, 255); 989rgbTable[KnownColors.msocbvcrDisabledFocuslessHighlightedText] = Color.FromArgb(172, 168, 153); 990rgbTable[KnownColors.msocbvcrDisabledHighlightedText] = Color.FromArgb(59, 59, 63); 991rgbTable[KnownColors.msocbvcrDlgGroupBoxText] = Color.FromArgb(7, 70, 213); 992rgbTable[KnownColors.msocbvcrDocTabBdr] = Color.FromArgb(118, 116, 146); 993rgbTable[KnownColors.msocbvcrDocTabBdrDark] = Color.FromArgb(186, 185, 206); 994rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseDown] = Color.FromArgb(75, 75, 111); 995rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(75, 75, 111); 996rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(75, 75, 111); 997rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(75, 75, 111); 998rgbTable[KnownColors.msocbvcrDocTabBdrLight] = Color.FromArgb(255, 255, 255); 999rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseDown] = Color.FromArgb(75, 75, 111); 1000rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(75, 75, 111); 1001rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(75, 75, 111); 1002rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(75, 75, 111); 1003rgbTable[KnownColors.msocbvcrDocTabBdrMouseDown] = Color.FromArgb(75, 75, 111); 1004rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(75, 75, 111); 1005rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(75, 75, 111); 1006rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(75, 75, 111); 1007rgbTable[KnownColors.msocbvcrDocTabBdrSelected] = Color.FromArgb(124, 124, 148); 1008rgbTable[KnownColors.msocbvcrDocTabBkgd] = Color.FromArgb(212, 212, 226); 1009rgbTable[KnownColors.msocbvcrDocTabBkgdMouseDown] = Color.FromArgb(254, 128, 62); 1010rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1011rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1012rgbTable[KnownColors.msocbvcrDocTabBkgdSelected] = Color.FromArgb(255, 255, 255); 1013rgbTable[KnownColors.msocbvcrDocTabText] = Color.FromArgb(0, 0, 0); 1014rgbTable[KnownColors.msocbvcrDocTabTextMouseDown] = Color.FromArgb(0, 0, 0); 1015rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1016rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1017rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1018rgbTable[KnownColors.msocbvcrDocTabTextSelected] = Color.FromArgb(0, 0, 0); 1019rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(212, 212, 226); 1020rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(212, 212, 226); 1021rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(0, 0, 0); 1022rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(0, 0, 0); 1023rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(148, 148, 148); 1024rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(148, 148, 148); 1025rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(171, 169, 194); 1026rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(171, 169, 194); 1027rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 255, 255); 1028rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 255, 255); 1029rgbTable[KnownColors.msocbvcrDWTabBkgdMouseDown] = Color.FromArgb(254, 128, 62); 1030rgbTable[KnownColors.msocbvcrDWTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1031rgbTable[KnownColors.msocbvcrDWTabTextMouseDown] = Color.FromArgb(0, 0, 0); 1032rgbTable[KnownColors.msocbvcrDWTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1033rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(224, 223, 227); 1034rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(224, 223, 227); 1035rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(0, 0, 0); 1036rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(0, 0, 0); 1037rgbTable[KnownColors.msocbvcrGDHeaderBdr] = Color.FromArgb(191, 191, 223); 1038rgbTable[KnownColors.msocbvcrGDHeaderBkgd] = Color.FromArgb(239, 235, 222); 1039rgbTable[KnownColors.msocbvcrGDHeaderCellBdr] = Color.FromArgb(126, 125, 104); 1040rgbTable[KnownColors.msocbvcrGDHeaderCellBkgd] = Color.FromArgb(223, 223, 234); 1041rgbTable[KnownColors.msocbvcrGDHeaderCellBkgdSelected] = Color.FromArgb(255, 192, 111); 1042rgbTable[KnownColors.msocbvcrGDHeaderSeeThroughSelection] = Color.FromArgb(128, 128, 128); 1043rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(162, 162, 181); 1044rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(162, 162, 181); 1045rgbTable[KnownColors.msocbvcrGSPGroupContentDarkBkgd] = Color.FromArgb(212, 213, 229); 1046rgbTable[KnownColors.msocbvcrGSPGroupContentLightBkgd] = Color.FromArgb(227, 227, 236); 1047rgbTable[KnownColors.msocbvcrGSPGroupContentText] = Color.FromArgb(0, 0, 0); 1048rgbTable[KnownColors.msocbvcrGSPGroupContentTextDisabled] = Color.FromArgb(150, 145, 133); 1049rgbTable[KnownColors.msocbvcrGSPGroupHeaderDarkBkgd] = Color.FromArgb(169, 168, 191); 1050rgbTable[KnownColors.msocbvcrGSPGroupHeaderLightBkgd] = Color.FromArgb(208, 208, 223); 1051rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(92, 91, 121); 1052rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(92, 91, 121); 1053rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 255, 255); 1054rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 255, 255); 1055rgbTable[KnownColors.msocbvcrGSPHyperlink] = Color.FromArgb(0, 61, 178); 1056rgbTable[KnownColors.msocbvcrGSPLightBkgd] = Color.FromArgb(238, 238, 244); 1057rgbTable[KnownColors.msocbvcrHyperlink] = Color.FromArgb(0, 61, 178); 1058rgbTable[KnownColors.msocbvcrHyperlinkFollowed] = Color.FromArgb(170, 0, 170); 1059rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(124, 124, 148); 1060rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(124, 124, 148); 1061rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(215, 215, 229); 1062rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(215, 215, 229); 1063rgbTable[KnownColors.msocbvcrJotNavUIGradEnd] = Color.FromArgb(255, 255, 255); 1064rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(243, 243, 247); 1065rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(243, 243, 247); 1066rgbTable[KnownColors.msocbvcrJotNavUIText] = Color.FromArgb(0, 0, 0); 1067rgbTable[KnownColors.msocbvcrListHeaderArrow] = Color.FromArgb(172, 168, 153); 1068rgbTable[KnownColors.msocbvcrNetLookBkgnd] = Color.FromArgb(249, 249, 255); 1069rgbTable[KnownColors.msocbvcrOABBkgd] = Color.FromArgb(255, 255, 255); 1070rgbTable[KnownColors.msocbvcrOBBkgdBdr] = Color.FromArgb(211, 211, 211); 1071rgbTable[KnownColors.msocbvcrOBBkgdBdrContrast] = Color.FromArgb(128, 128, 128); 1072rgbTable[KnownColors.msocbvcrOGMDIParentWorkspaceBkgd] = Color.FromArgb(155, 154, 179); 1073rgbTable[KnownColors.msocbvcrOGRulerActiveBkgd] = Color.FromArgb(255, 255, 255); 1074rgbTable[KnownColors.msocbvcrOGRulerBdr] = Color.FromArgb(0, 0, 0); 1075rgbTable[KnownColors.msocbvcrOGRulerBkgd] = Color.FromArgb(223, 223, 234); 1076rgbTable[KnownColors.msocbvcrOGRulerInactiveBkgd] = Color.FromArgb(177, 176, 195); 1077rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdr] = Color.FromArgb(124, 124, 148); 1078rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdrHighlight] = Color.FromArgb(255, 255, 255); 1079rgbTable[KnownColors.msocbvcrOGRulerTabStopTicks] = Color.FromArgb(128, 128, 128); 1080rgbTable[KnownColors.msocbvcrOGRulerText] = Color.FromArgb(0, 0, 0); 1081rgbTable[KnownColors.msocbvcrOGTaskPaneGroupBoxHeaderBkgd] = Color.FromArgb(212, 212, 226); 1082rgbTable[KnownColors.msocbvcrOGWorkspaceBkgd] = Color.FromArgb(155, 154, 179); 1083rgbTable[KnownColors.msocbvcrOLKFlagNone] = Color.FromArgb(239, 239, 244); 1084rgbTable[KnownColors.msocbvcrOLKFolderbarDark] = Color.FromArgb(110, 109, 143); 1085rgbTable[KnownColors.msocbvcrOLKFolderbarLight] = Color.FromArgb(168, 167, 191); 1086rgbTable[KnownColors.msocbvcrOLKFolderbarText] = Color.FromArgb(255, 255, 255); 1087rgbTable[KnownColors.msocbvcrOLKGridlines] = Color.FromArgb(234, 233, 225); 1088rgbTable[KnownColors.msocbvcrOLKGroupLine] = Color.FromArgb(165, 164, 189); 1089rgbTable[KnownColors.msocbvcrOLKGroupNested] = Color.FromArgb(253, 238, 201); 1090rgbTable[KnownColors.msocbvcrOLKGroupShaded] = Color.FromArgb(229, 229, 235); 1091rgbTable[KnownColors.msocbvcrOLKGroupText] = Color.FromArgb(112, 111, 145); 1092rgbTable[KnownColors.msocbvcrOLKIconBar] = Color.FromArgb(253, 247, 233); 1093rgbTable[KnownColors.msocbvcrOLKInfoBarBkgd] = Color.FromArgb(155, 154, 179); 1094rgbTable[KnownColors.msocbvcrOLKInfoBarText] = Color.FromArgb(255, 255, 255); 1095rgbTable[KnownColors.msocbvcrOLKPreviewPaneLabelText] = Color.FromArgb(155, 154, 179); 1096rgbTable[KnownColors.msocbvcrOLKTodayIndicatorDark] = Color.FromArgb(187, 85, 3); 1097rgbTable[KnownColors.msocbvcrOLKTodayIndicatorLight] = Color.FromArgb(251, 200, 79); 1098rgbTable[KnownColors.msocbvcrOLKWBActionDividerLine] = Color.FromArgb(204, 206, 219); 1099rgbTable[KnownColors.msocbvcrOLKWBButtonDark] = Color.FromArgb(147, 145, 176); 1100rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(225, 226, 236); 1101rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(225, 226, 236); 1102rgbTable[KnownColors.msocbvcrOLKWBDarkOutline] = Color.FromArgb(124, 124, 148); 1103rgbTable[KnownColors.msocbvcrOLKWBFoldersBackground] = Color.FromArgb(255, 255, 255); 1104rgbTable[KnownColors.msocbvcrOLKWBHoverButtonDark] = Color.FromArgb(247, 190, 87); 1105rgbTable[KnownColors.msocbvcrOLKWBHoverButtonLight] = Color.FromArgb(255, 255, 220); 1106rgbTable[KnownColors.msocbvcrOLKWBLabelText] = Color.FromArgb(50, 69, 105); 1107rgbTable[KnownColors.msocbvcrOLKWBPressedButtonDark] = Color.FromArgb(248, 222, 128); 1108rgbTable[KnownColors.msocbvcrOLKWBPressedButtonLight] = Color.FromArgb(232, 127, 8); 1109rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonDark] = Color.FromArgb(238, 147, 17); 1110rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonLight] = Color.FromArgb(251, 230, 148); 1111rgbTable[KnownColors.msocbvcrOLKWBSplitterDark] = Color.FromArgb(110, 109, 143); 1112rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(168, 167, 191); 1113rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(168, 167, 191); 1114rgbTable[KnownColors.msocbvcrPlacesBarBkgd] = Color.FromArgb(224, 223, 227); 1115rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabAreaBkgd] = Color.FromArgb(243, 243, 247); 1116rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabBdr] = Color.FromArgb(124, 124, 148); 1117rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabInactiveBkgd] = Color.FromArgb(215, 215, 229); 1118rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabText] = Color.FromArgb(0, 0, 0); 1119rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelected] = Color.FromArgb(142, 142, 170); 1120rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelectedMouseOver] = Color.FromArgb(142, 142, 170); 1121rgbTable[KnownColors.msocbvcrPPSlideBdrInactiveSelected] = Color.FromArgb(128, 128, 128); 1122rgbTable[KnownColors.msocbvcrPPSlideBdrMouseOver] = Color.FromArgb(142, 142, 170); 1123rgbTable[KnownColors.msocbvcrPubPrintDocScratchPageBkgd] = Color.FromArgb(155, 154, 179); 1124rgbTable[KnownColors.msocbvcrPubWebDocScratchPageBkgd] = Color.FromArgb(195, 195, 210); 1125rgbTable[KnownColors.msocbvcrSBBdr] = Color.FromArgb(236, 234, 218); 1126rgbTable[KnownColors.msocbvcrScrollbarBkgd] = Color.FromArgb(247, 247, 249); 1127rgbTable[KnownColors.msocbvcrToastGradBegin] = Color.FromArgb(239, 239, 247); 1128rgbTable[KnownColors.msocbvcrToastGradEnd] = Color.FromArgb(179, 178, 204); 1129rgbTable[KnownColors.msocbvcrWPBdrInnerDocked] = Color.FromArgb(255, 255, 255); 1130rgbTable[KnownColors.msocbvcrWPBdrOuterDocked] = Color.FromArgb(243, 243, 247); 1131rgbTable[KnownColors.msocbvcrWPBdrOuterFloating] = Color.FromArgb(122, 121, 153); 1132rgbTable[KnownColors.msocbvcrWPBkgd] = Color.FromArgb(238, 238, 244); 1133rgbTable[KnownColors.msocbvcrWPCtlBdr] = Color.FromArgb(165, 172, 178); 1134rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(0, 0, 0); 1135rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(0, 0, 0); 1136rgbTable[KnownColors.msocbvcrWPCtlBdrDisabled] = Color.FromArgb(128, 128, 128); 1137rgbTable[KnownColors.msocbvcrWPCtlBkgd] = Color.FromArgb(192, 192, 211); 1138rgbTable[KnownColors.msocbvcrWPCtlBkgdDisabled] = Color.FromArgb(222, 222, 222); 1139rgbTable[KnownColors.msocbvcrWPCtlText] = Color.FromArgb(0, 0, 0); 1140rgbTable[KnownColors.msocbvcrWPCtlTextDisabled] = Color.FromArgb(172, 168, 153); 1141rgbTable[KnownColors.msocbvcrWPCtlTextMouseDown] = Color.FromArgb(0, 0, 0); 1142rgbTable[KnownColors.msocbvcrWPGroupline] = Color.FromArgb(161, 160, 187); 1143rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] = Color.FromArgb(255, 255, 204); 1144rgbTable[KnownColors.msocbvcrWPInfoTipText] = Color.FromArgb(0, 0, 0); 1145rgbTable[KnownColors.msocbvcrWPNavBarBkgnd] = Color.FromArgb(122, 121, 153); 1146rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(0, 0, 0); 1147rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(0, 0, 0); 1148rgbTable[KnownColors.msocbvcrWPTextDisabled] = Color.FromArgb(172, 168, 153); 1149rgbTable[KnownColors.msocbvcrWPTitleBkgdActive] = Color.FromArgb(184, 188, 234); 1150rgbTable[KnownColors.msocbvcrWPTitleBkgdInactive] = Color.FromArgb(198, 198, 217); 1151rgbTable[KnownColors.msocbvcrWPTitleTextActive] = Color.FromArgb(0, 0, 0); 1152rgbTable[KnownColors.msocbvcrWPTitleTextInactive] = Color.FromArgb(0, 0, 0); 1153rgbTable[KnownColors.msocbvcrXLFormulaBarBkgd] = Color.FromArgb(215, 215, 229); 1158rgbTable[KnownColors.msocbvcrCBBkgd] = Color.FromArgb(238, 237, 240); // msocbvcrCBBkgd 1159rgbTable[KnownColors.msocbvcrCBDragHandle] = Color.FromArgb(189, 188, 191); // msocbvcrCBDragHandle -> Needs to equal VSCOLOR_COMMANDBAR_DRAGHANDLE in vscolors.cpp 1160rgbTable[KnownColors.msocbvcrCBSplitterLine] = Color.FromArgb(193, 193, 196); // msocbvcrCBSplitterLine 1161rgbTable[KnownColors.msocbvcrCBTitleBkgd] = Color.FromArgb(167, 166, 170); // msocbvcrCBTitleBkgd 1162rgbTable[KnownColors.msocbvcrCBTitleText] = Color.FromArgb(255, 255, 255); // msocbvcrCBTitleText 1163rgbTable[KnownColors.msocbvcrCBBdrOuterFloating] = Color.FromArgb(142, 141, 145); // msocbvcrCBBdrOuterFloating 1164rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = Color.FromArgb(235, 233, 237); // msocbvcrCBBdrOuterDocked 1165rgbTable[KnownColors.msocbvcrCBTearOffHandle] = Color.FromArgb(238, 237, 240); // msocbvcrCBTearOffHandle 1166rgbTable[KnownColors.msocbvcrCBTearOffHandleMouseOver] = Color.FromArgb(194, 207, 229); // msocbvcrCBTearOffHandleMouseOver 1167rgbTable[KnownColors.msocbvcrCBCtlBkgd] = Color.FromArgb(238, 237, 240); // msocbvcrCBCtlBkgd 1168rgbTable[KnownColors.msocbvcrCBCtlText] = Color.FromArgb(000, 000, 000); // msocbvcrCBCtlText 1169rgbTable[KnownColors.msocbvcrCBCtlTextDisabled] = Color.FromArgb(176, 175, 179); // msocbvcrCBCtlTextDisabled 1170rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = Color.FromArgb(194, 207, 229); // msocbvcrCBCtlBkgdMouseOver -> Needs to equal VSCOLOR_COMMANDBAR_HOVER in vscolors.cpp 1171rgbTable[KnownColors.msocbvcrCBCtlBdrMouseOver] = Color.FromArgb(51, 94, 168); // msocbvcrCBCtlBdrMouseOver -> Needs to equal VSCOLOR_COMMANDBAR_BORDER in vscolors.cpp 1172rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(000, 000, 000); // msocbvcrCBCtlTextMouseOver 1173rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseDown] = Color.FromArgb(153, 175, 212); // msocbvcrCBCtlBkgdMouseDown -> Needs to equal VSCOLOR_COMMANDBAR_HOVEROVERSELECTED in vscolors.cpp 1174rgbTable[KnownColors.msocbvcrCBCtlBdrMouseDown] = Color.FromArgb(51, 94, 168); // msocbvcrCBCtlBdrMouseDown 1175rgbTable[KnownColors.msocbvcrCBCtlTextMouseDown] = Color.FromArgb(255, 255, 255); // msocbvcrCBCtlTextMouseDown 1176rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = Color.FromArgb(226, 229, 238); // msocbvcrCBCtlBkgdSelected -> Needs to equal VSCOLOR_COMMANDBAR_SELECTED in vscolors.cpp 1177rgbTable[KnownColors.msocbvcrCBCtlBdrSelected] = Color.FromArgb(51, 94, 168); // msocbvcrCBCtlBdrSelected 1178rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = Color.FromArgb(51, 94, 168); // msocbvcrCBCtlBkgdSelectedMouseOver -> Needs to equal VSCOLOR_COMMANDBAR_HOVEROVERSELECTEDICON in vscolors.cpp 1179rgbTable[KnownColors.msocbvcrCBCtlBdrSelectedMouseOver] = Color.FromArgb(51, 94, 168); // msocbvcrCBCtlBdrSelectedMouseOver -> Needs to equal VSCOLOR_COMMANDBAR_HOVEROVERSELECTEDICON_BORDER in vscolors.cpp 1180rgbTable[KnownColors.msocbvcrCBCtlBkgdLight] = Color.FromArgb(255, 255, 255); // msocbvcrCBCtlBkgdLight 1181rgbTable[KnownColors.msocbvcrCBCtlTextLight] = Color.FromArgb(167, 166, 170); // msocbvcrCBCtlTextLight 1182rgbTable[KnownColors.msocbvcrCBMainMenuBkgd] = Color.FromArgb(235, 233, 237); // msocbvcrCBMainMenuBkgd 1183rgbTable[KnownColors.msocbvcrCBMenuBkgd] = Color.FromArgb(252, 252, 252); // msocbvcrCBMenuBkgd 1184rgbTable[KnownColors.msocbvcrCBMenuCtlText] = Color.FromArgb(0, 0, 0); // msocbvcrCBMenuCtlText 1185rgbTable[KnownColors.msocbvcrCBMenuCtlTextDisabled] = Color.FromArgb(193, 193, 196); // msocbvcrCBMenuCtlTextDisabled 1186rgbTable[KnownColors.msocbvcrCBMenuBdrOuter] = Color.FromArgb(134, 133, 136); // msocbvcrCBMenuBdrOuter 1187rgbTable[KnownColors.msocbvcrCBMenuIconBkgd] = Color.FromArgb(238, 237, 240); // msocbvcrCBMenuIconBkgd 1188rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(228, 226, 230); // msocbvcrCBMenuIconBkgdDropped 1189rgbTable[KnownColors.msocbvcrCBMenuSplitArrow] = Color.FromArgb(167, 166, 170); // msocbvcrCBMenuSplitArrow 1190rgbTable[KnownColors.msocbvcrWPBkgd] = Color.FromArgb(245, 244, 246); // msocbvcrWPBkgd 1191rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(255, 51, 153); // msocbvcrWPText 1192rgbTable[KnownColors.msocbvcrWPTitleBkgdActive] = Color.FromArgb(255, 51, 153); // msocbvcrWPTitleBkgdActive 1193rgbTable[KnownColors.msocbvcrWPTitleBkgdInactive] = Color.FromArgb(255, 51, 153); // msocbvcrWPTitleBkgdInactive 1194rgbTable[KnownColors.msocbvcrWPTitleTextActive] = Color.FromArgb(255, 51, 153); // msocbvcrWPTitleTextActive 1195rgbTable[KnownColors.msocbvcrWPTitleTextInactive] = Color.FromArgb(255, 51, 153); // msocbvcrWPTitleTextInactive 1196rgbTable[KnownColors.msocbvcrWPBdrOuterFloating] = Color.FromArgb(255, 51, 153); // msocbvcrWPBdrOuterFloating 1197rgbTable[KnownColors.msocbvcrWPBdrOuterDocked] = Color.FromArgb(255, 51, 153); // msocbvcrWPBdrOuterDocked 1198rgbTable[KnownColors.msocbvcrWPCtlBdr] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlBdr 1199rgbTable[KnownColors.msocbvcrWPCtlText] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlText 1200rgbTable[KnownColors.msocbvcrWPCtlBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlBkgd 1201rgbTable[KnownColors.msocbvcrWPCtlBdrDisabled] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlBdrDisabled 1202rgbTable[KnownColors.msocbvcrWPCtlTextDisabled] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlTextDisabled 1203rgbTable[KnownColors.msocbvcrWPCtlBkgdDisabled] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlBkgdDisabled 1204rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlBdrDefault 1205rgbTable[KnownColors.msocbvcrWPGroupline] = Color.FromArgb(255, 51, 153); // msocbvcrWPGroupline 1206rgbTable[KnownColors.msocbvcrSBBdr] = Color.FromArgb(255, 51, 153); // msocbvcrSBBdr 1207rgbTable[KnownColors.msocbvcrOBBkgdBdr] = Color.FromArgb(255, 51, 153); // msocbvcrOBBkgdBdr 1208rgbTable[KnownColors.msocbvcrOBBkgdBdrContrast] = Color.FromArgb(255, 51, 153); // msocbvcrOBBkgdBdrContrast 1209rgbTable[KnownColors.msocbvcrOABBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOABBkgd 1210rgbTable[KnownColors.msocbvcrGDHeaderBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGDHeaderBkgd 1211rgbTable[KnownColors.msocbvcrGDHeaderBdr] = Color.FromArgb(255, 51, 153); // msocbvcrGDHeaderBdr 1212rgbTable[KnownColors.msocbvcrGDHeaderCellBdr] = Color.FromArgb(255, 51, 153); // msocbvcrGDHeaderCellBdr 1213rgbTable[KnownColors.msocbvcrGDHeaderSeeThroughSelection] = Color.FromArgb(255, 51, 153); // msocbvcrGDHeaderSeeThroughSelection 1214rgbTable[KnownColors.msocbvcrGDHeaderCellBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGDHeaderCellBkgd 1215rgbTable[KnownColors.msocbvcrGDHeaderCellBkgdSelected] = Color.FromArgb(255, 51, 153); // msocbvcrGDHeaderCellBkgdSelected 1216rgbTable[KnownColors.msocbvcrCBSplitterLineLight] = Color.FromArgb(255, 255, 255); // msocbvcrCBSplitterLineLight 1217rgbTable[KnownColors.msocbvcrCBShadow] = Color.FromArgb(238, 237, 240); // msocbvcrCBShadow -> Needs to equal VSCOLOR_COMMANDBAR_SHADOW in vscolors.cpp 1218rgbTable[KnownColors.msocbvcrCBOptionsButtonShadow] = Color.FromArgb(245, 244, 246); // msocbvcrCBOptionsButtonShadow 1219rgbTable[KnownColors.msocbvcrWPNavBarBkgnd] = Color.FromArgb(193, 193, 196); // msocbvcrWPNavBarBkgnd 1220rgbTable[KnownColors.msocbvcrWPBdrInnerDocked] = Color.FromArgb(245, 244, 246); // msocbvcrWPBdrInnerDocked 1221rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(235, 233, 237); // msocbvcrCBLabelBkgnd 1222rgbTable[KnownColors.msocbvcrCBIconDisabledLight] = Color.FromArgb(235, 233, 237); // msocbvcrCBIconDisabledLight 1223rgbTable[KnownColors.msocbvcrCBIconDisabledDark] = Color.FromArgb(167, 166, 170); // msocbvcrCBIconDisabledDark 1224rgbTable[KnownColors.msocbvcrCBLowColorIconDisabled] = Color.FromArgb(176, 175, 179); // msocbvcrCBLowColorIconDisabled 1225rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzBegin] = Color.FromArgb(235, 233, 237); // msocbvcrCBGradMainMenuHorzBegin -> Needs to equal VSCOLOR_ENVIRONMENT_BACKGROUND and VSCOLOR_ENVIRONMENT_BACKGROUND_GRADIENTBEGIN in vscolors.cpp 1226rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzEnd] = Color.FromArgb(251, 250, 251); // msocbvcrCBGradMainMenuHorzEnd -> Needs to equal VSCOLOR_ENVIRONMENT_BACKGROUND_GRADIENTEND in vscolors.cpp 1227rgbTable[KnownColors.msocbvcrCBGradVertBegin] = Color.FromArgb(252, 252, 252); // msocbvcrCBGradVertBegin -> Needs to equal VSCOLOR_COMMANDBAR_GRADIENT_BEGIN in vscolors.cpp 1228rgbTable[KnownColors.msocbvcrCBGradVertMiddle] = Color.FromArgb(245, 244, 246); // msocbvcrCBGradVertMiddle -> Needs to equal VSCOLOR_COMMANDBAR_GRADIENT_MIDDLE in vscolors.cpp 1229rgbTable[KnownColors.msocbvcrCBGradVertEnd] = Color.FromArgb(235, 233, 237); // msocbvcrCBGradVertEnd -> Needs to equal VSCOLOR_COMMANDBAR_GRADIENT_END in vscolors.cpp 1230rgbTable[KnownColors.msocbvcrCBGradOptionsBegin] = Color.FromArgb(242, 242, 242); // msocbvcrCBGradOptionsBegin 1231rgbTable[KnownColors.msocbvcrCBGradOptionsMiddle] = Color.FromArgb(224, 224, 225); // msocbvcrCBGradOptionsMiddle 1232rgbTable[KnownColors.msocbvcrCBGradOptionsEnd] = Color.FromArgb(167, 166, 170); // msocbvcrCBGradOptionsEnd 1233rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdBegin] = Color.FromArgb(252, 252, 252); // msocbvcrCBGradMenuTitleBkgdBegin 1234rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdEnd] = Color.FromArgb(245, 244, 246); // msocbvcrCBGradMenuTitleBkgdEnd 1235rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedBegin] = Color.FromArgb(247, 246, 248); // msocbvcrCBGradMenuIconBkgdDroppedBegin 1236rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedMiddle] = Color.FromArgb(241, 240, 242); // msocbvcrCBGradMenuIconBkgdDroppedMiddle 1237rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedEnd] = Color.FromArgb(228, 226, 230); // msocbvcrCBGradMenuIconBkgdDroppedEnd 1238rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedBegin] = Color.FromArgb(226, 229, 238); // msocbvcrCBGradOptionsSelectedBegin 1239rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedMiddle] = Color.FromArgb(226, 229, 238); // msocbvcrCBGradOptionsSelectedMiddle 1240rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedEnd] = Color.FromArgb(226, 229, 238); // msocbvcrCBGradOptionsSelectedEnd 1241rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverBegin] = Color.FromArgb(194, 207, 229); // msocbvcrCBGradOptionsMouseOverBegin 1242rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverMiddle] = Color.FromArgb(194, 207, 229); // msocbvcrCBGradOptionsMouseOverMiddle 1243rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverEnd] = Color.FromArgb(194, 207, 229); // msocbvcrCBGradOptionsMouseOverEnd 1244rgbTable[KnownColors.msocbvcrCBGradSelectedBegin] = Color.FromArgb(226, 229, 238); // msocbvcrCBGradSelectedBegin 1245rgbTable[KnownColors.msocbvcrCBGradSelectedMiddle] = Color.FromArgb(226, 229, 238); // msocbvcrCBGradSelectedMiddle 1246rgbTable[KnownColors.msocbvcrCBGradSelectedEnd] = Color.FromArgb(226, 229, 238); // msocbvcrCBGradSelectedEnd 1247rgbTable[KnownColors.msocbvcrCBGradMouseOverBegin] = Color.FromArgb(194, 207, 229); // msocbvcrCBGradMouseOverBegin 1248rgbTable[KnownColors.msocbvcrCBGradMouseOverMiddle] = Color.FromArgb(194, 207, 229); // msocbvcrCBGradMouseOverMiddle 1249rgbTable[KnownColors.msocbvcrCBGradMouseOverEnd] = Color.FromArgb(194, 207, 229); // msocbvcrCBGradMouseOverEnd 1250rgbTable[KnownColors.msocbvcrCBGradMouseDownBegin] = Color.FromArgb(153, 175, 212); // msocbvcrCBGradMouseDownBegin 1251rgbTable[KnownColors.msocbvcrCBGradMouseDownMiddle] = Color.FromArgb(153, 175, 212); // msocbvcrCBGradMouseDownMiddle 1252rgbTable[KnownColors.msocbvcrCBGradMouseDownEnd] = Color.FromArgb(153, 175, 212); // msocbvcrCBGradMouseDownEnd 1253rgbTable[KnownColors.msocbvcrNetLookBkgnd] = Color.FromArgb(235, 233, 237); // msocbvcrNetLookBkgnd 1254rgbTable[KnownColors.msocbvcrCBMenuShadow] = Color.FromArgb(000, 000, 000); // msocbvcrCBMenuShadow 1255rgbTable[KnownColors.msocbvcrCBDockSeparatorLine] = Color.FromArgb(51, 94, 168); // msocbvcrCBDockSeparatorLine 1256rgbTable[KnownColors.msocbvcrCBDropDownArrow] = Color.FromArgb(235, 233, 237); // msocbvcrCBDropDownArrow 1257rgbTable[KnownColors.msocbvcrOLKGridlines] = Color.FromArgb(255, 51, 153); // msocbvcrOLKGridlines 1258rgbTable[KnownColors.msocbvcrOLKGroupText] = Color.FromArgb(255, 51, 153); // msocbvcrOLKGroupText 1259rgbTable[KnownColors.msocbvcrOLKGroupLine] = Color.FromArgb(255, 51, 153); // msocbvcrOLKGroupLine 1260rgbTable[KnownColors.msocbvcrOLKGroupShaded] = Color.FromArgb(255, 51, 153); // msocbvcrOLKGroupShaded 1261rgbTable[KnownColors.msocbvcrOLKGroupNested] = Color.FromArgb(255, 51, 153); // msocbvcrOLKGroupNested 1262rgbTable[KnownColors.msocbvcrOLKIconBar] = Color.FromArgb(255, 51, 153); // msocbvcrOLKIconBar 1263rgbTable[KnownColors.msocbvcrOLKFlagNone] = Color.FromArgb(255, 51, 153); // msocbvcrOLKFlagNone 1264rgbTable[KnownColors.msocbvcrOLKFolderbarLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKFolderbarLight 1265rgbTable[KnownColors.msocbvcrOLKFolderbarDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKFolderbarDark 1266rgbTable[KnownColors.msocbvcrOLKFolderbarText] = Color.FromArgb(255, 51, 153); // msocbvcrOLKFolderbarText 1267rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBButtonLight 1268rgbTable[KnownColors.msocbvcrOLKWBButtonDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBButtonDark 1269rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBSelectedButtonLight 1270rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBSelectedButtonDark 1271rgbTable[KnownColors.msocbvcrOLKWBHoverButtonLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBHoverButtonLight 1272rgbTable[KnownColors.msocbvcrOLKWBHoverButtonDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBHoverButtonDark 1273rgbTable[KnownColors.msocbvcrOLKWBPressedButtonLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBPressedButtonLight 1274rgbTable[KnownColors.msocbvcrOLKWBPressedButtonDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBPressedButtonDark 1275rgbTable[KnownColors.msocbvcrOLKWBDarkOutline] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBDarkOutline 1276rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBSplitterLight 1277rgbTable[KnownColors.msocbvcrOLKWBSplitterDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBSplitterDark 1278rgbTable[KnownColors.msocbvcrOLKWBActionDividerLine] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBActionDividerLine 1279rgbTable[KnownColors.msocbvcrOLKWBLabelText] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBLabelText 1280rgbTable[KnownColors.msocbvcrOLKWBFoldersBackground] = Color.FromArgb(255, 51, 153); // msocbvcrOLKWBFoldersBackground 1281rgbTable[KnownColors.msocbvcrOLKTodayIndicatorLight] = Color.FromArgb(255, 51, 153); // msocbvcrOLKTodayIndicatorLight 1282rgbTable[KnownColors.msocbvcrOLKTodayIndicatorDark] = Color.FromArgb(255, 51, 153); // msocbvcrOLKTodayIndicatorDark 1283rgbTable[KnownColors.msocbvcrOLKInfoBarBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOLKInfoBarBkgd 1284rgbTable[KnownColors.msocbvcrOLKInfoBarText] = Color.FromArgb(255, 51, 153); // msocbvcrOLKInfoBarText 1285rgbTable[KnownColors.msocbvcrOLKPreviewPaneLabelText] = Color.FromArgb(255, 51, 153); // msocbvcrOLKPreviewPaneLabelText 1286rgbTable[KnownColors.msocbvcrHyperlink] = Color.FromArgb(0, 61, 178); // msocbvcrHyperlink 1287rgbTable[KnownColors.msocbvcrHyperlinkFollowed] = Color.FromArgb(170, 0, 170); // msocbvcrHyperlinkFollowed 1288rgbTable[KnownColors.msocbvcrOGWorkspaceBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOGWorkspaceBkgd 1289rgbTable[KnownColors.msocbvcrOGMDIParentWorkspaceBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOGMDIParentWorkspaceBkgd 1290rgbTable[KnownColors.msocbvcrOGRulerBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerBkgd 1291rgbTable[KnownColors.msocbvcrOGRulerActiveBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerActiveBkgd 1292rgbTable[KnownColors.msocbvcrOGRulerInactiveBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerInactiveBkgd 1293rgbTable[KnownColors.msocbvcrOGRulerText] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerText 1294rgbTable[KnownColors.msocbvcrOGRulerTabStopTicks] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerTabStopTicks 1295rgbTable[KnownColors.msocbvcrOGRulerBdr] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerBdr 1296rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdr] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerTabBoxBdr 1297rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdrHighlight] = Color.FromArgb(255, 51, 153); // msocbvcrOGRulerTabBoxBdrHighlight 1298rgbTable[KnownColors.msocbvcrXLFormulaBarBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrXLFormulaBarBkgd 1299rgbTable[KnownColors.msocbvcrCBDragHandleShadow] = Color.FromArgb(255, 255, 255); // msocbvcrCBDragHandleShadow -> Needs to equal VSCOLOR_COMMANDBAR_DRAGHANDLE_SHADOW in vscolors.cpp 1300rgbTable[KnownColors.msocbvcrOGTaskPaneGroupBoxHeaderBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrOGTaskPaneGroupBoxHeaderBkgd 1301rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabAreaBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrPPOutlineThumbnailsPaneTabAreaBkgd 1302rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabInactiveBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrPPOutlineThumbnailsPaneTabInactiveBkgd 1303rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabBdr] = Color.FromArgb(255, 51, 153); // msocbvcrPPOutlineThumbnailsPaneTabBdr 1304rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabText] = Color.FromArgb(255, 51, 153); // msocbvcrPPOutlineThumbnailsPaneTabText 1305rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelected] = Color.FromArgb(255, 51, 153); // msocbvcrPPSlideBdrActiveSelected 1306rgbTable[KnownColors.msocbvcrPPSlideBdrInactiveSelected] = Color.FromArgb(255, 51, 153); // msocbvcrPPSlideBdrInactiveSelected 1307rgbTable[KnownColors.msocbvcrPPSlideBdrMouseOver] = Color.FromArgb(255, 51, 153); // msocbvcrPPSlideBdrMouseOver 1308rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelectedMouseOver] = Color.FromArgb(255, 51, 153); // msocbvcrPPSlideBdrActiveSelectedMouseOver 1309rgbTable[KnownColors.msocbvcrDlgGroupBoxText] = Color.FromArgb(0, 0, 0); // msocbvcrDlgGroupBoxText 1310rgbTable[KnownColors.msocbvcrScrollbarBkgd] = Color.FromArgb(237, 235, 239); // msocbvcrScrollbarBkgd 1311rgbTable[KnownColors.msocbvcrListHeaderArrow] = Color.FromArgb(155, 154, 156); // msocbvcrListHeaderArrow 1312rgbTable[KnownColors.msocbvcrDisabledHighlightedText] = Color.FromArgb(188, 202, 226); // msocbvcrDisabledHighlightedText 1313rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(235, 233, 237); // msocbvcrFocuslessHighlightedBkgd 1314rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(000, 000, 000); // msocbvcrFocuslessHighlightedText 1315rgbTable[KnownColors.msocbvcrDisabledFocuslessHighlightedText] = Color.FromArgb(167, 166, 170); // msocbvcrDisabledFocuslessHighlightedText 1316rgbTable[KnownColors.msocbvcrWPCtlTextMouseDown] = Color.FromArgb(255, 51, 153); // msocbvcrWPCtlTextMouseDown 1317rgbTable[KnownColors.msocbvcrWPTextDisabled] = Color.FromArgb(255, 51, 153); // msocbvcrWPTextDisabled 1318rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrWPInfoTipBkgd 1319rgbTable[KnownColors.msocbvcrWPInfoTipText] = Color.FromArgb(255, 51, 153); // msocbvcrWPInfoTipText 1320rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrDWActiveTabBkgd 1321rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(255, 51, 153); // msocbvcrDWActiveTabText 1322rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(255, 51, 153); // msocbvcrDWActiveTabTextDisabled 1323rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrDWInactiveTabBkgd 1324rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 51, 153); // msocbvcrDWInactiveTabText 1325rgbTable[KnownColors.msocbvcrDWTabBkgdMouseOver] = Color.FromArgb(255, 51, 153); // msocbvcrDWTabBkgdMouseOver 1326rgbTable[KnownColors.msocbvcrDWTabTextMouseOver] = Color.FromArgb(255, 51, 153); // msocbvcrDWTabTextMouseOver 1327rgbTable[KnownColors.msocbvcrDWTabBkgdMouseDown] = Color.FromArgb(255, 51, 153); // msocbvcrDWTabBkgdMouseDown 1328rgbTable[KnownColors.msocbvcrDWTabTextMouseDown] = Color.FromArgb(255, 51, 153); // msocbvcrDWTabTextMouseDown 1329rgbTable[KnownColors.msocbvcrGSPLightBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGSPLightBkgd 1330rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGSPDarkBkgd 1331rgbTable[KnownColors.msocbvcrGSPGroupHeaderLightBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupHeaderLightBkgd 1332rgbTable[KnownColors.msocbvcrGSPGroupHeaderDarkBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupHeaderDarkBkgd 1333rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupHeaderText 1334rgbTable[KnownColors.msocbvcrGSPGroupContentLightBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupContentLightBkgd 1335rgbTable[KnownColors.msocbvcrGSPGroupContentDarkBkgd] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupContentDarkBkgd 1336rgbTable[KnownColors.msocbvcrGSPGroupContentText] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupContentText 1337rgbTable[KnownColors.msocbvcrGSPGroupContentTextDisabled] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupContentTextDisabled 1338rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 51, 153); // msocbvcrGSPGroupline 1339rgbTable[KnownColors.msocbvcrGSPHyperlink] = Color.FromArgb(255, 51, 153); // msocbvcrGSPHyperlink 1340rgbTable[KnownColors.msocbvcrDocTabBkgd] = Color.FromArgb(212, 212, 226); // msocbvcrDocTabBkgd 1341rgbTable[KnownColors.msocbvcrDocTabText] = Color.FromArgb(000, 000, 000); // msocbvcrDocTabText 1342rgbTable[KnownColors.msocbvcrDocTabBdr] = Color.FromArgb(118, 116, 146); // msocbvcrDocTabBdr 1343rgbTable[KnownColors.msocbvcrDocTabBdrLight] = Color.FromArgb(255, 255, 255); // msocbvcrDocTabBdrLight 1344rgbTable[KnownColors.msocbvcrDocTabBdrDark] = Color.FromArgb(186, 185, 206); // msocbvcrDocTabBdrDark 1345rgbTable[KnownColors.msocbvcrDocTabBkgdSelected] = Color.FromArgb(255, 255, 255); // msocbvcrDocTabBkgdSelected 1346rgbTable[KnownColors.msocbvcrDocTabTextSelected] = Color.FromArgb(000, 000, 000); // msocbvcrDocTabTextSelected 1347rgbTable[KnownColors.msocbvcrDocTabBdrSelected] = Color.FromArgb(124, 124, 148); // msocbvcrDocTabBdrSelected 1348rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(193, 210, 238); // msocbvcrDocTabBkgdMouseOver 1349rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(49, 106, 197); // msocbvcrDocTabTextMouseOver 1350rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(49, 106, 197); // msocbvcrDocTabBdrMouseOver 1351rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(49, 106, 197); // msocbvcrDocTabBdrLightMouseOver 1352rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(49, 106, 197); // msocbvcrDocTabBdrDarkMouseOver 1353rgbTable[KnownColors.msocbvcrDocTabBkgdMouseDown] = Color.FromArgb(154, 183, 228); // msocbvcrDocTabBkgdMouseDown 1354rgbTable[KnownColors.msocbvcrDocTabTextMouseDown] = Color.FromArgb(000, 000, 000); // msocbvcrDocTabTextMouseDown 1355rgbTable[KnownColors.msocbvcrDocTabBdrMouseDown] = Color.FromArgb(75, 75, 111); // msocbvcrDocTabBdrMouseDown 1356rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseDown] = Color.FromArgb(75, 75, 111); // msocbvcrDocTabBdrLightMouseDown 1357rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseDown] = Color.FromArgb(75, 75, 111); // msocbvcrDocTabBdrDarkMouseDown 1358rgbTable[KnownColors.msocbvcrToastGradBegin] = Color.FromArgb(246, 244, 236); // msocbvcrToastGradBegin 1359rgbTable[KnownColors.msocbvcrToastGradEnd] = Color.FromArgb(179, 178, 204); // msocbvcrToastGradEnd 1360rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(236, 233, 216); // msocbvcrJotNavUIGradBegin 1361rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(236, 233, 216); // msocbvcrJotNavUIGradMiddle 1362rgbTable[KnownColors.msocbvcrJotNavUIGradEnd] = Color.FromArgb(255, 255, 255); // msocbvcrJotNavUIGradEnd 1363rgbTable[KnownColors.msocbvcrJotNavUIText] = Color.FromArgb(000, 000, 000); // msocbvcrJotNavUIText 1364rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(172, 168, 153); // msocbvcrJotNavUIBdr 1365rgbTable[KnownColors.msocbvcrPlacesBarBkgd] = Color.FromArgb(224, 223, 227); // msocbvcrPlacesBarBkgd 1366rgbTable[KnownColors.msocbvcrPubPrintDocScratchPageBkgd] = Color.FromArgb(152, 181, 226); // msocbvcrPubPrintDocScratchPageBkgd 1367rgbTable[KnownColors.msocbvcrPubWebDocScratchPageBkgd] = Color.FromArgb(193, 210, 238); // msocbvcrPubWebDocScratchPageBkgd 1411rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = rgbTable[KnownColors.ButtonSelectedHighlight]; 1414rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver]; 1440rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = Color.FromArgb(196, 205, 218); 1441rgbTable[KnownColors.msocbvcrCBBdrOuterDocked] = Color.FromArgb(196, 205, 218); 1442rgbTable[KnownColors.msocbvcrCBBdrOuterFloating] = Color.FromArgb(42, 102, 201); 1443rgbTable[KnownColors.msocbvcrCBBkgd] = Color.FromArgb(196, 219, 249); 1444rgbTable[KnownColors.msocbvcrCBCtlBdrMouseDown] = Color.FromArgb(0, 0, 128); 1445rgbTable[KnownColors.msocbvcrCBCtlBdrMouseOver] = Color.FromArgb(0, 0, 128); 1446rgbTable[KnownColors.msocbvcrCBCtlBdrSelected] = Color.FromArgb(0, 0, 128); 1447rgbTable[KnownColors.msocbvcrCBCtlBdrSelectedMouseOver] = Color.FromArgb(0, 0, 128); 1448rgbTable[KnownColors.msocbvcrCBCtlBkgd] = Color.FromArgb(196, 219, 249); 1449rgbTable[KnownColors.msocbvcrCBCtlBkgdLight] = Color.FromArgb(255, 255, 255); 1450rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseDown] = Color.FromArgb(254, 128, 62); 1451rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1452rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1453rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = Color.FromArgb(255, 192, 111); 1454rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = Color.FromArgb(254, 128, 62); 1455rgbTable[KnownColors.msocbvcrCBCtlText] = Color.FromArgb(0, 0, 0); 1456rgbTable[KnownColors.msocbvcrCBCtlTextDisabled] = Color.FromArgb(141, 141, 141); 1457rgbTable[KnownColors.msocbvcrCBCtlTextLight] = Color.FromArgb(128, 128, 128); 1458rgbTable[KnownColors.msocbvcrCBCtlTextMouseDown] = Color.FromArgb(0, 0, 0); 1459rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 1460rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 1461rgbTable[KnownColors.msocbvcrCBCtlTextMouseOver] = Color.FromArgb(0, 0, 0); 1462rgbTable[KnownColors.msocbvcrCBDockSeparatorLine] = Color.FromArgb(0, 53, 145); 1463rgbTable[KnownColors.msocbvcrCBDragHandle] = Color.FromArgb(39, 65, 118); 1464rgbTable[KnownColors.msocbvcrCBDragHandleShadow] = Color.FromArgb(255, 255, 255); 1465rgbTable[KnownColors.msocbvcrCBDropDownArrow] = Color.FromArgb(236, 233, 216); 1466rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzBegin] = Color.FromArgb(158, 190, 245); 1467rgbTable[KnownColors.msocbvcrCBGradMainMenuHorzEnd] = Color.FromArgb(196, 218, 250); 1468rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedBegin] = Color.FromArgb(203, 221, 246); 1469rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedEnd] = Color.FromArgb(114, 155, 215); 1470rgbTable[KnownColors.msocbvcrCBGradMenuIconBkgdDroppedMiddle] = Color.FromArgb(161, 197, 249); 1471rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdBegin] = Color.FromArgb(227, 239, 255); 1472rgbTable[KnownColors.msocbvcrCBGradMenuTitleBkgdEnd] = Color.FromArgb(123, 164, 224); 1473rgbTable[KnownColors.msocbvcrCBGradMouseDownBegin] = Color.FromArgb(254, 128, 62); 1474rgbTable[KnownColors.msocbvcrCBGradMouseDownEnd] = Color.FromArgb(255, 223, 154); 1475rgbTable[KnownColors.msocbvcrCBGradMouseDownMiddle] = Color.FromArgb(255, 177, 109); 1476rgbTable[KnownColors.msocbvcrCBGradMouseOverBegin] = Color.FromArgb(255, 255, 222); 1477rgbTable[KnownColors.msocbvcrCBGradMouseOverEnd] = Color.FromArgb(255, 203, 136); 1478rgbTable[KnownColors.msocbvcrCBGradMouseOverMiddle] = Color.FromArgb(255, 225, 172); 1479rgbTable[KnownColors.msocbvcrCBGradOptionsBegin] = Color.FromArgb(127, 177, 250); 1480rgbTable[KnownColors.msocbvcrCBGradOptionsEnd] = Color.FromArgb(0, 53, 145); 1481rgbTable[KnownColors.msocbvcrCBGradOptionsMiddle] = Color.FromArgb(82, 127, 208); 1482rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverBegin] = Color.FromArgb(255, 255, 222); 1483rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverEnd] = Color.FromArgb(255, 193, 118); 1484rgbTable[KnownColors.msocbvcrCBGradOptionsMouseOverMiddle] = Color.FromArgb(255, 225, 172); 1485rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedBegin] = Color.FromArgb(254, 140, 73); 1486rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedEnd] = Color.FromArgb(255, 221, 152); 1487rgbTable[KnownColors.msocbvcrCBGradOptionsSelectedMiddle] = Color.FromArgb(255, 184, 116); 1488rgbTable[KnownColors.msocbvcrCBGradSelectedBegin] = Color.FromArgb(255, 223, 154); 1489rgbTable[KnownColors.msocbvcrCBGradSelectedEnd] = Color.FromArgb(255, 166, 76); 1490rgbTable[KnownColors.msocbvcrCBGradSelectedMiddle] = Color.FromArgb(255, 195, 116); 1491rgbTable[KnownColors.msocbvcrCBGradVertBegin] = Color.FromArgb(227, 239, 255); 1492rgbTable[KnownColors.msocbvcrCBGradVertEnd] = Color.FromArgb(123, 164, 224); 1493rgbTable[KnownColors.msocbvcrCBGradVertMiddle] = Color.FromArgb(203, 225, 252); 1494rgbTable[KnownColors.msocbvcrCBIconDisabledDark] = Color.FromArgb(97, 122, 172); 1495rgbTable[KnownColors.msocbvcrCBIconDisabledLight] = Color.FromArgb(233, 236, 242); 1496rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(186, 211, 245); 1497rgbTable[KnownColors.msocbvcrCBLabelBkgnd] = Color.FromArgb(186, 211, 245); 1498rgbTable[KnownColors.msocbvcrCBLowColorIconDisabled] = Color.FromArgb(109, 150, 208); 1499rgbTable[KnownColors.msocbvcrCBMainMenuBkgd] = Color.FromArgb(153, 204, 255); 1500rgbTable[KnownColors.msocbvcrCBMenuBdrOuter] = Color.FromArgb(0, 45, 150); 1501rgbTable[KnownColors.msocbvcrCBMenuBkgd] = Color.FromArgb(246, 246, 246); 1502rgbTable[KnownColors.msocbvcrCBMenuCtlText] = Color.FromArgb(0, 0, 0); 1503rgbTable[KnownColors.msocbvcrCBMenuCtlTextDisabled] = Color.FromArgb(141, 141, 141); 1504rgbTable[KnownColors.msocbvcrCBMenuIconBkgd] = Color.FromArgb(203, 225, 252); 1505rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(172, 183, 201); 1506rgbTable[KnownColors.msocbvcrCBMenuIconBkgdDropped] = Color.FromArgb(172, 183, 201); 1507rgbTable[KnownColors.msocbvcrCBMenuShadow] = Color.FromArgb(95, 130, 234); 1508rgbTable[KnownColors.msocbvcrCBMenuSplitArrow] = Color.FromArgb(128, 128, 128); 1509rgbTable[KnownColors.msocbvcrCBOptionsButtonShadow] = Color.FromArgb(255, 255, 255); 1510rgbTable[KnownColors.msocbvcrCBShadow] = Color.FromArgb(59, 97, 156); 1511rgbTable[KnownColors.msocbvcrCBSplitterLine] = Color.FromArgb(106, 140, 203); 1512rgbTable[KnownColors.msocbvcrCBSplitterLineLight] = Color.FromArgb(241, 249, 255); 1513rgbTable[KnownColors.msocbvcrCBTearOffHandle] = Color.FromArgb(169, 199, 240); 1514rgbTable[KnownColors.msocbvcrCBTearOffHandleMouseOver] = Color.FromArgb(255, 238, 194); 1515rgbTable[KnownColors.msocbvcrCBTitleBkgd] = Color.FromArgb(42, 102, 201); 1516rgbTable[KnownColors.msocbvcrCBTitleText] = Color.FromArgb(255, 255, 255); 1517rgbTable[KnownColors.msocbvcrDisabledFocuslessHighlightedText] = Color.FromArgb(172, 168, 153); 1518rgbTable[KnownColors.msocbvcrDisabledHighlightedText] = Color.FromArgb(187, 206, 236); 1519rgbTable[KnownColors.msocbvcrDlgGroupBoxText] = Color.FromArgb(0, 70, 213); 1520rgbTable[KnownColors.msocbvcrDocTabBdr] = Color.FromArgb(0, 53, 154); 1521rgbTable[KnownColors.msocbvcrDocTabBdrDark] = Color.FromArgb(117, 166, 241); 1522rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseDown] = Color.FromArgb(0, 0, 128); 1523rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(0, 0, 128); 1524rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(0, 0, 128); 1525rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = Color.FromArgb(0, 0, 128); 1526rgbTable[KnownColors.msocbvcrDocTabBdrLight] = Color.FromArgb(255, 255, 255); 1527rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseDown] = Color.FromArgb(0, 0, 128); 1528rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(0, 0, 128); 1529rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(0, 0, 128); 1530rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = Color.FromArgb(0, 0, 128); 1531rgbTable[KnownColors.msocbvcrDocTabBdrMouseDown] = Color.FromArgb(0, 0, 128); 1532rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(0, 0, 128); 1533rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(0, 0, 128); 1534rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = Color.FromArgb(0, 0, 128); 1535rgbTable[KnownColors.msocbvcrDocTabBdrSelected] = Color.FromArgb(59, 97, 156); 1536rgbTable[KnownColors.msocbvcrDocTabBkgd] = Color.FromArgb(186, 211, 245); 1537rgbTable[KnownColors.msocbvcrDocTabBkgdMouseDown] = Color.FromArgb(254, 128, 62); 1538rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1539rgbTable[KnownColors.msocbvcrDocTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1540rgbTable[KnownColors.msocbvcrDocTabBkgdSelected] = Color.FromArgb(255, 255, 255); 1541rgbTable[KnownColors.msocbvcrDocTabText] = Color.FromArgb(0, 0, 0); 1542rgbTable[KnownColors.msocbvcrDocTabTextMouseDown] = Color.FromArgb(0, 0, 0); 1543rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1544rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1545rgbTable[KnownColors.msocbvcrDocTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1546rgbTable[KnownColors.msocbvcrDocTabTextSelected] = Color.FromArgb(0, 0, 0); 1547rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(186, 211, 245); 1548rgbTable[KnownColors.msocbvcrDWActiveTabBkgd] = Color.FromArgb(186, 211, 245); 1549rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(0, 0, 0); 1550rgbTable[KnownColors.msocbvcrDWActiveTabText] = Color.FromArgb(0, 0, 0); 1551rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(94, 94, 94); 1552rgbTable[KnownColors.msocbvcrDWActiveTabTextDisabled] = Color.FromArgb(94, 94, 94); 1553rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(129, 169, 226); 1554rgbTable[KnownColors.msocbvcrDWInactiveTabBkgd] = Color.FromArgb(129, 169, 226); 1555rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 255, 255); 1556rgbTable[KnownColors.msocbvcrDWInactiveTabText] = Color.FromArgb(255, 255, 255); 1557rgbTable[KnownColors.msocbvcrDWTabBkgdMouseDown] = Color.FromArgb(254, 128, 62); 1558rgbTable[KnownColors.msocbvcrDWTabBkgdMouseOver] = Color.FromArgb(255, 238, 194); 1559rgbTable[KnownColors.msocbvcrDWTabTextMouseDown] = Color.FromArgb(0, 0, 0); 1560rgbTable[KnownColors.msocbvcrDWTabTextMouseOver] = Color.FromArgb(0, 0, 0); 1561rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(236, 233, 216); 1562rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = Color.FromArgb(236, 233, 216); 1563rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(0, 0, 0); 1564rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = Color.FromArgb(0, 0, 0); 1565rgbTable[KnownColors.msocbvcrGDHeaderBdr] = Color.FromArgb(89, 89, 172); 1566rgbTable[KnownColors.msocbvcrGDHeaderBkgd] = Color.FromArgb(239, 235, 222); 1567rgbTable[KnownColors.msocbvcrGDHeaderCellBdr] = Color.FromArgb(126, 125, 104); 1568rgbTable[KnownColors.msocbvcrGDHeaderCellBkgd] = Color.FromArgb(239, 235, 222); 1569rgbTable[KnownColors.msocbvcrGDHeaderCellBkgdSelected] = Color.FromArgb(255, 192, 111); 1570rgbTable[KnownColors.msocbvcrGDHeaderSeeThroughSelection] = Color.FromArgb(191, 191, 223); 1571rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(74, 122, 201); 1572rgbTable[KnownColors.msocbvcrGSPDarkBkgd] = Color.FromArgb(74, 122, 201); 1573rgbTable[KnownColors.msocbvcrGSPGroupContentDarkBkgd] = Color.FromArgb(185, 208, 241); 1574rgbTable[KnownColors.msocbvcrGSPGroupContentLightBkgd] = Color.FromArgb(221, 236, 254); 1575rgbTable[KnownColors.msocbvcrGSPGroupContentText] = Color.FromArgb(0, 0, 0); 1576rgbTable[KnownColors.msocbvcrGSPGroupContentTextDisabled] = Color.FromArgb(150, 145, 133); 1577rgbTable[KnownColors.msocbvcrGSPGroupHeaderDarkBkgd] = Color.FromArgb(101, 143, 224); 1578rgbTable[KnownColors.msocbvcrGSPGroupHeaderLightBkgd] = Color.FromArgb(196, 219, 249); 1579rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(0, 45, 134); 1580rgbTable[KnownColors.msocbvcrGSPGroupHeaderText] = Color.FromArgb(0, 45, 134); 1581rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 255, 255); 1582rgbTable[KnownColors.msocbvcrGSPGroupline] = Color.FromArgb(255, 255, 255); 1583rgbTable[KnownColors.msocbvcrGSPHyperlink] = Color.FromArgb(0, 61, 178); 1584rgbTable[KnownColors.msocbvcrGSPLightBkgd] = Color.FromArgb(221, 236, 254); 1585rgbTable[KnownColors.msocbvcrHyperlink] = Color.FromArgb(0, 61, 178); 1586rgbTable[KnownColors.msocbvcrHyperlinkFollowed] = Color.FromArgb(170, 0, 170); 1587rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(59, 97, 156); 1588rgbTable[KnownColors.msocbvcrJotNavUIBdr] = Color.FromArgb(59, 97, 156); 1589rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(158, 190, 245); 1590rgbTable[KnownColors.msocbvcrJotNavUIGradBegin] = Color.FromArgb(158, 190, 245); 1591rgbTable[KnownColors.msocbvcrJotNavUIGradEnd] = Color.FromArgb(255, 255, 255); 1592rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(196, 218, 250); 1593rgbTable[KnownColors.msocbvcrJotNavUIGradMiddle] = Color.FromArgb(196, 218, 250); 1594rgbTable[KnownColors.msocbvcrJotNavUIText] = Color.FromArgb(0, 0, 0); 1595rgbTable[KnownColors.msocbvcrListHeaderArrow] = Color.FromArgb(172, 168, 153); 1596rgbTable[KnownColors.msocbvcrNetLookBkgnd] = Color.FromArgb(227, 239, 255); 1597rgbTable[KnownColors.msocbvcrOABBkgd] = Color.FromArgb(128, 128, 128); 1598rgbTable[KnownColors.msocbvcrOBBkgdBdr] = Color.FromArgb(128, 128, 128); 1599rgbTable[KnownColors.msocbvcrOBBkgdBdrContrast] = Color.FromArgb(255, 255, 255); 1600rgbTable[KnownColors.msocbvcrOGMDIParentWorkspaceBkgd] = Color.FromArgb(144, 153, 174); 1601rgbTable[KnownColors.msocbvcrOGRulerActiveBkgd] = Color.FromArgb(255, 255, 255); 1602rgbTable[KnownColors.msocbvcrOGRulerBdr] = Color.FromArgb(0, 0, 0); 1603rgbTable[KnownColors.msocbvcrOGRulerBkgd] = Color.FromArgb(216, 231, 252); 1604rgbTable[KnownColors.msocbvcrOGRulerInactiveBkgd] = Color.FromArgb(158, 190, 245); 1605rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdr] = Color.FromArgb(75, 120, 202); 1606rgbTable[KnownColors.msocbvcrOGRulerTabBoxBdrHighlight] = Color.FromArgb(255, 255, 255); 1607rgbTable[KnownColors.msocbvcrOGRulerTabStopTicks] = Color.FromArgb(128, 128, 128); 1608rgbTable[KnownColors.msocbvcrOGRulerText] = Color.FromArgb(0, 0, 0); 1609rgbTable[KnownColors.msocbvcrOGTaskPaneGroupBoxHeaderBkgd] = Color.FromArgb(186, 211, 245); 1610rgbTable[KnownColors.msocbvcrOGWorkspaceBkgd] = Color.FromArgb(144, 153, 174); 1611rgbTable[KnownColors.msocbvcrOLKFlagNone] = Color.FromArgb(242, 240, 228); 1612rgbTable[KnownColors.msocbvcrOLKFolderbarDark] = Color.FromArgb(0, 53, 145); 1613rgbTable[KnownColors.msocbvcrOLKFolderbarLight] = Color.FromArgb(89, 135, 214); 1614rgbTable[KnownColors.msocbvcrOLKFolderbarText] = Color.FromArgb(255, 255, 255); 1615rgbTable[KnownColors.msocbvcrOLKGridlines] = Color.FromArgb(234, 233, 225); 1616rgbTable[KnownColors.msocbvcrOLKGroupLine] = Color.FromArgb(123, 164, 224); 1617rgbTable[KnownColors.msocbvcrOLKGroupNested] = Color.FromArgb(253, 238, 201); 1618rgbTable[KnownColors.msocbvcrOLKGroupShaded] = Color.FromArgb(190, 218, 251); 1619rgbTable[KnownColors.msocbvcrOLKGroupText] = Color.FromArgb(55, 104, 185); 1620rgbTable[KnownColors.msocbvcrOLKIconBar] = Color.FromArgb(253, 247, 233); 1621rgbTable[KnownColors.msocbvcrOLKInfoBarBkgd] = Color.FromArgb(144, 153, 174); 1622rgbTable[KnownColors.msocbvcrOLKInfoBarText] = Color.FromArgb(255, 255, 255); 1623rgbTable[KnownColors.msocbvcrOLKPreviewPaneLabelText] = Color.FromArgb(144, 153, 174); 1624rgbTable[KnownColors.msocbvcrOLKTodayIndicatorDark] = Color.FromArgb(187, 85, 3); 1625rgbTable[KnownColors.msocbvcrOLKTodayIndicatorLight] = Color.FromArgb(251, 200, 79); 1626rgbTable[KnownColors.msocbvcrOLKWBActionDividerLine] = Color.FromArgb(215, 228, 251); 1627rgbTable[KnownColors.msocbvcrOLKWBButtonDark] = Color.FromArgb(123, 164, 224); 1628rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(203, 225, 252); 1629rgbTable[KnownColors.msocbvcrOLKWBButtonLight] = Color.FromArgb(203, 225, 252); 1630rgbTable[KnownColors.msocbvcrOLKWBDarkOutline] = Color.FromArgb(0, 45, 150); 1631rgbTable[KnownColors.msocbvcrOLKWBFoldersBackground] = Color.FromArgb(255, 255, 255); 1632rgbTable[KnownColors.msocbvcrOLKWBHoverButtonDark] = Color.FromArgb(247, 190, 87); 1633rgbTable[KnownColors.msocbvcrOLKWBHoverButtonLight] = Color.FromArgb(255, 255, 220); 1634rgbTable[KnownColors.msocbvcrOLKWBLabelText] = Color.FromArgb(50, 69, 105); 1635rgbTable[KnownColors.msocbvcrOLKWBPressedButtonDark] = Color.FromArgb(248, 222, 128); 1636rgbTable[KnownColors.msocbvcrOLKWBPressedButtonLight] = Color.FromArgb(232, 127, 8); 1637rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonDark] = Color.FromArgb(238, 147, 17); 1638rgbTable[KnownColors.msocbvcrOLKWBSelectedButtonLight] = Color.FromArgb(251, 230, 148); 1639rgbTable[KnownColors.msocbvcrOLKWBSplitterDark] = Color.FromArgb(0, 53, 145); 1640rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(89, 135, 214); 1641rgbTable[KnownColors.msocbvcrOLKWBSplitterLight] = Color.FromArgb(89, 135, 214); 1642rgbTable[KnownColors.msocbvcrPlacesBarBkgd] = Color.FromArgb(236, 233, 216); 1643rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabAreaBkgd] = Color.FromArgb(195, 218, 249); 1644rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabBdr] = Color.FromArgb(59, 97, 156); 1645rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabInactiveBkgd] = Color.FromArgb(158, 190, 245); 1646rgbTable[KnownColors.msocbvcrPPOutlineThumbnailsPaneTabText] = Color.FromArgb(0, 0, 0); 1647rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelected] = Color.FromArgb(61, 108, 192); 1648rgbTable[KnownColors.msocbvcrPPSlideBdrActiveSelectedMouseOver] = Color.FromArgb(61, 108, 192); 1649rgbTable[KnownColors.msocbvcrPPSlideBdrInactiveSelected] = Color.FromArgb(128, 128, 128); 1650rgbTable[KnownColors.msocbvcrPPSlideBdrMouseOver] = Color.FromArgb(61, 108, 192); 1651rgbTable[KnownColors.msocbvcrPubPrintDocScratchPageBkgd] = Color.FromArgb(144, 153, 174); 1652rgbTable[KnownColors.msocbvcrPubWebDocScratchPageBkgd] = Color.FromArgb(189, 194, 207); 1653rgbTable[KnownColors.msocbvcrSBBdr] = Color.FromArgb(211, 211, 211); 1654rgbTable[KnownColors.msocbvcrScrollbarBkgd] = Color.FromArgb(251, 251, 248); 1655rgbTable[KnownColors.msocbvcrToastGradBegin] = Color.FromArgb(220, 236, 254); 1656rgbTable[KnownColors.msocbvcrToastGradEnd] = Color.FromArgb(167, 197, 238); 1657rgbTable[KnownColors.msocbvcrWPBdrInnerDocked] = Color.FromArgb(185, 212, 249); 1658rgbTable[KnownColors.msocbvcrWPBdrOuterDocked] = Color.FromArgb(196, 218, 250); 1659rgbTable[KnownColors.msocbvcrWPBdrOuterFloating] = Color.FromArgb(42, 102, 201); 1660rgbTable[KnownColors.msocbvcrWPBkgd] = Color.FromArgb(221, 236, 254); 1661rgbTable[KnownColors.msocbvcrWPCtlBdr] = Color.FromArgb(127, 157, 185); 1662rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(0, 0, 0); 1663rgbTable[KnownColors.msocbvcrWPCtlBdrDefault] = Color.FromArgb(0, 0, 0); 1664rgbTable[KnownColors.msocbvcrWPCtlBdrDisabled] = Color.FromArgb(128, 128, 128); 1665rgbTable[KnownColors.msocbvcrWPCtlBkgd] = Color.FromArgb(169, 199, 240); 1666rgbTable[KnownColors.msocbvcrWPCtlBkgdDisabled] = Color.FromArgb(222, 222, 222); 1667rgbTable[KnownColors.msocbvcrWPCtlText] = Color.FromArgb(0, 0, 0); 1668rgbTable[KnownColors.msocbvcrWPCtlTextDisabled] = Color.FromArgb(172, 168, 153); 1669rgbTable[KnownColors.msocbvcrWPCtlTextMouseDown] = Color.FromArgb(0, 0, 0); 1670rgbTable[KnownColors.msocbvcrWPGroupline] = Color.FromArgb(123, 164, 224); 1671rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] = Color.FromArgb(255, 255, 204); 1672rgbTable[KnownColors.msocbvcrWPInfoTipText] = Color.FromArgb(0, 0, 0); 1673rgbTable[KnownColors.msocbvcrWPNavBarBkgnd] = Color.FromArgb(74, 122, 201); 1674rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(0, 0, 0); 1675rgbTable[KnownColors.msocbvcrWPText] = Color.FromArgb(0, 0, 0); 1676rgbTable[KnownColors.msocbvcrWPTextDisabled] = Color.FromArgb(172, 168, 153); 1677rgbTable[KnownColors.msocbvcrWPTitleBkgdActive] = Color.FromArgb(123, 164, 224); 1678rgbTable[KnownColors.msocbvcrWPTitleBkgdInactive] = Color.FromArgb(148, 187, 239); 1679rgbTable[KnownColors.msocbvcrWPTitleTextActive] = Color.FromArgb(0, 0, 0); 1680rgbTable[KnownColors.msocbvcrWPTitleTextInactive] = Color.FromArgb(0, 0, 0); 1681rgbTable[KnownColors.msocbvcrXLFormulaBarBkgd] = Color.FromArgb(158, 190, 245);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
122_dictionary[key] = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
387owner.Shortcuts[value] = this; 927Owner.Shortcuts[shortcut] = this;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (2)
126toolStripPanelDestinationHash[destinationPanel] = value; 224itemLocationHash[item.Name] = toolStrip;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1886tv._nodesByHandle[HTREEITEMInternal] = this;
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
45_attachedEventList[eventHandler] = proxy;
System\Windows\Forms\Controls\WebBrowser\HtmlShimManager.cs (6)
37_htmlDocumentShims[doc] = shim; 42_htmlDocumentShims[doc] = shim; 61_htmlWindowShims[window] = shim; 66_htmlWindowShims[window] = shim; 87_htmlElementShims[element] = shim; 92_htmlElementShims[element] = shim;
System\Windows\Forms\DataBinding\BindingContext.cs (1)
112_listManagers[GetKey(dataSource, string.Empty)] = new WeakReference(listManager, false);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
184_relatedBindingSources[dataMember] = bs;
System\Windows\Forms\Input\KeysConverter.cs (1)
84localizedNames[key] = value;
System\Windows\Forms\Layout\TableLayout.cs (1)
1420oldLayoutInfo[layoutInfo.Element] = layoutInfo.Clone();
System\Windows\Forms\NativeWindow.cs (3)
268s_windowHandles[handle] = root; 281s_windowIds[id] = handle.Handle; 735s_windowHandles[hwnd] = GCHandle.Alloc(window.PreviousWindow, GCHandleType.Weak);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
120_controlsInfo[controlName] = info;
System\Windows\Forms\PropertyStore.cs (3)
143_values[key] = new(value); 211_values[key] = Value.Create(value); 229_values[key] = Value.Create(new StrongBox<T>(value));
System\Windows\Forms\ToolTip\ToolTip.cs (5)
1230_tools[control] = info!; 1820_tools[tool] = tipInfo; 1844_tools[windowAsControl] = tipInfo; 1846_owners[windowAsControl.HWND] = windowAsControl; 2263_tools[control] = tipInfo;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
826t_themeHandles[className] = themeHandle; 859t_themeHandles[className] = themeHandle;
System.Windows.Forms.Design (61)
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
44_properties[propertyName] = value;
System\ComponentModel\Design\DesignerActionUI.cs (1)
210_componentToGlyph[comp] = designerActionGlyph;
System\ComponentModel\Design\DesignerHost.cs (1)
267_designers[component] = designer;
System\ComponentModel\Design\DesignerHost.Site.cs (1)
93_dictionary[key] = value;
System\ComponentModel\Design\InheritanceService.cs (3)
186_inheritedComponents[compValue] = attr; 258_inheritedComponents[ce.Component!] = InheritanceAttribute.InheritedReadOnly; 263_inheritedComponents[ce.Component!] = _addingAttribute!;
System\ComponentModel\Design\MenuCommandService.cs (3)
266buildVerbs[key] = verbsOrder.Count - 1; 276buildVerbs[designerActionVerb.Text] = verbsOrder.Count - 1; 286buildVerbs[localVerb.Text] = verbsOrder.Count - 1;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
308_fallbackFonts[planeNumber] = replaceFont;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (5)
52expressions[name] = exps; 281_statementsTable[name] = null; // prevent recursion 319_statementsTable[name] = (OrderedCodeStatementCollection?)instance; 549resources[prop.Name] = prop.GetValue(data._value); 640objectState[data._name] = new CodeDomComponentSerializationState(code, ctxStatements, defaultPropList, resources, defaultEventList, modifier);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
99_objects[value] = data;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
433docMemberHash[memberName] = i;
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
185map[currentSerializer] = newSerializer;
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2632names[variableDecl.Name] = GetTypeNameFromCodeTypeReference(manager, variableDecl.Type);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
54originalValues[originalValue] = count + 1; 92originalValues[value] = count;
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
69_cache[component] = value;
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (5)
480_serializers[objectType] = serializer; 783_instancesByName[name] = instance; 784_namesByInstance[instance] = name; 939_instancesByName[name] = instance; 940_namesByInstance[instance] = name;
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
20_expressions[value] = new ExpressionInfo(expression, isPreset);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (7)
250result[name] = value; 414ResourceTable[culture] = resourceSet; 573metadata[resourceName] = value; 623resourceSet[resourceName] = value; 651resourceSet[resourceName] = value; 689resourceSet[resourceName] = value; 793_nameTable[resourceName] = count;
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (3)
104names[member.Name] = GetTypeNameFromCodeTypeReference(manager, member.Type); 503methodMap[method.Name] = map; 525methodMap[rootMethod.Name] = rootMap;
System\ComponentModel\Design\UndoEngine.cs (1)
477_refToRemovedComponent[e.Component] = propsToUpdate;
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
40selectedNames[site.Name!] = site.Container!;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
94_cursorWidthCache[key] = cursorWidth;
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
914reverseFixupTable[newKey] = key;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2427SubclassedChildWindows[hwndChild] = true;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
102_columnsNames[lbi.DataGridViewColumn] = lbi.DataGridViewColumn.Name; 153_columnsNames[newColumn] = columnSiteName; 939_columnsNames[col] = col.Name; 1131_columnsNames[col] = liveCol.Site.Name;
System\Windows\Forms\Design\DocumentDesigner.cs (1)
301_axTools[clsid] = tool;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
63s_currentDrags[data] = component;
System\Windows\Forms\Design\SelectionUIService.cs (6)
405newSelection[comp] = existingItem; 413newSelection[comp] = new SelectionUIItem(this, comp); 921_selectionHandlers[component] = handler; 926_selectionItems[component] = item; 1256_selectionItems[component] = item; 1292_selectionItems[component] = selUI;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1402_extenderProperties[extender.PropertyName] = true;
System\Windows\Forms\Design\TabOrder.cs (2)
457_tabProperties[control] = prop; 798_tabNext[parent] = newIndex;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
121t_cachedToolboxItems[itemType] = tbxItem; 140t_cachedWinformsImages[itemType] = value;
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
609this.manipulatorStates[initialState.Id] = initialState;
System.Xaml (17)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (9)
55_namespaceMap[xmlNamespace] = xmlNamespace; 85_namespaceMap[xmlNamespace] = xmlNamespace; 142_namespaceMap[key] = newNamespace; 147_namespaceMap[oldNamespace] = newNamespace; 823_namespaceMap[namespaceName] = namespaceName; 852_namespaceMap[namespaceName] = null; 883_subsumingNamespaces[namespaceName] = null; 910_knownNamespaces[namespaceName] = null; 1838_ignorables[namespaceName] = null; // we don't care about value, just key
System\Xaml\AttachablePropertyServices.cs (1)
205instanceProperties[name] = value;
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
213xmlnsDictionary[ns.Key] = ns.Value;
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
403result[xmlns] = prefix;
System\Xaml\Schema\TypeReflector.cs (2)
517result[currentProp.Name] = currentProp; 571result[currentEvent.Name] = currentEvent;
System\Xaml\XamlXmlWriter.cs (3)
375prefixAssignmentHistory[prefix] = null; 752prefixMap[prefix] = ns; 753namespaceMap[ns] = prefix;
vbc (5)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
392properties[key] = value;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
520environmentVariables[key] = string.Empty; 524environmentVariables[key] = value ?? string.Empty; 532environmentVariables[RuntimeHostInfo.DotNetRootEnvironmentName] = dotNetRoot; 539environmentVariables[RuntimeHostInfo.DotNetTieredCompilationEnvironmentName] = value;
VBCSCompiler (8)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerServerTelemetry.cs (3)
176properties["compileresult"] = CompileResult == CompilationCacheCompileResult.Succeeded 183properties["storems"] = storeMs.ToString(CultureInfo.InvariantCulture); 188properties["compilems"] = compileMs.ToString(CultureInfo.InvariantCulture);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
392properties[key] = value;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
520environmentVariables[key] = string.Empty; 524environmentVariables[key] = value ?? string.Empty; 532environmentVariables[RuntimeHostInfo.DotNetRootEnvironmentName] = dotNetRoot; 539environmentVariables[RuntimeHostInfo.DotNetTieredCompilationEnvironmentName] = value;
vstest.console (3)
CommandLine\Executor.cs (1)
378commandSeenCount[processor.Metadata.Value.CommandName] = ++count;
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
393traitDictionary[trait.Name] = newTraitValueList;
Processors\Utilities\ArgumentProcessorUtilities.cs (1)
58parameters[nameValuePair[0]] = nameValuePair[1];
vstest.console.arm64 (3)
src\vstest\src\vstest.console\CommandLine\Executor.cs (1)
378commandSeenCount[processor.Metadata.Value.CommandName] = ++count;
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
393traitDictionary[trait.Name] = newTraitValueList;
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorUtilities.cs (1)
58parameters[nameValuePair[0]] = nameValuePair[1];
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
89_wrappedDictionary[propertyName] = value; //This will replace an existing mapping, unlike Add.
3335 references to Item
aspire (14)
Backchannel\ExtensionBackchannel.cs (2)
527return choicesByFormattedValue[result]; 557return result.Select(r => choicesByFormattedValue[r]).ToList();
Commands\PsCommand.cs (1)
426var shortPath = shortPaths[appHost.AppHostPath];
Commands\RenderCommand.cs (1)
134key => s_choices[key],
Commands\ResourceCommand.cs (2)
297.Where(argument => ShouldValidateRequiredOption(argument, parseMode) && result.GetResult(options[argument]) is not { Implicit: false }) 328var option = options[argument];
Commands\StopCommand.cs (3)
332? displayPaths[appHostPath] 474var displayPath = displayPaths[appHostPath]; 475var appHostIdentifier = GetAppHostIdentifier(connection, displayPath, appHostPathCounts[appHostPath] > 1);
Projects\DotNetBasedAppHostServerProject.cs (1)
534builder.Append(fileName).Append('\0').Append(scaffold[fileName]).Append('\0');
Projects\ProjectLocator.cs (1)
342logger.LogDebug("Found {CandidateCount} files matching pattern '{Pattern}'", candidateCountsByPattern[pattern], pattern);
Utils\FileSystemHelper.cs (2)
201var segments = segmentsMap[originalPath]; 202var newDepth = depthMap[originalPath] + 1;
Utils\ResourceColorMap.cs (1)
54return s_hexColors[variableName];
Aspire.Cli.EndToEnd.Tests (5)
Helpers\CliInstallStrategyTests.cs (5)
157Assert.Equal("16131", options.Environment["GITHUB_PR_NUMBER"]); 158Assert.Equal("52669a7cac3d4f10c6269909fc38e77124ed177c", options.Environment["GITHUB_PR_HEAD_SHA"]); 172Assert.Equal("http://azure.archive.ubuntu.com/ubuntu/", options.BuildArgs[CliInstallStrategy.UbuntuAptMirrorBuildArgName]); 255Assert.Equal("true", options.BuildArgs["SKIP_SOURCE_BUILD"]); 256Assert.Equal("http://azure.archive.ubuntu.com/ubuntu/", options.BuildArgs[CliInstallStrategy.UbuntuAptMirrorBuildArgName]);
Aspire.Cli.Tests (287)
Backchannel\BackchannelJsonSerializerContextTests.cs (2)
59Assert.Equal("select 1", roundTripped["sql"].GetString()); 60Assert.Equal(1, roundTripped["limit"].GetInt32());
Backchannel\ResourceSnapshotMapperTests.cs (12)
30var pid = Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["executable.pid"]); 150Assert.Equal(KnownCommandState.Enabled, result.Commands["restart"].State); 151Assert.Equal(KnownCommandState.Disabled, result.Commands["start"].State); 174Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-only"].Visibility); 175Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-disabled"].Visibility); 202Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 203Assert.Equal(1, result.Commands["custom-action"].SortOrder); 204Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 230Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 231Assert.Equal(1, result.Commands["custom-action"].SortOrder); 232Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 351var listProperty = Assert.IsType<JsonArray>(result.Properties["custom.list"]);
Commands\AddCommandTests.cs (1)
1611Assert.Equal(2, exactMatchQueryCounts["Aspire.Hosting.Redis"]);
Commands\AgentTelemetryCommandTests.cs (10)
40Assert.Equal("skill_invocation", tags[TelemetryConstants.Tags.AgentEventType]); 41Assert.Equal("copilot-cli", tags[TelemetryConstants.Tags.AgentClientName]); 42Assert.Equal("11111111-1111-1111-1111-111111111111", tags[TelemetryConstants.Tags.AgentSessionId]); 43Assert.Equal("aspire", tags[TelemetryConstants.Tags.AgentSkillName]); 44Assert.Equal("2026-01-01T00:00:00Z", tags[TelemetryConstants.Tags.AgentEventTimestamp]); 70Assert.Equal("tool_invocation", tags[TelemetryConstants.Tags.AgentEventType]); 71Assert.Equal("aspire-list_resources", tags[TelemetryConstants.Tags.AgentToolName]); 103Assert.Equal("reference_file_read", tags[TelemetryConstants.Tags.AgentEventType]); 160Assert.Equal("aspire", tags[TelemetryConstants.Tags.AgentSkillName]); 253Assert.Equal("aspire/references/deploy.md", tags[TelemetryConstants.Tags.AgentFileReference]);
Commands\AppHostLauncherTests.cs (17)
859Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]); 860Assert.Equal("true", environment[ProfilingTelemetry.EnvironmentVariables.Enabled]); 861Assert.Equal("session-1", environment[ProfilingTelemetry.EnvironmentVariables.SessionId]); 862Assert.Equal("session-1", environment[KnownConfigNames.Legacy.StartupOperationId]); 863Assert.Equal(activity.Id, environment[ProfilingTelemetry.EnvironmentVariables.TraceParent]); 864Assert.Equal("state-1", environment[ProfilingTelemetry.EnvironmentVariables.TraceState]); 874Assert.Equal("explicit-launch-configuration", environment[KnownConfigNames.CliAppHostSelectionOrigin]); 901Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]); 904environment[KnownConfigNames.CliLauncherProcessId]); 905Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliLauncherProcessStarted])); 920Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]); 921Assert.Equal("true", environment[ProfilingTelemetry.EnvironmentVariables.Enabled]); 922var sessionId = environment[ProfilingTelemetry.EnvironmentVariables.SessionId]; 924Assert.Equal(sessionId, environment[KnownConfigNames.Legacy.StartupOperationId]); 925Assert.Equal(Activity.Current?.Id, environment[ProfilingTelemetry.EnvironmentVariables.TraceParent]); 938Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]); 950Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]);
Commands\OperatingSystemCheckTests.cs (5)
91Assert.Equal("Example \\\"Linux\\\"", values["NAME"]); 92Assert.Equal(@"Cost \$1\!", values["PRETTY_NAME"]); 93Assert.Equal("1.0", values["VERSION_ID"]); 94Assert.Equal(@"path\\to", values["PATH"]); 95Assert.Equal("example-linux", values["ID"]);
Commands\RunCommandTests.cs (9)
972Assert.Equal("project_not_found", tags[TelemetryConstants.Tags.ErrorType]); 998Assert.Equal("build_failed", tags[TelemetryConstants.Tags.ErrorType]); 3696Assert.Equal("true", capturedEnv["DcpPublisher__RandomizePorts"]); 3700Assert.NotEqual(originalUserSecretsId, capturedEnv["DOTNET_USER_SECRETS_ID"]); 3703Assert.True(Guid.TryParse(capturedEnv["DOTNET_USER_SECRETS_ID"], out _), "Isolated user secrets ID should be a valid GUID"); 4270Assert.Equal(KnownLanguageId.CSharp, tags[TelemetryConstants.Tags.AppHostLanguage]); 4271Assert.Equal(detached, tags[TelemetryConstants.Tags.AppHostDetached]); 4272Assert.Equal(isolated, tags[TelemetryConstants.Tags.AppHostIsolated]); 4273Assert.Equal("certificate_trust_failed", tags[TelemetryConstants.Tags.ErrorType]);
Configuration\AspireConfigFileTests.cs (9)
282Assert.Equal("13.2.0", config.Packages["Aspire.Hosting.Redis"]); 295Assert.Equal("13.2.0", config.Packages["Aspire.Hosting.Redis"]); 372Assert.True(result.Features["polyglotSupportEnabled"]); 373Assert.False(result.Features["showAllTemplates"]); 393Assert.True(result.Features["polyglotSupportEnabled"]); 394Assert.False(result.Features["showAllTemplates"]); 415Assert.True(loaded.Features["polyglotSupportEnabled"]); 416Assert.False(loaded.Features["showAllTemplates"]); 447Assert.Equal("https://localhost:5001", loaded.Profiles["default"].ApplicationUrl);
Configuration\ConfigurationHelperTests.cs (2)
140Assert.True(config.Features["polyglotSupportEnabled"]); 141Assert.False(config.Features["showAllTemplates"]);
Configuration\ConfigurationServiceTests.cs (2)
204Assert.Equal("daily", config["channel"]); 318Assert.True(config.Features["polyglotSupportEnabled"]);
DotNet\DotNetCliRunnerTests.cs (4)
1635Assert.Equal("true", capturedEnv[KnownConfigNames.SuppressCliRunHook]); 1672Assert.Equal("true", capturedEnv[KnownConfigNames.SuppressCliRunHook]); 1979Assert.Equal("true", capturedEnv[KnownConfigNames.SuppressCliRunHook]); 2674Assert.Equal(executionContext.LogFilePath, capturedEnv[KnownConfigNames.CliLogFilePath]);
NuGet\NuGetSignatureVerificationEnablerTests.cs (3)
44Assert.Equal("True", envVars[NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification]); 65Assert.Equal("False", envVars[NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification]); 86Assert.Equal("True", envVars[NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification]);
Processes\OrphanDetectionEnvironmentTests.cs (18)
19Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]); 20Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStarted])); 21Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStartedStable])); 31Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliLauncherProcessId]); 32Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliLauncherProcessStarted])); 47Assert.Equal("999", environment[KnownConfigNames.CliProcessId]); 64Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]); 65Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStarted])); 66Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStartedStable])); 79Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]); 89Assert.Equal("4321", environment[KnownConfigNames.RemoteAppHostProcessId]); 90Assert.Equal("1000", environment[KnownConfigNames.RemoteAppHostProcessStarted]); 100Assert.Equal("4321", environment[KnownConfigNames.CliProcessId]); 117Assert.Equal("4321", environment[KnownConfigNames.CliProcessId]); 134Assert.Equal(int.MaxValue.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]); 136Assert.Equal("1000", environment[KnownConfigNames.CliProcessStartedStable]); 150Assert.Equal("999", environment[KnownConfigNames.CliProcessId]); 151Assert.Equal("111", environment[KnownConfigNames.CliProcessStarted]);
ProfileCaptureOptionsTests.cs (8)
198Assert.Equal("true", environmentVariables[AspireCliTelemetry.TelemetryOptOutConfigKey]); 199Assert.Equal("true", environmentVariables[KnownConfigNames.ProfilingEnabled]); 200Assert.Equal("true", environmentVariables[KnownConfigNames.Legacy.StartupProfilingEnabled]); 201Assert.Equal("test-session", environmentVariables[KnownConfigNames.ProfilingSessionId]); 202Assert.Equal("test-session", environmentVariables[KnownConfigNames.Legacy.StartupOperationId]); 203Assert.Equal("http://127.0.0.1:5001", environmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint]); 204Assert.Equal("grpc", environmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol]); 205Assert.Equal("1000", environmentVariables[KnownOtelConfigNames.BspScheduleDelay]);
ProfileCaptureServiceTests.cs (8)
448Assert.Equal("false", environmentVariables[KnownConfigNames.ProfilingEnabled]); 449Assert.Equal("false", environmentVariables[KnownConfigNames.Legacy.StartupProfilingEnabled]); 450Assert.Equal(string.Empty, environmentVariables[KnownConfigNames.ProfilingSessionId]); 451Assert.Equal(string.Empty, environmentVariables[KnownConfigNames.Legacy.StartupOperationId]); 452Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint]); 453Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol]); 454Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpHeaders]); 455Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.BspScheduleDelay]);
Projects\AppHostCandidateFinderTests.cs (25)
56Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 100Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 117Assert.Equal(0, result.CountsByPattern["apphost.ts"]); 136Assert.Equal(1, result.CountsByPattern["apphost.ts"]); 159Assert.Equal(1, result.CountsByPattern["apphost.ts"]); 177Assert.Equal(1, result.CountsByPattern["apphost.ts"]); 194Assert.Equal(1, result.CountsByPattern["bin"]); 211Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 267Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 324Assert.Equal(2, result.CountsByPattern["AppHost.csproj"]); 346Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 373Assert.Equal(2, result.CountsByPattern["AppHost.csproj"]); 391Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 416Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 432Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 446Assert.Equal(0, result.CountsByPattern["App/AppHost.csproj"]); 463Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 481Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 482Assert.Equal(1, result.CountsByPattern["*.csproj"]); 483Assert.Equal(1, result.CountsByPattern["apphost.ts"]); 484Assert.Equal(0, result.CountsByPattern["missing.proj"]); 526Assert.Equal(1, result.CountsByPattern["App/AppHost.csproj"]); 556Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]); 557Assert.Equal(1, result.CountsByPattern["apphost.ts"]); 581Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
Projects\AppHostEnvironmentDefaultsTests.cs (9)
18Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 33Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 35Assert.Equal("Staging", env["ASPIRE_ENVIRONMENT"]); 52Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 54Assert.Equal("Development", env["ASPIRE_ENVIRONMENT"]); 68Assert.Equal("Testing", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 69Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.Environment]); 70Assert.Equal("Testing", env["ASPIRE_ENVIRONMENT"]); 87Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
Projects\AppHostServerSessionTests.cs (14)
43Assert.Equal("present", environmentVariables["EXISTING_VALUE"]); 47Assert.Equal("present", project.ReceivedEnvironmentVariables["EXISTING_VALUE"]); 48Assert.Equal(session.AuthenticationToken, project.ReceivedEnvironmentVariables[KnownConfigNames.RemoteAppHostToken]); 71Assert.Equal("present", environmentVariables["EXISTING_VALUE"]); 76Assert.Equal("present", receivedEnvironmentVariables["EXISTING_VALUE"]); 77Assert.Equal(session.AuthenticationToken, receivedEnvironmentVariables[KnownConfigNames.RemoteAppHostToken]); 78Assert.Equal("true", receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.Enabled]); 79Assert.Equal("true", receivedEnvironmentVariables[KnownConfigNames.Legacy.StartupProfilingEnabled]); 80Assert.Equal("session-1", receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.SessionId]); 81Assert.Equal("session-1", receivedEnvironmentVariables[KnownConfigNames.Legacy.StartupOperationId]); 82Assert.StartsWith("00-", receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.TraceParent], StringComparison.Ordinal); 84receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.TraceParent], 85receivedEnvironmentVariables[KnownConfigNames.Legacy.StartupTraceParent]); 111Assert.NotEqual(parentActivity.Id, receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.TraceParent]);
Projects\DotNetAppHostProjectTests.cs (31)
224Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 226Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 240Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 242Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 257Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 259Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 289Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 291Assert.Equal("https://localhost:19000;http://localhost:15000", env[KnownAspNetCoreConfigNames.Urls]); 292Assert.Equal("https://localhost:21000", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 293Assert.Equal("https://localhost:22000", env["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 310Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 2331Assert.Equal("https://myapp.dev.localhost:17050;http://myapp.dev.localhost:15050", env[KnownAspNetCoreConfigNames.Urls]); 2332Assert.Equal("https://myapp.dev.localhost:21050", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 2333Assert.Equal("https://myapp.dev.localhost:22050", env["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 2335Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 2336Assert.Equal("Development", env[KnownAspNetCoreConfigNames.Environment]); 2366Assert.Equal("https://myapp.dev.localhost:17050;http://myapp.dev.localhost:15050", env[KnownAspNetCoreConfigNames.Urls]); 2367Assert.Equal("https://myapp.dev.localhost:21050", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 2368Assert.Equal("https://myapp.dev.localhost:22050", env["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 2370Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 2410Assert.Equal("https://from-run-json:19000", env[KnownAspNetCoreConfigNames.Urls]); 2411Assert.Equal("https://from-run-json:21000", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 2430Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 2431Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 2457Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 2458Assert.Equal("https://localhost:21293", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 2482Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 2497Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]); 2498Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 2526Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]); 2527Assert.Equal("https://myapp.dev.localhost:17050", env[KnownAspNetCoreConfigNames.Urls]);
Projects\GuestAppHostProjectTests.cs (50)
221Assert.Equal("12.0.0", reloaded.Packages["Aspire.Hosting.Redis"]); 240Assert.Equal("13.1.0", config.Packages["Aspire.Hosting.Redis"]); 263Assert.Equal("13.1.0", config.Packages["Aspire.Hosting.Redis"]); 465Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]); 466Assert.Equal("Development", envVars[KnownAspNetCoreConfigNames.Environment]); 467Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 468Assert.Equal("https://localhost:17269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 480Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 500Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 502Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]); 503Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 504Assert.Equal("https://localhost:18269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 523Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 524Assert.Equal("Development", envVars[KnownAspNetCoreConfigNames.Environment]); 525Assert.Equal("Development", envVars["ASPIRE_ENVIRONMENT"]); 561Assert.Equal("context", envVars["CUSTOM_CONTEXT_VARIABLE"]); 562Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]); 563Assert.Equal("Staging", envVars["ASPIRE_ENVIRONMENT"]); 564Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 566Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 567Assert.Equal("https://localhost:18269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 568Assert.Equal("/tmp/certs", envVars["SSL_CERT_DIR"]); 589Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 591Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]); 592Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]); 593Assert.Equal("https://localhost:18269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]); 608envVars["ASPIRE_APPHOST_ARGS"]); 638Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 639Assert.Equal("Development", envVars[KnownAspNetCoreConfigNames.Environment]); 640Assert.Equal("Development", envVars["ASPIRE_ENVIRONMENT"]); 655Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 671Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 673Assert.Equal("Staging", envVars["ASPIRE_ENVIRONMENT"]); 688Assert.Equal("Testing", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]); 689Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.Environment]); 690Assert.Equal("Testing", envVars["ASPIRE_ENVIRONMENT"]); 706Assert.Equal("import { refExpr } from './base.js';\n// aspire.ts", convertedFiles["aspire.ts"]); 707Assert.Equal("export type { MarshalledHandle } from './transport.js';\n// base.ts", convertedFiles["base.ts"]); 708Assert.Equal("// transport.ts", convertedFiles["transport.ts"]); 771Assert.Equal("1.0.0", reloaded.Packages["Aspire.Hosting"]); 812Assert.Equal("1.0.0", reloaded.Packages["Aspire.Hosting"]); 1174Assert.Equal(expectedWorkloadId, sessionFactory.CapturedEnvironmentVariables[KnownConfigNames.DcpWorkloadId]); 1214sessionFactory.CapturedEnvironmentVariables[KnownConfigNames.AspireHome]); 1530Assert.Equal("/path/to/cert.pem", envVars["NODE_EXTRA_CA_CERTS"]); 1551Assert.Equal(devCertificatePath, envVars["NODE_EXTRA_CA_CERTS"]); 1573Assert.Equal(devCertificatePath, envVars["NODE_EXTRA_CA_CERTS"]); 1604Assert.NotEqual(devCertificatePath, envVars["NODE_EXTRA_CA_CERTS"]); 1607await File.ReadAllBytesAsync(envVars["NODE_EXTRA_CA_CERTS"], TestContext.Current.CancellationToken)); 1672Assert.Equal(expectedBundlePath, envVars[certificateBundleEnvironmentVariable]); 1723Assert.Equal("missing-ca-certs.pem", envVars["NODE_EXTRA_CA_CERTS"]);
Telemetry\AspireCliTelemetryTests.cs (5)
56Assert.Equal(tag.Value?.ToString(), activityTags[tag.Key]); 127Assert.Equal(typeof(InvalidOperationException).FullName, eventTags[TelemetryConstants.Tags.ExceptionType]); 128Assert.Equal("Test exception", eventTags[TelemetryConstants.Tags.ExceptionMessage]); 138Assert.Equal(tag.Value?.ToString(), eventTags[tag.Key]?.ToString()); 426Assert.Equal(tag.Value?.ToString(), activityTags[tag.Key]);
Telemetry\ProfilingTelemetryContextTests.cs (8)
28Assert.Equal("true", environment[ProfilingTelemetry.EnvironmentVariables.Enabled]); 29Assert.Equal("session-1", environment[ProfilingTelemetry.EnvironmentVariables.SessionId]); 30Assert.Equal(activity.Id, environment[ProfilingTelemetry.EnvironmentVariables.TraceParent]); 31Assert.Equal("state-1", environment[ProfilingTelemetry.EnvironmentVariables.TraceState]); 32Assert.Equal("true", environment[KnownConfigNames.Legacy.StartupProfilingEnabled]); 33Assert.Equal("session-1", environment[KnownConfigNames.Legacy.StartupOperationId]); 34Assert.Equal(activity.Id, environment[KnownConfigNames.Legacy.StartupTraceParent]); 35Assert.Equal("state-1", environment[KnownConfigNames.Legacy.StartupTraceState]);
Telemetry\ProfilingTelemetryTests.cs (1)
365Assert.Equal("session-1", traceContext.Baggage[ProfilingTelemetry.Baggage.SessionId]);
Utils\FileSystemHelperTests.cs (25)
269Assert.Equal("App1.AppHost.csproj", result[paths[0]]); 270Assert.Equal("App2.AppHost.csproj", result[paths[1]]); 284Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]); 285Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]); 299Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]); 300Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]); 314Assert.Equal(Path.Combine("a", "shared", "Project.csproj"), result[paths[0]]); 315Assert.Equal(Path.Combine("b", "shared", "Project.csproj"), result[paths[1]]); 325Assert.Equal(Path.Combine("MyApp", "AppHost.cs"), result[paths[0]]); 335Assert.Equal("MyApp.AppHost.csproj", result[paths[0]]); 348Assert.Equal(Path.Combine("App1", "AppHost.cs"), result[paths[0]]); 362Assert.Equal(Path.Combine("App1", "AppHost.cs"), result[paths[0]]); 363Assert.Equal(Path.Combine("App2", "AppHost.cs"), result[paths[1]]); 377Assert.Equal(Path.Combine("a", "src", "AppHost.cs"), result[paths[0]]); 378Assert.Equal(Path.Combine("b", "src", "AppHost.cs"), result[paths[1]]); 392Assert.Equal("App1.AppHost.csproj", result[paths[0]]); 393Assert.Equal(Path.Combine("App2", "AppHost.cs"), result[paths[1]]); 416Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]); 417Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]); 418Assert.Equal("Unique.csproj", result[paths[2]]); 432Assert.Equal(@"C:\folder\Project.csproj", result[paths[0]]); 433Assert.Equal(@"D:\folder\Project.csproj", result[paths[1]]); 449Assert.Equal(Path.Combine("Folder", "Project.csproj"), result[paths[0]]); 450Assert.Equal(Path.Combine("folder", "Project.csproj"), result[paths[1]]); 465Assert.Equal("Project.csproj", result[paths[0]]);
Utils\SdkInstallHelperTests.cs (9)
34Assert.Equal("9.0.302", tags[TelemetryConstants.Tags.SdkDetectedVersion]); 35Assert.Equal("9.0.302", tags[TelemetryConstants.Tags.SdkMinimumRequiredVersion]); 36Assert.Equal("already_installed", tags[TelemetryConstants.Tags.SdkCheckResult]); 60Assert.Equal("(not found)", tags[TelemetryConstants.Tags.SdkDetectedVersion]); 61Assert.Equal("9.0.302", tags[TelemetryConstants.Tags.SdkMinimumRequiredVersion]); 62Assert.Equal("not_installed", tags[TelemetryConstants.Tags.SdkCheckResult]); 86Assert.Equal("8.0.100", tags[TelemetryConstants.Tags.SdkDetectedVersion]); 87Assert.Equal("9.0.302", tags[TelemetryConstants.Tags.SdkMinimumRequiredVersion]); 88Assert.Equal("not_installed", tags[TelemetryConstants.Tags.SdkCheckResult]);
Aspire.Dashboard (17)
Components\Dialogs\ManageDataDialog.razor.cs (4)
126SelectAllDataTypesForResource(resourceName, _resourceDataRows[resourceName].TelemetryData); 147SelectAllDataTypesForResource(compositeName, _resourceDataRows[compositeName].TelemetryData); 167SelectAllDataTypesForResource(resource.Name, _resourceDataRows[resource.Name].TelemetryData); 186SelectAllDataTypesForResource(resource.Name, _resourceDataRows[resource.Name].TelemetryData);
Model\TelemetryExportService.cs (1)
68.Select(kvp => resourcesByName[kvp.Key])
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (5)
400var metric = metricsByName[insertedRecord.InstrumentName]; 680ResourceView = resource.ViewsById[record.ResourceViewId].View 724var resource = _cachedResourcesById[resourceId]; 725var view = resource.ViewsById[resourceViewId]; 726var scope = _cachedScopesById[scopeId];
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (2)
298.Concat(instrumentsById[instrumentIdsByDimensionId[dimensionId]].Summary.Parent.Attributes)
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (3)
506var knownAttributeValues = ingestionState.KnownAttributeValues[instrumentId]; 508var dimensionCount = ingestionState.DimensionCounts[instrumentId]; 706exemplars[new MetricExemplarKey(inserted.PointId, inserted.StartTimeTicks, inserted.ExemplarValue)].ExemplarId = inserted.ExemplarId;
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (2)
43traces.AddRange(batch.Select(record => tracesById[record.TraceId])); 404Items = identities.Select(identity => traces[identity.TraceId].Spans.Single(span => span.SpanId == identity.SpanId)).ToList(),
Aspire.Dashboard.Tests (34)
GlobalizationHelpersTests.cs (1)
100var englishCultures = GlobalizationHelpers.ExpandedLocalizedCultures[requestedLanguage];
Model\GenAIMessageParsingHelperTests.cs (4)
277Assert.Equal("w1", richGeneric.AdditionalProperties["widget_id"].GetString()); 278Assert.Equal("blue", richGeneric.AdditionalProperties["color"].GetString()); 279Assert.Equal(42, richGeneric.AdditionalProperties["count"].GetInt32()); 355Assert.Equal(JsonValueKind.Array, errorPart.AdditionalProperties["content"].ValueKind);
Model\GenAISchemaHelpersTests.cs (2)
193var param1 = schema.Properties["param1"]; 198var param2 = schema.Properties["param2"];
Model\GenAIVisualizerDialogViewModelTests.cs (10)
1169var locationProp = tool.ToolDefinition.Parameters.Properties["location"]; 1174var unitProp = tool.ToolDefinition.Parameters.Properties["unit"]; 1532var valueProp = tool.ToolDefinition.Parameters.Properties["value"]; 1538var countProp = tool.ToolDefinition.Parameters.Properties["count"]; 1543var flagProp = tool.ToolDefinition.Parameters.Properties["flag"]; 1637var itemsProp = tool.ToolDefinition.Parameters.Properties["items"]; 1644var numbersProp = tool.ToolDefinition.Parameters.Properties["numbers"]; 1651var mixedProp = tool.ToolDefinition.Parameters.Properties["mixed"]; 2123var validParam = tool.ToolDefinition.Parameters.Properties["validParam"]; 2129var invalidParam = tool.ToolDefinition.Parameters.Properties["invalidParam"];
Model\TelemetryExportServiceTests.cs (8)
1432var waitingForProperty = Assert.IsType<JsonArray>(deserialized.Properties[KnownProperties.Resource.WaitingFor]); 1435var connectionPropertiesObject = Assert.IsType<JsonObject>(deserialized.Properties[KnownProperties.Resource.ConnectionProperties]); 1480Assert.Equal("spec-value", deserialized.Environment["FROM_SPEC_VAR"]); 1482Assert.Equal("another-spec-value", deserialized.Environment["ANOTHER_SPEC_VAR"]); 1517Assert.Equal(japaneseEnvValue, deserialized.Environment["JAPANESE_VAR"]); 1566var portsArray = Assert.IsType<JsonArray>(deserialized.Properties["container.ports"]); 1572var exitCode = deserialized.Properties["resource.exitCode"]!.GetValue<double>(); 1576var enabled = deserialized.Properties["resource.enabled"]!.GetValue<bool>();
TelemetryRepositoryTests\MetricsTests.cs (6)
493Assert.Equal(10, Assert.IsType<MetricValue<long>>(Assert.Single(dimensions["stable"].Values)).Value); 494Assert.Equal(25, Assert.IsType<MetricValue<long>>(dimensions["changing"].Values[^1]).Value); 1791var stableValue = Assert.IsType<MetricValue<long>>(Assert.Single(dimensions["stable"].Values)); 1794dimensions["changing"].Values.Cast<MetricValue<long>>(), 1841var stableValue = Assert.IsType<HistogramValue>(Assert.Single(dimensions["stable"].Values)); 1845dimensions["changing"].Values.Cast<HistogramValue>(),
TelemetryRepositoryTests\TraceTests.cs (3)
1654Assert.Equal(count, actual[value]); 2685Assert.Equal(2, serviceNames["TestService"]); 2686Assert.Equal(1, serviceNames["TestPeer"]);
Aspire.EndToEnd.Tests (1)
IntegrationServicesFixture.cs (1)
34public ProjectInfo IntegrationServiceA => Projects["integrationservicea"];
Aspire.Hosting (11)
ApplicationModel\ResourceCollection.cs (3)
25ThrowDuplicateResource(resource, _resourcesByName[resource.Name]); 59ThrowDuplicateResource(item, _resourcesByName[item.Name]); 80ThrowDuplicateResource(item, _resourcesByName[item.Name]);
Dcp\DcpExecutor.cs (1)
452var original = objectsByName[name];
Pipelines\DistributedApplicationPipeline.cs (5)
865var stepTcs = stepCompletions[step.Name]; 874.Select(depName => stepCompletions[depName].Task); 881.Where(depName => stepCompletions.ContainsKey(depName) && stepCompletions[depName].Task.IsFaulted) 1125if (visitStates[step.Name] == VisitState.Unvisited) 1338var stepsAtLevel = stepsByLevel[level];
ProjectResourceBuilderExtensions.cs (2)
737if (endpointCountByScheme[bindingAddress.Scheme] > 1) 739endpointName += endpointCountByScheme[bindingAddress.Scheme];
Aspire.Hosting.Azure (8)
AzurePublishingContext.cs (7)
135var resourceGroupParam = ParameterLookup[environment.ResourceGroupName]; 138var locationParam = ParameterLookup[environment.Location]; 141var principalId = ParameterLookup[environment.PrincipalId]; 240BicepOutputReference b => GetOutputs(moduleMap[b.Resource], b.Name), 241ParameterResource p => ParameterLookup[p], 317var module = moduleMap[resource]; 435var module = moduleMap[output.Resource];
Provisioning\Provisioners\BicepProvisioner.cs (1)
1361var vaultUri = resource.Outputs[kvr.VaultUriOutputReference.Name] as string ?? throw new InvalidOperationException($"{kvr.VaultUriOutputReference.Name} not found in outputs.");
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
238var mapping = context._endpointMapping[ep.EndpointName]; 296var mapping = context._endpointMapping[epExpr.Endpoint.EndpointName];
Aspire.Hosting.Azure.AppService (4)
AzureAppServiceWebsiteContext.cs (4)
181(GetEndpointValue(context._slotEndpointMapping[ep.EndpointName], EndpointProperty.Url), secretType) : 182(GetEndpointValue(context._endpointMapping[ep.EndpointName], EndpointProperty.Url), secretType); 225var mapping = isSlot ? context._slotEndpointMapping[epExpr.Endpoint.EndpointName] : context._endpointMapping[epExpr.Endpoint.EndpointName];
Aspire.Hosting.Azure.Kubernetes.Tests (2)
AzureKubernetesHelmChartTests.cs (2)
52Assert.Equal("true", chart.Resource.Values["crds.enabled"]); 53Assert.Equal("true", chart.Resource.Values["config.enableGatewayAPI"]);
Aspire.Hosting.Azure.Tests (102)
AzureApplicationInsightsExtensionsTests.cs (1)
98Assert.Equal("myinstrumentationkey", config["APPLICATIONINSIGHTS_CONNECTION_STRING"]);
AzureBicepProvisionerTests.cs (4)
192Assert.Equal(principalType, resource.Parameters[AzureBicepResource.KnownParameters.PrincipalType]); 1362Assert.Equal("https://storage.blob.core.windows.net/", resource.Outputs["blobEndpoint"]); 1521Assert.Equal("https://storage.blob.core.windows.net/", resource.Outputs["blobEndpoint"]); 1554Assert.Equal("https://storage.blob.core.windows.net/", resource.Outputs["blobEndpoint"]);
AzureBicepResourceTests.cs (2)
28Assert.Equal("value1", bicepResource.Resource.Parameters["param1"]); 29Assert.Equal("value2", bicepResource.Resource.Parameters["param2"]);
AzureCosmosDBExtensionsTests.cs (9)
78Assert.Equal(partitionCount.ToString(CultureInfo.InvariantCulture), config["AZURE_COSMOS_EMULATOR_PARTITION_COUNT"]); 692Assert.Equal("https", env["PROTOCOL"]); 693Assert.Equal("https", env["EXPLORER_PROTOCOL"]); 694Assert.Same(context.PfxPath, env["CERT_PATH"]); 760Assert.Equal("https", env["PROTOCOL"]); 761Assert.Equal("https", env["EXPLORER_PROTOCOL"]); 762Assert.Same(context.PfxPath, env["CERT_PATH"]); 763Assert.Same(passwordParam, env["CERT_SECRET"]); 1094Assert.Equal(count.ToString(CultureInfo.InvariantCulture), config["AZURE_COSMOS_EMULATOR_PARTITION_COUNT"]);
AzureDeployerTests.cs (46)
297Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 298Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 299Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 300Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 301Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 357Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 358Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 359Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 360Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 361Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 423Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 424Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 425Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 426Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 427Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 491var (containerAppSubscriptionId, containerAppResourceGroupName) = GetSubscriptionAndResourceGroup((string)containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]!); 551var webSiteSuffix = Assert.IsType<string>(appServiceEnv.Resource.Outputs["webSiteSuffix"]); 553var (planSubscriptionId, planResourceGroupName) = GetSubscriptionAndResourceGroup((string)appServiceEnv.Resource.Outputs["planId"]!); 646Assert.Equal("acaregistry", acaEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 647Assert.Equal("acaregistry.azurecr.io", acaEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 648Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aca-identity"), acaEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 649Assert.Equal("aca.westus.azurecontainerapps.io", acaEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 650Assert.Equal(GetTestResourceId("/providers/Microsoft.App/managedEnvironments/acaenv"), acaEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 653Assert.Equal("aasregistry", aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 654Assert.Equal("aasregistry.azurecr.io", aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 655Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aas-identity"), aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 656Assert.Equal(GetTestResourceId("/providers/Microsoft.Web/serverfarms/aasplan"), aasEnv.Resource.Outputs["planId"]); 657Assert.Equal("aas-client-id", aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_CLIENT_ID"]); 897Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 898Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 899Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 900Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 901Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 959Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 960Assert.Equal(GetTestResourceId("/providers/Microsoft.App/managedEnvironments/testenv"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 1169Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]); 1170Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]); 1171Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]); 1172Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 1173Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 1178Assert.Equal(await ((BicepOutputReference)funcAppDeployment.Parameters["env_outputs_azure_container_apps_environment_default_domain"]!).GetValueAsync(), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]); 1179Assert.Equal(await ((BicepOutputReference)funcAppDeployment.Parameters["env_outputs_azure_container_apps_environment_id"]!).GetValueAsync(), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]); 1180Assert.Equal("https://testfuncstorage.blob.core.windows.net/", await ((BicepOutputReference)funcAppDeployment.Parameters["funcstorage_outputs_blobendpoint"]!).GetValueAsync()); 1181Assert.Equal("https://testhoststorage.blob.core.windows.net/", await ((BicepOutputReference)funcAppDeployment.Parameters["hoststorage_outputs_blobendpoint"]!).GetValueAsync());
AzureEnvironmentResourceExtensionsTests.cs (7)
498Assert.Equal("https://storage.blob.core.windows.net/", storage.Resource.Outputs["blobEndpoint"]); 571Assert.Equal("https://storage.blob.core.windows.net/", storage.Resource.Outputs["blobEndpoint"]); 607Assert.Equal("https://storage.blob.core.windows.net/", storage.Resource.Outputs["blobEndpoint"]); 636Assert.Equal("https://storage.blob.core.windows.net/", storage.Resource.Outputs["blobEndpoint"]); 1824Assert.Equal("https://storage2.blob.core.windows.net/", storage2.Resource.Outputs["blobEndpoint"]); 2133Assert.Equal("https://storage2.blob.core.windows.net/", storage2.Resource.Outputs["blobEndpoint"]); 5245var subscription = _subscriptionsByTenant[FirstTenantId].Single();
AzureEventHubsExtensionsTests.cs (3)
618Assert.Equal("hub1", target["Aspire__Azure__Messaging__EventHubs__EventHubBufferedProducerClient__hub1__EventHubName"]); 639Assert.Equal("cg1", target["Aspire__Azure__Messaging__EventHubs__EventHubBufferedProducerClient__cg1__ConsumerGroup"]); 640Assert.Equal("hub1", target["Aspire__Azure__Messaging__EventHubs__EventHubBufferedProducerClient__cg1__EventHubName"]);
AzureFunctionsTests.cs (1)
246var aspNetCoreUrls = context.EnvironmentVariables["ASPNETCORE_URLS"];
DurableTaskResourceExtensionsTests.cs (4)
195Assert.Equal("realhub1", env["DTS_TASK_HUB_NAMES"]); 210Assert.Equal("hub1, realhub2", env["DTS_TASK_HUB_NAMES"]); 227Assert.Equal("hub1", env1["DTS_TASK_HUB_NAMES"]); 228Assert.Equal("hub2", env2["DTS_TASK_HUB_NAMES"]);
FoundryExtensionsTests.cs (3)
340Assert.Equal("https://weatheragent.example.azurecontainerapps.io", environmentVariables["services__weatheragent__http__0"]); 410Assert.Equal("https://weather-agent.example.azurecontainerapps.io/health", environmentVariables["WEATHER_HEALTH_URL"]); 451Assert.Equal("weather-agent.example.azurecontainerapps.io:443", environmentVariables["WEATHER_HOST_AND_PORT"]);
ResourceWithAzureFunctionsConfigTests.cs (22)
255var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb__accountEndpoint"]); 258targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__AccountEndpoint"]); 261Assert.Equal(dbResource.DatabaseName, target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__DatabaseName"]); 263Assert.Equal(dbResource.DatabaseName, target["Aspire__Microsoft__EntityFrameworkCore__Cosmos__cosmosdb__DatabaseName"]); 280var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb__accountEndpoint"]); 283targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__AccountEndpoint"]); 286Assert.Equal(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__DatabaseName"], containerResource.Parent.DatabaseName); 287Assert.Equal(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__ContainerName"], containerResource.ContainerName); 289Assert.Equal(target["Aspire__Microsoft__EntityFrameworkCore__Cosmos__cosmosdb__DatabaseName"], containerResource.Parent.DatabaseName); 290Assert.Equal(target["Aspire__Microsoft__EntityFrameworkCore__Cosmos__cosmosdb__ContainerName"], containerResource.ContainerName); 308var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb"]); 311targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__ConnectionString"]); 330var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb"]); 333targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__ConnectionString"]); 409Assert.Equal("ordersqueue", target["Aspire__Azure__Messaging__ServiceBus__myqueue__QueueOrTopicName"]); 428var connectionStringExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Azure__Messaging__ServiceBus__myqueue__ConnectionString"]); 448Assert.Equal("notificationstopic", target["Aspire__Azure__Messaging__ServiceBus__mytopic__QueueOrTopicName"]); 467var connectionStringExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Azure__Messaging__ServiceBus__mytopic__ConnectionString"]); 489Assert.Equal("notificationstopic", target["Aspire__Azure__Messaging__ServiceBus__mysub__QueueOrTopicName"]); 490Assert.Equal("usersubscription", target["Aspire__Azure__Messaging__ServiceBus__mysub__SubscriptionName"]); 511var connectionStringExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Azure__Messaging__ServiceBus__mysub__ConnectionString"]); 514connectionStringExpression = Assert.IsType<ReferenceExpression>(target["mysub"]);
Aspire.Hosting.Blazor.Tests (64)
BlazorHostedExtensionsTests.cs (19)
31Assert.Equal("cluster-weatherapi", env["ReverseProxy__Routes__route-weatherapi__ClusterId"]); 32Assert.Equal("/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-weatherapi__Match__Path"]); 33Assert.Equal("/_api/weatherapi", env["ReverseProxy__Routes__route-weatherapi__Transforms__0__PathRemovePrefix"]); 34Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]); 53var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]); 57Assert.Equal("/_blazor/_configuration", env["Client__ConfigEndpointPath"]); 73Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp__ClusterId"]); 74Assert.Equal("/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp__Match__Path"]); 75Assert.Equal("/_otlp", env["ReverseProxy__Routes__route-otlp__Transforms__0__PathRemovePrefix"]); 91var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]); 121var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]); 148var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]); 297var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]); 319var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]); 362Assert.Equal("/weather/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-weatherapi__Match__Path"]); 363Assert.Equal("/weather/weatherapi", env["ReverseProxy__Routes__route-weatherapi__Transforms__0__PathRemovePrefix"]); 364Assert.Equal("/catalog/catalogapi/{**catch-all}", env["ReverseProxy__Routes__route-catalogapi__Match__Path"]); 365Assert.Equal("/catalog/catalogapi", env["ReverseProxy__Routes__route-catalogapi__Transforms__0__PathRemovePrefix"]); 368var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
EndpointsManifestTransformerTests.cs (2)
265Assert.Equal(2, adminChildren["file3"].Asset!.ContentRootIndex); // 0 + offset of 2 288Assert.Equal(7, node.Children["child"].Asset!.ContentRootIndex);
GatewayConfigurationBuilderTests.cs (41)
29Assert.Equal("cluster-weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__ClusterId"]); 30Assert.Equal("/store/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-store-weatherapi__Match__Path"]); 31Assert.Equal("/store/_api/weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__Transforms__0__PathRemovePrefix"]); 51Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]); 76Assert.Equal("https+http://_api.weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__api__Address"]); 101Assert.Equal("https+http://_public.weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__public__Address"]); 102Assert.Equal("https+http://_admin.weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__admin__Address"]); 105Assert.Equal("cluster-weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__ClusterId"]); 126Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]); 146Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp-store__ClusterId"]); 147Assert.Equal("/store/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-store__Match__Path"]); 148Assert.Equal("/store/_otlp", env["ReverseProxy__Routes__route-otlp-store__Transforms__0__PathRemovePrefix"]); 173Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]); 223Assert.Equal("x-otlp-api-key", env["ReverseProxy__Routes__route-otlp-store__Transforms__1__RequestHeader"]); 224Assert.Equal("abc123", env["ReverseProxy__Routes__route-otlp-store__Transforms__1__Set"]); 228var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"]; 252Assert.Equal("http://localhost:4317", env["ReverseProxy__Clusters__cluster-otlp-dashboard__Destinations__d1__Address"]); 276var configResponse = env["ClientApps__store__ConfigResponse"]; 298var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"]; 324var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"]; 346var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"]; 372Assert.Equal("/store/myapi/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-store-weatherapi__Match__Path"]); 373Assert.Equal("/store/myapi/weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__Transforms__0__PathRemovePrefix"]); 376Assert.Equal("/store/myotlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-store__Match__Path"]); 377Assert.Equal("/store/myotlp", env["ReverseProxy__Routes__route-otlp-store__Transforms__0__PathRemovePrefix"]); 402Assert.Equal("/store/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-store-weatherapi__Match__Path"]); 403Assert.Equal("/admin/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-admin-weatherapi__Match__Path"]); 406Assert.Equal("/store/_api/catalogapi/{**catch-all}", env["ReverseProxy__Routes__route-store-catalogapi__Match__Path"]); 407Assert.Equal("/admin/_api/usersapi/{**catch-all}", env["ReverseProxy__Routes__route-admin-usersapi__Match__Path"]); 410Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]); 411Assert.Equal("https+http://catalogapi", env["ReverseProxy__Clusters__cluster-catalogapi__Destinations__d1__Address"]); 412Assert.Equal("https+http://usersapi", env["ReverseProxy__Clusters__cluster-usersapi__Destinations__d1__Address"]); 415Assert.Equal("http://localhost:18890", env["ReverseProxy__Clusters__cluster-otlp-dashboard__Destinations__d1__Address"]); 416Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp-store__ClusterId"]); 417Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp-admin__ClusterId"]); 420Assert.Equal("/store/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-store__Match__Path"]); 421Assert.Equal("/admin/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-admin__Match__Path"]); 428var storeConfig = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"]; 429var adminConfig = (IManifestExpressionProvider)env["ClientApps__admin__ConfigResponse"]; 460var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"]; 538env["ReverseProxy__Clusters__cluster-otlp-dashboard__Destinations__d1__Address"]);
WithBlazorAppTests.cs (2)
261Assert.Equal(expectedDebugState, commands["debug-in-browser"].UpdateState(context)); 262Assert.Equal(ResourceCommandState.Hidden, commands["stop-browser-debug"].UpdateState(context));
Aspire.Hosting.Browsers.Tests (7)
BrowserLogsBuilderExtensionsTests.cs (7)
487Assert.Equal("msedge", userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:web:{BrowserLogsBuilderExtensions.BrowserConfigurationKey}"]); 488Assert.Equal(nameof(BrowserUserDataMode.Shared), userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:web:{BrowserLogsBuilderExtensions.UserDataModeConfigurationKey}"]); 489Assert.Equal("Default", userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:web:{BrowserLogsBuilderExtensions.ProfileConfigurationKey}"]); 570Assert.Equal("msedge", userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:web:{BrowserLogsBuilderExtensions.BrowserConfigurationKey}"]); 609Assert.Equal("chrome", userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:{BrowserLogsBuilderExtensions.BrowserConfigurationKey}"]); 610Assert.Equal(nameof(BrowserUserDataMode.Isolated), userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:{BrowserLogsBuilderExtensions.UserDataModeConfigurationKey}"]); 655Assert.Equal("msedge", userSecretsManager.Secrets[$"{BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName}:web:{BrowserLogsBuilderExtensions.BrowserConfigurationKey}"]);
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.cs (8)
505var enumName = _enumNames[enumType.TypeId]; 541var dtoName = _dtoNames[dto.TypeId]; 712sb.Append(_dtoNames[dtoInfo.TypeId]); 808var concreteTypeIds = _implNames.Keys.OrderBy(id => _interfaceNames[id], StringComparer.Ordinal).ToList(); 821var interfaceName = _interfaceNames[typeId]; 822var implName = _implNames[typeId]; 1921var interfaceName = _interfaceNames[typeId]; 1943var appInterface = hasAppInterface ? _interfaceNames[appTypeId] : "DistributedApplication";
Aspire.Hosting.CodeGeneration.Go.Tests (13)
AtsGoCodeGeneratorTests.cs (13)
40await Verify(files["aspire.go"], extension: "go") 53var aspireGo = files["aspire.go"]; 233var aspireGo = files["aspire.go"]; 250var aspireGo = files["aspire.go"]; 264var aspireGo = files["aspire.go"]; 275var aspireGo = files["aspire.go"]; 288var aspireGo = files["aspire.go"]; 300var aspireGo = files["aspire.go"]; 313var baseGo = files["base.go"]; 328Assert.Contains("module apphost/modules/aspire", files["go.mod"]); 337var aspireGo = files["aspire.go"]; 351var aspireGo = files["aspire.go"]; 371var aspireGo = files["aspire.go"];
Aspire.Hosting.CodeGeneration.Java (5)
AtsJavaCodeGenerator.cs (5)
671var enumName = _enumNames[enumType.TypeId]; 722var dtoName = _dtoNames[dto.TypeId]; 884sb.Append(_dtoNames[dtoInfo.TypeId]); 2394var className = _classNames[typeId]; 2405baseClassName = _classNames[exportedBaseType.TypeId];
Aspire.Hosting.CodeGeneration.Java.Tests (15)
AtsJavaCodeGeneratorTests.cs (15)
84var testConfigsJava = files["aspire/TestConfigs.java"]; 221var containerResourceJava = files["aspire/ContainerResource.java"]; 284var testRedisJava = files["aspire/TestRedisResource.java"]; 298var testRedisJava = files["aspire/TestRedisResource.java"]; 315var builderJava = files["aspire/IDistributedApplicationBuilder.java"]; 316var testRedisJava = files["aspire/TestRedisResource.java"]; 330var distributedApplicationJava = files["aspire/DistributedApplication.java"]; 342var aspireJava = files["aspire/Aspire.java"]; 353var aspireClientJava = files["aspire/AspireClient.java"]; 366var aspireClientJava = files["aspire/AspireClient.java"]; 367var testConfigDtoJava = files["aspire/TestConfigDto.java"]; 369Assert.Contains("interface JsonSerializable", files["aspire/JsonSerializable.java"]); 451var registrations = files["aspire/AspireRegistrations.java"]; 466var aspireList = files["aspire/AspireList.java"]; 467var aspireDict = files["aspire/AspireDict.java"];
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (1)
826var enumName = _enumTypeNames[enumType.TypeId];
PythonModuleBuilder.cs (1)
175output.Append(ResourceOptions[kvp.Key]);
Aspire.Hosting.CodeGeneration.Python.Tests (10)
AtsPythonCodeGeneratorTests.cs (10)
38await Verify(files["aspire_app.py"], extension: "py") 51var aspirePy = files["aspire_app.py"]; 231var aspirePy = files["aspire_app.py"]; 248var aspirePy = files["aspire_app.py"]; 264var aspirePy = files["aspire_app.py"]; 275var aspirePy = files["aspire_app.py"]; 289var aspirePy = files["aspire_app.py"]; 300var aspirePy = files["aspire_app.py"]; 312var aspirePy = files["aspire_app.py"]; 323var aspirePy = files["aspire_app.py"];
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
155var enumName = _enumNames[enumType.TypeId]; 212var dtoName = _dtoNames[dto.TypeId]; 832results.Add(new RustHandleType(typeId, _structNames[typeId], isResourceBuilder));
Aspire.Hosting.CodeGeneration.Rust.Tests (13)
AtsRustCodeGeneratorTests.cs (6)
40await Verify(files["aspire.rs"], extension: "rs") 53var aspireRs = files["aspire.rs"]; 232var aspireRs = files["aspire.rs"]; 249var aspireRs = files["aspire.rs"]; 265var aspireRs = files["aspire.rs"]; 279Assert.Contains("pub mod aspire", files["mod.rs"]);
RustLanguageSupportTests.cs (7)
29Assert.Contains("#[path = \".aspire/modules/mod.rs\"]", files["apphost.rs"], StringComparison.Ordinal); 30Assert.Contains("let builder = create_builder(None)?;", files["apphost.rs"], StringComparison.Ordinal); 31Assert.Contains("app.run(None)?;", files["apphost.rs"], StringComparison.Ordinal); 32Assert.Contains("[[bin]]", files["Cargo.toml"], StringComparison.Ordinal); 33Assert.Contains("name = \"apphost\"", files["Cargo.toml"], StringComparison.Ordinal); 34Assert.Contains("path = \"apphost.rs\"", files["Cargo.toml"], StringComparison.Ordinal); 105var multiBinaryManifest = files["Cargo.toml"] + """
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2130var className = _projector.WrapperClassNames[aliasTypeId];
Aspire.Hosting.CodeGeneration.TypeScript.Tests (46)
AtsTypeScriptCodeGeneratorTests.cs (36)
61Assert.Equal(EmbeddedResources.Read("base.mts"), files["base.mts"]); 62Assert.Equal(EmbeddedResources.Read("transport.mts"), files["transport.mts"]); 80await Verify(files["aspire.mts"], extension: "ts") 93var aspireTs = files["aspire.mts"]; 107var aspireTs = files["aspire.mts"]; 110Assert.Contains("export class ReferenceExpression {", files["base.mts"]); 111Assert.Contains("registerHandleWrapper('Aspire.Hosting/Aspire.Hosting.ApplicationModel.ReferenceExpression'", files["base.mts"]); 112Assert.Contains("condition: extractHandleForExpr(state.condition),", files["base.mts"]); 113Assert.Contains("('$handle' in json || '$expr' in json)", files["base.mts"]); 114Assert.Contains("registerCancellation(state.client, cancellationToken)", files["base.mts"]); 199var aspireTs = files["aspire.mts"]; 224var aspireTs = files["aspire.mts"]; 246var aspireTs = files["aspire.mts"]; 267var aspireTs = files["aspire.mts"]; 484var aspireTs = files["aspire.mts"]; 760var aspireTs = files["aspire.mts"]; 772var aspireTs = files["aspire.mts"]; 1018var aspireTs = files["aspire.mts"]; 1042var aspireTs = files["aspire.mts"]; 1060var aspireTs = files["aspire.mts"]; 1091var aspireTs = files["aspire.mts"]; 1182var aspireTs = files["aspire.mts"]; 1300AssertRpcHandlesMatchConstructedWrappers(files["aspire.mts"]); 1370var aspireTs = files["aspire.mts"]; 1388var aspireTs = files["aspire.mts"]; 1406var aspireTs = files["aspire.mts"]; 1463var aspireTs = files["aspire.mts"]; 1728var aspireTs = files["aspire.mts"]; 1902return files["aspire.mts"]; 2107var code = files["aspire.mts"]; 2129var code = files["aspire.mts"]; 2151var code = files["aspire.mts"]; 2169var code = files["aspire.mts"]; 2200var code = files["aspire.mts"]; 2701methodsByCapability[eventHubsCapability.CapabilityId].Declaration, 2705methodsByCapability[serviceBusCapability.CapabilityId].Declaration,
TypeScriptLanguageSupportTests.cs (10)
30var packageJson = ParseJson(files["package.json"]); 57Assert.DoesNotContain("\\u003E", files["package.json"]); 60Assert.Contains("project: './tsconfig.apphost.json'", files["eslint.config.mjs"]); 62var tsConfig = ParseJson(files["tsconfig.apphost.json"]); 98var packageJson = ParseJson(files["package.json"]); 145var packageJson = ParseJson(files["package.json"]); 178var packageJson = ParseJson(files["package.json"]); 234var appHostRunJson = ParseJson(files["apphost.run.json"]); 296Assert.Equal(EmbeddedResources.Read("eslint.config.mjs"), files["eslint.config.mjs"]); 314Assert.Equal(EmbeddedResources.Read("tsconfig.apphost.json"), files["tsconfig.apphost.json"]);
Aspire.Hosting.Containers.Tests (1)
WithDockerfileTests.cs (1)
906Assert.Equal("1.0", annotation.BuildArguments["VERSION"]);
Aspire.Hosting.DevTunnels.Tests (2)
DevTunnelResourceBuilderExtensionsTests.cs (2)
40Assert.Equal("https://test123.devtunnels.ms:443", values["services__target__https__0"]); 41Assert.Equal("https://test123.devtunnels.ms:443", values["TARGET_HTTPS"]);
Aspire.Hosting.Docker (4)
DockerComposeServiceResourceExtensions.cs (4)
22var referencedResource = resource.Parent.ResourceMapping[ep.Resource]; 24var mapping = referencedResource.EndpointMappings[ep.EndpointName]; 50var referencedResource = resource.Parent.ResourceMapping[epExpr.Endpoint.Resource]; 52var mapping = referencedResource.EndpointMappings[epExpr.Endpoint.EndpointName];
Aspire.Hosting.Docker.Tests (6)
DockerComposeResourceExtensionsTests.cs (6)
26Assert.Equal("validation", network.Labels["purpose"]); 62Assert.Equal("none", volume.DriverOpts["type"]); 63Assert.Equal("validation", volume.Labels["purpose"]); 82Assert.Equal("validation", config.Labels["purpose"]); 100Assert.Equal("validation", secret.Labels["purpose"]); 120Assert.Equal("validation", volume.Labels["purpose"]);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
581Assert.Equal("my-value", envVars["MY_VAR"]);
Aspire.Hosting.Java.Tests (32)
AddJavaAppPublishTests.cs (2)
126envVars["JAVA_TOOL_OPTIONS"]); 475Assert.Equal("-javaagent:/opt/otel/javaagent.jar", envVars["JAVA_TOOL_OPTIONS"]);
AddJavaAppTests.cs (14)
612Assert.Equal("-Xmx512m -Xms256m", envVars["JAVA_TOOL_OPTIONS"]); 641Assert.Equal("-Xmx512m -Xms256m", envVars["JAVA_TOOL_OPTIONS"]); 679Assert.False(string.IsNullOrEmpty(envVars["OTEL_EXPORTER_OTLP_ENDPOINT"])); 697Assert.Equal($"-javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]); 714Assert.Equal($"-javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]); 729Assert.Equal($"-Xmx512m -javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]); 949Assert.Equal($"\"-javaagent:{agentPath}\"", envVars["JAVA_TOOL_OPTIONS"]); 965Assert.Equal("-Dapp.data.dir=\"/var/lib/my app\"", envVars["JAVA_TOOL_OPTIONS"]); 986Assert.Equal($"-javaagent:{expected}", envVars["JAVA_TOOL_OPTIONS"]); 1004Assert.Equal("-javaagent:/app/agent.jar", envVars["JAVA_TOOL_OPTIONS"]); 1020Assert.Equal($"-javaagent:{ContainerProvidedAgentPath}", envVars["JAVA_TOOL_OPTIONS"]); 1231Assert.Equal("-javaagent:/opt/coverage-agent.jar", envVars["JAVA_TOOL_OPTIONS"]); 1280Assert.Equal("-Xmx1g", envVars["JAVA_TOOL_OPTIONS"]); 1298Assert.Equal($"-javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]);
AddJavaContainerTests.cs (2)
120Assert.Equal("http://host.docker.internal:4317", envVars["OTEL_EXPORTER_OTLP_ENDPOINT"]); 137Assert.Equal("-Xmx512m -javaagent:/app/opentelemetry-javaagent.jar", envVars["JAVA_TOOL_OPTIONS"]);
AddQuarkusAppTests.cs (11)
181Assert.Equal("dev", envVars["QUARKUS_PROFILE"]); 216Assert.Equal("false", envVars["QUARKUS_OBSERVABILITY_ENABLED"]); 235Assert.Equal(envVars["OTEL_EXPORTER_OTLP_ENDPOINT"], envVars["QUARKUS_OTEL_EXPORTER_OTLP_ENDPOINT"]); 236Assert.Equal(envVars["OTEL_EXPORTER_OTLP_PROTOCOL"], envVars["QUARKUS_OTEL_EXPORTER_OTLP_PROTOCOL"]); 237Assert.Equal(envVars["OTEL_SERVICE_NAME"], envVars["QUARKUS_OTEL_SERVICE_NAME"]); 238Assert.Equal(envVars["OTEL_RESOURCE_ATTRIBUTES"], envVars["QUARKUS_OTEL_RESOURCE_ATTRIBUTES"]); 311Assert.Equal("-Xmx256m", envVars["JAVA_TOOL_OPTIONS"]);
AddSpringBootAppTests.cs (3)
247Assert.Equal($"-javaagent:{expected}", envVars["JAVA_TOOL_OPTIONS"]); 278Assert.Equal($"-javaagent:{expected}", envVars["JAVA_TOOL_OPTIONS"]); 364Assert.Equal("-Xmx256m", envVars["JAVA_TOOL_OPTIONS"]);
Aspire.Hosting.JavaScript.Tests (13)
AddBunAppTests.cs (2)
272Assert.Same(bundle, envVars["NODE_EXTRA_CA_CERTS"]); 300Assert.Equal("--use-openssl-ca", envVars["NODE_OPTIONS"]);
AddNodeAppTests.cs (2)
577Assert.Equal("http://nodeapp.dev.internal:5031", config["services__custom-name__http__0"]); 578Assert.Equal("http://nodeapp.dev.internal:5031", config["custom_name_HTTP"]);
AddViteAppTests.cs (9)
152Assert.Equal("true", env["YARP_ENABLE_STATIC_FILES"]); 180Assert.Equal("true", env["YARP_ENABLE_STATIC_FILES"]); 181Assert.Equal("api", env["REVERSEPROXY__ROUTES__api__CLUSTERID"]); 182Assert.Equal("/api/{**catch-all}", env["REVERSEPROXY__ROUTES__api__MATCH__PATH"]); 600Assert.IsType<ReferenceExpression>(env["TLS_CONFIG_PFX"]); 802Assert.Equal(password, env["TLS_CONFIG_PASSWORD"]); 912var resource = resources[resourceName]; 939Assert.Equal(firstWrapperPath, configPaths["frontend-a"]); 940Assert.Equal(secondWrapperPath, configPaths["frontend-b"]);
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
93Assert.Equal("8443", env["KC_HTTPS_PORT"]);
Aspire.Hosting.Kubernetes (4)
KubernetesPublishingContext.cs (2)
246$"Resource '{resource.Name}' maps both {origins[valuesKey]} and {origin} " + 260if (contextItems.Count <= 0 || _helmValues[helmKey] is not Dictionary<string, object> helmSection)
KubernetesResource.cs (2)
539var mapping = referencedResource.EndpointMappings[ep.EndpointName]; 582var mapping = referencedResource.EndpointMappings[epExpr.Endpoint.EndpointName];
Aspire.Hosting.Kubernetes.Tests (8)
CertManagerTests.cs (2)
34Assert.Equal("true", certManager.Resource.HelmChart.Values["crds.enabled"]); 35Assert.Equal("true", certManager.Resource.HelmChart.Values["config.enableGatewayAPI"]);
KubernetesHelmChartTests.cs (6)
41Assert.Equal("true", chart.Resource.Values["crds.enabled"]); 42Assert.Equal("true", chart.Resource.Values["config.enableGatewayAPI"]); 291Assert.Equal("hello world!", chart.Resource.Values["config.greeting"]); 292Assert.Equal("a,b,c", chart.Resource.Values["config.list"]); 304Assert.Equal("--foo", chart.Resource.Values["args[0]"]); 544Assert.Equal("value2", chart.Resource.Values["key"]);
Aspire.Hosting.Maui (3)
MauiAndroidExtensions.cs (2)
187additionalArgs.Add($"-p:{KnownMauiMSBuildProperties.AdbTarget}={msBuildProperties[KnownMauiMSBuildProperties.AdbTarget]}"); 392additionalArgs.Add($"-p:{KnownMauiMSBuildProperties.AdbTarget}={msBuildProperties[KnownMauiMSBuildProperties.AdbTarget]}");
MauiiOSExtensions.cs (1)
398additionalArgs.Add($"-p:{KnownMauiMSBuildProperties.DeviceName}={msBuildProperties[KnownMauiMSBuildProperties.DeviceName]}");
Aspire.Hosting.Maui.Tests (5)
MauiOtlpTemplateTests.cs (2)
39var serviceName = envVars["OTEL_SERVICE_NAME"]; 66var resourceAttrs = envVars["OTEL_RESOURCE_ATTRIBUTES"];
MauiPlatformExtensionsTests.cs (3)
720Assert.Equal("https://mobile-otlp.devtunnels.ms:443", envVars[KnownOtelConfigNames.ExporterOtlpEndpoint]); 721Assert.Equal("grpc", envVars[KnownOtelConfigNames.ExporterOtlpProtocol]); 785Assert.Equal("https://mobile-otlp.devtunnels.ms:443", envVars[KnownOtelConfigNames.ExporterOtlpEndpoint]);
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
251Assert.Equal($"{mysql.Resource.Name}:{mysql.Resource.PrimaryEndpoint.TargetPort}", config["PMA_HOST"]); 252Assert.NotNull(config["PMA_USER"]); 253Assert.NotNull(config["PMA_PASSWORD"]);
Aspire.Hosting.Orleans.Tests (5)
OrleansProviderTypeTests.cs (5)
29Assert.Equal("TestProvider", config["Orleans__Clustering__ProviderType"]); 30Assert.Equal("provider", config["Orleans__Clustering__ServiceKey"]); 51Assert.Equal("Redis", config["Orleans__Clustering__ProviderType"]); 52Assert.Equal("provider", config["Orleans__Clustering__ServiceKey"]); 75Assert.Equal("AdoNet", config["Orleans__Clustering__ProviderType"]);
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (2)
208Assert.Equal($"Host=postgres.dev.internal;Port=2000;Username=postgres;Password={postgres.Resource.PasswordParameter.Value};Database=db", config["ConnectionStrings__db"]); 730Assert.Equal(kvp.Value, config2[kvp.Key]);
Aspire.Hosting.Python.Tests (3)
AddPythonAppTests.cs (3)
139Assert.Equal("test", environmentVariables["ConnectionStrings__connectionString"]); 521Assert.Equal("test_value", environmentVariables["TEST_VAR"]); 1723Assert.Equal("1", environmentVariables["PYTHONUTF8"]);
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
239Assert.Equal("Endpoint=http://my-qdrant.dev.internal:6334;Key=pass", config["ConnectionStrings__my-qdrant"]); 240Assert.Equal("Endpoint=http://my-qdrant.dev.internal:6333;Key=pass", config["ConnectionStrings__my-qdrant_http"]);
Aspire.Hosting.Radius (4)
Publishing\RadiusInfrastructureBuilder.cs (4)
143var (resourceType, _) = resolvedTypes[resource]; 157!IsLegacyResourceType(resolvedTypes[r].ResourceType)); 159IsLegacyResourceType(resolvedTypes[r].ResourceType)); 250var (resourceType, apiVersion) = resolvedTypes[resource];
Aspire.Hosting.Radius.Tests (7)
Recipes\RecipeParameterIsolationAndFidelityTests.cs (2)
22Assert.Equal("dev-region", devAnn.EnvironmentWide["region"]); 23Assert.Equal("prod-region", prodAnn.EnvironmentWide["region"]);
Recipes\WithRecipeParametersTests.cs (5)
20Assert.Equal("vpc-1", ann.EnvironmentWide["vpcId"]); 34Assert.Equal(1, ann.EnvironmentWide["a"]); 35Assert.Equal(99, ann.EnvironmentWide["b"]); 36Assert.Equal(3, ann.EnvironmentWide["c"]); 49Assert.Equal("Standard", ann.ByResourceType["Radius.Data/redisCaches"]["sku"]);
Aspire.Hosting.Redis.Tests (3)
AddRedisTests.cs (3)
498Assert.Equal($"myredis1:{redis.Resource.Name}:6379:0:{redis.Resource.PasswordParameter?.Value}", config["REDIS_HOSTS"]); 520Assert.Equal($"myredis1:{redis.Resource.Name}:6379:0:{password}", config["REDIS_HOSTS"]); 545Assert.Equal($"myredis1:{redis1.Resource.Name}:6379:0:{redis1.Resource.PasswordParameter?.Value},myredis2:myredis2:6379:0:{redis2.Resource.PasswordParameter?.Value}", config["REDIS_HOSTS"]);
Aspire.Hosting.RemoteHost.Tests (2)
AtsMarshallerTests.cs (2)
427Assert.Equal(1, dict["key1"]); 428Assert.Equal(2, dict["key2"]);
Aspire.Hosting.Sdk.Tests (63)
AppHostSdkTargetsTests.cs (63)
112Assert.Equal("Aspire", properties["_AspireResolvedCliInvocationMode"]); 113Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]); 114Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]); 115Assert.Equal(GetExpectedAspireRunCommand(aspireCliPath), properties["RunCommand"]); 116Assert.Equal(GetExpectedAspireRunArguments(aspireCliPath, project, "--custom foo"), properties["RunArguments"]); 117Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]); 151Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]); 152Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]); 153Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]); 154Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]); 155Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo"), properties["RunArguments"]); 156Assert.Contains($"aspire.cli@{AspireCliVersion}", properties["_AspireCliVersionCommand"]); 157Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]); 181Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]); 182Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]); 183Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]); 184Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]); 185Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo", pinned: false), properties["RunArguments"]); 186Assert.Contains("--yes aspire.cli -- --version", properties["_AspireCliVersionCommand"]); 187Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]); 242Assert.Equal(executableDnxPath, properties["_AspireResolvedDnxPath"]); 261Assert.Equal(aspireCliPath, properties["_AspireResolvedCliPath"]); 262Assert.True(Path.IsPathFullyQualified(properties["_AspireResolvedCliPath"])); 314Assert.Equal("cmd", properties["RunCommand"]); 315Assert.Equal(GetExpectedWindowsCommandShimRunArguments(project, aspireCliPath, "--custom foo"), properties["RunArguments"]); 380Assert.Equal(GetExpectedAspireRunCommand(aspireCliPath), properties["RunCommand"]); 381Assert.Equal(GetExpectedAspireRunArguments(aspireCliPath, appHostFile, "--custom foo"), properties["RunArguments"]); 382Assert.Equal(appHostDirectory, properties["RunWorkingDirectory"]); 617Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]); 618Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]); 619Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]); 620Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]); 621Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo"), properties["RunArguments"]); 662Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]); 663Assert.Equal(dnxBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 664Assert.Equal(dnxBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 665Assert.Equal(dnxBundle.ManagedPath, properties["AspireDashboardPath"]); 666Assert.NotEqual(staleBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 690Assert.Equal(aspireCliPath, properties["_AspireResolvedCliPath"]); 691Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 692Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 693Assert.Equal(selectedBundle.ManagedPath, properties["AspireDashboardPath"]); 717Assert.Equal("Aspire", properties["_AspireResolvedCliInvocationMode"]); 718Assert.Equal(selectedCliPath, properties["_AspireResolvedCliPath"]); 719Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 720Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 721Assert.Equal(selectedBundle.ManagedPath, properties["AspireDashboardPath"]); 722Assert.NotEqual(staleBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 746Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 747Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 748Assert.Equal(selectedBundle.ManagedPath, properties["AspireDashboardPath"]); 957Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]); 958Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]); 959Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]); 960Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]); 961Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo"), properties["RunArguments"]); 1736Assert.Equal("cmd", properties["RunCommand"]); 1737Assert.Equal(GetExpectedWindowsCommandShimRunArguments(project, cliPath, expectedArguments), properties["RunArguments"]); 1741Assert.Equal(cliPath, properties["RunCommand"]); 1742Assert.Equal(GetExpectedExplicitAspireRunArguments(project, expectedArguments), properties["RunArguments"]); 1747Assert.Equal(GetExpectedDotNetRunCommand(project), properties["RunCommand"]); 1748Assert.Equal(expectedArguments, properties["RunArguments"]); 1749Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]);
Aspire.Hosting.Tests (196)
ApplicationModel\Docker\DockerfileBuildAnnotationTests.cs (4)
49Assert.Equal("value1", annotation.BuildArguments["ARG1"]); 50Assert.Null(annotation.BuildArguments["ARG2"]); 65Assert.Equal("secret-value", annotation.BuildSecrets["SECRET1"]); 66Assert.Equal(42, annotation.BuildSecrets["SECRET2"]);
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (14)
1006Assert.Equal("resolved", evaluated["SECRET"]); 1277Assert.Equal("42", Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["number"]).GetValue<string>()); 1278Assert.Equal(bool.TrueString, Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["flag"]).GetValue<string>()); 1279Assert.Equal("one,two", Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["list"]).GetValue<string>()); 1280Assert.Null(snapshot.Properties["ConnectionString"]); 1324Assert.Equal(42, Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["number"]).GetValue<int>()); 1325Assert.True(Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["flag"]).GetValue<bool>()); 1326var list = Assert.IsAssignableFrom<JsonArray>(snapshot.Properties["list"]); 1331var nameValueObject = Assert.IsAssignableFrom<JsonObject>(snapshot.Properties["object"]); 1334Assert.Null(snapshot.Properties["ConnectionString"]); 1369Assert.Equal("true", Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["terminal.enabled"]).GetValue<string>()); 1370Assert.Equal("0", Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["terminal.replicaIndex"]).GetValue<string>()); 1371Assert.Equal("1", Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["terminal.replicaCount"]).GetValue<string>()); 1375Assert.Null(snapshot.Properties["terminal.consumerUdsPath"]);
Backchannel\JsonElementConversionTests.cs (11)
99Assert.Equal("test", dict["name"]); 100Assert.Equal(123, dict["value"]); 110var nested = Assert.IsType<Dictionary<string, object?>>(dict["outer"]); 111Assert.Equal("value", nested["inner"]); 148Assert.Equal("SELECT * FROM users", dict["query"]); 149Assert.Equal(100, dict["limit"]); 150Assert.Equal(false, dict["includeDeleted"]); 152var filters = Assert.IsType<object?[]>(dict["filters"]); 157var options = Assert.IsType<Dictionary<string, object?>>(dict["options"]); 158Assert.Equal(30, options["timeout"]); 159Assert.Equal(3, options["retries"]);
ConnectionPropertiesExtensionsTests.cs (3)
34Assert.Equal("resourceHost", dict["Host"]); 35Assert.Equal("9090", dict["Port"]); 36Assert.Equal("user", dict["Username"]);
Dashboard\DashboardEventHandlersTests.cs (3)
358environmentVariables[DashboardConfigNames.DashboardApplicationName.EnvVarName]); 359Assert.Equal(expectedPersistenceMode, environmentVariables[DashboardConfigNames.DashboardPersistenceModeName.EnvVarName]); 403Assert.Equal(expectedDataDirectory, environmentVariables[DashboardConfigNames.DashboardDataDirectoryName.EnvVarName]);
Dcp\DcpExecutorTests.cs (2)
1207Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), userSecretsManager.Secrets["Resources:CoolProgram:http:port"]); 1248Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), userSecretsManager.Secrets["Resources:database:http:port"]);
DistributedApplicationTests.cs (1)
1128var initialRE = Assert.IsType<ReferenceExpression>(ctx.EnvironmentVariables["INITIAL_REFERENCE_EXPRESSION"]);
DotnetToolResourceTests.cs (3)
21AssertToolProperty(properties[KnownProperties.Tool.Package], "dotnet-dump", MessageStrings.ResourcePropertyToolPackageDisplayName, expectedSortOrder: 0); 22AssertToolProperty(properties[KnownProperties.Tool.Version], "1.2.3", MessageStrings.ResourcePropertyToolVersionDisplayName, expectedSortOrder: 1); 24var sourceProperty = properties[KnownProperties.Resource.Source];
ExecutionConfigurationGathererTests.cs (5)
135Assert.Equal("value1", context.EnvironmentVariables["KEY1"]); 136Assert.Equal("value2", context.EnvironmentVariables["KEY2"]); 158Assert.Equal("value1", context.EnvironmentVariables["KEY1"]); 159Assert.Equal("value2", context.EnvironmentVariables["KEY2"]); 203Assert.Equal("async-value", context.EnvironmentVariables["ASYNC_KEY"]);
ExpressionResolverTests.cs (7)
145Assert.Equal(expectedConnectionString, config["ConnectionStrings__testresource"]); 183Assert.Equal(expectedValue, config["envname"]); 220Assert.Equal("http://host.docker.internal:18889/path", config["envname"]); 245Assert.Equal(expectedValue, config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 272Assert.Equal("http://myContainer.dev.internal:8080", config["ConnectionStrings__myContainer"]); 291Assert.Equal("http://localhost:8001", config["MY_CONTAINER"]); 367public ReferenceExpression ConnectionStringExpression => Expressions[_exprName];
ExternalServiceTests.cs (1)
176var urlValue = config["services__nuget__default__0"];
KestrelConfigTests.cs (2)
47Assert.Equal("http://*:port_http", config["Kestrel__Endpoints__http__Url"]); 82Assert.Equal("http://localhost:port_http;http://localhost:port_ExplicitHttp", config[KnownAspNetCoreConfigNames.Urls]);
Pipelines\DistributedApplicationPipelineTests.cs (12)
240Assert.True(stepTimes["level2-step1"] >= stepTimes["level1-step1"], 242Assert.True(stepTimes["level2-step2"] >= stepTimes["level1-step2"], 244Assert.True(stepTimes["level3-step1"] >= stepTimes["level2-step1"], 977Assert.True(executionTimes["D"] >= executionTimes["B"], "D should start after B completes"); 978Assert.True(executionTimes["D"] >= executionTimes["C"], "D should start after C completes"); 2067Assert.True(executionOrder[WellKnownPipelineSteps.ProcessParameters] < executionOrder[WellKnownPipelineSteps.DeployPrereq],
ProjectResourceBuilderExtensionTests.cs (3)
161var certificatePath = Assert.IsAssignableFrom<IValueProvider>(context.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPath]); 163Assert.Same(password.Resource, context.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPassword]); 191var certificatePath = Assert.IsAssignableFrom<IValueProvider>(context.EnvironmentVariables[KnownAspNetCoreConfigNames.KestrelCertificatesDefaultPath]);
ProjectResourceTests.cs (12)
440Assert.Equal("http://localhost:p0;https://localhost:p1", config[KnownAspNetCoreConfigNames.Urls]); 441Assert.Equal("5001", config[KnownAspNetCoreConfigNames.HttpsPort]); 442Assert.Equal("p2", config["SOME_ENV"]); 483Assert.Equal("http://localhost:p0;https://localhost:p1", config[KnownAspNetCoreConfigNames.Urls]); 484Assert.Equal("5001", config[KnownAspNetCoreConfigNames.HttpsPort]); 485Assert.Equal("p2", config["SOME_ENV"]); 530Assert.Equal("http://localhost:p0", config[KnownAspNetCoreConfigNames.Urls]); 557Assert.Equal("https://localhost:p2;http://localhost:p0;http://localhost:p1;https://localhost:p3;https://localhost:p4", config[KnownAspNetCoreConfigNames.Urls]); 560Assert.Equal("7144", config[KnownAspNetCoreConfigNames.HttpsPort]); 756Assert.Equal("http://*:p0;https://*:p1", config[KnownAspNetCoreConfigNames.Urls]); 760Assert.Equal($"http://*:{http.TargetPort};https://*:{https.TargetPort}", config[KnownAspNetCoreConfigNames.Urls]); 763Assert.Equal(https.Port.ToString(), config[KnownAspNetCoreConfigNames.HttpsPort]);
Publishing\ResourceContainerImageManagerTests.cs (22)
765Assert.Equal("1.22", fakeContainerRuntime.CapturedBuildArguments["GO_VERSION"]); 766Assert.Equal("static-value", fakeContainerRuntime.CapturedBuildArguments["STATIC_ARG"]); 771Assert.Equal("mysecret", fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Value); 772Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Type); 831Assert.Equal("test-value", fakeContainerRuntime.CapturedBuildArguments["STRING_ARG"]); 834Assert.Equal("true", fakeContainerRuntime.CapturedBuildArguments["BOOL_TRUE_ARG"]); 835Assert.Equal("false", fakeContainerRuntime.CapturedBuildArguments["BOOL_FALSE_ARG"]); 838Assert.Null(fakeContainerRuntime.CapturedBuildArguments["NULL_ARG"]); 841Assert.Equal("direct-string", fakeContainerRuntime.CapturedBuildArguments["DIRECT_STRING_ARG"]); 844Assert.Equal("", fakeContainerRuntime.CapturedBuildArguments["EMPTY_STRING_ARG"]); 847Assert.Equal(tempFile, fakeContainerRuntime.CapturedBuildArguments["FILEINFO_ARG"]); 850Assert.Equal("provider-value", fakeContainerRuntime.CapturedBuildArguments["VALUEPROVIDER_ARG"]); 853Assert.Equal("42", fakeContainerRuntime.CapturedBuildArguments["INT_ARG"]); 856Assert.Equal("3.14", fakeContainerRuntime.CapturedBuildArguments["DECIMAL_ARG"]); 927Assert.Equal("secret-value", fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Value); 928Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Type); 931Assert.Null(fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Value); 932Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Type); 980Assert.Equal("env-secret-value", fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Value); 981Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Type); 984Assert.Equal(new FileInfo(tempSecretFile).FullName, fakeContainerRuntime.CapturedBuildSecrets["FILE_SECRET"].Value); 985Assert.Equal(BuildImageSecretType.File, fakeContainerRuntime.CapturedBuildSecrets["FILE_SECRET"].Type);
UserSecretsParameterDefaultTests.cs (10)
44Assert.Equal(initialValue, userSecrets["Parameters:param1"]); 135Assert.Equal(kvp.Value, userSecrets[kvp.Key]); 175Assert.Equal("SqlPassword123!", userSecrets["Parameters:sql-password"]); 176Assert.Equal("RabbitPassword456!", userSecrets["Parameters:rabbit-password"]); 198Assert.Equal("RabbitPassword456!", userSecrets["Parameters:rabbit-password"]); 235Assert.NotNull(userSecrets["Parameters:test-key"]); 260Assert.Equal(initialValue, userSecrets["Parameters:param1"]); 299Assert.Equal(value1, userSecrets1["Parameters:param1"]); 300Assert.Equal(value2, userSecrets2["Parameters:param2"]); 340Assert.Equal(values[i], userSecrets[paramKey]);
VersionChecking\VersionCheckServiceTests.cs (2)
325Assert.Equal("100.0.0-*", mockSecretsManager.Secrets[VersionCheckService.IgnoreVersionKey]); 354Assert.Equal("100.0.0", mockSecretsManager.Secrets[VersionCheckService.IgnoreVersionKey]);
WithEndpointTests.cs (1)
419Assert.Equal("3001", config["PORT"]);
WithEnvironmentTests.cs (22)
37Assert.Equal("true", config["SP_AVAILABLE"]); 57Assert.Equal("https://localhost:2000", config["myName"]); 78Assert.Equal("value", config["myName"]); 94Assert.Equal("value", config["myName"]); 110Assert.Equal("value2", config["myName"]); 127Assert.Equal("MY_PARAMETER_VALUE", config["MY_PARAMETER"]); 151Assert.Equal("{parameter.value}", config["MY_PARAMETER"]); 193Assert.Equal("value2", config["myName"]); 217Assert.Equal("value2", config["myName"]); 248Assert.Equal($"http://container1.dev.internal:10005/foo", config["URL"]); 249Assert.Equal("10005", config["PORT"]); 250Assert.Equal("10005", config["TARGET_PORT"]); 251Assert.Equal("connectionString;name=1", config["HOST"]); 254Assert.Equal("{container1.bindings.primary.url}/foo", manifestConfig["URL"]); 255Assert.Equal("{container1.bindings.primary.port}", manifestConfig["PORT"]); 256Assert.Equal("{container1.bindings.primary.targetPort}", manifestConfig["TARGET_PORT"]); 257Assert.Equal("{test.connectionString};name=1", manifestConfig["HOST"]); 382Assert.Equal("test-runtime-value", runtimeConfig["TEST_VAR"]); 390Assert.Equal("test-manifest-expression", manifestConfig["TEST_VAR"]); 416Assert.Equal("test-value", config["TEST_VAR"]); 463Assert.Equal("90", runtimeConfig["ENDPOINT_PORT"]); 471Assert.Equal("{container1.bindings.primary.port}", manifestConfig["ENDPOINT_PORT"]);
WithOtlpExporterTests.cs (11)
50Assert.Equal(expectedUrl, config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 51Assert.Equal(expectedProtocol, config["OTEL_EXPORTER_OTLP_PROTOCOL"]); 115Assert.Equal($"http://localhost:{allocatedPort}", config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 116Assert.Equal(expectedProtocol, config["OTEL_EXPORTER_OTLP_PROTOCOL"]); 148Assert.Equal("http://localhost:52000", config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 149Assert.Equal("grpc", config["OTEL_EXPORTER_OTLP_PROTOCOL"]); 171Assert.Equal("http://localhost:18889", config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 172Assert.Equal("grpc", config["OTEL_EXPORTER_OTLP_PROTOCOL"]); 200Assert.Equal("http://localhost:52000", config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 201Assert.Equal("grpc", config["OTEL_EXPORTER_OTLP_PROTOCOL"]); 265Assert.Equal("http://localhost:4317", config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
WithReferenceTests.cs (45)
31Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 32Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]); 54Assert.Equal("https://localhost:2000", config["services__project-a__mybinding__0"]); 55Assert.Equal("https://localhost:2000", config["PROJECT_A_MYBINDING"]); 74Assert.Equal("https://localhost:2000", config["services__custom-name__mybinding__0"]); 75Assert.Equal("https://localhost:2000", config["custom_name_MYBINDING"]); 107Assert.Equal("https://localhost:2000", config["services__custom__mybinding__0"]); 108Assert.Equal("https://localhost:2000", config["custom_MYBINDING"]); 153Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 154Assert.Equal("https://localhost:3000", config["services__projecta__myconflictingbinding__0"]); 156Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]); 157Assert.Equal("https://localhost:3000", config["PROJECTA_MYCONFLICTINGBINDING"]); 181Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 182Assert.Equal("http://localhost:3000", config["services__projecta__mynonconflictingbinding__0"]); 184Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]); 185Assert.Equal("http://localhost:3000", config["PROJECTA_MYNONCONFLICTINGBINDING"]); 207Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 208Assert.Equal("https://localhost:3000", config["services__projecta__mybinding2__0"]); 210Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]); 211Assert.Equal("https://localhost:3000", config["PROJECTA_MYBINDING2"]); 236Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 237Assert.Equal("http://localhost:3000", config["services__projecta__mybinding2__0"]); 239Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]); 240Assert.Equal("http://localhost:3000", config["PROJECTA_MYBINDING2"]); 266Assert.Equal("123", config["ConnectionStrings__db"]); 267Assert.Equal("http://localhost:2000", config["services__api__http__0"]); 288Assert.Equal("123", config["ConnectionStrings__db"]); 289Assert.Equal("http://localhost:2000", config["services__resource__http__0"]); 363Assert.Equal("test connection string", config["ConnectionStrings__resource"]); 379Assert.Equal("{resource.connectionString}", config["ConnectionStrings__resource"]); 395Assert.Equal("{resource.connectionString}", config["MY_ENV"]); 446Assert.Equal("Endpoint=http://localhost:3452;Key=secretKey", config["ConnectionStrings__cs"]); 498Assert.Equal("Endpoint=http://localhost:3452;Key=secretKey", config["ConnectionStrings__cs"]); 834Assert.Equal("http://localhost:2000", config["services__projecta__api__0"]); 835Assert.Equal("http://localhost:2000", config["PROJECTA_API"]); 864Assert.Equal("http://localhost:3000", config["services__projecta__management__0"]); 865Assert.Equal("http://localhost:3000", config["PROJECTA_MANAGEMENT"]); 894Assert.Equal("http://localhost:2000", config["services__projecta__api__0"]); 895Assert.Equal("http://localhost:3000", config["services__projecta__management__0"]); 896Assert.Equal("http://localhost:2000", config["PROJECTA_API"]); 897Assert.Equal("http://localhost:3000", config["PROJECTA_MANAGEMENT"]); 957Assert.Equal("https://localhost:443", config["services__projecta__https__0"]); 977Assert.Equal("http://localhost:8080", config["services__projecta__http__0"]); 978Assert.Equal("http://localhost:9090", config["services__projecta__prometheus__0"]); 997Assert.Equal("http://localhost:8080", config["services__projecta-data__data__0"]);
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
118var endpoints = resourceEndpoints[resource];
Aspire.Templates.Tests (4)
StarterTemplateRunTestsBase.cs (2)
52string url = _testFixture.Project.InfoTable["webfrontend"].Endpoints 73string url = _testFixture.Project.InfoTable["apiservice"].Endpoints
TemplateTestsBase.cs (2)
298string apiServiceUrl = project.InfoTable["apiservice"].Endpoints[0].Uri; 301string webFrontEnd = project.InfoTable["webfrontend"].Endpoints[0].Uri;
Client.ClientBase.IntegrationTests (2)
ClientBaseTests.4.0.0.cs (2)
43Assert.Equal("my value", property.Headers["customer"]); 90Assert.Equal("my value", property.Headers["customer"]);
ConfigurationSchemaGenerator (3)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
126TypeSpec typeSpec = _createdTypeSpecs[typeParseInfo.TypeSymbol];
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (2)
65TypeSpec effectiveSpec = effectiveRef == typeSpec.TypeRef ? typeSpec : _index[effectiveRef]; 69public TypeSpec GetTypeSpec(TypeRef typeRef) => _index[typeRef];
CSharpSyntaxGenerator (6)
Grammar\GrammarGenerator.cs (6)
52rules[type.Name].Add(Sequence(type.Children.Select(ToProduction))); 60rules[type.Name].Add(Sequence(type.Children.Select(ToProduction))); 66rules[type.Name].Add(Sequence(type.Children.Select(ToProduction))); 93.. rules["SyntaxToken"].SelectMany(r => r.ReferencedRules)]; 108var sorted = rules[name].OrderBy(v => v); 144rules["SyntaxToken"].AddRange([RuleReference("IdentifierToken"), RuleReference("Keyword"), RuleReference("NumericLiteralToken"), RuleReference("CharacterLiteralToken"), RuleReference("StringLiteralToken"), RuleReference("OperatorToken"), RuleReference("PunctuationToken")]);
dotnet (6)
Commands\Run\FileBasedAppRunPlan.cs (1)
245string exampleValue = cacheEntry.GlobalProperties[exampleKey];
Commands\Test\MTP\Terminal\TestProgressState.cs (1)
386flaky.Add((entry.Value, _testUidToResults[entry.Key].Attempts));
Commands\Workload\List\WorkloadListCommand.cs (1)
115var manifestInfo = manifestInfoDict[m.Id];
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
201return manifestIdsAndVersions.All(tuple => manifestVersions.ContainsKey(tuple.Item1) && manifestVersions[tuple.Item1].Version.Equals(tuple.Item2));
Commands\Workload\WorkloadHistoryRecord.cs (1)
48ManifestVersions[manifestId] != otherManifestVersion)
Commands\Workload\WorkloadInfoHelper.cs (1)
208var workloadFeatureBand = manifestInfoDict[workloadManifest.Id].ManifestFeatureBand;
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Commands\Run\FileBasedAppRunPlan.cs (1)
245string exampleValue = cacheEntry.GlobalProperties[exampleKey];
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
208var workloadFeatureBand = manifestInfoDict[workloadManifest.Id].ManifestFeatureBand;
dotnet-format (1)
Analyzers\CodeAnalysisResult.cs (1)
39_dictionary[project].Add(diagnostic);
dotnet-svcutil-lib (102)
CmdCredentialsProvider.cs (1)
231return _validatedServerCerts[certhash];
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
474MethodName = methodNames[method.Name],
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (2)
28if (!_alreadyAdded.Contains(_namespacesToMatch[ns]) && typeref.BaseType.StartsWith(ns, StringComparison.Ordinal)) 30EnsureAssemblyReference(_namespacesToMatch[ns]);
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (4)
83string typeNamespace = _typeDeclCollection.TypeNamespaceMappings[s_currentMatchingFullTypeName]; 88typeref.BaseType = string.IsNullOrEmpty(typeNamespace) ? destType : _typeDeclCollection.TypeNamespaceMappings[s_currentMatchingFullTypeName] + "." + destType; 98typeDecl = _typeDeclCollection.AllTypeDecls[typeName]; 102_specialIXmlSerializableTypes[typeName] = _typeDeclCollection.AllTypeDecls[typeName];
CodeDomFixup\WcfCodeGenerationExtension.cs (1)
113XsdDataContractImporter xsdImporter = (XsdDataContractImporter)importer.State[typeof(XsdDataContractImporter)];
CommandProcessorOptions.cs (1)
972if (foundCollectionTypes[collectionType] == null)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (1)
1045if (dict.ContainsKey(string.Empty) && dict[string.Empty] == string.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (1)
174SchemaAttDef attdef = (SchemaAttDef)_attributeDecls[qname];
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
130return (ArgBuilder)_argList[name];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (11)
108return _methodBuilders[methodName]; 275ConstructorInfo readerCtor = CreatedTypes[readerClass].GetConstructor(CodeGenerator.EmptyTypeArray); 286ConstructorInfo writerCtor = CreatedTypes[writerClass].GetConstructor(CodeGenerator.EmptyTypeArray); 313CreatedTypes[baseSerializer], 361MethodInfo writerType_writeMethod = CreatedTypes[writerClass].GetMethod( 369ilg.Castclass(CreatedTypes[writerClass]); 387MethodInfo readerType_readMethod = CreatedTypes[readerClass].GetMethod( 395ilg.Castclass(CreatedTypes[readerClass]); 500ConstructorInfo ctor = CreatedTypes[readerType].GetConstructor(CodeGenerator.EmptyTypeArray); 519ctor = CreatedTypes[writerType].GetConstructor(CodeGenerator.EmptyTypeArray); 573MemberInfo memInfo = memberInfos[source.Substring(3)];
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (2)
420nodeRef = _mapNmsp[nodeRef]; 452nodeRef = _idValueMap[id];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (3)
1127EmitSourceInstruction("Ldloc " + _localNames[localBuilder]); 1135EmitSourceInstruction("Stloc " + _localNames[local]); 1144EmitSourceInstruction("Ldloca " + _localNames[localBuilder]);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
603valString = inDict[key];
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
77TValue item = _items[keyRemove].value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
154headers[key] = headers[key] + 1;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (1)
229otherBindingProtectionLevel = (ContractProtectionLevel)importer.State[contractAssociationName];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
68List<ConnectionPool> registryEntry = _registry[pool.Name];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
151_connectionMapping[connection].LastUsage = DateTime.UtcNow; 297IdlingConnectionSettings idlingSettings = _connectionMapping[connection];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
51value = (T)_states[key];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
90_operationSupportingTokenParameters[key] = (SupportingTokenParameters)elementToBeCloned._operationSupportingTokenParameters[key].Clone(); 95_optionalOperationSupportingTokenParameters[key] = (SupportingTokenParameters)elementToBeCloned._optionalOperationSupportingTokenParameters[key].Clone();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (10)
67_operationBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 68remainingAssertionsAllowed -= _operationBindingAssertions[entry.Key].Count; 73_messageBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 74remainingAssertionsAllowed -= _messageBindingAssertions[entry.Key].Count; 79_faultBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<XmlElement>(entry.Value, remainingAssertionsAllowed)); 80remainingAssertionsAllowed -= _faultBindingAssertions[entry.Key].Count; 97return _operationBindingAssertions[operation]; 102return _messageBindingAssertions[message]; 107return _faultBindingAssertions[message]; 284IEnumerator<V> newDigit = sets[digits[currentDigit].Key].GetEnumerator();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (3)
1630schemaImporter = importer.State[type]; 1914options = (XmlSerializerImportOptions)importer.State[typeof(XmlSerializerImportOptions)]; 1987schemaImporter = importer.State[type];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (3)
120return _operationBindingAssertions[operation]; 130return _messageBindingAssertions[message]; 140return _faultBindingAssertions[fault];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
742return _parent._parameterTypes[setting]; 751CodeAttributeDeclarationCollection localAttributes = _parent._parameterAttributes[setting];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlContractConversionContext.cs (6)
93return _wsdlOperations[operation]; 98return _wsdlOperationMessages[message]; 103return _wsdlOperationFaults[fault]; 108return _operationDescriptions[operation]; 113return _messageDescriptions[operationMessage]; 118return _faultDescriptions[operationFault];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlEndpointConversionContext.cs (6)
115return _wsdlOperationBindings[operation]; 120return _wsdlMessageBindings[message]; 125return _wsdlFaultBindings[fault]; 130return _operationDescriptionBindings[operationBinding]; 135return _messageDescriptionBindings[messageBinding]; 140return _faultDescriptionBindings[faultBinding];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (5)
161WsdlContractConversionContext contractContext = _exportedContracts[endpoint.Contract]; 223endpointContext = new WsdlEndpointConversionContext(_exportedBindings[new BindingDictionaryKey(endpoint.Contract, endpoint.Binding)], endpoint, wsdlPort); 324WsdlNS.PortType wsdlPortType = _exportedContracts[endpoint.Contract].WsdlPortType; 660if (exporter.State.ContainsKey(key) && exporter.State[key] is SupportedAddressingMode) 662mode = (SupportedAddressingMode)exporter.State[key];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1902WsdlImportException innerException = _importErrors[item];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
184PartInfo partInfo = _partInfoTable[part];
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
80return _operationMap[method];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (8)
60p.Union(other._actionParts[action]); 71_actionParts[action].IsBodyIncluded = newIncludeBody; 95_actionParts[action].Union(parts); 142parts = _actionParts[action]; 144parts = _readOnlyNormalizedActionParts[action]; 149p.Union(_actionParts[action]); 174target.AddParts(_actionParts[action], action); 191p.Union(_actionParts[action]);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (5)
659ICollection<SupportingTokenAuthenticatorSpecification> supportingAuthenticators = _scopedSupportingTokenAuthenticatorSpecification[action]; 679ICollection<SupportingTokenAuthenticatorSpecification> supportingAuthenticators = _scopedSupportingTokenAuthenticatorSpecification[action]; 768MergedSupportingTokenAuthenticatorSpecification mergedSpec = _mergedSupportingTokenAuthenticatorsMap[action]; 776MergedSupportingTokenAuthenticatorSpecification mergedSpec = _mergedSupportingTokenAuthenticatorsMap[MessageHeaders.WildcardAction]; 803ICollection<SupportingTokenAuthenticatorSpecification> scopedAuthenticators = _scopedSupportingTokenAuthenticatorSpecification[action];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (6)
2645BindingElementCollection bindingElementsBelowSecurity = exporter.State[SecurityPolicyStrings.SecureConversationBootstrapBindingElementsBelowSecurityKey] as BindingElementCollection; 2731MessagePartSpecification encryption = (MessagePartSpecification)importer.State[SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements]; 2740MessagePartSpecification signature = (MessagePartSpecification)importer.State[SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements]; 2856int maximumRedirections = (int)importer.State[SecurityBindingElementImporter.MaxPolicyRedirectionsKey]; 2871policyFetcher = importer.State[MetadataExchangeClient.MetadataExchangeClientKey] as MetadataExchangeClient; 2944wsdlImporter.State.Add(MetadataExchangeClient.MetadataExchangeClientKey, importer.State[MetadataExchangeClient.MetadataExchangeClientKey]);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
41_scopedCertificates.Add(uri, other.ScopedCertificates[uri]);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (2)
71return _dictionary[key]; 206return this.Remove(_dictionary[key]);
Metadata\ServiceDescriptorFactory.cs (3)
48if (_cache.ContainsKey(key) && _cache[key].MetadataImported) 50serviceDescriptor = _cache[key]; 100var removeKeys = _cache.Keys.Where((k) => !_cache[k].MetadataImported).ToList();
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
277string prevClrNamespace = _parent._namespaceMappings[targetNamespace];
GenerateDocumentationAndConfigFiles (12)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
118if (!collisionMap[name] && canUse(name))
ILAssembler (2)
DocumentCompiler.cs (1)
42diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), loadedDocuments[source])));
NamedElementList.cs (1)
34get => _elementsByName[name];
ILCompiler.Compiler (70)
Compiler\AnalysisBasedMetadataManager.cs (4)
77|| (_reflectableTypes[refMethod.Entity.OwningType] & MetadataCategory.Description) != 0); 79|| (_reflectableTypes[refMethod.Entity.OwningType] & MetadataCategory.RuntimeMapping) != 0); 88|| (_reflectableTypes[refField.Entity.OwningType] & MetadataCategory.Description) != 0); 90|| (_reflectableTypes[refField.Entity.OwningType] & MetadataCategory.RuntimeMapping) != 0);
Compiler\Dataflow\CompilerGeneratedState.cs (7)
193var alreadyAssociatedMethod = generatedTypeToTypeArgs[generatedType].CreatingMethod; 261var alreadyAssociatedMethod = _compilerGeneratedTypeToUserCodeMethod[stateMachineType]; 333var alreadyAssociatedMethod = _compilerGeneratedMethodToUserCodeMethod[nestedFunction]; 360var info = generatedTypeToTypeArgs[generatedType]; 365var alreadyAssociatedMethod = _generatedTypeToTypeArgumentInfo[generatedType].CreatingMethod; 398var typeInfo = generatedTypeToTypeArgs[generatedType]; 443if (generatedTypeToTypeArgs[owningType].OriginalAttributes is { } owningAttrs)
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (1)
72_gvmImplementations[openCallingMethod][openImplementationMethod.OwningType] = openImplementationMethod;
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (5)
93_interfaceGvmSlots[openCallingMethod].Add(openImplementationMethod); 103if (!_interfaceImpls[openImplementationMethod].ContainsKey(openImplementationType)) 104_interfaceImpls[openImplementationMethod][openImplementationType] = new HashSet<int>(); 111_interfaceImpls[openImplementationMethod][openImplementationType].Add(index); 189var ifaceImpls = _interfaceImpls[impl];
Compiler\HardwareIntrinsicILProvider.cs (1)
44InstructionSet instructionSet = _instructionSetMap[intrinsicId];
Compiler\MetadataManager.cs (2)
1024return _methodHandleMap[method]; 1044return _fieldHandleMap[field];
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (1)
40cieOffset = _cieOffset[fde.Cie];
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (1)
97directoryIndex = fileName.Directory is string directoryName && !string.IsNullOrEmpty(directoryName) ? _directoryNameToIndex[directoryName] : 0;
Compiler\TypePreinit.cs (4)
384if (_fieldValues[field] is IAssignableValue assignableField) 435fieldValue = _fieldValues[field]; 3762Value fieldValue = _fieldValues[field]; 3809return _fieldValues[field];
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (9)
210Debug.Assert(support[instructionSet.Name] == instructionSet.InstructionSet); 232return s_nonSpecifiableInstructionSets[architecture]; 274if (!s_instructionSetSupport[_architecture].ContainsKey(set)) 289if (!s_instructionSetSupport[_architecture].ContainsKey(instructionSet)) 303if (!s_instructionSetSupport[_architecture].ContainsKey(instructionSet)) 323Dictionary<string, InstructionSet> instructionSetConversion = s_instructionSetSupport[_architecture]; 327unsupportedInstructionSets.AddInstructionSet(instructionSetConversion[unsupported]); 359supportedInstructionSets.AddInstructionSet(instructionSetConversion[supported]); 365checkForExplicitUnsupport.AddInstructionSet(instructionSetConversion[unsupported]);
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (4)
256name = _mangledAssemblyNames[assemblyName]; 362name = _mangledTypeNames[type]; 568return _unqualifiedMangledMethodNames[method]; 668return _mangledFieldNames[field];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (5)
122uint definingSectionIndex = isPrimary ? coffSectionIndex : ((CoffSymbol)_symbols[(int)_symbolNameToIndex[comdatName]]).SectionIndex; 260gfidsSectionWriter.WriteLittleEndian<uint>(_symbolNameToIndex[symbolName]); 305SymbolTableIndex = _symbolNameToIndex[relocation.SymbolName], 327SymbolTableIndex = _symbolNameToIndex[relocation.SymbolName], 350SymbolTableIndex = _symbolNameToIndex[relocation.SymbolName],
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (9)
352BinaryPrimitives.WriteUInt32LittleEndian(relocationEntry.Slice(4), ((uint)_symbolNameToIndex[externSymbol] << 8) | R_ARM_THM_JUMP24); 367groupSection.SectionHeader.Info = (uint)_symbolNameToIndex[comdatName]; 408uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 435uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 464uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 502uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 538uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 575uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 596symbolIndex = _symbolNameToIndex[symbolName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (9)
458int targetSectionIndex = (int)_symbolNameToIndex[symbolName]; 732uint startSymbolIndex = _symbolNameToIndex[StartNode]; 733uint endSymbolIndex = _symbolNameToIndex[EndNode]; 757uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 825SymbolOrSectionIndex = _symbolNameToIndex[_baseSymbolName.Value], 861uint startSymbolIndex = _symbolNameToIndex[StartNode]; 862uint endSymbolIndex = _symbolNameToIndex[EndNode]; 886uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 978SymbolOrSectionIndex = _symbolNameToIndex[_baseSymbolName.Value],
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
196OutputNode node = _nodeSymbolMap[symbolMethodPair.Key];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
895SymbolDefinition definedSymbol = _definedSymbols[reloc.SymbolName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (3)
21public SectionDataEmitter this[string sectionName] => _sections[_sectionNameToIndex[sectionName]]; 33return GetSection<TSection>(_sectionNameToIndex[sectionName]); 45public int GetSectionIndex(string sectionName) => _sectionNameToIndex[sectionName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (1)
89SymbolDefinition definedSymbol = _definedSymbols[reloc.SymbolName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
81return ResolveAndFreeze(_entries[name]);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
269IMAGE_RESOURCE_DATA_ENTRY.Write(ref dataBuilder, nodeAssociatedWithDataBuilder, dataEntryTable[language.Item1], language.Item1.DataEntry.Length);
ILCompiler.DependencyAnalysisFramework (10)
DgmlWriter.cs (10)
127_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeA].ToString()); 128_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeB].ToString()); 136_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString()); 137_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString()); 164_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString()); 165_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString()); 171_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDependerOther].ToString()); 172_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString()); 179_xmlWrite.WriteAttributeString("Source", _nodeMappings[combinedNode].ToString()); 180_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString());
ILCompiler.Diagnostics (1)
PdbWriter.cs (1)
371writer.Write(_stringTableToOffsetMapping[document.Name]);
ILCompiler.MetadataTransform (1)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
166return (T)_recordPool[rec];
ILCompiler.ReadyToRun (70)
Compiler\CallChainProfile.cs (7)
89if (!resolvedProfileData[resolvedKeyMethod].ContainsKey(resolvedCalledMethod)) 91resolvedProfileData[resolvedKeyMethod].Add(resolvedCalledMethod, 0); 93resolvedProfileData[resolvedKeyMethod][resolvedCalledMethod] += methodAndHitCount.Value; 105resolvedMethod = nameToMethodDescMap[methodName]; 284if (!profileData[keyParts].ContainsKey(followingMethodList[index])) 286profileData[keyParts].Add(followingMethodList[index], methodCount.GetInt32()); 290profileData[keyParts][followingMethodList[index]] += methodCount.GetInt32();
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (2)
48return _insertedMethodNodes[method]; 174mapping.Add((uint)_insertedMethodNodes[method]);
Compiler\FileLayoutOptimizer.cs (3)
232methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => order[left].CompareTo(order[right])); 350graphNodes[mdToIndex[method.Method]].IncreaseEdge(graphNodes[otherIndex], count);
IBC\IBCDataReader.cs (3)
77return seenFlags[index]; 82return seenFlags[index]; 643SectionInfo info = sectionTable[section];
IBC\IBCProfileParser.cs (2)
398var methodEntry = (BlobEntry.ExternalMethodEntry)blobs[new IBCBlobKey(ibcToken, BlobType.ExternalMethodDef)]; 399var signatureEntry = (BlobEntry.ExternalSignatureEntry)blobs[new IBCBlobKey(methodEntry.SignatureToken, BlobType.ExternalSignatureDef)];
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (9)
210Debug.Assert(support[instructionSet.Name] == instructionSet.InstructionSet); 232return s_nonSpecifiableInstructionSets[architecture]; 274if (!s_instructionSetSupport[_architecture].ContainsKey(set)) 289if (!s_instructionSetSupport[_architecture].ContainsKey(instructionSet)) 303if (!s_instructionSetSupport[_architecture].ContainsKey(instructionSet)) 323Dictionary<string, InstructionSet> instructionSetConversion = s_instructionSetSupport[_architecture]; 327unsupportedInstructionSets.AddInstructionSet(instructionSetConversion[unsupported]); 359supportedInstructionSets.AddInstructionSet(instructionSetConversion[supported]); 365checkForExplicitUnsupport.AddInstructionSet(instructionSetConversion[unsupported]);
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (4)
256name = _mangledAssemblyNames[assemblyName]; 362name = _mangledTypeNames[type]; 568return _unqualifiedMangledMethodNames[method]; 668return _mangledFieldNames[field];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (5)
122uint definingSectionIndex = isPrimary ? coffSectionIndex : ((CoffSymbol)_symbols[(int)_symbolNameToIndex[comdatName]]).SectionIndex; 260gfidsSectionWriter.WriteLittleEndian<uint>(_symbolNameToIndex[symbolName]); 305SymbolTableIndex = _symbolNameToIndex[relocation.SymbolName], 327SymbolTableIndex = _symbolNameToIndex[relocation.SymbolName], 350SymbolTableIndex = _symbolNameToIndex[relocation.SymbolName],
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (9)
352BinaryPrimitives.WriteUInt32LittleEndian(relocationEntry.Slice(4), ((uint)_symbolNameToIndex[externSymbol] << 8) | R_ARM_THM_JUMP24); 367groupSection.SectionHeader.Info = (uint)_symbolNameToIndex[comdatName]; 408uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 435uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 464uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 502uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 538uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 575uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 596symbolIndex = _symbolNameToIndex[symbolName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (9)
458int targetSectionIndex = (int)_symbolNameToIndex[symbolName]; 732uint startSymbolIndex = _symbolNameToIndex[StartNode]; 733uint endSymbolIndex = _symbolNameToIndex[EndNode]; 757uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 825SymbolOrSectionIndex = _symbolNameToIndex[_baseSymbolName.Value], 861uint startSymbolIndex = _symbolNameToIndex[StartNode]; 862uint endSymbolIndex = _symbolNameToIndex[EndNode]; 886uint symbolIndex = _symbolNameToIndex[symbolicRelocation.SymbolName]; 978SymbolOrSectionIndex = _symbolNameToIndex[_baseSymbolName.Value],
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
196OutputNode node = _nodeSymbolMap[symbolMethodPair.Key];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
895SymbolDefinition definedSymbol = _definedSymbols[reloc.SymbolName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (3)
21public SectionDataEmitter this[string sectionName] => _sections[_sectionNameToIndex[sectionName]]; 33return GetSection<TSection>(_sectionNameToIndex[sectionName]); 45public int GetSectionIndex(string sectionName) => _sectionNameToIndex[sectionName];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
81return ResolveAndFreeze(_entries[name]);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (7)
67$"Well-known symbol for '{classCode}' was already recorded as '{_wellKnownSymbols[classCode]}', "); 233Utf8String corHeaderDefName = _wellKnownSymbols[SortableDependencyNode.ObjectNodeOrder.CorHeaderNode]; 234SymbolDefinition corHeaderNode = _definedSymbols[corHeaderDefName]; 239Utf8String debugDirectoryDefName = _wellKnownSymbols[SortableDependencyNode.ObjectNodeOrder.DebugDirectoryNode]; 240SymbolDefinition debugDirectoryDef = _definedSymbols[debugDirectoryDefName]; 686SymbolDefinition definedSymbol = _definedSymbols[reloc.SymbolName]; 944WriteGlobalExport("webcilVersion", _definedGlobals["webcilVersion"].Index);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
269IMAGE_RESOURCE_DATA_ENTRY.Write(ref dataBuilder, nodeAssociatedWithDataBuilder, dataEntryTable[language.Item1], language.Item1.DataEntry.Length);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
306TypeDesc type = (TypeDesc)handleToObject[likelyClassMethods->handle]; 316MethodDesc method = (MethodDesc)handleToObject[likelyClassMethods->handle];
TypeSystem\Mutable\MutableModule.cs (1)
191Debug.Assert(handle == ExistingEntities[entry.Item2]);
ILCompiler.RyuJit (5)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (3)
232methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => order[left].CompareTo(order[right])); 350graphNodes[mdToIndex[method.Method]].IncreaseEdge(graphNodes[otherIndex], count);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
306TypeDesc type = (TypeDesc)handleToObject[likelyClassMethods->handle]; 316MethodDesc method = (MethodDesc)handleToObject[likelyClassMethods->handle];
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\GCPointerMap.Algorithm.cs (1)
151MapThreadStaticsForType(ref builder, type, offsets[type]);
illink (11)
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
340? _multiValueLattice.Meet(arr.IndexValues[index.Value], sanitizedValue)
ILLink.Tasks (9)
CreateRuntimeRootDescriptorFile.cs (9)
179namespaceDictionary[lhs] = namespaceDictionary[prefix] + namespaceDefElements[3]; 465Dictionary<string, ClassMembers> currentFeatureSwitchMembers = featureSwitchMembers[featureSwitch.Value]; 478string className = classIdsToClassNames[classId]; 483members = classNamesToClassMembers[className]; 487members = featureSwitchMembers[featureSwitch.Value][className]; 499fullClassName = classIdsToClassNames[classId]; 510members = classNamesToClassMembers[fullClassName]; 514members = featureSwitchMembers[featureSwitch.Value][fullClassName]; 547return namespaceDictionary[classNamespace] + "." + classNameWithCecilNestedFormat;
Infrastructure.Common (1)
TestProperties.cs (1)
61result = s_properties.Value[propertyName];
Infrastructure.Tests (45)
Pipelines\NixCliPackageTests.cs (1)
171var expectedHash = "sha512-" + Convert.ToBase64String(Convert.FromHexString(hexByRid[rid]));
PowerShellScripts\BuildTestMatrixTests.cs (8)
464Assert.Equal("macos-latest-xlarge", entry.Runners["macos"]); 525Assert.Equal("ubuntu-24.04", entry.Runners["linux"]); 564Assert.Equal("windows-2022", entry.Runners["windows"]); 565Assert.Equal("macos-latest-xlarge", entry.Runners["macos"]); 598Assert.False(entry.Properties[propName], 641Assert.True(entry.Properties["requiresNugets"]); 648Assert.False(entry.Properties[propName], 729Assert.True(entry.Properties["requiresNugets"],
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (6)
577var noNugets = splitOutputs["tests_matrix_no_nugets"]; 578var noNugetsOverflow = splitOutputs["tests_matrix_no_nugets_overflow"]; 579var nugetsLinux = splitOutputs["tests_matrix_requires_nugets_linux"]; 580var nugetsWindows = splitOutputs["tests_matrix_requires_nugets_windows"]; 581var nugetsMacos = splitOutputs["tests_matrix_requires_nugets_macos"]; 582var cliArchiveMatrix = splitOutputs["tests_matrix_requires_cli_archive"];
PowerShellScripts\SplitTestMatrixByDepsTests.cs (30)
44Assert.Equal(2, outputs["tests_matrix_no_nugets"].Include.Length); 45Assert.Empty(outputs["tests_matrix_requires_nugets_linux"].Include); 46Assert.Empty(outputs["tests_matrix_requires_cli_archive"].Include); 62Assert.Single(outputs["tests_matrix_no_nugets"].Include); 63Assert.Equal("Plain", outputs["tests_matrix_no_nugets"].Include[0].Name); 64Assert.Single(outputs["tests_matrix_requires_nugets_linux"].Include); 65Assert.Equal("NugetTest", outputs["tests_matrix_requires_nugets_linux"].Include[0].Name); 82Assert.Single(outputs["tests_matrix_requires_nugets_linux"].Include); 83Assert.Equal("LinuxNuget", outputs["tests_matrix_requires_nugets_linux"].Include[0].Name); 84Assert.Single(outputs["tests_matrix_requires_nugets_windows"].Include); 85Assert.Equal("WinNuget", outputs["tests_matrix_requires_nugets_windows"].Include[0].Name); 86Assert.Single(outputs["tests_matrix_requires_nugets_macos"].Include); 87Assert.Equal("MacNuget", outputs["tests_matrix_requires_nugets_macos"].Include[0].Name); 103Assert.Single(outputs["tests_matrix_no_nugets"].Include); 104Assert.Single(outputs["tests_matrix_requires_cli_archive"].Include); 105Assert.Equal("CliTest", outputs["tests_matrix_requires_cli_archive"].Include[0].Name); 120Assert.Single(outputs["tests_matrix_requires_cli_archive"].Include); 121Assert.Empty(outputs["tests_matrix_requires_nugets_linux"].Include); 138Assert.Equal(5, outputs["tests_matrix_no_nugets"].Include.Length); 139Assert.Equal(3, outputs["tests_matrix_no_nugets_overflow"].Include.Length); 156Assert.Equal(5, outputs["tests_matrix_no_nugets"].Include.Length); 157Assert.Empty(outputs["tests_matrix_no_nugets_overflow"].Include); 171Assert.Empty(outputs["tests_matrix_no_nugets"].Include); 172Assert.Empty(outputs["tests_matrix_no_nugets_overflow"].Include); 173Assert.Empty(outputs["tests_matrix_requires_nugets_linux"].Include); 174Assert.Empty(outputs["tests_matrix_requires_nugets_windows"].Include); 175Assert.Empty(outputs["tests_matrix_requires_nugets_macos"].Include); 176Assert.Empty(outputs["tests_matrix_requires_cli_archive"].Include); 214Assert.Single(outputs["tests_matrix_no_nugets"].Include); 215Assert.Equal("FromFile", outputs["tests_matrix_no_nugets"].Include[0].Name);
Microsoft.AspNetCore.Components (3)
Rendering\RenderTreeBuilder.cs (1)
850var index = seenAttributeNames[frame.AttributeNameField];
RenderTree\RenderTreeDiffBuilder.cs (2)
119var oldKeyItemInfo = oldKey != null ? keyedItemInfos[oldKey] : new KeyedItemInfo(-1, -1); 120var newKeyItemInfo = newKey != null ? keyedItemInfos[newKey] : new KeyedItemInfo(-1, -1);
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
DiagnosticDescriptors.cs (1)
105public static DiagnosticDescriptor ById(string id) => s_byId[id];
Microsoft.AspNetCore.Components.Analyzers (6)
ForLoopIteratorInClosureAnalyzer.cs (6)
48if (availableTypes[ComponentsApi.ComponentBase.MetadataName] is null 49|| availableTypes[ComponentsApi.RenderTreeBuilder.MetadataName] is null) 80if (SymbolEqualityComparer.Default.Equals(containingType, availableTypes[ComponentsApi.ComponentBase.MetadataName])) 163&& SymbolEqualityComparer.Default.Equals(invocation.Instance.Type, availableTypes[ComponentsApi.RenderTreeBuilder.MetadataName]) 177if (SymbolEqualityComparer.Default.Equals(valueInvocation.TargetMethod.ContainingType, availableTypes[ComponentsApi.BindConverter.MetadataName])) 182else if (SymbolEqualityComparer.Default.Equals(valueInvocation.TargetMethod.ContainingType, availableTypes[ComponentsApi.EventCallbackFactory.MetadataName])
Microsoft.AspNetCore.Components.Endpoints (27)
Assets\ImportMapDefinition.cs (1)
141((Dictionary<string, string>)importMap._scopes[key])[scopeKey] = scopeValue;
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
294var existingType = _context.TypeMetadata[_context.CurrentTypes[i]];
FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
166var locationsForName = _namedSubmitEventsByScopeQualifiedName[scopeQualifiedName];
Rendering\SSRRenderModeBoundary.cs (1)
127if (parametersDict[name] is RenderFragment rf)
TempData\TempData.cs (1)
92dataToSave[key] = _data[key];
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
25get => _contents is null ? throw new KeyNotFoundException() : _contents[key];
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
106if ((preferredEncoding == encoding.Value || encoding.Value == "*") && ResourceExists(context, _encodingExtensionMap[preferredEncoding]))
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRing.cs (1)
37_defaultKeyHolder = _keyIdToKeyHolderMap[DefaultKeyId];
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\AcceptanceTests.Routing.cs (5)
139Assert.Equal(expectedHttpPath, state[HttpLoggingTagNames.Path]); 177Assert.Equal(httpRoute, state[HttpLoggingTagNames.Path]); 181Assert.Equal(controller, state["controller"]); 186Assert.Equal(action, state["action"]); 195Assert.Equal(param, state["param"]);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterFactoryForWellKnownTypes.cs (1)
41var converterType = JsonConverterHelper.WellKnownTypeNames[descriptor.FullName];
Microsoft.AspNetCore.Http (2)
HeaderDictionary.cs (1)
109return Store[key];
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Http.Extensions (23)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
294var existingType = _context.TypeMetadata[_context.CurrentTypes[i]];
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\ModelBinderFactory.cs (1)
159if (visited[key] is PlaceholderBinder placeholderBinder)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
502format = _rfc3339Formats["datetime"];
Microsoft.AspNetCore.Razor.Runtime (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Routing (9)
Internal\DfaGraphWriter.cs (4)
77writer.WriteLine($"{label} -> {visited[literal.Value]} [label=\"/{literal.Key}\"]"); 83writer.WriteLine($"{label} -> {visited[node.Parameters]} [label=\"/*\"]"); 88writer.WriteLine($"{label} -> {visited[node.CatchAll]} [label=\"/**\"]"); 95writer.WriteLine($"{label} -> {visited[policy.Value]} [label=\"{policy.Key}\"]");
Matching\DfaMatcherBuilder.cs (1)
417nextParents.Add(parent.Literals[literal]);
Matching\HttpMethodMatcherPolicy.cs (2)
251edges[key].Add(endpoint); 258edges[key].Add(endpoint);
Matching\NegotiationMatcherPolicy.cs (1)
290var endpointsForType = edges[metadata];
Patterns\RoutePatternFactory.cs (1)
1057if (!combinedDictionary.TryAdd(key, value) && !Equals(combinedDictionary[key], value))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\CertificatePathWatcher.cs (2)
176var dirMetadata = _metadataForDirectory[Path.GetDirectoryName(path)!]; 238var dirMetadata = _metadataForDirectory[dir];
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
TlsEventPump.cs (1)
691TryAdvanceHandshake(clientFd, _handshaking[clientFd]);
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
34_expandingAccumulator[key].Add(value);
Microsoft.Build (60)
BackEnd\BuildManager\BuildManager.cs (1)
2429ProjectGraphNode finishedNode = buildingNodes[finishedBuildSubmission];
BackEnd\BuildManager\CacheAggregator.cs (1)
93configIdMapping[result.ConfigurationId],
BackEnd\Components\BuildComponentFactoryCollection.cs (3)
116BuildComponentEntry existingEntry = _componentEntriesByType[componentType]; 127BuildComponentEntry existingEntry = _componentEntriesByType[componentType]; 138Assumed.Equal(_componentEntriesByType[componentType].Pattern, CreationPattern.Singleton, $"Previously existing factory for type {componentType} was not a singleton factory.");
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
459BuildRequestEntry entry = _requestsByGlobalRequestId[unblocker.BlockedRequestId]; 543BuildRequestEntry entry = _requestsByGlobalRequestId[response.GlobalRequestId]; 568BuildRequestConfiguration config = _unresolvedConfigurationsById[response.NodeConfigurationId];
BackEnd\Components\Logging\LoggingService.cs (1)
1065EventSourceSink eventSource = (EventSourceSink)_eventSinkDictionary[_centralForwardingLoggerSinkId];
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
535discreteTargetInputItemSpecs.AddRange(GetItemSpecsFromItemVectors(itemVectorsInTargetInputs, itemVectorType, itemVectorsInTargetInputs[itemVectorType])); 606ItemVectorPartition inputItemVectors = itemVectorsInTargetInputs[itemVectorType]; 607ItemVectorPartition outputItemVectors = itemVectorsInTargetOutputs[itemVectorType];
BackEnd\Components\Scheduler\SchedulableRequest.cs (3)
304return _timeRecords[desiredState].AccumulatedTime; 475_timeRecords[_state].EndState(currentTime); 476_timeRecords[newState].StartState(currentTime);
BackEnd\Components\Scheduler\Scheduler.cs (12)
1233if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1367configurationCountLimit += configurationCountsByNode[availableNodeId]; 1376return Comparer<int>.Default.Compare(configurationCountsByNode[left], configurationCountsByNode[right]); 1401if (request.AssignedNode == nodeId || requiredNodeId == nodeId || configurationCountsByNode[nodeId] <= configurationCountLimit) 1407else if (configurationCountsByNode[nodeId] > configurationCountLimit) 1409TraceScheduler($"Chose not to assign request {request.BuildRequest.GlobalRequestId} to node {nodeId} because its count of configurations ({configurationCountsByNode[nodeId]}) exceeds the current limit ({configurationCountLimit})."); 1431bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1520bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1803if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1813existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 2476int nodeForEvent = availableNodeIdsToIndex[buildEvent.Request.AssignedNode];
BackEnd\Components\Scheduler\SchedulingData.cs (11)
287_buildHierarchy[parent].Add(request); 320_readyRequestsByNode[request.AssignedNode].Remove(request); 324LinkedListNode<SchedulableRequest> requestNode = _unscheduledRequestNodesByRequest[request]; 373Assumed.Positive(_configurationToRequests[request.BuildRequest.ConfigurationId].Count, $"Configuration {request.BuildRequest.ConfigurationId} has no requests assigned to it."); 374_configurationToRequests[request.BuildRequest.ConfigurationId].Remove(request); 424return _configurationToRequests[configurationId]; 447return _executingRequests[globalRequestId]; 456return _blockedRequests[globalRequestId]; 479return _yieldingRequests[globalRequestId]; 488return _readyRequests[globalRequestId]; 615return _buildHierarchy[root];
BackEnd\Components\Scheduler\SchedulingPlan.cs (7)
276projectsInOrderOfReference.Sort(delegate (int left, int right) { return -Comparer<int>.Default.Compare(_configIdToPaths[left].Count, _configIdToPaths[right].Count); }); 279Console.WriteLine("{0}: {1} {2}", configId, _configIdToPaths[configId].Count, _configIdToData[configId].ConfigFullPath); 342List<Stack<PlanConfigData>> pathsByLength = _configIdToPaths[config.ConfigId]; 380PlanConfigData parent = _configIdToData[configId]; 385PlanConfigData child = _configIdToData[childId];
Collections\HashTableUtility.cs (1)
51comparison = String.Compare(h1Entry.Value, h2[h1Entry.Key],
Collections\WeakValueDictionary.cs (2)
88WeakReference<V> wrappedValue = _dictionary[key]; 102wrappedValue = _dictionary[key];
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (3)
70ItemDataCollectionValue<I> oldDictionaryEntry = _dictionaryBuilder[oldNormalizedValue]; 81ItemDataCollectionValue<I> newDictionaryEntry = _dictionaryBuilder[newNormalizedValue]; 88ItemDataCollectionValue<I> dictionaryEntry = _dictionaryBuilder[newNormalizedValue];
Evaluation\Preprocessor.cs (1)
152imports = _implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument];
Graph\GraphBuilder.cs (4)
104EntryPointNodes = _entryPointConfigurationMetadata.Select(e => allParsedProjects[e].GraphNode).ToList(); 160allParsedProjects[referenceInfo.ReferenceConfiguration].GraphNode, 167foreach (var transitiveProjectReference in GetTransitiveProjectReferencesExcludingSelf(allParsedProjects[referenceInfo.ReferenceConfiguration])) 198ParsedProject reference = allParsedProjects[referenceInfo.ReferenceConfiguration];
Graph\ProjectGraph.cs (1)
743targetLists[node] = targetLists[node].AddRange(requestedTargets);
Instance\ProjectInstance.cs (1)
3477multiDictionary.Add(item.EvaluatedInclude, projectItemToInstanceMap[item]);
Logging\ProfilerLogger.cs (1)
165AggregateProfiledLocation(profiledLocation, _aggregatedLocations[evaluationLocation]));
Logging\TerminalLogger\TerminalLogger.cs (1)
770_nodes[nodeIndex] = new TerminalNodeStatus(e.ProjectFile!, targetFramework, runtimeIdentifier, "Restore", _projects[c].Stopwatch);
Microsoft.Build.Framework (2)
Profiler\EvaluationLocation.cs (2)
132PassDefaultDescription[EvaluationPass.TotalGlobbing], file: null, kind: EvaluationLocationKind.Glob, 188return new EvaluationLocation(this.Id, evaluationPass, passDescription ?? PassDefaultDescription[evaluationPass],
Microsoft.Build.Tasks.Core (4)
AssemblyDependency\ReferenceTable.cs (2)
1545Reference primaryAssemblyReference = References[primaryAssemblyName]; 1952assemblyNamesList.Add(fullNameToReference[versionLessAssemblyName]);
BootstrapperUtil\BootstrapperBuilder.cs (1)
749_products.Add(availableProducts[p.ProductCode]);
RedistList.cs (1)
1121return s_subsetListPathCache[key];
Microsoft.Build.Utilities.Core (2)
MuxLogger.cs (1)
316int value = _submissionProjectsInProgress[e.BuildEventContext.SubmissionId];
ToolLocationHelper.cs (1)
544return targetPlatformMoniker.ExtensionSDKs[sdkMoniker];
Microsoft.CodeAnalysis (32)
CodeGen\LocalSlotManager.cs (1)
154return LocalMap[symbol];
CodeGen\SwitchStringJumpTableEmitter.cs (1)
129_builder.MarkLabel(hashBucketLabelsMap[kvPair.Key]);
Collections\TopologicalSort.cs (2)
56if (predecessorCounts[node] == 0) 74var count = predecessorCounts[succ];
DiagnosticAnalyzer\AnalysisResultBuilder.cs (3)
101return _analyzerExecutionTimeOpt[analyzer]; 293_analyzerExecutionTimeOpt[analyzer] + timeSpan; 616var executionTime = _analyzerExecutionTimeOpt != null ? _analyzerExecutionTimeOpt[analyzer] : default;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
194Debug.Assert(GeneratedPathComparer.Equals(_originalPathInfoMap[originalPath].ResolvedPath, resolvedPath));
DiagnosticAnalyzer\AnalyzerManager.cs (1)
54private AnalyzerExecutionContext GetAnalyzerExecutionContext(DiagnosticAnalyzer analyzer) => _analyzerExecutionContextMap[analyzer];
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
1249var methodDef = _parameterDefList[paramDef]; 1575int next = this.added[row]; 1637=> _map[rowId];
InternalUtilities\ConcurrentLruCache.cs (1)
73_cache[key].Value);
InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
MetadataReader\MetadataHelpers.cs (1)
921int keyIndex = names[pair.Key];
Operations\ControlFlowGraphBuilder.cs (14)
592Debug.Assert(regionMap[block] == subRegion); 651Debug.Assert(regionMap[blocks[i]] == subRegion); 667Debug.Assert(regionMap[blocks[i]] == subRegion); 710regionMap[predecessor] == regionMap[block]) 737RegionBuilder currentRegion = regionMap[block]; 751RegionBuilder currentRegion = regionMap[block]; 794Debug.Assert(regionMap[block] == tryAndFinallyEnclosing); 821regionMap[predecessor] != currentRegion) 881regionMap[predecessor] != currentRegion) 895RegionBuilder? destinationRegionOpt = next.Destination == null ? null : regionMap[next.Destination]; 971RegionBuilder currentRegion = regionMap[block]; 982regionMap[predecessor] == currentRegion) 1113RegionBuilder predecessorRegion = regionMap[predecessor];
PEWriter\FullMetadataWriter.cs (2)
221return MetadataTokens.FieldDefinitionHandle(_fieldDefIndex[typeDef]); 226return MetadataTokens.MethodDefinitionHandle(_methodDefIndex[typeDef]);
PEWriter\MetadataWriter.cs (1)
856return MetadataTokens.AssemblyFileHandle(_fileRefIndex[mref.Name]);
Microsoft.CodeAnalysis.Analyzers (12)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
118if (!collisionMap[name] && canUse(name))
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (1)
454var dominatorBlockOrdinal = loopRangeMap[successorBlock.Ordinal];
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
30public TAnalysisData? this[BasicBlock block] => _info[block];
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3770var exceptionData = AnalysisDataForUnhandledThrowOperations[pendingThrow];
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
44return _coreAnalysisData[key];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
Microsoft.CodeAnalysis.CodeStyle (11)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
57var newRoot = root.ReplaceTokens(replacements.Keys, (token, _) => replacements[token]);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
794computeReplacementNode: (node, _) => memberDeclReplacementsMap[node]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
118if (!collisionMap[name] && canUse(name))
Microsoft.CodeAnalysis.CSharp (65)
Binder\Binder_Query.cs (4)
448state.allRangeVariables[x2].Free(); 518state.allRangeVariables[x2].Free(); 707var x2m = state.allRangeVariables[x2]; 761state.allRangeVariables[y].Add(let.Identifier.ValueText);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
462state.allRangeVariables[x2].Free(); 538state.allRangeVariables[y].Add(let.Identifier.ValueText);
Binder\Binder.QueryTranslationState.cs (1)
67result.Add(vars, allRangeVariables[vars].ToImmutable());
Binder\DecisionDagBuilder.cs (7)
1466usedTemps.UnionWith(usedTempsPerState[stateToIndex[trueBranch]]); 1471usedTemps.UnionWith(usedTempsPerState[stateToIndex[falseBranch]]); 1474if (trueBranch != null && unnecessaryStates[stateToIndex[trueBranch]]) 1480if (falseBranch != null && unnecessaryStates[stateToIndex[falseBranch]]) 2860result.Append($"{(starred ? "*" : "")}State " + stateIdentifierMap[state] + (isFail ? " FAIL" : "")); 2876result.AppendLine($" TrueBranch: {stateIdentifierMap[state.TrueBranch]}"); 2881result.AppendLine($" FalseBranch: {stateIdentifierMap[state.FalseBranch]}");
Binder\PatternExplainer.cs (2)
93var distanceToNode = dist[nodes[0]].distance; 105(int d, BoundDecisionDagNode next) = dist[t];
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
519return _ordinals[typeParameter];
Binder\SwitchBinder_Patterns.cs (2)
162label: LabelsByNode[node], 204LabelSymbol label = labelsByNode[labelSyntax];
BoundTree\BoundDecisionDag.cs (1)
114var newRoot = replacement[this.RootNode];
CodeGen\Optimizer.cs (5)
99var locInfo = info[local]; 216info[pair.i].Free(); 1905var locInfo = _locals[local]; 1957var locInfo = _locals[local]; 1975var locInfo = _locals[local];
CommandLine\CSharpCommandLineParser.cs (1)
919if (diagnosticOptions[key] == ReportDiagnostic.Warn)
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
79var existing = map[key];
Declarations\MergedNamespaceDeclaration.cs (2)
212var declarations = new SingleNamespaceDeclaration[namespaceCounts[name]]; 227: (new SingleNamespaceDeclaration[namespaceCounts[name]], 0);
FlowAnalysis\AbstractFlowPass.cs (2)
251result.Append(name).Append(": ").Append(this.Dump(_labels[key])); 710var oldState = _loopHeadState[node];
FlowAnalysis\NullableWalker_Patterns.cs (1)
763Debug.Assert(originalInputMap[outputSlot] == ((BoundTupleExpression)expression).Arguments[originalTupleElement.TupleElementIndex]);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
301var proxy = proxyLabels[proxied]; 889return _labelsInInterestingTry[statement];
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
417return _placeholderMap[node];
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
315return _placeholderMap[node];
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
157return _placeholderMap[node];
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (4)
386closuresCapturingScopeVariables[environmentsToScopes[env]].Add(closure); 416closuresCapturingScopeVariables[currentScope].AddAll(capturingClosures); 471var closuresCapturingParentScope = closuresCapturingScopeVariables[parentScope];
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
736_scopesAfterLabel[label].Add(scope); 776var scopes = _scopesAfterLabel[label];
Lowering\ClosureConversion\ClosureConversion.cs (1)
633Symbol framePointer = _framePointers[frameClass];
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1136return _parameterMap[node.ParameterSymbol];
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
56return _labelsInYieldingTrys[statement];
Lowering\LocalRewriter\LocalRewriter.cs (1)
514var value = _placeholderReplacementMapDoNotUseDirectly[placeholder];
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1110var (_, whenNodeIdentifier) = whenNodeMap[whenNode];
Lowering\LocalRewriter\LocalRewriter.PlaceholderReplacer.cs (1)
30var value = _placeholders[placeholder];
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
559hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)proxies[local]).HoistedField); 799CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter]; 850CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter];
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
481var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 501BoundExpression parameterProxy = copySrc[parameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F);
Symbols\Source\ConstantEvaluationHelpers.cs (7)
190var node = graph[field]; 196var n = graph[dependedOnBy]; 224var node = graph[field]; 230var n = graph[dependency]; 235node = graph[field]; 242var n = graph[dependedOnBy]; 305var node = graph[field];
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2529Debug.Assert(!membersByName[indexerName.AsMemory()].Any(SymbolExtensions.IsIndexer));
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
456diagnostics.Add(ErrorCode.ERR_BadVisBaseInterface, interfaceLocations[i], this, i); 461diagnostics.Add(ErrorCode.ERR_FileTypeBase, interfaceLocations[i], i, this);
Symbols\Source\SourceNamespaceSymbol.cs (1)
304foreach (var symbol in result[name])
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\UnnecessaryNullableWarningSuppressionsUtilities.cs (1)
87(original, current) => current.Operand.WithAdditionalAnnotations(nodeToAnnotation[original])),
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\UnnecessaryUnsafeModifierUtilities.cs (1)
102(original, current) => WithoutUnsafeModifier(current).WithAdditionalAnnotations(nodeToAnnotation[original])),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
184(node, _) => expandUsingDirectiveTasks[node].Result); 228namespaceDeclarations, (node, _) => namespaceDeclarationMap[node].namespaceWithoutUsings); 271namespaceDeclarations, (node, _) => namespaceDeclarationMap[node].namespaceWithoutUsings);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
55var newRoot = root.ReplaceTokens(tokenToToken.Keys, (t1, _) => tokenToToken[t1]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
82var newRoot = root.ReplaceTokens(replacementMap.Keys, (original, _) => replacementMap[original]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
261return parameterList.ReplaceNodes(parameterList.Parameters, (parameter, _) => renameMap[parameter]);
Microsoft.CodeAnalysis.CSharp.Features (11)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
158=> s_operatorNameToInfo[operatorName].position;
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
118AnalyzedPattern.Relational p => RelationalPattern(Token(s_operatorMap[p.OperatorKind]), p.Value),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
757return statement.ReplaceNodes(replacements.Keys, (orig, partiallyReplaced) => replacements[orig]);
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\UnnecessaryNullableWarningSuppressionsUtilities.cs (1)
87(original, current) => current.Operand.WithAdditionalAnnotations(nodeToAnnotation[original])),
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\UnnecessaryUnsafeModifierUtilities.cs (1)
102(original, current) => WithoutUnsafeModifier(current).WithAdditionalAnnotations(nodeToAnnotation[original])),
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
184(node, _) => expandUsingDirectiveTasks[node].Result); 228namespaceDeclarations, (node, _) => namespaceDeclarationMap[node].namespaceWithoutUsings); 271namespaceDeclarations, (node, _) => namespaceDeclarationMap[node].namespaceWithoutUsings);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
55var newRoot = root.ReplaceTokens(tokenToToken.Keys, (t1, _) => tokenToToken[t1]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
82var newRoot = root.ReplaceTokens(replacementMap.Keys, (original, _) => replacementMap[original]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
261return parameterList.ReplaceNodes(parameterList.Parameters, (parameter, _) => renameMap[parameter]);
Microsoft.CodeAnalysis.Extensions.Package (1)
Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
90var oldProjectId = projectIdMap[newProjectInfo.Id];
Microsoft.CodeAnalysis.Features (103)
ChangeSignature\AbstractChangeSignatureService.cs (11)
387var nodes = nodesToUpdate[docId]; 395definitionToUse[originalNode], 398UpdateSignatureChangeToIncludeExtraParametersFromTheDeclarationSymbol(definitionToUse[originalNode], options.UpdatedSignature), 423var updatedDoc = currentSolution.GetRequiredDocument(docId).WithSyntaxRoot(updatedRoots[docId]); 447nodesToUpdate[documentId].Add(nodeToUpdate); 500argumentsToPermute.Sort((a1, a2) => { return parameterToIndexMap[argumentToParameterMap[a1]].CompareTo(parameterToIndexMap[argumentToParameterMap[a2]]); }); 513var param = argumentToParameterMap[argument]; 546var param = argumentToParameterMap[paramsArrayArgument];
ChangeSignature\SignatureChange.cs (1)
54return _originalIndexToUpdatedIndexMap[parameterIndex];
CodeFixes\Service\CodeFixService.cs (3)
521foreach (var (span, diagnostics) in fixerToRangesAndDiagnostics[fixer]) 1057return _fixerToIndex[x] - _fixerToIndex[y];
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
305var orderedDocuments = changedDocuments.OrderBy(t => codeActionToDiagnosticLocation[t.action])
CodeRefactorings\CodeRefactoringService.cs (2)
232.OrderBy((tuple1, tuple2) => providerToIndex[tuple1.provider] - providerToIndex[tuple2.provider])
Completion\CompletionService_GetCompletions.cs (2)
134.Sort((p1, p2) => completionProviderToIndex[p1.Provider] - completionProviderToIndex[p2.Provider]);
Completion\Providers\AbstractSymbolCompletionProvider.cs (4)
88return typeConvertibilityCache[type]; 393contextAndSymbolLists = [.. contextAndSymbolLists.OrderBy((tuple1, tuple2) => documentIdToIndex[tuple1.documentId] - documentIdToIndex[tuple2.documentId])]; 400completionContext, [.. symbolToContextMap.Keys], symbol => symbolToContextMap[symbol], missingSymbolsMap, totalProjects);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1344var matchingLambdaInfo = lazyActiveOrMatchedLambdas[oldEnclosingLambdaBody];
EditAndContinue\DebuggingSession.cs (3)
653_projectBaselines[updatedBaseline.ProjectId] = [.. _projectBaselines[updatedBaseline.ProjectId] 688var (metadata, pdb) = _initialBaselineModuleReaders[projectBaseline.ModuleId]; 960return instance._projectBaselines[projectId];
EditAndContinue\EditSession.cs (1)
1017var syntaxMaps = (edit.Kind == SemanticEditKind.Update) ? mergedUpdateEditSyntaxMaps[edit.PartialType.Value] : default;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (1)
69var documentMap = _documentWorkQueue[projectId];
ExtractMethod\AbstractSyntaxTriviaService.cs (25)
35Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.AfterBeginningOfSpan].Span) && textSpan.Contains(tokens[TriviaLocation.BeforeEndOfSpan].Span)); 44var rootWithAnnotation = ReplaceTokens(root, map.Keys, (o, n) => map[o]); 77token = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => tokens[TriviaLocation.BeforeBeginningOfSpan]); 78map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeBeginningOfSpan]); 80token = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => tokens[TriviaLocation.AfterBeginningOfSpan]); 81map[tokens[TriviaLocation.AfterBeginningOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterBeginningOfSpan]); 83token = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => tokens[TriviaLocation.BeforeEndOfSpan]); 84map[tokens[TriviaLocation.BeforeEndOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeEndOfSpan]); 86token = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => tokens[TriviaLocation.AfterEndOfSpan]); 87map[tokens[TriviaLocation.AfterEndOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterEndOfSpan]); 94var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.BeforeBeginningOfSpan], tokens[TriviaLocation.AfterBeginningOfSpan], t => t.FullSpan.End <= textSpan.Start); 95var triviaAtEnd = SplitTrivia(tokens[TriviaLocation.BeforeEndOfSpan], tokens[TriviaLocation.AfterEndOfSpan], t => t.FullSpan.Start < textSpan.End); 114tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true); 116tokens[TriviaLocation.AfterEndOfSpan] = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (34)
52return root.ReplaceTokens(map.Keys, (o, n) => map[o]); 110location => resolver(root, location, _annotations[location])); 113tokens[TriviaLocation.AfterBeginningOfSpan].RawKind == 0 /* don't care */ || 114tokens[TriviaLocation.BeforeEndOfSpan].RawKind == 0 /* don't care */ || 115tokens[TriviaLocation.AfterBeginningOfSpan] == tokens[TriviaLocation.BeforeEndOfSpan] || 116tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true) == tokens[TriviaLocation.BeforeEndOfSpan] || 117tokens[TriviaLocation.AfterBeginningOfSpan].Span.End <= tokens[TriviaLocation.BeforeEndOfSpan].SpanStart); 136tokenPairs[location], 137resolver(location, tokenPairs[location], tokenToLeadingTrailingTriviaMap))); 162var key = tokenPairs[location]; 168yield return (key, triviaPairs[location]); 179tuple = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => default); 180map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = new LeadingTrailingTriviaPair 183TrailingTrivia = _triviaList[TriviaLocation.BeforeBeginningOfSpan] 186tuple = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => default); 187map[tokens[TriviaLocation.AfterBeginningOfSpan]] = new LeadingTrailingTriviaPair 189LeadingTrivia = _triviaList[TriviaLocation.AfterBeginningOfSpan], 193tuple = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => default); 194map[tokens[TriviaLocation.BeforeEndOfSpan]] = new LeadingTrailingTriviaPair 197TrailingTrivia = _triviaList[TriviaLocation.BeforeEndOfSpan] 200tuple = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => default); 201map[tokens[TriviaLocation.AfterEndOfSpan]] = new LeadingTrailingTriviaPair 203LeadingTrivia = _triviaList[TriviaLocation.AfterEndOfSpan], 217PreviousToken = tokens[TriviaLocation.BeforeBeginningOfSpan], 218NextToken = tokens[TriviaLocation.BeforeBeginningOfSpan].GetNextToken(includeZeroWidth: true) 223PreviousToken = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true), 224NextToken = tokens[TriviaLocation.AfterBeginningOfSpan] 229PreviousToken = tokens[TriviaLocation.BeforeEndOfSpan], 230NextToken = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true) 235PreviousToken = tokens[TriviaLocation.AfterEndOfSpan].GetPreviousToken(includeZeroWidth: true), 236NextToken = tokens[TriviaLocation.AfterEndOfSpan]
ExtractMethod\SelectionResult.cs (2)
246return root.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o])); 259return root.ReplaceNodes(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o]));
FindUsages\IRemoteFindUsagesService.cs (1)
156return _idToDefinition[definitionId];
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
408var declarationIndex = variableDeclarationIndex[localSymbol]; 420endOfUsingStatementIndex = Math.Max(endOfUsingStatementIndex, lastVariableUsageIndex[localSymbol]);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
482var parts = _groupMap[group];
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
446(original, _) => nodesToUpdate[original]);
Shared\Utilities\AnnotatedSymbolMapping.cs (1)
89var symbolsInDocument = documentIdToSymbolsMap[id];
Snippets\AbstractSnippetService.cs (1)
31return _identifierToProviderMap[snippetIdentifier];
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
57var newRoot = root.ReplaceTokens(replacements.Keys, (token, _) => replacements[token]);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
794computeReplacementNode: (node, _) => memberDeclReplacementsMap[node]);
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (3)
50.SelectMany(framework => framework.Dependencies!.Keys.Where(key => framework.Dependencies[key].AutoReferenced)) 120var target = projectAssets.Targets[targetName]; 121var targetLibrary = target[key];
Microsoft.CodeAnalysis.NetAnalyzers (8)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumShouldNotHaveDuplicatedValues.cs (2)
105var duplicatedField = membersByValue[field.ConstantValue!]; 150var duplicatedField = membersByValue[field.ConstantValue!];
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (2)
398results[methodSymbol].Add(child); 406results[methodSymbol].UnionWith(result);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (1)
452var dominatorBlockOrdinal = loopRangeMap[successorBlock.Ordinal];
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
29public TAnalysisData? this[BasicBlock block] => _info[block];
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3767var exceptionData = AnalysisDataForUnhandledThrowOperations[pendingThrow];
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
43return _coreAnalysisData[key];
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\Components\ComponentGenericTypePass.cs (1)
81var binding = bindings[typeArgumentNode.TypeParameterName];
Language\Extensions\DefaultTagHelperOptimizationPass.cs (1)
248return _tagHelpers[tagHelper];
Mvc\ViewComponentTagHelperPass.cs (3)
176=> _tagHelpers[tagHelper].className; 179=> _tagHelpers[tagHelper].fullyQualifiedName; 182=> _tagHelpers[tagHelper].fieldName;
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
Microsoft.CodeAnalysis.Workspaces (29)
CodeCleanup\AbstractCodeCleanerService.cs (1)
596return node.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations([.. tokenMap[o]]));
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
476return [.. projectsToExamine.OrderBy((p1, p2) => order[p1.Id] - order[p2.Id])];
FindSymbols\StreamingProgressCollector.cs (1)
75_symbolToLocations[tuple.symbol].Add(tuple.location);
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (1)
78var currentIdentifiers = _currentIdentifiersInScope[name];
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
292if (!documentIdErrorStateLookup[documentId])
Shared\Utilities\DocumentationComment.cs (1)
288_exceptionTextBuilders[type].Add(exceptionText);
Shared\Utilities\ExtensionOrderer.cs (3)
35var extensionNode = graph.Nodes[extension]; 40var otherExtensionNode = graph.Nodes[beforeExtension]; 49var otherExtensionNode = graph.Nodes[afterExtension];
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
194Debug.Assert(GeneratedPathComparer.Equals(_originalPathInfoMap[originalPath].ResolvedPath, resolvedPath));
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
118if (!collisionMap[name] && canUse(name))
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
140=> _analyzerReferences[checksum];
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
202_project._documentWatchedFiles[documentId].Dispose();
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
129var analyzerReferenceMap = s_languageToAnalyzerReferenceMap[projectState.Language];
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (2)
190.Sort((dt1, dt2) => documentToIndex[dt1.document] - documentToIndex[dt2.document])
Workspace\Workspace_Editor.cs (1)
318oldActiveContextDocumentId = _bufferToDocumentInCurrentContextMap[container];
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (3)
70return s_comToManagedPrimitiveTypes[varEnum]; 155Type candidateManagedType = s_comToManagedPrimitiveTypes[candidateType]; 181string typeName = s_comToManagedPrimitiveTypes[compatibleComTypes[i]].Name;
Microsoft.Data.Analysis (3)
DataFrame.Join.cs (2)
235newOccurrences = newOccurrences.ToDictionary(kvp => retainedIndicesReverseMapping[kvp.Key], kvp => kvp.Value); 261var list1 = (IReadOnlyList<long>)occurrences[newOccurrenceKey];
DataFrameColumnCollection.cs (1)
57int currentIndex = _columnNameToIndexDictionary[currentName];
Microsoft.Data.Analysis.Tests (3)
DataFrameGroupByTests.cs (3)
79Assert.Equal(10, groupings[i].Count()); 81var rows = groupings[i]; 94Assert.Equal(length % 10, groupings[length / 10].Count());
Microsoft.Diagnostics.DataContractReader (1)
CachingContractRegistry.cs (1)
68contract = (TContract)_contracts[typeof(TContract)];
Microsoft.Diagnostics.DataContractReader.Contracts (76)
Contracts\RuntimeTypeSystem_1.cs (76)
542return _methodTables[typeHandle.Address].Module; 566public bool IsCanonicalMethodTable(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].IsCanonMT; 567public TargetPointer GetParentMethodTable(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable; 569public uint GetBaseSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize; 571public uint GetNumInstanceFieldBytes(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding; 573public uint GetComponentSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize; 579MethodTable methodTable = _methodTables[typeHandle.Address]; 587MethodTable canonMT = _methodTables[canonMTHandle.Address]; 637public bool IsString(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsString; 666public bool ContainsGCPointers(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers; 667public bool IsByRefLike(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsByRefLike; 682if (!typeHandle.IsMethodTable() || !_methodTables[typeHandle.Address].Flags.IsHFA) 690elementSize = _methodTables[typeHandle.Address].Flags.RequiresAlign8 ? 8 : 4; 743if (!typeHandle.IsMethodTable() || !_methodTables[typeHandle.Address].Flags.IsIntrinsicType) 816public bool RequiresAlign8(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8; 819&& _methodTables[typeHandle.Address].ParentMethodTable == ContinuationMethodTablePointer 897public bool IsDynamicStatics(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics; 898public ushort GetNumInterfaces(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces; 904MethodTable methodTable = _methodTables[typeHandle.Address]; 911MethodTable methodTable = _methodTables[typeHandle.Address]; 949public bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer; 955MethodTable methodTable = _methodTables[typeHandle.Address]; 965MethodTable methodTable = _methodTables[typeHandle.Address]; 1013MethodTable methodTable = _methodTables[typeHandle.Address]; 1024MethodTable methodTable = _methodTables[typeHandle.Address]; 1033MethodTable methodTable = _methodTables[typeHandle.Address]; 1046MethodTable methodTable = rts._methodTables[typePointer]; 1066public bool IsGenericTypeDefinition(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition; 1092return _methodTables[typeHandle.Address].Flags.ContainsGenericVariables; 1095public bool IsCollectible(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible; 1100MethodTable methodTable = _methodTables[typeHandle.Address]; 1122MethodTable methodTable = _methodTables[typeHandle.Address]; 1166MethodTable methodTable = _methodTables[typeHandle.Address]; 1186MethodTable methodTable = _methodTables[typeHandle.Address]; 1204MethodTable methodTable = _methodTables[typeHandle.Address]; 1229MethodTable methodTable = _methodTables[typeHandle.Address]; 1317MethodTable methodTable = _methodTables[typeHandle.Address]; 1534MethodTable mt = _methodTables[typeHandle.Address]; 1593public TargetPointer GetMethodTable(MethodDescHandle methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable; 1617MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1626MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1651MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1704MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1717MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1723MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1757MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1771MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1796MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1834MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1846MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1852MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1863MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 1877return _methodTables[methodDesc.MethodTable]; 1914MethodTable mt = _methodTables[typeHandle.Address]; 1974MethodDesc md = _methodDescs[methodDesc.Address]; 1982MethodDesc md = _methodDescs[methodDesc.Address]; 1999MethodDesc md = _methodDescs[methodDesc.Address]; 2010MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 2016MethodDesc md = _methodDescs[methodDesc.Address]; 2021MethodDesc md = _methodDescs[methodDesc.Address]; 2043MethodDesc md = _methodDescs[methodDescHandle.Address]; 2054MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 2060MethodDesc candidate = _methodDescs[candidateHandle.Address]; 2101MethodDesc md = _methodDescs[mdh.Address]; 2135MethodDesc md = _methodDescs[mdh.Address]; 2183MethodDesc md = _methodDescs[methodDesc.Address]; 2189MethodDesc md = _methodDescs[methodDescHandle.Address]; 2209MethodDesc md = _methodDescs[methodDescHandle.Address]; 2231Debug.Assert(_methodTables[typeHandle.Address].IsCanonMT); 2238MethodDesc md = _methodDescs[methodDesc.Address]; 2262MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 2273MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 2279MethodDesc md = _methodDescs[methodDescHandle.Address]; 2300MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 2306MethodDesc methodDesc = _methodDescs[methodDescHandle.Address]; 2341Debug.Assert(_methodTables[typeHandle.Address].IsCanonMT);
Microsoft.Diagnostics.DataContractReader.Legacy (4)
SOSDacImpl.cs (4)
4983Debug.Assert(expectedElements[default] == elements.Count(), $"cDAC: {elements.Count()} elements, DAC: {expectedElements[default]} elements"); 5044Debug.Assert(expectedElements[default] == (ulong)cleanupInfos.Count(), $"cDAC: {cleanupInfos.Count()} elements, DAC: {expectedElements[default]} elements");
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
74runtimeItems[runtimeName] = runtimeItems[runtimeName].Concat(items);
Microsoft.DotNet.Build.Manifest (1)
VersionIdentifier.cs (1)
209return majorMinorPatchDictionary[maxKey];
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateRpmPackage.cs (1)
191string kind = filePathToKind[entry.Name];
Microsoft.DotNet.Build.Tasks.Packaging (23)
GeneratePackageReport.cs (5)
168version = _targetPathToPackageItem[AggregateNuGetAssetResolver.AsPackageSpecificTargetPath(PackageId, refAssm)].Version?.ToString() ?? version; 308packageItems[packageId].Add(packageItem); 329Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 339_resolver.AddPackageItems(packageId, packageItems[packageId].Select(f => f.TargetPath)); 347var filesWithoutPlaceholders = packageItems[PackageId]
GetApplicableAssetsFromPackages.cs (5)
102.Select(ca => _targetPathToPackageItem[ca]); 126.Select(ra => _targetPathToPackageItem[ra]); 165_packageToPackageItems[packageItem.Package].Add(packageItem); 185Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageFile.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 194_resolver.AddPackageItems(packageId, _packageToPackageItems[packageId].Select(f => f.TargetPath));
GetLastStablePackage.cs (1)
125LastStablePackages = lastStablePackages.Select(p => CreateItem(originalItems[p.Key], p.Value)).ToArray();
HarvestPackage.cs (2)
161string packagePath = _packageFolders[PackageId]; 268string pathToPackage = _packageFolders[PackageId];
NuGetAssetResolver.cs (5)
182_packages[packageId].Load(packageItems); 198_packages[package].FindBestItemGroup(managedCriteria, 248_packages[package].FindBestItemGroup(managedCriteria, 266_packages[package].FindBestItemGroup(managedCriteria, 281_packages[package].PopulateItemGroups(_conventions.Patterns.RuntimeAssemblies, contentItemGroups);
NugetPropertyStringProvider.cs (1)
38return k => propertyDictionary[k];
PromoteDependencies.cs (2)
63promotedDependencies.AddRange(CopyDependencies(libSets[nearestLibFx], refFx)); 77promotedDependencies.AddRange(CopyDependencies(refSets[nearestRefFx], libFx));
ValidatePackage.cs (2)
332Log.LogError($"{ContractName} includes both {implementationAssembly.LocalPath} and {implementationFiles[fileName].LocalPath} an on {target} which have the same name and will clash when both packages are used."); 489_frameworks[fx].RuntimeIds = runtimeIdList.Split(';');
Microsoft.DotNet.Build.Tasks.Workloads (3)
Swix\SwixComponent.cs (1)
205component.AddDependency(manifest.Packs[packId]);
Utils.cs (1)
75content = content.Replace(token, tokenReplacements[token]);
Wix\HarvesterToolTask.cs (1)
129CommandLineBuilder.AppendSwitch(s_SuppressionArguments[suppression]);
Microsoft.DotNet.CodeAnalysis (4)
Analyzers\PinvokeAnalyzer.cs (4)
113if (AllowedPinvokes[methodName].Equals(moduleName, StringComparison.OrdinalIgnoreCase)) 117altMsg = String.Format(NotSupportedOnWin7, AllowedPinvokes[methodName] + "!" + methodName); 126altMsg = String.Format(AltMsgString, AllowedPinvokes[methodName] + "!" + methodName); 130return (ExceptionPinvokes.ContainsKey(methodName) && ExceptionPinvokes[methodName].Equals(moduleName, StringComparison.OrdinalIgnoreCase));
Microsoft.DotNet.PackageTesting (4)
GetCompatiblePackageTargetFrameworks.cs (2)
69frameworksToTest.AddRange(packageTfmMapping[item]); 99packageTfmMapping[forwardTfm].Add(reverseTfm);
Package.cs (2)
30List<NuGetFramework> FrameworksInPackageList = CompileAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).ToList(); 33FrameworksInPackageList.AddRange(RuntimeAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).Distinct());
Microsoft.DotNet.PackageValidation (5)
Package.cs (3)
103Rids = RuntimeSpecificAssets.Select(t => (string)t.Properties["rid"]) 106FrameworksInPackage = CompileAssets.Select(t => (NuGetFramework)t.Properties["tfm"]) 107.Concat(RuntimeAssets.Select(t => (NuGetFramework)t.Properties["tfm"]))
Validators\BaselinePackageValidator.cs (1)
94.GroupBy(t => (string)t.Properties["rid"]);
Validators\CompatibleTFMValidator.cs (1)
35compatibleTargetFrameworks.UnionWith(s_packageTfmMapping[item]);
Microsoft.DotNet.TemplateLocator (14)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
225workloadSet = availableWorkloadSets[maxWorkloadSetVersion.ToString()];
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (13)
128var existingManifest = _manifests[readableManifest.ManifestId].manifest; 173WorkloadManifest conflictingManifest = _workloads[workload.Key].manifest; 183WorkloadManifest conflictingManifest = _packs[pack.Key].manifest; 198(var redirect, var manifest) = redirects[redirectId]; 204WorkloadManifest conflictingManifest = _workloads[redirect.Id].manifest; 215var unresolved = unresolvedRedirects.Select(ur => redirects[ur]).Where(ur => !redirects.ContainsKey(ur.redirect.ReplaceWith)).FirstOrDefault(); 222var cyclic = redirects[unresolvedRedirects.First()]; 543.Select(s => new WorkloadInfo(s, _workloads[s].workload.Description)) 581var existingWorkload = _workloads[workloadId]; 584var updatedWorkload = advertisingManifestResolver._workloads[workloadId]; 587if (!existingPacks.SetEquals(updatedPacks) || existingPacks.Any(p => PackHasChanged(_packs[p].pack, advertisingManifestResolver._packs[p].pack))) 626return _workloads[workloadId].manifest;
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary{TValue}.cs (1)
63get => _dictionary[key];
Functions\AIFunctionArguments.cs (1)
100get => _arguments[key];
Microsoft.Extensions.AI.Abstractions.Tests (3)
Functions\AIFunctionArgumentsTests.cs (3)
256Assert.Equal("value4", originalDict["key4"]); 283Assert.Equal("value4", originalDict["key4"]); 284Assert.Equal("new value", originalDict["newKey"]);
Microsoft.Extensions.AI.Integration.Tests (4)
VerbatimMultiPartHttpHandler.cs (4)
129((List<JsonElement>)parameters[name]).Add(ParseContentToJsonElement(rawValue)); 142if (parameters[key] is List<JsonElement> list && list.Count == 1) 235if (!actualFrequencies.ContainsKey(kvp.Key) || kvp.Value != actualFrequencies[kvp.Key]) 241Assert.Equal(kvp.Value, actualFrequencies[kvp.Key]);
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIConversionTests.cs (5)
1610Assert.Equal("hello", deserializedArgs["simpleString"]?.ToString()); 1611Assert.Equal(42, ((JsonElement)deserializedArgs["number"]!).GetInt32()); 1612Assert.True(((JsonElement)deserializedArgs["boolean"]!).GetBoolean()); 1613Assert.Null(deserializedArgs["nullValue"]); 1615var nestedObj = (JsonElement)deserializedArgs["nestedObject"]!;
Microsoft.Extensions.AI.Tests (14)
ChatCompletion\OpenTelemetryChatClientTests.cs (5)
272"""), ReplaceWhitespace(tags["gen_ai.input.messages"])); 287"""), ReplaceWhitespace(tags["gen_ai.output.messages"])); 296"""), ReplaceWhitespace(tags["gen_ai.system_instructions"])); 349"""), ReplaceWhitespace(tags["gen_ai.tool.definitions"])); 383"""), ReplaceWhitespace(tags["gen_ai.tool.definitions"]));
ChatRouting\SemanticRoutingChatClientTests.cs (3)
94[.. inputs.Select(input => new Embedding<float>(vectors[input]))])); 144[.. values.Select(input => new Embedding<float>(vectors[input]))])), 187[.. values.Select(input => new Embedding<float>(vectors[input]))])),
Image\OpenTelemetryImageGeneratorTests.cs (2)
138"""), ReplaceWhitespace(tags["gen_ai.input.messages"])); 160"""), ReplaceWhitespace(tags["gen_ai.output.messages"]));
Realtime\OpenTelemetryRealtimeClientTests.cs (3)
158"""), ReplaceWhitespace(tags["gen_ai.system_instructions"])); 179"""), ReplaceWhitespace(tags["gen_ai.tool.definitions"])); 191"""), ReplaceWhitespace(tags["gen_ai.tool.definitions"]));
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (1)
143"""), ReplaceWhitespace(tags["gen_ai.output.messages"]));
Microsoft.Extensions.Caching.Hybrid.Tests (2)
SerializerTests.cs (2)
199Assert.Equal(source["x"], val); 201Assert.Equal(source["y"], val);
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
275get => _properties[key];
Microsoft.Extensions.Configuration.Binder.SourceGeneration (3)
ConfigurationBindingGenerator.Parser.cs (1)
127TypeSpec typeSpec = _createdTypeSpecs[typeParseInfo.TypeSymbol];
Specs\TypeIndex.cs (2)
70TypeSpec effectiveSpec = effectiveRef == typeSpec.TypeRef ? typeSpec : _index[effectiveRef]; 74public TypeSpec GetTypeSpec(TypeRef typeRef) => _index[typeRef];
Microsoft.Extensions.DataIngestion (2)
Writers\VectorStoreWriter.cs (2)
187filter: record => (string)record[DocumentIdName]! == document.Identifier, 192keys.Add(record[KeyName]!);
Microsoft.Extensions.DataIngestion.Tests (17)
IngestionPipelineTests.cs (3)
98.GetAsync(record => _sampleFiles.Any(info => info.FullName == (string)record["documentid"]!), top: 1000) 132.GetAsync(record => ((string)record["documentid"]!).StartsWith(directory.FullName), top: 1000) 162.GetAsync(record => ((string)record["documentid"]!).EndsWith(_withImage.Name), top: 100)
Writers\VectorStoreWriterTests.cs (14)
45.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 1) 49Assert.NotNull(record["key"]); 50Assert.Equal(documentId, record["documentid"]); 51Assert.Equal(chunks[0].Content, record["content"]); 56Assert.Equal(kvp.Value, record[kvp.Key]); 91.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 100) 111.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 100) 115Assert.NotNull(record["key"]); 116Assert.Equal("different content", record["content"]); 117Assert.Equal("value2", record["key1"]); 147.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 10000) 162.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 10000) 166Assert.Contains(records, r => (string)r["content"]! == "updated chunk 1"); 167Assert.Contains(records, r => (string)r["content"]! == "updated chunk 2");
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLoggerTests.cs (6)
87Assert.Equal("V0", ss["K0"]); 88Assert.Equal("V1", ss["K1"]); 89Assert.Null(ss["K2"]); 90Assert.Equal("[\"0\",\"1\",\"2\"]", ss["K3"]); 103Assert.Equal("Bob", ss["name"]); 104Assert.Equal("Hello {name}", ss["{OriginalFormat}"]);
Microsoft.Extensions.Http.Diagnostics (4)
Latency\Internal\HttpRequestLatencyListener.cs (4)
153socket[key] = tokenIssuer.GetCheckpointToken(_socketMap[key]); 159nameResolution[key] = tokenIssuer.GetCheckpointToken(_nameResolutionMap[key]); 165http[key] = tokenIssuer.GetCheckpointToken(_httpMap[key]); 171httpMeasures[key] = tokenIssuer.GetMeasureToken(_httpMeasureMap[key]);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
137enricher.Tags["error.type"].Should().BeOfType<string>().Subject.Should().Be("500");
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
111var description = Options.Tokens.ProviderMap[providerName];
Microsoft.Extensions.VectorData.ConformanceTests (155)
EmbeddingGenerationTests.cs (7)
41Assert.Equal("Property ([1, 1, 3])", result.Record[nameof(Record.Text)]); 225await stringVectorFixture.TestStore.WaitForDataAsync(collection, 1, filter: r => (int)r[nameof(Record.Counter)] == counter); 228Assert.Equal(counter, result.Record[nameof(Record.Counter)]); 294await stringVectorFixture.TestStore.WaitForDataAsync(collection, 2, filter: r => (int)r[nameof(Record.Counter)] == counter1 || (int)r[nameof(Record.Counter)] == counter2); 297Assert.Equal(counter1, result.Record[nameof(Record.Counter)]); 300Assert.Equal(counter2, result.Record[nameof(Record.Counter)]);
FilterTests.cs (74)
25r => (int)r["Int"] == 8); 31r => r["String"] == "foo"); 40r => r["String"] == sqlInjection, 53new() { Filter = r => r["String = \"not\"; DROP TABLE FilterTests;"] == "" }).ToListAsync()); 61r => r["String"] == fixture.SpecialCharactersText); 67r => r["String"] == "some", 75r => 8 == (int)r["Int"]); 82r => r["String"] == null); 91r => r["String"] == s); 101r => (int)r["Int"] == i); 111r => (int)r["Int"] == i, 122r => (int)r["Int"] == i.Value); 134r => (int)r["Int"] == i.Value, 148r => (int)r["Int"] != 8); 154r => r["String"] != "foo"); 160r => (int)r["Int"] != 8); 166r => r["String"] != null); 175r => r["String"] != s); 182r => (bool)r["Bool"]); 188r => (bool)r["Bool"] && (bool)r["Bool"]); 194r => (bool)r["Bool"] || !(bool)r["Bool"], 205r => (int)r["Int"] > 9); 211r => (int)r["Int"] >= 9); 217r => (int)r["Int"] < 10); 223r => (int)r["Int"] <= 10); 233r => (int)r["Int"] == 8 && r["String"] == "foo"); 239r => (int)r["Int"] == 8 || r["String"] == "foo"); 245r => ((int)r["Int"] == 8 && r["String"] == "foo") && (int)r["Int2"] == 80); 251r => ((int)r["Int"] == 8 && r["String"] == "foo") || (int)r["Int2"] == 100); 257r => ((int)r["Int"] == 8 || (int)r["Int"] == 9) && r["String"] == "foo"); 264r => !((int)r["Int"] == 8)); 270r => !((int)r["Int"] != 8)); 277r => !((int)r["Int"] == 8 && r["String"] == "foo")); 283r => !((int)r["Int"] == 8 || r["String"] == "foo")); 289r => !(bool)r["Bool"]); 295r => !(bool)r["Bool"] && (int)r["Int"] != int.MaxValue); 305r => ((string[])r["StringArray"]!).Contains("x")); 311r => ((List<string>)r["StringList"]!).Contains("x")); 317r => new[] { 8, 10 }.Contains((int)r["Int"])); 323r => new[] { "foo", "baz", "unknown" }.Contains(r["String"])); 329r => new[] { "foo", "baz", "un , ' \"" }.Contains(r["String"])); 338r => array.Contains(r["String"])); 352r => ((string[])r["StringArray"]!).Contains("x")); 376r => ((string[])r["StringArray"]!).Any(s => new[] { "x", "z", "nonexistent" }.Contains(s))); 385r => ((string[])r["StringArray"]!).Any(s => tagsToFind.Contains(s))); 395r => ((string[])r["StringArray"]!).Any(s => tagsToFind.Contains(s))); 405r => ((List<string>)r["StringList"]!).Any(s => tagsToFind.Contains(s))); 420r => (int)r["Int"] == i); 427r => (int)r["Int"] == _memberField); 433r => (int)r["Int"] == _memberReadOnlyField); 439r => (int)r["Int"] == _staticMemberField); 445r => (int)r["Int"] == _staticMemberReadOnlyField); 451r => (int)r["Int"] == _someWrapper.SomeWrappedValue); 537.OrderBy(r => r[nameof(FilterRecord.Key)]) 699Assert.Equal(x.Key, y["Key"]); 700Assert.Equal(x.Int, y["Int"]); 701Assert.Equal(x.String, y["String"]); 702Assert.Equal(x.Int2, y["Int2"]); 706Assert.Equal(x.Bool, y["Bool"]); 711Assert.Equivalent(x.StringArray, y["StringArray"]); 716Assert.Equivalent(x.StringList, y["StringList"]);
ModelTests\DynamicModelTests.cs (55)
24(TKey)expectedRecord[KeyPropertyName]!, 35var ids = expectedRecords.Select(record => record[KeyPropertyName]!); 43received.Single(r => r[KeyPropertyName]!.Equals(record[KeyPropertyName])), 90r => (int)r[IntegerPropertyName]! == 1, 111.Where(r => (int)r[IntegerPropertyName]! > 1) 112.OrderBy(r => r[IntegerPropertyName]) 114.Select(r => (int)r[IntegerPropertyName]!) 118.Where(r => (int)r[IntegerPropertyName]! > 1) 119.OrderByDescending(r => r[IntegerPropertyName]) 121.Select(r => (int)r[IntegerPropertyName]!) 129r => (int)r[IntegerPropertyName]! > 1, 131new() { OrderBy = o => o.Ascending(r => r[IntegerPropertyName]) }) 132.Select(r => (int)r[IntegerPropertyName]!) 138r => (int)r[IntegerPropertyName]! > 1, 140new() { OrderBy = o => o.Descending(r => r[IntegerPropertyName]) }) 141.Select(r => (int)r[IntegerPropertyName]!) 151.OrderByDescending(r => r[StringPropertyName]) 152.ThenBy(r => r[IntegerPropertyName]) 154.Select(r => (int)r[IntegerPropertyName]!) 158.OrderByDescending(r => r[StringPropertyName]) 159.ThenByDescending(r => r[IntegerPropertyName]) 161.Select(r => (int)r[IntegerPropertyName]!) 170new() { OrderBy = o => o.Descending(r => r[StringPropertyName]).Ascending(r => r[IntegerPropertyName]) }) 171.Select(r => (int)r[IntegerPropertyName]!) 179new() { OrderBy = o => o.Descending(r => r[StringPropertyName]).Descending(r => r[IntegerPropertyName]) }) 180.Select(r => (int)r[IntegerPropertyName]!) 190r => (int)r[IntegerPropertyName]! > 1, 192new() { OrderBy = o => o.Ascending(r => r[IntegerPropertyName]), Skip = 1 }) 193.Select(r => (int)r[IntegerPropertyName]!) 198.Where(r => (int)r[IntegerPropertyName]! > 1) 199.OrderBy(r => r[IntegerPropertyName]) 202.Select(r => (int)r[IntegerPropertyName]!), 235[KeyPropertyName] = existingRecord[KeyPropertyName], 241Assert.NotNull(await Collection.GetAsync((TKey)existingRecord[KeyPropertyName]!)); 244var received = await Collection.GetAsync((TKey)existingRecord[KeyPropertyName]!, new() { IncludeVectors = true }); 269var keys = newRecords.Select(record => record[KeyPropertyName]!).ToArray(); 277received.OrderBy(r => r[IntegerPropertyName]), 291Assert.NotNull(await fixture.Collection.GetAsync((TKey)recordToRemove[KeyPropertyName]!)); 292await fixture.Collection.DeleteAsync((TKey)recordToRemove[KeyPropertyName]!); 293Assert.Null(await fixture.Collection.GetAsync((TKey)recordToRemove[KeyPropertyName]!)); 318expectedRecord[VectorPropertyName]!, 346new() { Filter = r => (int)r[IntegerPropertyName]! == 2 }) 357Assert.Equal(expected[KeyPropertyName], actual[KeyPropertyName]); 359Assert.Equal(expected[StringPropertyName], actual[StringPropertyName]); 360Assert.Equal(expected[IntegerPropertyName], actual[IntegerPropertyName]); 365((ReadOnlyMemory<float>)expected[VectorPropertyName]!).Length, 366((ReadOnlyMemory<float>)actual[VectorPropertyName]!).Length); 371((ReadOnlyMemory<float>)expected[VectorPropertyName]!).ToArray(), 372((ReadOnlyMemory<float>)actual[VectorPropertyName]!).ToArray());
Support\DynamicVectorStoreCollectionFixture.cs (1)
24await Collection.DeleteAsync((TKey)record[KeyPropertyName]!);
TypeTests\DataTypeTests.cs (4)
212comparisonAction(mainValue, (TTestType)dynamicResult[propertyName]!); 403Assert.Equal(fixture.MainRecordKey, result[nameof(RecordBase.Key)]); 404comparisonAction(mainValue, (TTestType)result[propertyName]!); 421Assert.Equal(fixture.NullRecordKey, result[nameof(RecordBase.Key)]);
TypeTests\EmbeddingTypeTests.cs (5)
113await fixture.TestStore.WaitForDataAsync(dynamicCollection, recordCount: 1, filter: r => (int)r["Int"]! == 43, dummyVector: value); 119vectorEqualityAsserter(value, (TVector)dynamicResult1["Vector"]!); 124var dynamicResult2 = await dynamicCollection.SearchAsync(value, top: 1, new() { IncludeVectors = true, Filter = r => (int)r["Int"]! == 43 }).SingleAsync(); 125Assert.Equal(43, dynamicResult2.Record["Int"]); 128vectorEqualityAsserter(value, (TVector)dynamicResult2.Record["Vector"]!);
TypeTests\KeyTypeTests.cs (9)
127Assert.IsType<TKey>(dynamicResult[nameof(Record<>.Key)]); 128Assert.Equal(key1, (TKey)dynamicResult[nameof(Record<>.Key)]!); 129Assert.Equal(8, dynamicResult[nameof(Record<>.Int)]); 136var firstDynamicRecord = Assert.Single(dynamicResults, r => r[nameof(Record<>.Key)]!.Equals(key1)); 137Assert.IsType<TKey>(firstDynamicRecord[nameof(Record<>.Key)]); 138Assert.Equal(8, firstDynamicRecord[nameof(Record<>.Int)]); 139var secondDynamicRecord = Assert.Single(dynamicResults, r => r[nameof(Record<>.Key)]!.Equals(key2)); 140Assert.IsType<TKey>(secondDynamicRecord[nameof(Record<>.Key)]); 141Assert.Equal(9, secondDynamicRecord[nameof(Record<>.Int)]);
Microsoft.Gen.Logging (3)
Emitter.Method.cs (1)
627_ = sb.Append(_classificationMap[ct]);
Parser.cs (2)
560Diag(DiagDescriptors.TagNameCollision, parameterSymbols[parameter].GetLocation(), parameter.ParameterName, fullName, lm.Name); 566Diag(DiagDescriptors.TagNameCollision, parameterSymbols[parameter].GetLocation(), parameter.ParameterName, parameter.TagName, lm.Name);
Microsoft.Gen.Logging.Generated.Tests (18)
LogPropertiesTests.cs (18)
46Assert.Equal("[\"1\",\"2\",\"3\"]", ss["myProps.P5"]); 47Assert.Equal("[\"4\",\"5\",\"6\"]", ss["myProps.P6"]); 48Assert.Equal("{\"Seven\"=\"7\",\"Eight\"=\"8\",\"Nine\"=\"9\"}", ss["myProps.P7"]); 178Assert.Null(ss["p.P0"]); 179Assert.Null(ss["p.P1"]); 180Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), ss["p.P2"]); 181Assert.Null(ss["p.P3"]); 182Assert.Equal("I refuse to be formatted", ss["p.P4"]); 183Assert.Null(ss["p.P5"]); 184Assert.Null(ss["p.P6"]); 185Assert.Equal("-", ss["p.P7"]); 186Assert.Null(ss["p.P8"]); 187Assert.Equal("------------------------", ss["p.P9"]); 188Assert.Equal("null", ss["p.P10"]); 196Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), ss["p.P2"]); 197Assert.Equal("I refuse to be formatted", ss["p.P4"]); 198Assert.Equal("-", ss["p.P7"]); 199Assert.Equal("------------------------", ss["p.P9"]);
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
110methodSymbols[data.Method.MethodInfo],
ComMethodContext.cs (1)
154baseMethods = AddMethods(baseComIface, ifaceToDeclaredMethodsMap[baseComIface]);
Microsoft.Interop.SourceGeneration (3)
Marshalling\MarshallerHelpers.cs (3)
142edgeMap[elementIndexToEdgeMapNodeId[elementIndex], elementIndexToEdgeMapNodeId[dependentElementIndex]] = true; 171int n = elementIndexToEdgeMapNodeId[keyFn(element)];
Microsoft.Maui.Controls (40)
AnimationExtensions.cs (1)
231 Info info = s_animations[key];
DragAndDrop\DataPackagePropertySet.cs (1)
21 get => _propertyBag[key];
Internals\NameScope.cs (1)
58 _values.Remove(_names[name]);
Layout\AbsoluteLayout.cs (4)
108 _ => _viewInfo[view].LayoutFlags, 122 _ => _viewInfo[view].LayoutBounds, 139 _viewInfo[view].LayoutFlags = flags; 157 _viewInfo[view].LayoutBounds = bounds;
Layout\FlexLayout.cs (12)
273 _ => _viewInfo[view].Order, 285 _viewInfo[view].Order = order; 295 _ => _viewInfo[view].Grow, 307 _viewInfo[view].Grow = grow; 317 _ => _viewInfo[view].Shrink, 329 _viewInfo[view].Shrink = shrink; 339 _ => _viewInfo[view].AlignSelf, 351 _viewInfo[view].AlignSelf = alignSelf; 361 _ => _viewInfo[view].Basis, 373 _viewInfo[view].Basis = basis; 383 _ => _viewInfo[view].FlexItem, 395 _viewInfo[view].FlexItem = flexItem;
Layout\Grid.cs (8)
154 _ => _viewInfo[view].Col, 163 _ => _viewInfo[view].ColSpan, 172 _ => _viewInfo[view].Row, 181 _ => _viewInfo[view].RowSpan, 203 _viewInfo[view].Row = row; 217 _viewInfo[view].RowSpan = span; 231 _viewInfo[view].Col = col; 245 _viewInfo[view].ColSpan = span;
MessagingCenter.cs (4)
207 List<Subscription> subcriptions = _subscriptions[key]; 234 _subscriptions[key].Add(value); 253 _subscriptions[key].RemoveAll(sub => sub.CanBeRemoved() || sub.Subscriber.Target == subscriber); 254 if (!_subscriptions[key].Any())
OrderedDictionary.cs (3)
102 get { return _dict[_keyOrder[index]]; } 136 array[arrayIndex++] = new KeyValuePair<TKey, TValue>(key, _dict[key]); 190 get { return _dict[key]; }
PlatformConfigurationRegistry.cs (1)
24 return (IPlatformElementConfiguration<T, TElement>)_platformSpecifics[typeof(T)];
ResourceDictionary.cs (1)
217 return _innerDictionary[index];
ResourcesExtensions.cs (2)
27 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 42 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>);
Shell\ShellNavigationQueryParameters.cs (1)
43 get => _internal[key];
TemplatedItemsList.cs (1)
1315 string old = _oldNames[list];
Microsoft.Maui.Controls.Build.Tasks (72)
CompiledConverters\BindablePropertyConverter.cs (2)
81 => ((node as ElementNode).Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string; 102 return ((target?.Parent as IElementNode)?.Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string;
CompiledConverters\FontSizeTypeConverter.cs (1)
33 yield return Instruction.Create(OpCodes.Ldloc, context.Variables[parent]);
CompiledConverters\RDSourceTypeConverter.cs (2)
115 foreach (var instruction in context.Variables[rdNode].LoadAs(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule)) 132 foreach (var instruction in context.Variables[rdNode].LoadAs(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
CompiledMarkupExtensions\ArrayExtension.cs (3)
13 var typeNode = node.Properties[new XmlName("", "Type")] as IElementNode; 14 var typeTypeRef = context.TypeExtensions[typeNode]; 30 var vardef = context.Variables[node];
CompiledMarkupExtensions\StaticResourceExtension.cs (6)
38 if (context.Variables[irn].VariableType.FullName == "System.String") 45 vardefref.VariableDefinition = context.Variables[irn]; 59 if (context.Variables[irn2].VariableType.FullName == "System.String") 66 vardefref.VariableDefinition = context.Variables[irn2]; 84 if (context.Variables[irn3].VariableType.FullName == "System.String") 91 vardefref.VariableDefinition = context.Variables[irn3];
CompiledValueProviders\SetterValueProvider.cs (2)
20 var bpNode = ((ValueNode)((IElementNode)node).Properties[new XmlName("", "Property")]); 69 return context.Variables[firstItem].VariableType.InheritsFromOrImplements(context.Cache, genericType);
CreateObjectVisitor.cs (6)
144 var factoryMethod = (string)(node.Properties[XmlName.xFactoryMethod] as ValueNode).Value; 303 var node = enode.Properties[new XmlName("", propname)]; 309 if (node is IElementNode && (vardef = Context.Variables[node as IElementNode]) != null) 330 var node = enode.Properties[XmlName.xArguments] as ElementNode; 333 var list = enode.Properties[XmlName.xArguments] as ListNode; 347 if (arg is IElementNode && (vardef = Context.Variables[arg as IElementNode]) != null)
MethodDefinitionExtensions.cs (3)
15 var node = enode.Properties[XmlName.xArguments] as ElementNode; 19 var list = enode.Properties[XmlName.xArguments] as ListNode; 36 var argType = context.Variables[arguments[i] as IElementNode].VariableType;
NodeILExtensions.cs (1)
547 foreach (var instruction in context.Variables[en].LoadAs(context.Cache, module.TypeSystem.Object, module))
SetNamescopesAndRegisterNamesVisitor.cs (15)
25 var parentVar = Context.Variables[node]; 32 Context.Scopes[node] = Context.Scopes[parentNode]; 35 RegisterName((string)node.Value, Context.Scopes[node].Item1, Context.Scopes[node].Item2, Context.Variables[(IElementNode)parentNode], node); 41 Context.Scopes[node] = Context.Scopes[parentNode]; 57 namescopeVarDef = Context.Scopes[parentNode].Item1; 58 namesInNamescope = Context.Scopes[parentNode].Item2; 60 if (setNameScope && Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 63 else if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element")))) 70 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module)); 81 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 88 Context.Scopes[node] = Context.Scopes[parentNode]; 108 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 111 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, namescoperef), module)); 144 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
SetPropertiesVisitor.cs (31)
105 var vardef = Context.Variables[node]; 269 var typeNode = node.Properties[new XmlName("", "Type")]; 275 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module)) 398 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module)) 408 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IMarkupExtension")))) 410 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null; 418 var compiledValueProviderName = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "ProvideCompiledAttribute"))?.ConstructorArguments?[0].Value as string; 438 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, markupExtensionType), module)) 451 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IValueProvider")))) 453 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null; 459 var valueProviderType = context.Variables[node].VariableType; 479 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, valueProviderInterface), module)) 1361 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceType), module)) 1404 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, parameterTypes[1]), module)) 1486 if (context.Variables[elementNode].VariableType.FullName == "System.Object") 1489 yield return Create(Ldloc, context.Variables[elementNode]); 1494 yield return Create(Ldloc, context.Variables[elementNode]); 1499 yield return Create(Ldloc, context.Variables[elementNode]); 1505 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, bpTypeRef, module)) 1511 if (context.Variables[elementNode].VariableType.FullName == "System.Object") 1565 var vardef = context.Variables[elementNode]; 1645 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, propertyType, module)) 1721 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1730 var nodeTypeRef = context.Variables[node].VariableType; 1744 var vardef = context.Variables[elementNode]; 1775 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1783 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.TypeSystem.Object, module)) 1794 var nodeTypeRef = context.Variables[node].VariableType; 1795 yield return Create(Ldloc, context.Variables[node]); 1821 var parentVar = parentContext.Variables[parentNode]; 1910 templateIl.Append(templateContext.Variables[node].LoadAs(parentContext.Cache, module.TypeSystem.Object, module));
Microsoft.Maui.Controls.Xaml (29)
ApplyPropertiesVisitor.cs (11)
52 var value = Values[node]; 72 var contentProperty = GetContentPropertyName(Context.Types[parentElement]); 93 var s0 = Values[parentNode]; 140 if ((node.Properties[XmlName.xKey] is ValueNode valueNode)) 153 && (contentProperty = GetContentPropertyName(Context.Types[parentElement])) != null) 167 && typeof(IEnumerable).IsAssignableFrom(Context.Types[parentElement]) 168 && Context.Types[parentElement].GetRuntimeMethods().Any(mi => mi.Name == "Add" && mi.GetParameters().Length == 1)) 171 Context.Types[parentElement].GetRuntimeMethods().First(mi => mi.Name == "Add" && mi.GetParameters().Length == 1); 202 if ((node.Properties[XmlName.xKey] is ValueNode valueNode)) 349 var xKey = node is IElementNode eNode && eNode.Properties.ContainsKey(XmlName.xKey) ? ((ValueNode)eNode.Properties[XmlName.xKey]).Value as string : null; 798 return context.Values[cnode];
CreateValuesVisitor.cs (5)
36 public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]); 251 var factoryMethod = ((string)((ValueNode)node.Properties[XmlName.xFactoryMethod]).Value); 288 var node = enode.Properties[XmlName.xArguments]; 292 array[0] = Values[elementNode]; 322 var value = Context.Values[node];
FillResourceDictionariesVisitor.cs (3)
26 public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]); 46 if (typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]) && node.TryGetPropertyName(parentNode, out XmlName propertyName)) 51 var source = Values[parentNode];
NamescopingVisitor.cs (4)
21 public void Visit(ValueNode node, INode parentNode) => _scopes[node] = _scopes[parentNode]; 22 public void Visit(MarkupNode node, INode parentNode) => _scopes[node] = _scopes[parentNode]; 27 : _scopes[parentNode]; 32 _scopes[node] = _scopes[parentNode];
RegisterXNamesVisitor.cs (3)
22 public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]); 31 ((IElementNode)parentNode).NameScopeRef.NameScope.RegisterName((string)node.Value, Values[parentNode]); 55 if (Values[parentNode] is Element element)
SimplifyTypeExtensionVisitor.cs (1)
62 && node.Properties[typeNameXmlName] is ValueNode { Value: string } propertyValueNode)
XamlLoader.cs (2)
130 inflatedView = rootnode.Root = visitorContext.Values[rootnode]; 198 return visitorContext.Values[resources] as IResourceDictionary;
Microsoft.Maui.Essentials (15)
VersionTracking\VersionTracking.shared.cs (15)
210 string LastInstalledVersion => versionTrail[versionsKey]?.LastOrDefault() ?? string.Empty; 212 string LastInstalledBuild => versionTrail[buildsKey]?.LastOrDefault() ?? string.Empty; 256 IsFirstLaunchForCurrentVersion = !versionTrail[versionsKey].Contains(CurrentVersion) || CurrentVersion != LastInstalledVersion; 260 versionTrail[versionsKey].RemoveAll(v => v == CurrentVersion); 261 versionTrail[versionsKey].Add(CurrentVersion); 264 IsFirstLaunchForCurrentBuild = !versionTrail[buildsKey].Contains(CurrentBuild) || CurrentBuild != LastInstalledBuild; 268 versionTrail[buildsKey].RemoveAll(b => b == CurrentBuild); 269 versionTrail[buildsKey].Add(CurrentBuild); 274 WriteHistory(versionsKey, versionTrail[versionsKey]); 275 WriteHistory(buildsKey, versionTrail[buildsKey]); 293 public string? FirstInstalledVersion => versionTrail[versionsKey].FirstOrDefault(); 295 public string? FirstInstalledBuild => versionTrail[buildsKey].FirstOrDefault(); 297 public IReadOnlyList<string> VersionHistory => versionTrail[versionsKey].ToArray(); 299 public IReadOnlyList<string> BuildHistory => versionTrail[buildsKey].ToArray(); 336 var trail = versionTrail[key];
Microsoft.Maui.Resizetizer (7)
ColorTable.cs (7)
23 colors.Add("DarkGrey", colors["DarkGray"]); 24 colors.Add("DarkSlateGrey", colors["DarkSlateGray"]); 25 colors.Add("DimGrey", colors["DimGray"]); 26 colors.Add("Grey", colors["Gray"]); 27 colors.Add("LightGrey", colors["LightGray"]); 28 colors.Add("LightSlateGrey", colors["LightSlateGray"]); 29 colors.Add("SlateGrey", colors["SlateGray"]);
Microsoft.ML.AutoML (28)
Experiment\SuggestedTrainer.cs (1)
86var sp = spMap[hp.Name];
SweepableEstimator\MultiModelPipeline.cs (1)
148return new EstimatorEntity(lookupTable[stringEntity.Value]);
SweepableEstimator\SweepablePipeline.cs (3)
94var estimator = _estimators[key]; 162var estimator = _estimators[key]; 208return new EstimatorEntity(lookupTable[stringEntity.Value]);
Sweepers\ISweeper.cs (2)
96_hash = Hashing.CombineHash(_hash, _parameterValues[parameterName].GetHashCode()); 123get { return _parameterValues[name]; }
TrainerExtensions\TrainerExtensionUtil.cs (1)
285fi.SetValue(obj, enumDict["Auto"]);
Tuner\AutoZeroTuner.cs (1)
34pipelineString = string.Join("=>", t.ValueEntities().Select(e => _sweepablePipeline.Estimators[e.ToString()].EstimatorType)),
Tuner\CostFrugalTuner.cs (4)
59var searchThread = _searchThreadPool[_currentThreadId]; 87int threadId = _trialProposedBy.ContainsKey(trialId) ? _trialProposedBy[trialId] : _currentThreadId; 96_searchThreadPool[threadId].OnTrialComplete(parameter, loss, cost); 97if (_searchThreadPool[threadId].IsConverged)
Tuner\EciCfoTuner.cs (1)
53var tuner = _tuners[schema];
Tuner\PipelineProposer.cs (14)
102var probabilities = _pipelineSchemas.Select(id => _eci[id]).ToArray(); 151_k1 = _pipelineSchemas.ToDictionary(id => id, id => duration * _learnerInitialCost[id] / _learnerInitialCost[schema]); 157else if (loss >= _e1[schema]) 168_k2[schema] = _k1[schema]; 170_e2[schema] = _e1[schema]; 181var eci1 = Math.Max(_k1[schema], _k2[schema]); 182var estimatorCostForBreakThrough = (2 * (loss - _globalBestError) + double.Epsilon) / ((_e2[schema] - _e1[schema]) / (_k2[schema] + _k1[schema]) + double.Epsilon); 204var estimator = pipeline.Estimators[s.Value]; 214return _estimatorCost[estimatorType];
Microsoft.ML.AutoML.Tests (1)
Utils\TaskAgnosticIterationResult.cs (1)
47PrimaryMetricValue = MetricValues[_primaryMetricName];
Microsoft.ML.Core (3)
CommandLine\CmdParser.cs (1)
532Contracts.Assert(map.ContainsKey(name) && map[name] == def);
Environment\HostEnvironmentBase.cs (1)
646return (T)Options[name];
Utilities\Tree.cs (1)
52get { return _children[key]; }
Microsoft.ML.Core.Tests (19)
UnitTests\ColumnTypes.cs (19)
34if (dict.ContainsKey(tmp) && dict[tmp] != tmp.ToString()) 35Assert.Fail(dict[tmp] + " and " + tmp.ToString() + " are duplicates."); 40if (dict.ContainsKey(tmp1) && dict[tmp1] != tmp1.ToString()) 41Assert.Fail(dict[tmp1] + " and " + tmp1.ToString() + " are duplicates."); 46if (dict.ContainsKey(tmp2) && dict[tmp2] != tmp2.ToString()) 47Assert.Fail(dict[tmp2] + " and " + tmp2.ToString() + " are duplicates."); 61if (dict.ContainsKey(tmp) && dict[tmp] != tmp.ToString()) 62Assert.Fail(dict[tmp] + " and " + tmp.ToString() + " are duplicates."); 67if (dict.ContainsKey(tmp1) && dict[tmp1] != tmp1.ToString()) 68Assert.Fail(dict[tmp1] + " and " + tmp1.ToString() + " are duplicates."); 73if (dict.ContainsKey(tmp2) && dict[tmp2] != tmp2.ToString()) 74Assert.Fail(dict[tmp2] + " and " + tmp2.ToString() + " are duplicates."); 81if (dict.ContainsKey(tmp) && dict[tmp] != tmp.ToString()) 82Assert.Fail(dict[tmp] + " and " + tmp.ToString() + " are duplicates."); 87if (dict.ContainsKey(tmp1) && dict[tmp1] != tmp1.ToString()) 88Assert.Fail(dict[tmp1] + " and " + tmp1.ToString() + " are duplicates."); 93if (dict.ContainsKey(tmp2) && dict[tmp2] != tmp2.ToString()) 94Assert.Fail(dict[tmp2] + " and " + tmp2.ToString() + " are duplicates."); 107Assert.Fail(dict[tmp4] + " and " + tmp4.ToString() + " are duplicates.");
Microsoft.ML.Data (52)
Commands\TypeInfoCommand.cs (1)
120var dsts = srcToDstMap[kinds[i]];
Data\Conversion.cs (3)
549return (TryParseMapper<TDst>)_tryParseDelegates[typeDst.RawType]; 669del = _isDefaultDelegates[t.RawType]; 692del = _hasZeroDelegates[t.RawType];
Data\DataViewTypeManager.cs (6)
186if (_rawTypeToDataViewTypeMap.ContainsKey(rawType) && _rawTypeToDataViewTypeMap[rawType].Equals(dataViewType) && 187_dataViewTypeToRawTypeMap.ContainsKey(dataViewType) && _dataViewTypeToRawTypeMap[dataViewType].Equals(rawType)) 191if (_rawTypeToDataViewTypeMap.ContainsKey(rawType) && !_rawTypeToDataViewTypeMap[rawType].Equals(dataViewType)) 196var associatedDataViewType = _rawTypeToDataViewTypeMap[rawType]; 201if (_dataViewTypeToRawTypeMap.ContainsKey(dataViewType) && !_dataViewTypeToRawTypeMap[dataViewType].Equals(rawType)) 206var associatedRawType = _dataViewTypeToRawTypeMap[dataViewType].TargetType;
DataLoadSave\Binary\UnsafeTypeOps.cs (1)
49return (UnsafeTypeOps<T>)_type2ops[typeof(T)];
EntryPoints\EntryPointNode.cs (5)
371var v = _vars[oldName].Clone(newName); 638_inputBindingMap[inputName].Add(paramBinding); 662_inputBindingMap[inputName].Add(paramBinding); 859return _context.GetValueOrNull(_inputMap[firstBinding]); 868arr.SetValue(_context.GetValueOrNull(_inputMap[binding]), i++);
Evaluators\AnomalyDetectionEvaluator.cs (1)
603var overall = resultDict[MetricKinds.OverallMetrics];
Evaluators\BinaryClassifierEvaluator.cs (10)
826var overall = resultDict[MetricKinds.OverallMetrics]; 827var confusionMatrix = resultDict[MetricKinds.ConfusionMatrix]; 874var prCurveView = resultDict[MetricKinds.PrCurve]; 876var overall = resultDict[MetricKinds.OverallMetrics]; 893var confusionMatrix = resultDict[MetricKinds.ConfusionMatrix]; 953var overall = resultDict[MetricKinds.OverallMetrics]; 954var confusionMatrix = resultDict[MetricKinds.ConfusionMatrix]; 999var prCurveView = resultDict[MetricKinds.PrCurve]; 1001var overall = resultDict[MetricKinds.OverallMetrics]; 1002var confusionMatrix = resultDict[MetricKinds.ConfusionMatrix];
Evaluators\ClusteringEvaluator.cs (1)
83var overall = resultDict[MetricKinds.OverallMetrics];
Evaluators\EvaluatorUtils.cs (4)
71return map[kind](env); 490map[index] = slotNames[name]; 590keyValueMappers[i][key] = reconciledKeyNames[name]; 876if (firstDvKeyNoNamesColumns[name] < typeKeyCount)
Evaluators\MulticlassClassificationEvaluator.cs (2)
564var overall = resultDict[MetricKinds.OverallMetrics]; 565var confusionMatrix = resultDict[MetricKinds.ConfusionMatrix];
Evaluators\RankingEvaluator.cs (1)
266var overall = resultDict[MetricKinds.OverallMetrics];
Evaluators\RegressionEvaluator.cs (1)
185var overall = resultDict[MetricKinds.OverallMetrics];
Transforms\FeatureContributionCalculationTransformer.cs (1)
210return Utils.MarshalInvoke(_getValueGetterMethodInfo, this, _featureColumnType.RawType, input, ColMapNewToOld[iinfo]);
Transforms\KeyToValue.cs (6)
177meta.Add(InputSchema[ColMapNewToOld[i]].Annotations, name => name == AnnotationUtils.Kinds.SlotNames); 229var typeSrc = schema[ColMapNewToOld[iinfo]].Type; 230var typeVals = schema[ColMapNewToOld[iinfo]].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type; 259InputSchema[ColMapNewToOld[iinfo]].GetKeyValues(ref keyMetadata); 366var column = input.Schema[Parent.ColMapNewToOld[InfoIndex]]; 488var srcType = Parent.InputSchema[Parent.ColMapNewToOld[InfoIndex]].Type;
Transforms\Normalizer.cs (2)
747builder.Add(InputSchema[ColMapNewToOld[iinfo]].Annotations, name => name == AnnotationUtils.Kinds.SlotNames); 759return _parent.Columns[iinfo].ColumnFunction.GetGetter(input, ColMapNewToOld[iinfo]);
Transforms\TypeConverting.cs (3)
442builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, name => name == AnnotationUtils.Kinds.SlotNames); 452builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, name => name == AnnotationUtils.Kinds.KeyValues); 456builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, name => name == AnnotationUtils.Kinds.IsNormalized);
Transforms\ValueMapping.cs (4)
332var keyValue = keyTypeValueMapping[value]; 901return Utils.MarshalInvoke(_getVectorMethodInfo, vectorType.ItemType.RawType, _mapping[key]); 903return Utils.MarshalInvoke(_getValueMethodInfo, ValueColumn.Type.RawType, _mapping[key]); 1054return _valueMap.GetGetter(input, ColMapNewToOld[iinfo]);
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
437columns[i] = new Column(_items[i].Name, i, nameMap[_items[i].Name] != i, _items[i].Type, _items[i].Annotations);
Microsoft.ML.EntryPoints (4)
CrossValidationMacro.cs (2)
228VarName = mapping[input.Inputs.Data.VarName] 232VarName = mapping[input.Outputs.PredictorModel.VarName]
MacroUtils.cs (2)
132inputBindingMap[argName].Add(paramBinding); 155inputBindingMap[argName].Add(paramBinding);
Microsoft.ML.Fairlearn (12)
Metrics\FairlearnMetricCatalog.cs (12)
101result["AUC"] = DataFrameColumn.Create("AUC", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderRocCurve)); //coloumn name? 102result["Accuracy"] = DataFrameColumn.Create("Accuracy", groupMetric.Keys.Select(k => groupMetric[k].Accuracy)); 103result["PosPrec"] = DataFrameColumn.Create("PosPrec", groupMetric.Keys.Select(k => groupMetric[k].PositivePrecision)); 104result["PosRecall"] = DataFrameColumn.Create("PosRecall", groupMetric.Keys.Select(k => groupMetric[k].PositiveRecall)); 105result["NegPrec"] = DataFrameColumn.Create("NegPrec", groupMetric.Keys.Select(k => groupMetric[k].NegativePrecision)); 106result["NegRecall"] = DataFrameColumn.Create("NegRecall", groupMetric.Keys.Select(k => groupMetric[k].NegativeRecall)); 107result["F1Score"] = DataFrameColumn.Create("F1Score", groupMetric.Keys.Select(k => groupMetric[k].F1Score)); 108result["AreaUnderPrecisionRecallCurve"] = DataFrameColumn.Create("AreaUnderPrecisionRecallCurve", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderPrecisionRecallCurve)); 235result["RSquared"] = DataFrameColumn.Create("RSquared", groupMetric.Keys.Select(k => groupMetric[k].RSquared)); 236result["RMS"] = DataFrameColumn.Create("RMS", groupMetric.Keys.Select(k => groupMetric[k].RootMeanSquaredError)); 237result["MSE"] = DataFrameColumn.Create("MSE", groupMetric.Keys.Select(k => groupMetric[k].MeanSquaredError)); 238result["MAE"] = DataFrameColumn.Create("MAE", groupMetric.Keys.Select(k => groupMetric[k].MeanAbsoluteError));
Microsoft.ML.Fairlearn.Tests (5)
MetricTest.cs (5)
47Assert.Equal(125.5, metricOverall["MSE"], 0.1); 48Assert.Equal(11.202678, metricOverall["RMS"], 0.0001); 50Assert.Equal(14.81138, diff["RMS"], 0.0001); 51Assert.Equal(2037.5, diff["RSquared"], 0.1); 76Assert.Equal(0.7, Convert.ToSingle(metricOverall["Accuracy"]), 0.1);
Microsoft.ML.FastTree (10)
Dataset\Dataset.cs (2)
821partsDatas[p] = parts[p].AuxiliaryData.ContainsKey(name) ? parts[p].AuxiliaryData[name] : default(DatasetSkeletonQueryDocData); 889return (T[])AuxiliaryData[name].Data;
GamModelParameters.cs (1)
815&& context._pred._inputFeatureToShapeFunctionMap[index] == internalIndex);
Training\ScoreTracker.cs (3)
149if (_treeMultiplierMap[t].ContainsKey(k)) 150return _treeMultiplierMap[t][k]; 163_treeMultiplierMap[t][k] = result;
TreeEnsemble\InternalRegressionTree.cs (3)
1198sbFeatures.Append("E:" + categoricalSplitNodeToId[n] + toAppend); 1210sbFeatures.Append("I:" + featureToId[SplitFeatures[n]] + toAppend); 1290sbFeatures.Append("I:" + featureToId[categoricalSplitFeature] + toAppend);
TreeEnsemble\InternalTreeEnsemble.cs (1)
335int outputInputId = featureToID.ContainsKey(pair.Key) ? featureToID[pair.Key] : 0;
Microsoft.ML.GenAI.Core (4)
Extension\ModuleExtension.cs (2)
135var device = deviceMap[key]; 179long size = deviceSizeMapInByte[device];
Utility\Cache.cs (2)
37var (oldKey, oldValue) = this[layerIndex]; 54return this[layerIndex];
Microsoft.ML.ImageAnalytics (9)
ImageGrayscale.cs (2)
160=> _parent.ColumnPairs.Select((x, idx) => new DataViewSchema.DetachedColumn(x.outputColumnName, InputSchema[ColMapNewToOld[idx]].Type, null)).ToArray(); 168var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]);
ImageLoader.cs (2)
231var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 269var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]);
ImagePixelExtractor.cs (2)
323var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]); 460var type = InputSchema[ColMapNewToOld[i]].Type as ImageDataViewType;
ImageResizer.cs (1)
278var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]);
VectorToImageTransform.cs (2)
334var sourceType = InputSchema[ColMapNewToOld[iinfo]].Type; 348var getSrc = RowCursorUtils.GetVecGetterAs<TValue>(srcType, input, ColMapNewToOld[iinfo]);
Microsoft.ML.IntegrationTests (1)
Common.cs (1)
51Assert.Equal(types[column.Name], column.Type.RawType);
Microsoft.ML.LightGbm (27)
LightGbmArguments.cs (1)
187var name = NameMapping.ContainsKey(field.Name) ? NameMapping[field.Name] : LightGbmInterfaceUtils.GetOptionName(field.Name);
LightGbmMulticlassTrainer.cs (2)
320int numberOfLeaves = (int)GbmOptions["num_leaves"]; 326ch.Info("Auto-tuning parameters: " + nameof(LightGbmTrainerOptions.LearningRate) + " = " + GbmOptions["learning_rate"]);
LightGbmTrainerBase.cs (9)
73return NameMapping[name]; 429field.SetValue(LightGbmTrainerOptions, Double.Parse(modelParameters[lightGbmName])); 433field.SetValue(LightGbmTrainerOptions, int.Parse(modelParameters[lightGbmName])); 437field.SetValue(LightGbmTrainerOptions, float.Parse(modelParameters[lightGbmName])); 443if (modelParameters[lightGbmName] == "1") 449field.SetValue(LightGbmTrainerOptions, Convert.ChangeType(modelParameters[lightGbmName], field.FieldType)); 453var catBoundaries = !String.IsNullOrEmpty(modelParameters["categorical_feature"]) ? modelParameters["categorical_feature"].Split(',').Select(x => int.Parse(x, CultureInfo.InvariantCulture)).ToArray() : null; 734ch.Info("LightGBM objective={0}", GbmOptions["objective"]);
WrappedLightGbmBooster.cs (12)
242int numberOfLeaves = int.Parse(kvPairs["num_leaves"], CultureInfo.InvariantCulture); 243int numCat = int.Parse(kvPairs["num_cat"], CultureInfo.InvariantCulture); 246var leftChild = Str2IntArray(kvPairs["left_child"], ' '); 247var rightChild = Str2IntArray(kvPairs["right_child"], ' '); 248var splitFeature = Str2IntArray(kvPairs["split_feature"], ' '); 249var threshold = Str2DoubleArray(kvPairs["threshold"], ' '); 250var splitGain = Str2DoubleArray(kvPairs["split_gain"], ' '); 251var leafOutput = Str2DoubleArray(kvPairs["leaf_value"], ' '); 252var decisionType = Str2UIntArray(kvPairs["decision_type"], ' '); 265var catBoundaries = Str2IntArray(kvPairs["cat_boundaries"], ' '); 266var catThreshold = Str2UIntArray(kvPairs["cat_threshold"], ' '); 299var leafOutput = Str2DoubleArray(kvPairs["leaf_value"], ' ');
WrappedLightGbmTraining.cs (3)
36var metric = (string)parameters["metric"]; 48metrics.Add("Training-" + parameters["metric"]); 50metrics.Add("Validation-" + parameters["metric"]);
Microsoft.ML.OnnxConverter (4)
OnnxContextImpl.cs (4)
85if (val.Name == _columnNameMap[colName]) 194return _columnNameMap[colName]; 221_variableNames.Add(_columnNameMap[colName]); 222return _columnNameMap[colName];
Microsoft.ML.OnnxTransformer (5)
OnnxTransform.cs (3)
716var namedOnnxValue = outputCacher.Outputs[_parent.Outputs[iinfo]]; 736var namedOnnxValue = outputCacher.Outputs[_parent.Outputs[iinfo]]; 760var namedOnnxValue = outputCacher.Outputs[_parent.Outputs[iinfo]];
OnnxUtils.cs (2)
307var dataViewType = typePool[name]; 583return ColumnTypeExtensions.PrimitiveTypeFromKind(_typeToKindMap[type]);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
575var srcGetter = input.GetGetter<VBuffer<float>>(input.Schema[ColMapNewToOld[iinfo]]);
Microsoft.ML.Predictor.Tests (2)
CompareBaselines.cs (2)
81Contracts.Assert(!names2[nameLower]); 104Contracts.Assert(!names2[nameLower]);
Microsoft.ML.SearchSpace (3)
Option\NestOption.cs (1)
70var option = _options[key];
SearchSpace.cs (2)
117var option = _options[key]; 138var option = _options[key];
Microsoft.ML.Sweeper (5)
Algorithms\KdoSweeper.cs (3)
367weights[labelToIndex[r.ParameterSet[param.Name].ValueText]] += r.MetricValue; 368counts[labelToIndex[r.ParameterSet[param.Name].ValueText]]++; 413weights[labelToIndex[r.ParameterSet[param.Name].ValueText]] += r.MetricValue;
ISweeper.cs (2)
125_hash = Hashing.CombineHash(_hash, _parameterValues[parameterName].GetHashCode()); 152get { return _parameterValues[name]; }
Microsoft.ML.TensorFlow (3)
TensorflowTransform.cs (3)
709var tensor = outputCache.Outputs[_parent.Outputs[iinfo]]; 722var tensor = outputCache.Outputs[_parent.Outputs[iinfo]]; 737var tensor = outputCache.Outputs[_parent.Outputs[iinfo]];
Microsoft.ML.TimeSeries (30)
RootCauseAnalyzer.cs (27)
130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value)); 162children = GetTopAnomaly(anomalyTree.ChildrenNodes[dimension.DimensionKey], anomalyTree.ParentNode, pointTree.ChildrenNodes[dimension.DimensionKey].Count > 0 ? pointTree.ChildrenNodes[dimension.DimensionKey] : pointTree.Leaves, dimension.DimensionKey, !(pointTree.ChildrenNodes[dimension.DimensionKey].Count > 0)); 182new RootCauseItem(UpdateDimensionValue(anomalyDimension, dimension.DimensionKey, anomaly.Dimension[dimension.DimensionKey]), new List<string>() { dimension.DimensionKey }))); 303UpdateDistribution(dimension.PointDis, pointChildren[dimKey], dimKey); 307UpdateDistribution(dimension.AnomalyDis, anomalyChildren[dimKey], dimKey); 405return dimPointMapping[dimension]; 449if (IsAggregationDimension(point.Dimension[dim], aggSymbol)) 469tree.ChildrenNodes[nextDim].Add(point); 498bool isRatioNan = Double.IsNaN(valueRatioMap[best]); 501if (best.AnomalyDis.Count != 1 && !isRatioNan && (isLeavesLevel ? valueRatioMap[best].CompareTo(dimension.Value) <= 0 : valueRatioMap[best].CompareTo(dimension.Value) >= 0)) 515if (!isRatioNan && (isLeavesLevel ? valueRatioMap[best].CompareTo(dimension.Value) <= 0 : valueRatioMap[best].CompareTo(dimension.Value) >= 0)) 537if (valueRatioMap[best].CompareTo(dimension.Value) == 0) 676double dimEntropy = GetEntropy(pointDis[key], anomalyDis[key]); 677entropy += dimEntropy * pointDis[key] / total; 690intrinsicValue -= Log2((double)pointDis[key] / total) * (double)pointDis[key] / total; 710string dimVal = Convert.ToString(point.Dimension[dimKey]); 715distribution[dimVal] = distribution[dimVal] + 1; 726if (!bigDictionary.ContainsKey(item.Key) || !object.Equals(bigDictionary[item.Key], smallDictionary[item.Key])) 830if (!object.Equals(pair.Value, y[pair.Key]))
RootCauseLocalizationType.cs (2)
158if (!object.Equals(other.Dimension[item.Key], item.Value)) 231if (!object.Equals(other.Dimension[item.Key], item.Value))
STL\Loess.cs (1)
121return _neighbors[index].Y(xValue);
Microsoft.ML.TimeSeries.Tests (5)
TimeSeriesDirectApi.cs (5)
977Assert.Equal(expectedDim[pair.Key], pair.Value); 1006Assert.Equal(expectedDim[pair.Key], pair.Value); 1022Assert.Equal(expectedDim[pair.Key], pair.Value); 1056Assert.Equal(expectedDim[pair.Key], pair.Value); 1206Assert.Equal(expectedDim[pair.Key], pair.Value);
Microsoft.ML.Tokenizers (9)
Model\BertTokenizer.cs (4)
39SeparatorTokenId = vocab[new StringSpanOrdinalKey(options.SeparatorToken)]; 42PaddingTokenId = vocab[new StringSpanOrdinalKey(options.PaddingToken)]; 45ClassificationTokenId = vocab[new StringSpanOrdinalKey(options.ClassificationToken)]; 48MaskingTokenId = vocab[new StringSpanOrdinalKey(options.MaskingToken)];
Model\CodeGenTokenizer.cs (1)
1610return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)].Id, tokenValue, new Range(mapping[0], mapping[0] + 1)) };
Model\EnglishRobertaTokenizer.cs (3)
961return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)], tokenValue, new Range(indexMapping[0], indexMapping[0] + 1)) }; 1050tokens.Add(new EncodedToken(_vocab[new StringSpanOrdinalKey(w)], w, new Range(indexMapping[index], indexMapping[index] + w.Length))); 1226public int IndexOf(int id) => _idToIndex.ContainsKey(id) ? _idToIndex[id] : UnkIndex;
Model\WordPieceTokenizer.cs (1)
352curToken = new EncodedToken(id, _vocabReverse[id], new Range(offset + start, offset + end));
Microsoft.ML.Tokenizers.Tests (5)
BpeTests.cs (1)
324Assert.Equal(encoding[i].Value, reverseVocabulary[encodingIds[i]]);
EnglishRobertaTests.cs (3)
294Assert.Equal(filteredToken![i], reverseVocab[encodingIds[i]].Replace("\u0120", " ")); 298Assert.Equal(tokens[i], reverseVocab[encodingIds[i]]); 300Assert.Equal(unfilteredToken![i], reverseVocab[encodingIds[i]]);
LlamaTests.cs (1)
257Assert.Equal(tokens[i], reverseVocabulary[ids[i]]);
Microsoft.ML.TorchSharp (16)
AutoFormerV2\Attention.cs (2)
86idxs.Add(attentionOffsets[offset]); 87idxsTensor[i][j] = attentionOffsets[offset];
AutoFormerV2\ObjectDetectionMetrics.cs (6)
129apSum += LabelAP(iouDic[label], groundTruthBoxes[label], threshold); 150apSum += LabelAP(iouDic[label], groundTruthBoxes[label], thres); 211iouDic[annotation[tuple.Item1].Category].Add( 223iouDic[objectLabel[predSignIndex].Category].Add(
NasBert\Modules\IncrementalState.cs (1)
71return incrementalState?.ContainsKey(fullKey) == true ? incrementalState[fullKey] : EmptyIncrementalState;
NasBert\Modules\MultiHeadAttention.cs (4)
221var prevKey = savedState[PrevKeyKey].view(batchSize * _numHeads, -1, _headDim); 229var prevValue = savedState[PrevValueKey].view(batchSize * _numHeads, -1, _headDim); 235savedState[PrevKeyKey].Dispose(); 237savedState[PrevValueKey].Dispose();
Roberta\QATrainer.cs (2)
420var targetList = new List<int> { mapping[answerIndex] + 2 + questionTokenId.Count, mapping[answerEnd] + 2 + questionTokenId.Count };
Utils\DefaultDictionary.cs (1)
35return _dictionary[key];
Microsoft.ML.Transforms (25)
GcnTransform.cs (1)
352builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, name => name == AnnotationUtils.Kinds.SlotNames);
MissingValueDroppingTransformer.cs (1)
211builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, x => x == AnnotationUtils.Kinds.KeyValues || x == AnnotationUtils.Kinds.IsNormalized);
MissingValueIndicatorTransformer.cs (2)
254var getSrc = input.GetGetter<T>(input.Schema[ColMapNewToOld[iinfo]]); 276var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[ColMapNewToOld[iinfo]]);
MissingValueReplacing.cs (2)
644var getSrc = input.GetGetter<T>(input.Schema[ColMapNewToOld[iinfo]]); 670var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\StopWordsRemovingTransformer.cs (2)
411var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[_colMapNewToOld[iinfo]]); 1102var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\TextNormalizing.cs (3)
346var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 360var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]); 421ch = CombinedDiacriticsMap[ch];
Text\TokenizingByCharacters.cs (3)
478var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 508int cv = input.Schema[ColMapNewToOld[iinfo]].Type.GetVectorSize(); 511var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\WordEmbeddingsExtractor.cs (8)
322_parent.CheckInputColumn(inputSchema, i, ColMapNewToOld[i]); 556var column = input.Schema[ColMapNewToOld[iinfo]]; 627var modelFileName = _modelsMetaData[kind]; 629linesToSkip = _linesToSkipInModels[kind]; 656if (_vocab.ContainsKey(_modelFileNameWithPath) && _vocab[_modelFileNameWithPath] != null) 658if (_vocab[_modelFileNameWithPath].TryGetTarget(out Model model)) 667if (_vocab.ContainsKey(_modelFileNameWithPath) && _vocab[_modelFileNameWithPath] != null) 669if (_vocab[_modelFileNameWithPath].TryGetTarget(out Model modelObject))
Text\WordTokenizing.cs (3)
252var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 279int cv = input.Schema[ColMapNewToOld[iinfo]].Type.GetVectorSize(); 281var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Microsoft.ML.Vision (7)
DnnRetrainTransform.cs (7)
283inputsForTraining[i] = _idvToTfMapping[_inputs[i]]; 548(_tfInputTypes, _tfInputShapes, _tfInputOperations) = GetInputInfo(Host, _session, _inputs.Select(x => _idvToTfMapping[x]).ToArray(), batchSize); 879var tensor = outputCache.Outputs[_parent._outputs[iinfo]]; 892var tensor = outputCache.Outputs[_parent._outputs[iinfo]]; 907var tensor = outputCache.Outputs[_parent._outputs[iinfo]]; 928_parent._inputs.Select(x => _parent._idvToTfMapping[x]).ToArray(), 929_parent._outputs.Select(x => _parent._idvToTfMapping[x]).ToArray());
Microsoft.NET.Build.Containers (2)
DigestUtils.cs (2)
56if (!s_registeredAlgorithms["sha256"].IsMatch(encoded)) 59message: $"SHA-256 value '{encoded}' does not match expected format '{s_registeredAlgorithms["sha256"]}'",
Microsoft.NET.Build.Extensions.Tasks (4)
AddFacadesToReferences.cs (2)
49var newFacade = new TaskItem(facadeDict[filename]); 59updatedReferences.Add(facadeDict[filename]);
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
150var firstItem = _unresolvedConflictItems[itemKey][0]; 155foreach (var unresolvedConflictItem in _unresolvedConflictItems[itemKey].Skip(1))
Microsoft.NET.Build.Tasks (35)
CreateWindowsSdkKnownFrameworkReferences.cs (1)
112knownFrameworkReferencesByWindowsSdkVersion[windowsSdkVersionParsed].Add((normalizedMinimumVersion, CreateKnownFrameworkReferences(windowsSdkPackageVersion, TargetFrameworkVersion, supportedWindowsVersion.ItemSpec)));
DependencyContextBuilder.cs (6)
534dependencies.Add(_dependencyLibraries[runtimePackName].Dependency); 882Stack<LibraryDependency> dependenciesToWalk = new(_libraryDependencies[_platformLibrary]); 908if (_dependencyLibraries[dependency.Name].Version == dependency.MinVersion) 911foreach (var newDependency in _libraryDependencies[dependency.Name]) 926_dependencyLibraries[packageToFilter.Id].Version == packageToFilter.Version) 936_dependencyLibraries[packageToExcludeFromRuntime].ExcludeFromRuntime = true;
ProduceContentAssets.cs (1)
141Log.LogWarning(Strings.DuplicatePreprocessorToken, duplicatedPreprocessorKey, preprocessorValues[duplicatedPreprocessorKey]);
ResolvePackageAssets.cs (1)
1759WriteItem(projectReferencePaths[library.Name], library);
ResolvePackageDependencies.cs (5)
159ReadProjectFileDependencies(string.IsNullOrEmpty(TargetFramework) || !_targetNameToAliasMap.ContainsKey(TargetFramework) ? null : _targetNameToAliasMap[TargetFramework]); 218string frameworkAlias = _targetNameToAliasMap[target.Name]; 302string frameworkAlias = _targetNameToAliasMap[target.Name]; 338string frameworkAlias = _targetNameToAliasMap[targetName]; 364string frameworkAlias = _targetNameToAliasMap[targetName];
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
225workloadSet = availableWorkloadSets[maxWorkloadSetVersion.ToString()];
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (13)
128var existingManifest = _manifests[readableManifest.ManifestId].manifest; 173WorkloadManifest conflictingManifest = _workloads[workload.Key].manifest; 183WorkloadManifest conflictingManifest = _packs[pack.Key].manifest; 198(var redirect, var manifest) = redirects[redirectId]; 204WorkloadManifest conflictingManifest = _workloads[redirect.Id].manifest; 215var unresolved = unresolvedRedirects.Select(ur => redirects[ur]).Where(ur => !redirects.ContainsKey(ur.redirect.ReplaceWith)).FirstOrDefault(); 222var cyclic = redirects[unresolvedRedirects.First()]; 543.Select(s => new WorkloadInfo(s, _workloads[s].workload.Description)) 581var existingWorkload = _workloads[workloadId]; 584var updatedWorkload = advertisingManifestResolver._workloads[workloadId]; 587if (!existingPacks.SetEquals(updatedPacks) || existingPacks.Any(p => PackHasChanged(_packs[p].pack, advertisingManifestResolver._packs[p].pack))) 626return _workloads[workloadId].manifest;
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
150var firstItem = _unresolvedConflictItems[itemKey][0]; 155foreach (var unresolvedConflictItem in _unresolvedConflictItems[itemKey].Skip(1))
TypeLibraryDictionaryBuilder.cs (1)
55errorsLocal.Add(string.Format(Strings.DuplicateTypeLibraryIds, idMetadata, typeLibraryIdMap[id], typeLibrary.ItemSpec));
ValidateExecutableReferences.cs (4)
52bool shouldBeValidatedAsExecutableReference = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["ShouldBeValidatedAsExecutableReference"], true); 53bool referencedProjectIsExecutable = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["_IsExecutable"]); 54bool referencedProjectIsSelfContained = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["SelfContained"]); 55bool referencedProjectHadSelfContainedSpecified = MSBuildUtilities.ConvertStringToBool(projectAdditionalProperties["_SelfContainedWasSpecified"]);
Microsoft.NET.HostModel (1)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
267IMAGE_RESOURCE_DATA_ENTRY.Write(ref dataBuilder, sectionBase, dataEntryTable[language.Item1], language.Item1.DataEntry.Length);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
331result.Append(dictionary[part.Name.ToString()]);
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\MSDeploy.cs (1)
787data = nameValueDictionary[name];
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Data\StaticWebAssetPathPattern.cs (1)
331result.Append(dictionary[part.Name.ToString()]);
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
53var asset = assets[element.AssetFile];
UpdateStaticWebAssetEndpoints.cs (3)
68allEndpoints[route].TryGetValue(endpoint, out var oldEndpoint); 72allEndpoints[route].Remove(oldEndpoint); 77result.AddRange(allEndpoints[route]);
Microsoft.NET.Sdk.WorkloadManifestReader (14)
SdkDirectoryWorkloadManifestProvider.cs (1)
225workloadSet = availableWorkloadSets[maxWorkloadSetVersion.ToString()];
WorkloadResolver.cs (13)
128var existingManifest = _manifests[readableManifest.ManifestId].manifest; 173WorkloadManifest conflictingManifest = _workloads[workload.Key].manifest; 183WorkloadManifest conflictingManifest = _packs[pack.Key].manifest; 198(var redirect, var manifest) = redirects[redirectId]; 204WorkloadManifest conflictingManifest = _workloads[redirect.Id].manifest; 215var unresolved = unresolvedRedirects.Select(ur => redirects[ur]).Where(ur => !redirects.ContainsKey(ur.redirect.ReplaceWith)).FirstOrDefault(); 222var cyclic = redirects[unresolvedRedirects.First()]; 543.Select(s => new WorkloadInfo(s, _workloads[s].workload.Description)) 581var existingWorkload = _workloads[workloadId]; 584var updatedWorkload = advertisingManifestResolver._workloads[workloadId]; 587if (!existingPacks.SetEquals(updatedPacks) || existingPacks.Any(p => PackHasChanged(_packs[p].pack, advertisingManifestResolver._packs[p].pack))) 626return _workloads[workloadId].manifest;
Microsoft.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (1)
19public IRecord this[Id id] => _memberReferences[id];
System\Private\Windows\Ole\DataStore.cs (1)
178if (_mappedData[current].AutoConvert)
Microsoft.TemplateEngine.Cli (4)
CliTemplateParameter.cs (2)
62_shortNameOverrides.Add(data.ShortNameOverrides[parameter.Name]); 66_longNameOverrides.Add(data.LongNameOverrides[parameter.Name]);
Commands\BaseCommand.cs (1)
89Add(SubcommandFactories[subcommandDef.Name](hostBuilder, subcommandDef));
TabularOutput\TabularOutput.cs (1)
98columnWidthLookup[i] = Math.Max(columnWidthLookup[i], row[i].MaxWidth);
Microsoft.TemplateEngine.Edge (9)
Installers\NuGet\NuGetManagedTemplatePackage.cs (1)
91public string Identifier => Details[PackageIdKey];
Mount\Archive\ZipFileMountPoint.cs (1)
52IDirectory? parentDir = (IDirectory)universe["/"];
Settings\TemplateCache.cs (1)
42templateDeduplicationDictionary[template.Identity].Add((template, templatePackage, GetBestLocalizationLocatorMatch(template), scanResult.MountPoint));
Template\ParameterSetBuilder.cs (5)
85_resolvedValues[parameter].SetValue(value, dataSource); 96var old = _resolvedValues[parameter]; 100_resolvedValues[parameter].SetValue(old.Value, old.DataSource); 106public bool HasParameterValue(ITemplateParameter parameter) => _resolvedValues[parameter].InputDataState != InputDataState.Unset; 237parametersDependencies[parameter] = new HashSet<EvalData>(referencedVariablesKeys.Select(idx => variables[idx]));
TemplateConstraintManager.cs (1)
210constraintResults.Add(TemplateConstraintResult.CreateEvaluationFailure(_templateConstrains[constraint.Type].Result, string.Format(LocalizableStrings.TemplateConstraintManager_Error_FailedToEvaluate, constraint.Type, constraint.Args, e.Message)));
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
ParameterBasedVariableCollection.cs (1)
68IParameterBasedVariableCollection current = collections[order.ToString()];
Microsoft.TemplateEngine.Utils (4)
DirectedGraph.cs (4)
60foreach (T dependent in dependentsMap[item]) 76return vertices.Select(v => dependentsMap[v]).SelectMany(v => v); 106directDependents.AddRange(dependentsMap[parent].Where(dependentVertices.Add)); 154_ = dependentsMap[dependency].Add(keyValuePair.Key);
Microsoft.TemplateSearch.Common (1)
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (1)
190workingPackToTemplateMap[packName].TotalDownloads = totalDownloads;
Microsoft.TestPlatform.CrossPlatEngine (9)
Client\Parallel\ParallelProxyDiscoveryManager.cs (1)
210.Select(source => new ProviderSpecificWorkload<string>(source, sourceToTestHostProviderMap[source]))
Client\Parallel\ParallelProxyExecutionManager.cs (4)
241var providerGroups = sources.Select(source => new ProviderSpecificWorkload<string>(source, sourceToTestHostProviderMap[source])).GroupBy(psw => psw.Provider); 251testCaseBatches = [group.SelectMany(w => sourceToTestCasesMap[w.Work]).ToArray()]; 257testCaseBatches = group.Select(w => sourceToTestCasesMap[w.Work]).ToList(); 298.Select(source => new ProviderSpecificWorkload<string>(source, sourceToTestHostProviderMap[source]))
Discovery\DiscovererEnumerator.cs (3)
225discoverer.Value.DiscoverTests(discovererToSourcesMap[discoverer], context, logger, discoverySink); 469assemblyTypeToSoucesMap[assemblyProperties.GetAssemblyType(source)] : 470assemblyTypeToSoucesMap[AssemblyType.None];
Execution\RunTestsWithSources.cs (1)
187result.Add(executorUriExtensionTuple, discovererToSourcesMap[discoverer]);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
XmlReaderWriter.cs (1)
77var testObject = testObjectDictionary[testGuid];
Microsoft.TestPlatform.PlatformAbstractions (6)
common\Tracing\PlatformEqtTrace.cs (6)
113return SourceTraceLevelsMap[Source.Switch.Level]; 120Source.Switch.Level = TraceSourceLevelsMap[value]; 174Source.Switch.Level = TraceSourceLevelsMap[TraceLevel]; 234Source.TraceEvent(TraceLevelEventTypeMap[MapPlatformTraceToTrace(level)], 0, log); 249Source.Switch.Level = TraceSourceLevelsMap[MapPlatformTraceToTrace(value)]; 254return (PlatformTraceLevel)SourceTraceLevelsMap[Source.Switch.Level];
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
39_dict.Item(key) = New KeyInfo(value, node)
Microsoft.VisualStudio.TestPlatform.Common (3)
ExtensionFramework\TestPluginDiscoverer.cs (1)
234pluginInfo.IdentifierData, pluginInfo.AssemblyQualifiedName, filePath, extensionCollection[pluginInfo.IdentifierData].AssemblyQualifiedName);
ExtensionFramework\TestPluginManager.cs (1)
170values.Add(dictionary[key]);
ExtensionFramework\Utilities\TestExtensions.cs (1)
148result[kvp.Key] = MergeSets(result[kvp.Key], kvp.Value);
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
HtmlLogger.cs (2)
156Initialize(events, parameters[DefaultLoggerParameterNames.TestRunDirectory]!); 286var framework = _parametersDictionary[DefaultLoggerParameterNames.TargetFramework];
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
TrxLogger.cs (1)
176var testRunDirectory = _parametersDictionary[DefaultLoggerParameterNames.TestRunDirectory]!;
XML\XmlPersistence.cs (1)
851return QueryCache[queryIn];
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\FrameworkNameProvider.cs (1)
837_equivalentFrameworks[framework].Add(other);
Microsoft.Web.XmlTransform (8)
XmlAttributePreservationDict.cs (6)
102writer.WriteAttributeWhitespace(leadingSpaces[attributeName]); 110writer.WriteAttributeTrailingWhitespace(leadingSpaces[String.Empty]); 147bool exists = attributeExists[key]; 165string leadingSpace = leadingSpaces[key]; 182if (firstAttribute || !leadingSpaces.ContainsKey(key) || !ContainsNewLine(leadingSpaces[key])) { 228!ContainsNewLine(leadingSpaces[attributeName])) {
XmlTransforms.cs (2)
591string val = paramDictionary[keyindex]; 593delegate(string key) { return paramDictionary.ContainsKey(key) ? paramDictionary[key] : null; });
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
341invokeItems = s_handlers[key];
NuGet.Build.Tasks.Pack (6)
PackTaskLogic.cs (6)
416tfmSpecificRefs[tfmRef.Identity].Add(targetFramework); 443var frameworkShortFolderName = targetAliasToNuGetFramework[framework.TargetAlias]; 456else if (!tfmSpecificRefs[frameworkShortFolderName].SetEquals(refNames)) 458List<string> duplicates = nuGetFrameworkToDuplicateAliases[frameworkShortFolderName]; 672var existingContentMetadata = fileModel[sourcePath]; 1021var dependencies = dependenciesByFramework[framework.FrameworkName];
NuGet.CommandLine.XPlat (7)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
704SourceRepository sourceRepository = _sourceRepositoryCache[packageSource];
Commands\PackageSearch\PackageSearchRunner.cs (1)
94PackageSource source = searchRequests[completedTask];
Commands\Why\DependencyGraphFinder.cs (1)
114LockFileLibrary projectLibrary = projectsByPath[p.ProjectPath];
Commands\Why\DependencyGraphPrinter.cs (4)
39PrintDependencyGraphPerFramework(frameworks, dependencyGraphPerFramework[frameworks.First()], targetPackage, logger, dotnetVersionChecker); 149if (dependencyGraphPerFramework[framework] == null) 156int hash = GetDependencyGraphHashCode(dependencyGraphPerFramework[framework]); 159dependencyGraphHashes[hash].Add(framework);
NuGet.Commands (16)
PackagesLockFileBuilder.cs (2)
54ContentHash = libraryLookup[identity].Sha512, 96var projectFullPath = projectFullPaths[projectIdentity];
RestoreCommand\ContentFiles\ContentFileUtils.cs (1)
206lockFileItem.CodeLanguage = languageMappings[file].ToLowerInvariant();
RestoreCommand\DependencyGraphResolver.cs (1)
348ResolvedDependencyGraphItem projectResolvedDependencyGraphItem = resolvedDependencyGraphItems[LibraryDependencyIndex.Project];
RestoreCommand\LockFileBuilder.cs (4)
240libraries[ValueTuple.Create(library.Name, library.Version)], 261libraries[ValueTuple.Create(library.Name, library.Version)], 558Dictionary<string, LibraryIncludeFlags> dependenciesIncludeFlags = _includeFlagGraphs[targetGraph]; 565LibraryDependency dependency = dependencyDictionary[dependencyNode.Key.Name];
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (1)
150var parentDependencies = dependencyMapping[parentProjectName];
RestoreCommand\RestoreCommand.cs (2)
1168prunedDirectPackages[dependency.Name].Add(framework.TargetAlias); 1215prunedPackage.Value.Select(e => aliasToTargetGraphName[e]).ToArray()));
RestoreCommand\Utility\LockFileUtils.cs (1)
687var diskPath = fileLookup[item.Path].AbsolutePath;
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
828if (isPruningEnabled[targetAlias]) 830var frameworkInfo = prunePackageReferences[targetAlias]; 839if (isPruningEnabled[frameworkInfo.Key]) 849spec.TargetFrameworks[i] = new TargetFrameworkInformation(spec.TargetFrameworks[i]) { PackagesToPrune = prunePackageReferences[spec.TargetFrameworks[i].TargetAlias] };
NuGet.Common (1)
KeyedLock.cs (1)
176var lockState = _locks[key];
NuGet.Configuration (1)
PackageSourceMapping\SearchTree.cs (1)
66currentNode = currentNode.Children[c];
NuGet.DependencyResolver.Core (1)
Remote\RemoteDependencyWalker.cs (1)
654List<GraphNode<RemoteResolveResult>> graphNodes = _transitiveCentralPackageVersions[node.Item.Key.Name];
NuGet.Frameworks (1)
FrameworkNameProvider.cs (1)
849_equivalentFrameworks[framework].Add(other);
NuGet.PackageManagement (13)
NuGetPackageManager.cs (7)
1059primaryTargets = new List<PackageIdentity> { preferredVersions[packageId] }; 2650var preFetchResult = downloadTasks[nuGetProjectAction.PackageIdentity]; 3064NuGetProjectAction[] nuGetProjectActions = nugetProjectActionsLookup[buildIntegratedProject.MSBuildProjectPath]; 3065var updatedPackageSpec = updatedNugetPackageSpecLookup[buildIntegratedProject.MSBuildProjectPath]; 3066var originalPackageSpec = originalNugetPackageSpecLookup[buildIntegratedProject.MSBuildProjectPath]; 3067var originalLockFile = lockFileLookup[buildIntegratedProject.MSBuildProjectPath]; 3068var sources = nuGetProjectSourceLookup[buildIntegratedProject.MSBuildProjectPath];
PackageDownloader.cs (1)
227errors.AppendLine(CultureInfo.CurrentCulture, $" {tasksLookup[task].PackageSource.Source}: {message}");
Resolution\PrunePackageTree.cs (2)
189return packages.Where(p => !targets.ContainsKey(p.Id) || (targets.ContainsKey(p.Id) && targets[p.Id] == p.Version)); 224return packages.Where(p => !installed.ContainsKey(p.Id) || MeetsVersionConstraints(p.Version, installed[p.Id], versionConstraints));
Resolution\ResolverGather.cs (2)
630var resource = await depResources[source]; 647var resource = depResources[source];
Utility\BuildIntegratedProjectUtility.cs (1)
122results.Add(typeMappings[dependency]);
NuGet.Packaging (2)
PackageCreation\Authoring\PackageBuilder.cs (1)
730var framework = (NuGetFramework)item.Properties["tfm"];
TopologicalSortUtility.cs (1)
71sorted.Add(lookup[item.Id]);
NuGet.Protocol (3)
Plugins\PluginPackageReader.cs (1)
1015.Select(framework => new FrameworkSpecificGroup(framework, groups[framework].OrderBy(e => e, StringComparer.OrdinalIgnoreCase)));
Resources\ServiceIndexResourceV3.cs (2)
229result[type] = result[type].OrderByDescending(e => e.ClientVersion).ToList(); 303result[type] = result[type].OrderByDescending(e => e.ClientVersion).ToList();
NuGet.Resolver (3)
PackageResolver.cs (1)
298package => dependencyByPackageId[package.Id].Satisfies(package.Version) || mustKeep.Contains(package.Id))
ResolverInputSort.cs (1)
75var nextId = idsToSort.OrderBy(id => parents[id].Count)
ResolverUtility.cs (1)
437var dependencyPackage = packageLookUp[dependency.Id];
Pipelines.Library (2)
DistributedApplicationPipelineExtensions.cs (2)
127var siteName = websiteResource.Outputs[$"{Infrastructure.NormalizeBicepIdentifier(websiteResource.Name)}_name"]?.ToString(); 130siteName = appServiceEnvironment.Outputs["name"]?.ToString();
PresentationBuildTasks (8)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
186Debug.Assert(targetOutputs[CompileTargetName].Length == 1); 187TemporaryAssemblyForLocalTypeReference = targetOutputs[CompileTargetName][0].ItemSpec; 301Debug.Assert(targetOutputs[CompileTargetName].Length == 1); 302TemporaryAssemblyForLocalTypeReference = targetOutputs[CompileTargetName][0].ItemSpec;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1481bracketCharacters = bracketCharacterCache[propertyName];
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
203return MasterBracketCharacterCache[type];
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
391_compatTable[oldXmlns] != newXmlns) 394_compatTable[oldXmlns]));
PresentationCore (44)
MS\Internal\DeferredElementTreeState.cs (2)
27parent = treeState._oldCoreParents[element]; 88parent = treeState._oldLogicalParents[element];
MS\Internal\FontCache\FontResourceCache.cs (2)
138folderResourceMap[folderName].Add(fileName); 142folderResourceMap[resourceFullName].Add(String.Empty);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
1698_strokeLookupTable[s].CompressionData = xpData; 1708_strokeLookupTable[s].ISFReadyStrokeData = isfReadyData; 1712_strokeLookupTable[s].StorePressure = shouldStorePressure; 1884if (currentDrawingAttributesTableIndex != _strokeLookupTable[s].DrawingAttributesTableIndex) 1888cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex); 1889currentDrawingAttributesTableIndex = _strokeLookupTable[s].DrawingAttributesTableIndex; 1898if (currentStrokeDescriptorTableIndex != _strokeLookupTable[s].StrokeDescriptorTableIndex) 1902cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex); 1903currentStrokeDescriptorTableIndex = _strokeLookupTable[s].StrokeDescriptorTableIndex; 1912if (uCurrMetricDescriptorTableIndex != _strokeLookupTable[s].MetricDescriptorTableIndex) 1916cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex); 1917uCurrMetricDescriptorTableIndex = _strokeLookupTable[s].MetricDescriptorTableIndex; 1926if (currentTransformTableIndex != _strokeLookupTable[s].TransformTableIndex) 1930cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex); 1931currentTransformTableIndex = _strokeLookupTable[s].TransformTableIndex; 1947cbStroke = StrokeSerializer.EncodeStroke(s, tempstrm, GetCompressionAlgorithm(), guidList, _strokeLookupTable[s]); 2539StrokeSerializer.BuildStrokeDescriptor(stroke, guidList, _strokeLookupTable[stroke], out strokeDescriptor, out metricBlock); 2548_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)descriptorIndex; 2555_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1; 2576_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)tmp; 2584_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1); 2601_strokeLookupTable[stroke].TransformTableIndex = (uint)i; 2609_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1); 2623_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)i; 2631_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)_drawingAttributesTable.Count - 1;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (2)
384EdgeInfo ei = adjInformation[edge]; 851edgeInfo = adjInformation[edge];
System\Windows\Input\ManipulationDevice.cs (1)
245ManipulationDevice device = _manipulationDevices[element];
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
403Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 406toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
67_manager = StylusLogic.GetCurrentStylusLogicAs<PointerLogic>().PlugInManagers[presentationSource];
System\Windows\Media\FontEmbeddingManager.cs (2)
50glyphSet = _collectedGlyphTypefaces[glyphTypeface]; 84Dictionary<ushort, bool> glyphsUsed = _collectedGlyphTypefaces[glyphTypeface];
System\Windows\Media\SolidColorBrush.cs (1)
279return fwdDictionary[key];
System\Windows\Media\Visual.cs (6)
840Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 866Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 893Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 896if (cyclicBrushToChannelsMap[cyclicBrush] == 1) 915Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 926if (channelsToCyclicBrushMap[channel] == 0)
PresentationFramework (71)
MS\Internal\Annotations\AnnotationMap.cs (1)
91List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId];
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
79IList<IAnnotationComponent> currentList = _attachedAnnotations[attachedAnnotation]; 228IList<IAnnotationComponent> currentList = _attachedAnnotations[attachedAnnotation]; //save the current list
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
243_currentAnnotations[args.Annotation.Id].Dirty = true; 255_currentAnnotations[args.Annotation.Id].Dirty = true; 267_currentAnnotations[args.Annotation.Id].Dirty = true;
MS\Internal\Annotations\XmlElementCollection.cs (1)
152if (_xmlDocsRefCounts[element.OwnerDocument] == 0)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
424ret = _cachedXmlElements[token]; 529return s_xmlTokeFullNames[token];
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
362Stack<ILocalizabilityInheritable> stackForProperty = _propertyInheritanceTreeStack[propertyName];
MS\Internal\Globalization\BamlTreeMap.cs (3)
441return _classAttributeTable[className]; 472return _propertyAttributeTable[fullName]; 506_classAttributeTable[className].FormattingTag = formattingTag;
MS\Internal\IO\Packaging\XamlFilter.cs (1)
839return _lcidDictionary[languageString];
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (2)
212type = CustomTypeToHelperTypeMappings[CustomAbiTypeNameToTypeMappings[runtimeClassName]];
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
391return _predefinedNamespaces[name];
System\Windows\Controls\DataGrid.cs (4)
8245dataGridStringBuilders[format].Append(preparingRowClipboardContentEventArgs.FormatClipboardCellValues(format)); 8262dataGridStringBuilders[format].Append(preparingRowClipboardContentEventArgs.FormatClipboardCellValues(format)); 8268DataGridClipboardHelper.GetClipboardContentForHtml(dataGridStringBuilders[DataFormats.Html]); 8275dataObject.SetData(format, dataGridStringBuilders[format].ToString(), false /*autoConvert*/);
System\Windows\Controls\DataGridColumnCollection.cs (2)
543DisplayIndexMap.Add(assignedDisplayIndexMap[displayIndex]); 1483column.Width = _originalWidthsForResize[column];
System\Windows\Documents\FixedTextContainer.cs (1)
458lfs = highlights[page];
System\Windows\Documents\HighlightVisual.cs (1)
80ArrayList highlights = _panel.Highlights[_page];
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (14)
99ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 126ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 153ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 176ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 201ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 229ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 256ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 283ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 311ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 339ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 367ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 400ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 496ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 516ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
81return _instances[language];
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (5)
205ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 250ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 287ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 331ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 362ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);
System\Windows\Documents\Speller.cs (1)
352DictionaryInfo info = UriMap[uri];
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (4)
195(long)Math.Floor(1.0d * _instanceInfo.CumulativeCallTime100Ns[_action] / _instanceInfo.NumCallsMeasured[_action]); 205if (alwaysLog || (ticks > _timeLimits100Ns[_action]) || (runningAverage > 2 * _timeLimits100Ns[_action]))
System\Windows\Documents\WinRTSpellerInterop.cs (5)
336return (_spellCheckers[culture] == null ? false : true); 469_customDictionaryFiles[ietfLanguageTag].Add(lexiconPrivateCopyPath); 777return _spellCheckers[Culture]?.Item1; 792return _spellCheckers[_defaultCulture]?.Item1; 808return _spellCheckers[Culture]?.Item2;
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
332Baml6ConstructorInfo info = Constructors[paramCount];
System\Windows\Markup\BamlReader.cs (2)
2679list = _reverseXmlnsTable[fullName]; 2698xmlnsList = _reverseXmlnsTable[fullName];
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
211return _dictionary[key];
System\Windows\Markup\MarkupExtensionParser.cs (1)
1481bracketCharacters = bracketCharacterCache[propertyName];
System\Windows\Markup\ParserContext.cs (1)
203return MasterBracketCharacterCache[type];
System\Windows\Markup\XmlnsCache.cs (2)
391_compatTable[oldXmlns] != newXmlns) 394_compatTable[oldXmlns]));
System\Windows\StyleHelper.cs (1)
2685sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
System\Windows\SystemResources.cs (6)
1122_hwndNotify[hwndDpiInfo].Dispatcher.ShutdownFinished += OnShutdownFinished; 1124_hwndNotify[hwndDpiInfo].AddHook(_hwndNotifyHook[hwndDpiInfo]); 1136_hwndNotify[hwndDpiInfo].Dispose(); 1550return _hwndNotify[hwndDpiInfo]; 1633return _hwndNotify[hwndDpiInfo];
System\Windows\TemplateContent.cs (1)
1385return TemplateLoadData.NamedTypes[name];
PresentationUI (2)
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
159_activeParts[normalizedPartUri].Target = newPackage.GetPart(part.Uri); 383result = _activeParts[normalizedPartUri];
ReachFramework (25)
packaging\XpsDigitalSignature.cs (2)
373relHash = uriHashTable[selector.SourceUri]; 404Dictionary<string, int> relHash = uriHashTable[selector.SourceUri];
Packaging\XpsFixedPageReaderWriter.cs (9)
902xpsResource = (XpsResource)_imageCache[resourceUri]; 906xpsResource = (XpsResource)_fontCache[resourceUri]; 910xpsResource = (XpsResource)_colorContextCache[resourceUri]; 914xpsResource = (XpsResource)_resourceDictionaryCache[resourceUri]; 918xpsResource = (XpsResource)_resourceCache[resourceUri]; 1117xpsFont = _fontCache[uri]; 1143xpsColorContext = _colorContextCache[uri]; 1169xpsResourceDictionary = _resourceDictionaryCache[uri]; 1282xpsImage = _imageCache[uri];
Packaging\XpsManager.cs (9)
535return _cachedParts[uri]; 923docCounter = _contentTypes[docContentKey]-1; 946docCounter = _contentTypes[docContentKey]-1; 1049int docNumber = _contentTypes[contentKey] - 1; 1056int docNumber = _contentTypes[documentContentKey] - 1; 1057int pageNumber = _contentTypes[pageContentKey] - 1; 1083int counter = _contentTypes[contentKey]; 1090docCounter = _contentTypes[docContentKey]-1; 1286reference = _packageCache[uri];
Packaging\XpsResourcePolicy.cs (2)
89else if (_objDict[serviceType] != service) 158service = _objDict[serviceType];
Serialization\ColorTypeConverter.cs (1)
308profileUri = colorContextTable[colorContext.GetHashCode()];
Serialization\ImageSourceTypeConverter.cs (2)
455imageUri = imageUriHashTable[_uriHashValue]; 483imageUri = imageCrcTable[_crc32HashValue];
Roslyn.Diagnostics.Analyzers (12)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
139var writes2 = other._reachingWrites[symbol];
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
218=> _analysisDataByBasicBlockMap[basicBlock]; 222if (_analysisDataByBasicBlockMap[basicBlock] == null) 228return _analysisDataByBasicBlockMap[basicBlock]; 362Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 414var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
577return [.. result.Keys.OrderBy(s => result[s])];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
118if (!collisionMap[name] && canUse(name))
rzc (1)
ConcurrentLruCache.cs (1)
117var kvp = new KeyValuePair<TKey, TValue>(key, _cache[key].Value);
sdk-tasks (2)
CalculateTemplateVersions.cs (1)
62templateWithInstallPath.SetMetadata("BundledTemplateInstallPath", groups[t.GetMetadata("TemplateFrameworkVersion")].InstallPath);
DeduplicateAssembliesWithLinks.cs (1)
84filesByHash[hash].Add(entry);
System.CommandLine (1)
Parsing\CommandResult.cs (1)
115argumentResult = (ArgumentResult)SymbolResultTree[option.Argument];
System.CommandLine.StaticCompletions (1)
shells\FishShellProvider.cs (1)
120var subStateId = stateIdByCommand[sub];
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
114return _membersTable[originalLazyMember]; 122return _parametersTable[originalParameter];
System.ComponentModel.TypeConverter (6)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
1561converterData = IntrinsicTypeConverters[typeof(Enum)]; 1565converterData = IntrinsicTypeConverters[typeof(Array)]; 1569converterData = IntrinsicTypeConverters[s_intrinsicNullableKey]; 1573converterData = IntrinsicTypeConverters[typeof(ICollection)]; 1577converterData = IntrinsicTypeConverters[s_intrinsicReferenceKey]; 1604converterData = IntrinsicTypeConverters[key];
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (1)
37allForExport = (ExportDescriptor[])_partDefinitions[exportKey];
System.Configuration.ConfigurationManager (1)
System\Configuration\BaseConfigurationRecord.cs (1)
420indirectLocationInputs[configKey].Add(
System.Data.Common (9)
System\Data\Common\AdapterUtil.Common.cs (1)
815if (i != hash[columnName])
System\Data\Common\DbConnectionOptions.cs (2)
53public string? this[string keyword] => _parsetable[keyword]; 169string realkeyname = ((null != synonyms) ? (string)synonyms[keyname] : keyname);
System\Data\DataColumnCollection.cs (1)
832if (_columnFromName[name] != null)
System\Data\DataView.cs (5)
546_rowViewCache[_addNewRow].EndEdit(); 651array.SetValue(_rowViewCache[_addNewRow], index); 671array[index] = _rowViewCache[_addNewRow]; 1242private DataRowView GetRowView(DataRow dr) => _rowViewCache[dr]; 1304int index = IndexOfDataRowView(_rowViewCache[_addNewRow]);
System.Data.Odbc (8)
Common\System\Data\Common\DbConnectionOptions.cs (6)
90return ((_parsetable.ContainsKey(KEY.User_ID) && !string.IsNullOrEmpty(_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !string.IsNullOrEmpty(_parsetable[SYNONYM.UID]))); 114get { return _parsetable[keyword]; } 193object? value = _parsetable[KEY.Integrated_Security]; 223object? value = _parsetable[keyName]; 249return _parsetable[keyName] ?? defaultValue;
Common\System\Data\Common\DBConnectionString.cs (2)
189get { return _parsetable[keyword]; } 480string realkeyname = ((null != synonyms) ? (string)synonyms[keyname] : keyname); // MDAC 85144
System.Data.OleDb (1)
OleDbConnectionStringBuilder.cs (1)
88OleDbPropertyInfo info = dynamic[keyword];
System.Diagnostics.EventLog (2)
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (2)
88CacheItem value = _cache[key]; 151CacheItem cacheItem = _cache[key];
System.Diagnostics.PerformanceCounter (3)
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (3)
206return _counters[counterId]; 242int CounterId = _instance._counterSet._stringToId[counterName]; 245return _counters[CounterId];
System.Diagnostics.Process (2)
System\Collections\Specialized\DictionaryWrapper.cs (2)
19get => _contents[key]; 58return _contents.ContainsKey(item.Key) && _contents[item.Key] == item.Value;
System.DirectoryServices.AccountManagement (5)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (4)
47if (TypeToLdapPropListMap[this.MappingTableIndex].TryGetValue(p, out StringCollection value)) 81foreach (string s in TypeToLdapPropListMap[this.MappingTableIndex][baseType]) 350bool defaultState = NonPresentAttrDefaultStateMapping[suggestedAdProperty]; 1016TypeToLdapPropListMap[MappingTableIndex].TryAdd(principalType, propertySet);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (1)
1083return ((s_maskMap[p.GetType()] & value) > 0 ? true : false);
System.Formats.Nrbf (3)
System\Formats\Nrbf\ClassRecord.cs (2)
118=> MemberValues[ClassInfo.MemberNames[memberName]] switch 128int index = ClassInfo.MemberNames[memberName];
System\Formats\Nrbf\RecordMap.cs (1)
22public SerializationRecord this[SerializationRecordId objectId] => _map[objectId];
System.IO.Packaging (6)
System\IO\Packaging\ContentType.cs (1)
231stringBuilder.Append(_parameterDictionary[parameterKey]);
System\IO\Packaging\Package.cs (1)
1215var keyValue = partDictionary[id];
System\IO\Packaging\ZipPackage.cs (4)
921WriteDefaultElement(writer, key, _defaultDictionary[key]); 929WriteOverrideElement(writer, key, _overrideDictionary[key]); 1476_ignoredItemDictionary[normalizedPrefixName].Add(zipFileName); 1491_extensionDictionary[extension].Add(normalizedPrefixName);
System.Linq.Expressions (6)
System\Linq\Expressions\Compiler\CompilerScope.cs (2)
296ReadOnlyCollection<ParameterExpression> hoistedVars = GetVariables().Where(p => Definitions[p] == VariableStorageKind.Hoisted).ToReadOnly(); 440if (Definitions[v] == VariableStorageKind.Local)
System\Linq\Expressions\Compiler\LambdaCompiler.cs (3)
92_scope = tree.Scopes[lambda]; 93_boundConstants = tree.Constants[lambda]; 152_scope = _tree.Scopes[invocation];
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2892int count = _definedParameters[param];
System.Net.Http (5)
System\Net\Http\HttpRequestOptions.cs (2)
19object? IReadOnlyDictionary<string, object?>.this[string key] => Options[key]; 26return Options[key];
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (3)
118int index1 = digestResponse.Parameters[Qop].IndexOf(AuthInt, StringComparison.Ordinal); 122int index2 = digestResponse.Parameters[Qop].IndexOf(Auth, StringComparison.Ordinal); 128index2 = digestResponse.Parameters[Qop].IndexOf(Auth, index1 + AuthInt.Length, StringComparison.Ordinal);
System.Net.HttpListener (2)
System\Net\Managed\HttpEndPointListener.cs (1)
204bestMatch = localPrefixes[p];
System\Net\Managed\HttpEndPointManager.cs (1)
174p = s_ipEndPoints[ep.Address];
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (6)
2202if (eventId == -1 || dispatcher.m_EventEnabled[eventId]) 2780if (dispatcher.m_EventEnabled[eventID]) 3625if (eventData[idx].Name == null) 3628if (eventData[idx].Descriptor.Task == (int)eventAttribute.Task && eventData[idx].Descriptor.Opcode == (int)eventAttribute.Opcode) 3631evtName, evtId, eventData[idx].Name, idx));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (3)
413WriteNameAndMessageAttribs(sb, "task", taskTab[task]); 490WriteNameAndMessageAttribs(sb, "opcode", opcodeTab[opcode]); 505WriteNameAndMessageAttribs(sb, "keyword", keywordTab[keyword]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (3)
678Debug.Assert(s_lookupTable[ToUInt64Key("quot")] == '\x0022'); 679Debug.Assert(s_lookupTable[ToUInt64Key("alpha")] == '\x03b1'); 680Debug.Assert(s_lookupTable[ToUInt64Key("diams")] == '\x2666');
System.Private.CoreLib.Generators (2)
NativeRuntimeEventSourceGenerator.cs (2)
45string className = providerNameToClassNameMap[providerName]; 291if (eventId is null || version is null || latestEventVersions[eventId] != version)
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (1)
19public IRecord this[Id id] => _memberReferences[id];
System\Private\Windows\Ole\DataStore.cs (1)
178if (_mappedData[current].AutoConvert)
System.Private.Xml (51)
System\Xml\Schema\ContentValidator.cs (2)
141match.Add(_names[name]); 1463Debug.Assert(state == stateTable[statePosSet]); // just make sure that statePosSet is for correct state
System\Xml\Serialization\CodeGenerator.cs (1)
132return (ArgBuilder)_argList[name];
System\Xml\Serialization\Compilation.cs (4)
670_methods[mapping.Key!].readMethod = GetMethodFromType(reader.GetType(), methodName); 672return _methods[mapping.Key!].readMethod!.Invoke(reader, Array.Empty<object>()); 697_methods[mapping.Key!].writeMethod = GetMethodFromType(writer.GetType(), methodName); 699_methods[mapping.Key!].writeMethod!.Invoke(writer, new object?[] { o });
System\Xml\Serialization\XmlSerializationILGen.cs (13)
104return _methodBuilders[methodName]; 279ConstructorInfo readerCtor = CreatedTypes[readerClass].GetConstructor( 292ConstructorInfo writerCtor = CreatedTypes[writerClass].GetConstructor( 321CreatedTypes[baseSerializer], 367MethodInfo writerType_writeMethod = CreatedTypes[writerClass].GetMethod( 373ilg.Castclass(CreatedTypes[writerClass]); 391MethodInfo readerType_readMethod = CreatedTypes[readerClass].GetMethod( 397ilg.Castclass(CreatedTypes[readerClass]); 420ConstructorInfo ctor = CreatedTypes[(string)serializers[key]].GetConstructor( 460ConstructorInfo ctor = CreatedTypes[(string)serializers[xmlMappings[i].Key!]].GetConstructor( 502ConstructorInfo ctor = CreatedTypes[readerType].GetConstructor( 522ctor = CreatedTypes[writerType].GetConstructor( 582MemberInfo memInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
263ilg.StoreMember(_idNameFields[id]); 372ilg.LoadMember(_idNameFields[name ?? string.Empty]); 374ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1792ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1797ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1844ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1852ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 2908MemberInfo memInfo = memberInfos[source.Substring(3)]; 3072memberMapping.MemberInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializer.cs (1)
743index = pendingKeys[mappingKey];
System\Xml\XPath\Internal\XPathParser.cs (1)
661ParamInfo pi = (ParamInfo)s_functionTable["id"];
System\Xml\Xsl\IlGen\GenerateHelper.cs (3)
1360XmlILStorageMethods meth = XmlILMethods.StorageMethods[itemStorageType]; 1366Call(XmlILMethods.StorageMethods[itemStorageType].IListItem); 1378meth = XmlILMethods.StorageMethods[clrType].ValueAs;
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (1)
732_helper.Call(XmlILMethods.StorageMethods[_storage.ItemStorageType].ToAtomicValue!);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (9)
1348XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndAvg)]; 1357XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndSum)]; 1366XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndMin)]; 1375XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndMax)]; 2269XmlILStorageMethods methods = XmlILMethods.StorageMethods[itemStorageType]; 3660if (clrTypeFormalArg == XmlILMethods.StorageMethods[itemType].IListType) 3665else if (clrTypeFormalArg == XmlILMethods.StorageMethods[typeof(XPathItem)].IListType) 3713_helper.Emit(OpCodes.Ldsfld, XmlILMethods.StorageMethods[typeof(XPathItem)].SeqEmpty); 4874methods = XmlILMethods.StorageMethods[cacheType];
System\Xml\Xsl\Xslt\Compiler.cs (4)
148this.AttributeSets[attSetName] = sheet.AttributeSets[attSetName]; 153attSet.MergeContent(sheet.AttributeSets[attSetName]); 378int result = _moduleOrder[x.FileName].CompareTo(_moduleOrder[y.FileName]);
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
481MatchPatterns(it, patternBag.FixedNamePatterns[qname]),
System\Xml\Xsl\Xslt\Scripts.cs (1)
59get => _backingDictionary[key];
System\Xml\Xsl\Xslt\Stylesheet.cs (1)
63TemplateMatches[mode].Sort(TemplateMatch.Comparer);
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
386PropertyAccessorInfo ai = propertyMap[pi.GetMethod ?? pi.SetMethod!]; 403EventAccessorInfo ai = eventMap[ei.AddMethod ?? ei.RemoveMethod!];
System.Reflection.Emit (2)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
131private LabelHandle GetMetaLabel(Label label) => _labelTable[label]._metaLabel; 536LabelInfo labelInfo = _labelTable[label];
System.Reflection.Metadata (2)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
157_rootNamespace = namespaceTable[rootNamespace];
System\Reflection\Metadata\MetadataReader.cs (1)
1462Debug.Assert(builder == groupedNestedTypes[enclosingClass]);
System.Resources.Extensions (2)
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (2)
178return _deserializedObjects[_rootId]; 343object @object = _deserializedObjects[completedId];
System.Security.AccessControl (1)
System\Security\AccessControl\Privilege.cs (1)
442throw new PrivilegeNotHeldException(s_privileges[_luid]);
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (5)
73get => _headerParameters[key]; 89public int GetValueAsInt32(CoseHeaderLabel label) => _headerParameters[label].GetValueAsInt32(); 98public string GetValueAsString(CoseHeaderLabel label) => _headerParameters[label].GetValueAsString(); 106public byte[] GetValueAsBytes(CoseHeaderLabel label) => _headerParameters[label].GetValueAsBytes(); 117public int GetValueAsBytes(CoseHeaderLabel label, Span<byte> destination) => _headerParameters[label].GetValueAsBytes(destination);
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
92processor = s_lookup[Oids.Rsa]; 97processor = s_lookup[Oids.RsaPss];
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
84List<ConnectionPool> registryEntry = _registry[pool.Name];
System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
134_connectionMapping[connection].LastUsage = DateTime.UtcNow; 282IdlingConnectionSettings idlingSettings = _connectionMapping[connection];
System.ServiceModel.Primitives (23)
Internals\System\Runtime\MruCache.cs (1)
99TValue item = _items[keyRemove].value;
Internals\System\Xml\XmlMtomReader.cs (1)
2443string startInfo = parameters[MtomGlobals.StartInfoParam];
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
178headers[key] = headers[key] + 1;
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
118item = items[windowStart];
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
67_operationSupportingTokenParameters[key] = elementToBeCloned._operationSupportingTokenParameters[key].Clone(); 73_optionalOperationSupportingTokenParameters[key] = elementToBeCloned._optionalOperationSupportingTokenParameters[key].Clone();
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
86return _operationMap[method.MethodHandle.Value];
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (8)
49p.Union(other._actionParts[action]); 61_actionParts[action].IsBodyIncluded = newIncludeBody; 96_actionParts[action].Union(parts); 151parts = _actionParts[action]; 155parts = _readOnlyNormalizedActionParts[action]; 162p.Union(_actionParts[action]); 190target.AddParts(_actionParts[action], action); 207p.Union(_actionParts[action]);
System\ServiceModel\Security\SecurityProtocol.cs (5)
106return _mergedSupportingTokenProvidersMap[action]; 110return _mergedSupportingTokenProvidersMap[MessageHeaders.WildcardAction]; 263ICollection<SupportingTokenProviderSpecification> scopedProviders = ScopedSupportingTokenProviderSpecification[action]; 381ICollection<SupportingTokenProviderSpecification> supportingProviders = ScopedSupportingTokenProviderSpecification[action]; 402ICollection<SupportingTokenProviderSpecification> supportingProviders = ScopedSupportingTokenProviderSpecification[action];
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
40ScopedCertificates.Add(uri, other.ScopedCertificates[uri]);
System\ServiceModel\SynchronizedKeyedCollection.cs (2)
75return _dictionary[key]; 242return Remove(_dictionary[key]);
System.ServiceModel.Syndication (5)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
569result.AttributeExtensions.Add(attr, attrs[attr]);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
22_attributeExtensions.Add(key, source._attributeExtensions[key]); 93string value = _attributeExtensions[qname];
System\ServiceModel\Syndication\SyndicationContent.cs (2)
97writer.WriteAttributeString(key.Name, key.Namespace, _attributeExtensions[key]); 112AttributeExtensions.Add(key, source._attributeExtensions[key]);
System.Speech (9)
Internal\SrgsCompiler\Arc.cs (1)
430Tag newTag = endArcs[tag];
Internal\SrgsCompiler\BackEnd.cs (4)
483destFromState = SrcToDestHash[srcFromState]; 518return SrcToDestHash[srcEndState]; 542State destFromState = srcToDestHash[srcFromState]; 557destToState = srcToDestHash[srcToState];
Recognition\RecognizerBase.cs (1)
2766userToken = _bookmarkTable[id];
Result\RecognizedPhrase.cs (2)
636if (!semanticValue._dictionary[key].Equals(thisSemanticValue)) 653SemanticValue s = semanticValue._dictionary[key];
Result\SemanticValue.cs (1)
93get { return _dictionary[key]; }
System.Text.Json (6)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
96EnumFieldInfo existingFieldInfo = _enumFieldInfoIndex[fieldInfo.JsonName];
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (1)
236Type conflictingCaseType = shapeBasedCases[valueType];
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (2)
193orderedCases[i] = _entryByCaseType[orderedCaseTypes[i]]; 337orderedEntries[i] = new KeyValuePair<Type, MethodInfo>(caseType, methodsByCaseType[caseType]);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1643parameterIndex[paramKey].MatchingProperty.Name); 1837(JsonPropertyInfo other, int index) = state.AddedProperties[jsonPropertyInfo.Name];
System.Text.Json.SourceGeneration (7)
JsonSourceGenerator.Emitter.cs (4)
476TypeGenerationSpec valueTypeGenerationSpec = _typeIndex[typeGenerationSpec.CollectionValueType]; 531TypeGenerationSpec valueTypeGenerationSpec = _typeIndex[typeGenerationSpec.CollectionValueType]; 878TypeRef? nullableUnderlyingType = _typeIndex[property.PropertyType].NullableUnderlyingType; 1574TypeGenerationSpec propertyTypeSpec = _typeIndex[propertyGenSpec.PropertyType];
JsonSourceGenerator.Parser.cs (3)
1493closedArgs[i] = successfulSubstitution[requiredParams[i]]; 1679result.Add((caseType, acceptsNullByCase[caseType])); 2338(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName];
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCharClass.cs (1)
318category = s_definedCategories[InternalRegexIgnoreCase];
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
223long v = (((long)node.Ordinal) << ordinal_shift) | (idmap[node.One] << one_node_shift) | (idmap[node.Zero] << zero_node_shift);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Explore.cs (2)
87int nfaOffset = DeltaOffset(_nfaIdByCoreId[state.Id], mintermId); 88int[] nextNfaStates = CreateNewNfaTransition(_nfaIdByCoreId[state.Id], mintermId, nfaOffset);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
52catMap[char.GetUnicodeCategory(ch)].Add(ch);
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
318category = s_definedCategories[InternalRegexIgnoreCase];
System.Windows.Controls.Ribbon (11)
Microsoft\Windows\Controls\KeyTipService.cs (2)
353AddElementToScope(elementToScopeMap[element], element); 911culture = cultureCache[language];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
73int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 91int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 276int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 308int starLayoutIndex = _childIndexToStarLayoutIndexMap[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
247int index = ribbon.TabDisplayIndexToIndexMap[i]; 684contextualTabHeaders[contextualTabGroupHeader].Add(new RibbonTabHeaderAndIndex() { RibbonTabHeader = tabHeader, Index = i }); 726foreach (RibbonTabHeaderAndIndex headerAndIndex in contextualTabHeaders[contextualTabGroupHeader])
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1618return TabDisplayIndexToIndexMap[displayIndex]; 1632return TabIndexToDisplayIndexMap[index];
System.Windows.Forms (24)
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (1)
83public static UIA_CONTROLTYPE_ID GetControlType(AccessibleRole role) => s_map[role];
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
236CachedProperties cachedProperties = s_processedLibraries[typeGuid];
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObjectCollection.cs (1)
26return this[key];
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (5)
97return ColorTable[color]; 354rgbTable[KnownColors.ButtonSelectedHighlight] = rgbTable[KnownColors.ButtonCheckedHighlight]; 503rgbTable[KnownColors.msocbvcrCBShadow] = rgbTable[KnownColors.msocbvcrCBBkgd]; 1411rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver] = rgbTable[KnownColors.ButtonSelectedHighlight]; 1414rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = rgbTable[KnownColors.msocbvcrCBCtlBkgdMouseOver];
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
68HtmlToClrEventProxy proxy = _attachedEventList[eh];
System\Windows\Forms\DataBinding\BindingSource.cs (1)
178return _relatedBindingSources[key];
System\Windows\Forms\Input\KeysConverter.cs (7)
247Keys keyValue = keyNames[keyString]; 262Keys keyValue = keyNames[keyString]; 295Keys keyValue = keyNames[keyString]; 310Keys keyValue = keyNames[keyString]; 341return CultureToDisplayOrder[culture]; 354return CultureToKeyName[culture]; 362var keys = CultureToKeyName[CultureInfo.InvariantCulture]!.Values.ToList();
System\Windows\Forms\Layout\TableLayout.cs (4)
1435Debug.Assert(layoutInfo.Equals(oldLayoutInfo[layoutInfo.Element]), 1436$"Cached assignment info is invalid: LayoutInfo has changed. old layoutinfo: {oldLayoutInfo[layoutInfo.Element].RowStart} {oldLayoutInfo[layoutInfo.Element].ColumnStart} new layoutinfo: {layoutInfo.RowStart} {layoutInfo.ColumnStart} and the element is {layoutInfo.Element}"); 1437SetLayoutInfo(layoutInfo.Element, oldLayoutInfo[layoutInfo.Element]);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (2)
39ControlInformation controlInfo = _controlsInfo[controlName]; 91ControlInformation ci = _controlsInfo[name];
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
816ThemeHandle? themeHandle = t_themeHandles[className];
System.Windows.Forms.Design (5)
System\ComponentModel\Design\MenuCommandService.cs (1)
297if (buildVerbs[key] == i)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
926Rectangle bounds = _snapLineToBounds[snapLine]; 1001Rectangle bounds = _snapLineToBounds[snapLine];
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2002ImageList unscaledImageList = _imageListCacheByDPI[ScaleHelper.OneHundredPercentLogicalDpi];
System\Windows\Forms\Design\TabOrder.cs (1)
246if (_tabProperties[control].IsReadOnly)
System.Xaml (10)
System\Xaml\Context\NameFixupGraph.cs (4)
269FrugalObjectList<NameFixupToken> dependencies = _dependenciesByName[name]; 299FrugalObjectList<NameFixupToken> dependencies = _dependenciesByParentObject[parentObj]; 321FrugalObjectList<NameFixupToken> nameDependencies = _dependenciesByName[name]; 464FrugalObjectList<NameFixupToken> parentDependencies = _dependenciesByParentObject[parentInstance];
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1556value = propertyValues[prop]; 2621List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2631List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2665ObjectWriterContext ctx = PendingKeyConversionContexts[instance];
System\Xaml\Parser\MeScanner.cs (1)
608bracketCharacters = _context.CurrentEscapeCharacterMapForMarkupExtension[propertyName];
System\Xaml\Parser\NodeStreamSorter.cs (1)
213string uriString = _xmlnsDictionary[prefix];
UnitTests.Common (2)
TestTypes.cs (2)
157return (s_localizedErrorCodes.ContainsKey(errorCode) ? s_localizedErrorCodes[errorCode] : s_localizedErrorCodes[ErrorCode.UnknownException]);
vstest.console (2)
Processors\Utilities\ArgumentProcessorFactory.cs (2)
156argumentProcessor = SpecialCommandToProcessorMap[TestSourceArgumentProcessor.CommandName]; 200var argumentProcessor = SpecialCommandToProcessorMap[RunTestsArgumentProcessor.CommandName];
vstest.console.arm64 (2)
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (2)
156argumentProcessor = SpecialCommandToProcessorMap[TestSourceArgumentProcessor.CommandName]; 200var argumentProcessor = SpecialCommandToProcessorMap[RunTestsArgumentProcessor.CommandName];