Implemented interface members:
property
this
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.this[TKey]
property
this
System.Collections.Generic.IDictionary<TKey, TValue>.this[TKey]
4081 writes to Item
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (1)
130projectPerformance[project.Id] = sumOfDocumentAverages / documentCount;
Program.cs (1)
164diagnosticStatistics[diagnostic.Id] = (description, diagnostic.Descriptor.DefaultSeverity, existing.count + 1);
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.Dashboard (4)
DashboardWebApplication.cs (3)
517values[$"Kestrel:Endpoints:{endpointName}:Url"] = url; 521values[$"Kestrel:Endpoints:{endpointName}:Protocols"] = protocols.ToString(); 526values[$"Kestrel:Endpoints:{endpointName}:ClientCertificateMode"] = ClientCertificateMode.RequireCertificate.ToString();
Utils\GlobalizationHelpers.cs (1)
43dict[localizedCulture.Name] = selfAndChildren;
Aspire.Dashboard.Tests (99)
Integration\FrontendBrowserTokenAuthTests.cs (15)
35config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 36config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 57config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 58config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 88config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 89config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 112config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 113config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 137config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = authMode.ToString(); 138config[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = apiKey; 164config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 224config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = frontendUrl; 225config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 251config["DOTNET_RUNNING_IN_CONTAINER"] = "true"; 252config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString();
Integration\FrontendOpenIdConnectAuthTests.cs (7)
99config[DashboardConfigNames.ResourceServiceClientAuthModeName.ConfigKey] = "Unsecured"; 100config[DashboardConfigNames.ResourceServiceUrlName.ConfigKey] = "https://localhost:1234"; // won't actually exist 103config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = "OpenIdConnect"; 104config["Authentication:Schemes:OpenIdConnect:Authority"] = authority.Url; 105config["Authentication:Schemes:OpenIdConnect:ClientId"] = "MyClientId"; 106config["Authentication:Schemes:OpenIdConnect:ClientSecret"] = "MyClientSecret"; 108config["Authentication:Schemes:OpenIdConnect:RequireHttpsMetadata"] = "false";
Integration\OtlpCorsHttpServiceTests.cs (4)
48config[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "http://localhost:8000, http://localhost:8001"; 89config[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "http://localhost:8000"; 116config[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "*"; 117config[DashboardConfigNames.DashboardOtlpCorsAllowedHeadersKeyName.ConfigKey] = "*";
Integration\OtlpGrpcServiceTests.cs (28)
55config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 56config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 77config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 78config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 104config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 105config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 132config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 133config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 134config[DashboardConfigNames.DashboardOtlpSecondaryApiKeyName.ConfigKey] = secondaryApiKey; 179config[DashboardConfigNames.DashboardConfigFilePathName.ConfigKey] = configPath; 243config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0"; 272config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 274config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 298config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 300config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 304config[$"{DashboardConfigNames.DashboardOtlpAllowedCertificatesName.ConfigKey}:0:Thumbprint"] = allowedThumbprint; 307config["Dashboard:Otlp:CertificateAuthOptions:AllowedCertificateTypes"] = "SelfSigned"; 308config["Dashboard:Otlp:CertificateAuthOptions:ValidateValidityPeriod"] = "false"; 337config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 339config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 342config[$"{DashboardConfigNames.DashboardOtlpAllowedCertificatesName.ConfigKey}:0:Thumbprint"] = clientCertificate.Thumbprint; 344config["Dashboard:Otlp:CertificateAuthOptions:AllowedCertificateTypes"] = "SelfSigned"; 345config["Dashboard:Otlp:CertificateAuthOptions:ValidateValidityPeriod"] = "false"; 376config[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "https://127.0.0.1:0"; 378config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 380config[$"{DashboardConfigNames.DashboardOtlpAllowedCertificatesName.ConfigKey}:0:Thumbprint"] = "123"; 382config["Authentication:Schemes:Certificate:AllowedCertificateTypes"] = "SelfSigned"; 383config["Authentication:Schemes:Certificate:ValidateValidityPeriod"] = "false";
Integration\OtlpHttpServiceTests.cs (12)
106config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 107config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 130config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 131config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 158config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 159config[DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.ConfigKey] = apiKey; 193config[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0"; 223dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 251dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 276dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 305dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 334dictionary[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0";
Integration\Playwright\BrowserTokenAuthenticationTests.cs (2)
21Configuration[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = nameof(FrontendAuthMode.BrowserToken); 22Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey] = "VALID_TOKEN";
Integration\StartupTests.cs (31)
34data[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://127.0.0.1:0;http://127.0.0.1:0"; 35data[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "http://127.0.0.1:0"; 36data[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://127.0.0.1:0"; 66data[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = "https://+:0;http://+:0"; 67data[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = "http://+:0"; 68data[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = "http://+:0"; 119data["Dashboard:Otlp:AuthMode"] = nameof(OtlpAuthMode.ClientCertificate); 120data["Dashboard:Otlp:AllowedCertificates:0"] = string.Empty; 138data[DashboardConfigNames.DashboardConfigFilePathName.ConfigKey] = configFilePath; 235data[DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory; 250initialData["Dashboard:Otlp:AuthMode"] = nameof(OtlpAuthMode.ApiKey); 251initialData["Dashboard:Otlp:PrimaryApiKey"] = "TestKey123!"; 274initialData[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"https://127.0.0.1:{port}"; 275initialData[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = $"https://127.0.0.1:{port}"; 276initialData[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"https://127.0.0.1:{port}"; 330initialData[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 331initialData[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 332initialData[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 380initialData[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 381initialData[DashboardConfigNames.DashboardOtlpHttpUrlName.ConfigKey] = $"http://127.0.0.1:{port}"; 450data[DashboardConfigNames.DashboardUnsecuredAllowAnonymousName.ConfigKey] = bool.TrueString; 469data[DashboardConfigNames.ResourceServiceClientAuthModeName.ConfigKey] = nameof(ResourceClientAuthMode.Certificate); 470data[DashboardConfigNames.ResourceServiceClientCertificateSourceName.ConfigKey] = nameof(DashboardClientCertificateSource.KeyStore); 471data[DashboardConfigNames.ResourceServiceClientCertificateSubjectName.ConfigKey] = "MySubject"; 488data["Logging:LogLevel:Default"] = "Trace"; 489data["Logging:LogLevel:Grpc"] = "Trace"; 490data["Logging:LogLevel:Microsoft.Hosting.Lifetime"] = "Trace"; 529data[DashboardConfigNames.DashboardConfigFilePathName.ConfigKey] = configFilePath; 621data[DashboardConfigNames.DashboardFrontendUrlName.ConfigKey] = $"https://localhost:{frontendPort1};http://localhost:{frontendPort2}"; 622data[DashboardConfigNames.DashboardOtlpGrpcUrlName.ConfigKey] = $"http://localhost:{otlpPort}"; 708data[DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.ConfigKey] = "https://localhost:666";
Aspire.EndToEnd.Tests (2)
tests\Shared\WorkloadTesting\ToolCommand.cs (2)
45Environment[key] = value; 55Environment[key] = value;
Aspire.Hosting (6)
ApplicationModel\ResourceExtensions.cs (1)
214environmentVariables[key] = value;
Dcp\DcpHostService.cs (1)
331loggerCache[hashValue] = logger = _loggerFactory.CreateLogger($"Aspire.Hosting.Dcp.{Encoding.UTF8.GetString(category)}");
OtlpConfigurationExtensions.cs (2)
103environmentVariables["OTEL_EXPORTER_OTLP_ENDPOINT"] = new HostUrl(url); 104environmentVariables["OTEL_EXPORTER_OTLP_PROTOCOL"] = protocol;
ProjectResourceBuilderExtensions.cs (1)
437endpointCountByScheme[bindingAddress.Scheme] = count + 1;
src\Shared\SecretsStore.cs (1)
44public void Set(string key, string value) => _secrets[key] = value;
Aspire.Hosting.Azure (2)
AzureBicepResourceExtensions.cs (2)
84ctx.EnvironmentVariables[name] = bicepOutputReference; 101ctx.EnvironmentVariables[name] = bicepOutputReference;
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
286endpointIndexMap[endpoint.Name] = endpointIndexMap.Count;
Aspire.Hosting.Azure.Tests (42)
AzureBicepResourceTests.cs (29)
138bicepResource.Resource.Outputs["resourceEndpoint"] = "https://myendpoint"; 150bicepResource.Resource.SecretOutputs["connectionString"] = "https://myendpoint;Key=43"; 253cosmos.Resource.SecretOutputs["connectionString"] = "mycosmosconnectionstring"; 347cosmos.Resource.SecretOutputs["connectionString"] = "mycosmosconnectionstring"; 434appConfig.Resource.Outputs["appConfigEndpoint"] = "https://myendpoint"; 501appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 558appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 624appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 723appInsights.Resource.Outputs["appInsightsConnectionString"] = "myinstrumentationkey"; 1110azureSql.Outputs["sqlServerFqdn"] = "myserver"; 1204azureSql.Outputs["sqlServerFqdn"] = "myserver"; 1294azurePostgres.SecretOutputs["connectionString"] = "myconnectionstring"; 1412azurePostgres.SecretOutputs["connectionString"] = "myconnectionstring"; 1614serviceBus.Resource.Outputs["serviceBusEndpoint"] = "mynamespaceEndpoint"; 1707wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint"; 1776wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint"; 1889storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 1890storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 1891storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 2048storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 2049storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 2050storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 2206storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 2207storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 2208storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 2365storage.Resource.Outputs["blobEndpoint"] = "https://myblob"; 2366storage.Resource.Outputs["queueEndpoint"] = "https://myqueue"; 2367storage.Resource.Outputs["tableEndpoint"] = "https://mytable"; 2523search.Resource.Outputs["connectionString"] = fakeConnectionString;
AzureContainerAppsTests.cs (11)
505context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 506context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 507context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 508context.EnvironmentVariables["TARGET_PORT"] = httpEp.Property(EndpointProperty.TargetPort); 509context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port); 510context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 511context.EnvironmentVariables["SCHEME"] = httpEp.Property(EndpointProperty.Scheme); 1120context.EnvironmentVariables["connectionString"] = connectionString; 1121context.EnvironmentVariables["secret0"] = secret0; 1122context.EnvironmentVariables["secret1"] = secret1; 1127context.EnvironmentVariables["complex"] = complex;
AzureWebPubSubExtensionsTests.cs (2)
289wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint"; 375wps.Resource.Outputs["endpoint"] = "https://mywebpubsubendpoint";
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
91context.EnvironmentVariables["ELASTIC_PASSWORD"] = elasticsearch.PasswordParameter;
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
225context.EnvironmentVariables["KAFKA_ADVERTISED_LISTENERS"] = advertisedListeners; 234context.EnvironmentVariables["KAFKA_LOG_DIRS"] = Target;
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
67ctx.EnvironmentVariables["COMMON_SECURITY_DEFAULTROOTPASSWORD"] = milvus.ApiKeyParameter;
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
83context.EnvironmentVariables[UserEnvVarName] = mongoDBContainer.UserNameReference; 84context.EnvironmentVariables[PasswordEnvVarName] = mongoDBContainer.PasswordParameter!;
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
59context.EnvironmentVariables[PasswordEnvVarName] = resource.PasswordParameter;
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
56context.EnvironmentVariables[PasswordEnvVarName] = oracleDatabaseServer.PasswordParameter;
Aspire.Hosting.Orleans (7)
OrleansServiceExtensions.cs (7)
158orleansServiceBuilder.GrainStorage[name] = provider; 210orleansServiceBuilder.Streaming[name] = provider; 237orleansServiceBuilder.BroadcastChannel[name] = provider; 326orleansServiceBuilder.GrainDirectory[name] = provider; 385context.EnvironmentVariables["Orleans__ClusterId"] = res.ClusterId; 386context.EnvironmentVariables["Orleans__ServiceId"] = res.ServiceId; 391context.EnvironmentVariables["Orleans__EnableDistributedTracing"] = "true";
Aspire.Hosting.PostgreSQL (4)
PostgresBuilderExtensions.cs (4)
85context.EnvironmentVariables[UserEnvVarName] = postgresServer.UserNameReference; 86context.EnvironmentVariables[PasswordEnvVarName] = postgresServer.PasswordParameter; 347context.EnvironmentVariables["PGADMIN_CONFIG_PROXY_X_HOST_COUNT"] = "1"; 348context.EnvironmentVariables["PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT"] = "1";
Aspire.Hosting.Qdrant (4)
QdrantBuilderExtensions.cs (4)
81context.EnvironmentVariables[ApiKeyEnvVarName] = qdrant.ApiKeyParameter; 87context.EnvironmentVariables[EnableStaticContentEnvVarName] = "0"; 138context.EnvironmentVariables[$"ConnectionStrings__{qdrantResource.Resource.Name}"] = qdrantResource.Resource.ConnectionStringExpression; 141context.EnvironmentVariables[$"ConnectionStrings__{qdrantResource.Resource.Name}_{QdrantServerResource.HttpEndpointName}"] = qdrantResource.Resource.HttpConnectionStringExpression;
Aspire.Hosting.RabbitMQ (3)
RabbitMQBuilderExtensions.cs (3)
69context.EnvironmentVariables["RABBITMQ_DEFAULT_USER"] = rabbitMq.UserNameReference; 70context.EnvironmentVariables["RABBITMQ_DEFAULT_PASS"] = rabbitMq.PasswordParameter; 246context.EnvironmentVariables["RABBITMQ_NODENAME"] = nodeName;
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
58context.EnvironmentVariables["MSSQL_SA_PASSWORD"] = sqlServer.PasswordParameter;
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
175additionalConfig["AppHost:DefaultLaunchProfileName"] = profileName;
Aspire.Hosting.Tests (5)
ExpressionResolverTests.cs (1)
89env.EnvironmentVariables["envname"] = new HostUrl(hostUrlVal);
ResourceExtensionsTests.cs (1)
173context.EnvironmentVariables["ELASTIC_PASSWORD"] = "p@ssw0rd1";
Utils\EnvironmentVariableEvaluator.cs (1)
46environmentVariables[key] = value;
WithEnvironmentTests.cs (2)
23context.EnvironmentVariables["SP_AVAILABLE"] = sp is not null ? "true" : "false"; 164context.EnvironmentVariables["myName"] = environmentValue;
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
64renamedVolumes[name] = $"{name}-{Convert.ToHexString(RandomNumberGenerator.GetBytes(4))}";
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\ToolCommand.cs (2)
45Environment[key] = value; 55Environment[key] = value;
BuildValidator (4)
LocalReferenceResolver.cs (3)
83nameToLocationsMap[fileInfo.Name] = locations; 181_mvidMap[peInfo.Mvid] = currentInfo; 185_nameMap[fileName] = assemblyInfoList;
Program.cs (1)
220map[peInfo.Mvid] = new AssemblyInfo(filePath, peInfo.Mvid);
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
86cache[key] = entryCollection = new TValue();
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
140_invocationInfoBuilderCache[type] = invocationInfoBuilder = new TypedInterceptorInvocationInfo.Builder(overload, type);
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.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
501specifiedTypes[foundTypeName] = type;
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)
937specifiedTypes[foundTypeName] = type; 958foundCollectionTypes[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)
962this.GlobalProperties["TargetFramework"] = this.TargetFrameworks.FirstOrDefault(); 967this.GlobalProperties["SdkVersion"] = this.SdkVersion;
Shared\ProjectPropertyResolver.cs (3)
61propertyTable[propertyName] = propertyValue; 78propertyTable[propertyName] = propertyValue; 107propertyTable[propertyName] = string.Empty;
HtmlGenerationWebSite (1)
ProductsService.cs (1)
52_products[category] = products.ToArray();
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
155_decodedHeaders[headerName] = headerValue;
Identity.DefaultUI.WebSite (4)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (4)
168_logins[GetLoginKey(login.LoginProvider, login.ProviderKey)] = user; 184_logins[GetLoginKey(loginProvider, providerKey)] = null; 223_users[user.Id] = user; 229_users[user.Id] = user;
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
155_decodedHeaders[headerName] = headerValue;
IIS.LongTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
155_decodedHeaders[headerName] = headerValue;
IIS.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
155_decodedHeaders[headerName] = headerValue;
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
155_decodedHeaders[headerName] = headerValue;
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
155_decodedHeaders[headerName] = headerValue;
illink (43)
ILLink.RoslynAnalyzer (9)
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (3)
74 branchInput[entryOut.Value] = new TState () { 120 finallyInputState[finallyRegion] = state; 142 exceptionFinallyState[branch] = state;
TrimAnalysis\TrimAnalysisPatternStore.cs (5)
53 AssignmentPatterns[trimAnalysisPattern.Operation] = trimAnalysisPattern.Merge (Lattice, FeatureContextLattice, existingPattern); 63 FieldAccessPatterns[pattern.Operation] = pattern.Merge (FeatureContextLattice, existingPattern); 73 GenericInstantiationPatterns[pattern.Operation] = pattern.Merge (FeatureContextLattice, existingPattern); 83 MethodCallPatterns[pattern.Operation] = pattern.Merge (Lattice, FeatureContextLattice, existingPattern); 93 ReflectionAccessPatterns[pattern.Operation] = pattern.Merge (FeatureContextLattice, existingPattern);
TrimAnalysis\TrimAnalysisVisitor.cs (1)
269 arr.IndexValues[index.Value] = merge
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
164 namespaceDictionary[lhs] = namespaceDefElements[2]; 169 namespaceDictionary[lhs] = namespaceDictionary[prefix] + namespaceDefElements[3]; 399 classIdsToClassNames[classId] = fullClassName; 406 classNamesToClassMembers[fullClassName] = members; 412 currentFeatureSwitchMembers[fullClassName] = members;
Infrastructure.Common (35)
artifacts\bin\Infrastructure.Common\Debug\_ServiceModel.TestProperties.Generated.cs (33)
41properties["ServicePort"] = "44283"; 42properties["ServiceHttpPort"] = "8081"; 43properties["ServiceHttpsPort"] = "44285"; 44properties["ServiceTcpPort"] = "809"; 45properties["ServiceWebSocketPort"] = "8083"; 46properties["ServiceSecureWebSocketPort"] = "8084"; 47properties["TestRootCertificatePassword"] = "test"; 48properties["TestRootCertificateValidityPeriod"] = "7.00:00:00"; 49properties["MaxTestTimeSpan"] = "00:01:00"; 50properties["NegotiateTestRealm"] = ""; 51properties["NegotiateTestDomain"] = ""; 52properties["NegotiateTestSpn"] = ""; 53properties["NegotiateTestUpn"] = ""; 54properties["Domain_Joined"] = ""; 55properties["Server_Domain_Joined"] = ""; 56properties["Root_Certificate_Installed"] = ""; 57properties["Client_Certificate_Installed"] = ""; 58properties["Peer_Certificate_Installed"] = ""; 59properties["OSXPeer_Certificate_Installed"] = ""; 60properties["SPN_Available"] = ""; 61properties["UPN_Available"] = ""; 62properties["Server_Accepts_Certificates"] = ""; 63properties["Ambient_Credentials_Available"] = ""; 64properties["Explicit_Credentials_Available"] = ""; 65properties["Basic_Authentication_Available"] = ""; 66properties["Digest_Authentication_Available"] = ""; 67properties["Windows_Authentication_Available"] = ""; 68properties["NTLM_Available"] = ""; 69properties["ServiceUri"] = "localhost"; 70properties["ExplicitUserName"] = ""; 71properties["ExplicitPassword"] = ""; 72properties["SSL_Available"] = ""; 73properties["IncludeTestsWithIssues"] = "";
ConditionalWcfTest.cs (1)
82s_evaluatedConditions[conditionName] = result;
JsonSerializer.cs (1)
45dictionary[key] = value;
InMemory.FunctionalTests (6)
EventSourceTests.cs (1)
496Payload[eventWrittenEventArgs.PayloadNames[i]] = eventWrittenEventArgs.Payload[i] as string;
Http2\Http2ConnectionTests.cs (2)
2433Headers[nameString] = new StringValues(l.ToArray()); 2437Headers[nameString] = new StringValues(valueString);
Http2\Http2TestBase.cs (3)
198_receivedHeaders[header.Key] = header.Value.ToString(); 224_receivedHeaders[header.Key] = header.Value.ToString(); 231_receivedTrailers[header.Key] = header.Value.ToString();
installer.tasks (4)
GenerateFileVersionProps.cs (4)
71fileVersions[fileName] = current; 78fileVersions[fileName] = current; 89fileVersions[fileName] = current; 95fileVersions[fileName] = current;
KeyManagementSimulator (1)
Program.cs (1)
433_missingSinceMap[defaultKeyId] = now;
Microsoft.Arcade.Test.Common (2)
MockFileSystem.cs (2)
55public void WriteToFile(string path, string content) => Files[path] = content; 57public void CopyFile(string sourceFileName, string destFileName, bool overwrite = false) => Files[destFileName] = Files[sourceFileName];
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.JwtBearer.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
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.Authentication.Test (1)
CookieTests.cs (1)
166Store[key] = ticket;
Microsoft.AspNetCore.Authorization (2)
AuthorizationOptions.cs (2)
54PolicyMap[name] = Task.FromResult<AuthorizationPolicy?>(policy); 69PolicyMap[name] = Task.FromResult<AuthorizationPolicy?>(policyBuilder.Build());
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
289argsMap[argName] = argValue;
Microsoft.AspNetCore.Components (16)
NavigationManagerExtensions.cs (1)
585parameterSources[pair.EncodedName] = source;
ParameterView.cs (1)
111result[entry.Name] = entry.Value;
Reflection\ComponentProperties.cs (2)
119unmatched[parameterName] = parameter.Value; 140unmatched[parameterName] = parameter.Value;
Reflection\MemberAssignment.cs (1)
36dictionary[property.Name] = many;
Rendering\RenderTreeBuilder.cs (2)
823seenAttributeNames[frame.AttributeNameField] = i; 881seenAttributeNames[name] = _entries.Count; // See comment in ProcessAttributes for why this is OK.
RenderTree\Renderer.cs (1)
281_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;
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
605updatedDefaults[parameter.Name] = parameter.Default;
src\Http\Routing\src\RouteOptions.cs (1)
175constraintMap[text] = typeof(TConstraint);
Microsoft.AspNetCore.Components.Endpoints (5)
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;
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Builder\TestFileProvider\TestFileProvider.cs (4)
57_directoryContentsLookup[path] = directoryContent; 63_lookup[path] = contents; 86_fileTriggers[filter] = changeToken; 96_fileTriggers[filter] = changeToken;
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
29_contents[key] = value;
Microsoft.AspNetCore.Components.Performance (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Components.Web (1)
Forms\InputBase.cs (1)
313additionalAttributes["aria-invalid"] = "true";
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
472rootComponent.AdditionalAttributes["aria-invalid"] = "userSpecifiedValue";
Microsoft.AspNetCore.Components.WebAssembly (2)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (2)
44parametersDictionary[definition.Name] = null; 65parametersDictionary[definition.Name] = parameterValue;
Microsoft.AspNetCore.Components.WebView.Test (4)
Infrastructure\ElementNode.cs (3)
35_attributes[key] = value; 43_events[eventName] = descriptor; 48_properties[key] = value;
Infrastructure\TestDocument.cs (1)
267_componentsById[childComponentId] = containerElement;
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
27_counters[item] = Channel.CreateUnbounded<double>();
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.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
57parametersToRedact[p.ParameterInfo.Name!] = classification;
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\Json\MessageTypeInfoResolver.cs (2)
168map[field.Name] = field; 172map[field.JsonName] = field;
src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
64properties[name] = values;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
543queryParameters[joinedPath] = fieldDescriptor; 553queryParameters[joinedPath] = fieldDescriptor;
Microsoft.AspNetCore.Grpc.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\XmlComments\GrpcXmlCommentsOperationFilter.cs (1)
105operation.Responses[code] = response = new OpenApiResponse();
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
543queryParameters[joinedPath] = fieldDescriptor; 553queryParameters[joinedPath] = fieldDescriptor;
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
27_counters[item] = Channel.CreateUnbounded<double>();
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
95Store[key] = value;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
127_dictionaryStorage[key] = value; 522_dictionaryStorage[item.Key] = item.Value;
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UseMiddlewareTest.cs (2)
320public void AddService(Type type, object value) => _services[type] = value; 346public void AddKeyedService(object key, Type type, object value) => _services[key] = new Tuple<Type, object>(type, value);
UsePathBaseExtensionsTests.cs (1)
247public void AddService(Type type, object value) => _services[type] = value;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
729requestHeaders[header.Key] = header.Value;
Microsoft.AspNetCore.Http.Connections.Tests (38)
HttpConnectionDispatcherTests.cs (38)
229values["id"] = connection.ConnectionToken; 230values["negotiateVersion"] = "1"; 309values["id"] = "unknown"; 310values["negotiateVersion"] = "1"; 351values["id"] = "unknown"; 352values["negotiateVersion"] = "1"; 389values["id"] = connection.ConnectionToken; 390values["negotiateVersion"] = "1"; 428values["id"] = connection.ConnectionId; 429values["negotiateVersion"] = "1"; 468values["id"] = connection.ConnectionToken; 469values["negotiateVersion"] = "1"; 531values["id"] = connection.ConnectionToken; 532values["negotiateVersion"] = "1"; 599values["id"] = connection.ConnectionToken; 600values["negotiateVersion"] = "1"; 662values["id"] = connection.ConnectionId; 663values["negotiateVersion"] = "1"; 766values["id"] = connection.ConnectionToken; 767values["negotiateVersion"] = "1"; 768values["another"] = "value"; 908values["id"] = connection.ConnectionToken; 909values["negotiateVersion"] = "1"; 1843values["id"] = connection.ConnectionToken; 1844values["negotiateVersion"] = "1"; 1895values["id"] = connection.ConnectionToken; 1896values["negotiateVersion"] = "1"; 2571values["id"] = connection.ConnectionToken; 2572values["negotiateVersion"] = "1"; 2631values["id"] = connection.ConnectionToken; 2632values["negotiateVersion"] = "1"; 2688values["id"] = connection.ConnectionToken; 2689values["negotiateVersion"] = "1"; 3700values["id"] = connection.ConnectionToken; 3701values["negotiateVersion"] = "1"; 3737values["id"] = connection.ConnectionToken; 3738values["negotiateVersion"] = "1"; 3741values["format"] = format;
Microsoft.AspNetCore.Http.Microbenchmarks (12)
AdaptiveCapacityDictionaryBenchmark.cs (10)
53_filledDictTen[a.Key] = a.Value; 67_dict[_oneValue.Key] = _oneValue.Value; 80_dict[_oneValue.Key] = _oneValue.Value; 178_dictTen[val.Key] = val.Value; 189_dictTen[val.Key] = val.Value; 199_dictTen[val.Key] = val.Value; 209_dictTen[val.Key] = val.Value; 219_dictTen[val.Key] = val.Value; 229_dictTen[val.Key] = val.Value; 240_dictTen[val.Key] = val.Value;
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Http.Tests (2)
DefaultHttpContextTests.cs (2)
145items["foo"] = item; 480_store[key] = value;
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
451errorDictionary[error.Code] = newDescriptions;
Microsoft.AspNetCore.Identity.InMemory.Test (6)
InMemoryStore.cs (2)
74_roles[role.Id] = role; 106_roles[role.Id] = role;
InMemoryUserStore.cs (4)
168_logins[GetLoginKey(login.LoginProvider, login.ProviderKey)] = user; 184_logins[GetLoginKey(loginProvider, providerKey)] = null; 223_users[user.Id] = user; 229_users[user.Id] = user;
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1545o => o.Tokens.ProviderMap["NewProvider2"] = new TokenProviderDescriptor(typeof(EmailTokenProvider<TUser>))));
Microsoft.AspNetCore.InternalTesting (3)
AssemblyTestLog.cs (1)
254_logs[assembly] = log;
Tracing\CollectingEventListener.cs (1)
47_existingSources[eventSource.Name] = eventSource;
xunit\AspNetTestAssemblyRunner.cs (1)
75_assemblyFixtureMappings[fixtureAttribute.FixtureType] = instance;
Microsoft.AspNetCore.JsonPatch.Tests (8)
Internal\DictionaryAdapterTest.cs (6)
23dictionary[key] = 404; 43dictionary[intKey] = "Mike"; 263dictionary[nameKey] = "James"; 282dictionary[uriKey] = "James"; 307dictionary[key] = value; 325dictionary[key] = "James";
TestObjectModels\DynamicTestObject.cs (1)
82_dictionary[binder.Name] = value;
WriteOnceDynamicTestObject.cs (1)
114_dictionary[key] = value;
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.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
161statusCodeConstants[statusCode] = field.Name;
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (3)
103responseTypes[responseType.Key] = responseType.Value; 216results[apiResponseType.StatusCode] = apiResponseType; 272results[apiResponseType.StatusCode] = 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\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
Microsoft.AspNetCore.Mvc.Core.Test (17)
Infrastructure\ControllerActionInvokerTest.cs (1)
1754args[item.Key] = item.Value;
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (11)
787binder.Results[property] = ModelBindingResult.Failed(); 821binder.Results[property] = ModelBindingResult.Failed(); 857binder.Results[property] = ModelBindingResult.Success(model: null); 886binder.Results[property] = ModelBindingResult.Failed(); 906binder.Results[property] = ModelBindingResult.Failed(); 928binder.Results[property] = ModelBindingResult.Failed(); 950binder.Results[property] = ModelBindingResult.Success(model: 57); 978binder.Results[property] = ModelBindingResult.Failed(); 982binder.Results[firstNameProperty] = ModelBindingResult.Success("John"); 985binder.Results[lastNameProperty] = ModelBindingResult.Success("Doe"); 1014binder.Results[nestedProperty] = ModelBindingResult.Success(null);
Routing\UrlHelperTestBase.cs (5)
626dictionary["ID"] = id; 627dictionary["isprint"] = isprint; 673dict["ACTION"] = action; 674dict["Controller"] = controller; 675dict["ID"] = id;
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.TagHelpers.Test (1)
InputTagHelperTest.cs (1)
1789htmlAttributes["multiple"] = "multiple";
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.Mvc.ViewFeatures.Test (12)
CookieTempDataProviderTest.cs (1)
355_cookies[key] = new CookieInfo()
Rendering\HtmlHelperHiddenTest.cs (1)
804viewData.Model.Property3["key"] = "ModelProp3Val";
Rendering\HtmlHelperPasswordTest.cs (2)
362viewData.Model.Property3["key"] = "prop-value1"; 515helper.ViewData.Model.Property3["key"] = "Prop3Val";
Rendering\HtmlHelperTextAreaTest.cs (2)
77helper.ViewData.Model.Property3["key"] = "Prop3Val"; 128helper.ViewData.Model.Property3["key"] = "Prop3Val";
Rendering\HtmlHelperTextBoxTest.cs (2)
95helper.ViewData.Model.Property3["key"] = "Prop3Val"; 146helper.ViewData.Model.Property3["key"] = "Prop3Val";
SessionStateTempDataProviderTest.cs (1)
131_innerDictionary[key] = value.ToArray();
TempDataDictionaryTest.cs (2)
148data["Foo"] = "Foo"; 149data["Bar"] = "Bar";
ViewComponentTests.cs (1)
298_innerDictionary[key] = value.ToArray();
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestFileProvider.cs (4)
57_directoryContentsLookup[path] = directoryContent; 63_lookup[path] = contents; 86_fileTriggers[filter] = changeToken; 96_fileTriggers[filter] = changeToken;
Microsoft.AspNetCore.OpenApi (10)
Schemas\OpenApiJsonSchema.Helpers.cs (2)
78values[key] = (T)JsonSerializer.Deserialize(ref reader, typeof(T), OpenApiJsonSchemaContext.Default)!; 161obj[key] = ReadOpenApiAny(ref reader);
Services\OpenApiDocumentService.cs (1)
257operations[description.GetOperationType()] = operation;
Services\OpenApiGenerator.cs (7)
147eligibileAnnotations[statusCode] = (discoveredTypeAnnotation, discoveredContentTypeAnnotation); 187eligibileAnnotations[statusCode] = (discoveredTypeAnnotation, discoveredContentTypeAnnotation); 205responseContent[contentType] = new OpenApiMediaType(); 208responses[statusCode.ToString(CultureInfo.InvariantCulture)] = new OpenApiResponse 279requestBodyContent[contentType] = new OpenApiMediaType(); 300requestBodyContent["multipart/form-data"] = new OpenApiMediaType(); 304requestBodyContent["application/json"] = new OpenApiMediaType();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.OutputCaching (3)
Memory\MemoryOutputCacheStore.cs (1)
94_taggedEntries[tag] = keys;
OutputCacheOptions.cs (2)
56NamedPolicies[name] = policy; 78NamedPolicies[name] = builder.Build();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
361_storage[key] = entry;
Microsoft.AspNetCore.Razor.Runtime (2)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
266_perEncoderChildContent[encoder] = childContent;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\IISRewriteMap.cs (1)
28_map[key] = value;
IISUrlRewrite\IISRewriteMapCollection.cs (1)
16_rewriteMaps[rewriteMap.Name] = rewriteMap;
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\TestServerVariablesFeature.cs (1)
20set => _variables[variableName] = value;
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.Routing.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Security.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Server.HttpSys (3)
StandardFeatureCollection.cs (3)
44_featureFuncLookup[typeof(IHttpUpgradeFeature)] = _identityFunc; 46_featureFuncLookup[typeof(ITlsHandshakeFeature)] = ctx => ctx.GetTlsHandshakeFeature(); 51_featureFuncLookup[typeof(IHttpSysRequestDelegationFeature)] = _identityFunc;
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\HttpRequestHeaders.cs (2)
138Unknown[GetInternedHeaderName(key)] = value; 154Unknown[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)
1266_streams[_incomingFrame.StreamId] = _currentHeadersStream;
Internal\Http3\Http3Connection.cs (2)
830_streams[stream.StreamId] = stream; 926_webtransportSessions[http3Stream.StreamId] = session;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
CertificatePathWatcherTests.cs (3)
527_changeTokens[path] = new ConfigurationReloadToken(); 533_lastModifiedTimes[path] = lastModifiedTime; 550_changeTokens[path] = changeToken = new ConfigurationReloadToken();
SniOptionsSelectorTests.cs (1)
931CertToFullChain[cert] = fullChain;
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (4)
970DecodedHeaders[headerName] = headerValue; 977DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 984DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 994DecodedHeaders[headerName] = headerValue;
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (4)
382DecodedHeaders[headerName] = headerValue; 389DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 396DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 406DecodedHeaders[headerName] = headerValue;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
20public void SetValue(EncodedKey key, byte[] value) => _store[key] = value;
Microsoft.AspNetCore.Shared.Tests (11)
runtime\Http2\HPackDecoderTest.cs (4)
970DecodedHeaders[headerName] = headerValue; 977DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 984DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 994DecodedHeaders[headerName] = headerValue;
runtime\Http3\QPackDecoderTest.cs (4)
382DecodedHeaders[headerName] = headerValue; 389DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 396DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 406DecodedHeaders[headerName] = headerValue;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
127_dictionaryStorage[key] = value; 522_dictionaryStorage[item.Key] = item.Value;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
788readers[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)
801_methods[methodName] = new HubMethodDescriptor(executor, serviceProviderIsService, authorizeAttributes);
Internal\DefaultHubProtocolResolver.cs (1)
27_availableProtocols[protocol.Name] = protocol;
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
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.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
154_files[path] = fileInfo;
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnExpectations.cs (1)
31_expectations[caseSpec] = expectation;
Microsoft.AspNetCore.WebSockets.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
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.AspNetCore.WebUtilities.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.Build (178)
BackEnd\BuildManager\BuildManager.cs (3)
1283_unnamedProjectInstanceToNames[submission.BuildRequestData.ProjectInstance!] = tempName; 2401_nodeIdToKnownConfigurations[node] = configurationsOnNode; 2880_projectStartedEvents[e.BuildEventContext.SubmissionId] = e;
BackEnd\BuildManager\CacheAggregator.cs (1)
78configIdMapping[config.ConfigurationId] = _lastConfigurationId;
BackEnd\Client\MSBuildClient.cs (1)
512envVars[pair.Key] = pair.Value;
BackEnd\Components\BuildComponentFactoryCollection.cs (21)
60_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton); 61_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton); 62_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton); 63_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton); 64_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton); 66_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton); 67_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton); 68_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton); 69_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton); 74_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton); 78_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null); 79_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways); 81_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton); 82_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways); 83_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways); 84_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton); 87_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton); 90_componentEntriesByType[BuildComponentType.FileAccessManager] = new BuildComponentEntry(BuildComponentType.FileAccessManager, FileAccessManager.CreateComponent, CreationPattern.Singleton); 125_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, existingEntry.Pattern); 136_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, instance); 147_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, creationPattern);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
378_requestsByGlobalRequestId[request.GlobalRequestId] = entry;
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
434_outstandingResults[requestEntry.Key] = new BuildResult(requestEntry.Value, new BuildAbortedException()); 444_outstandingResults[request.NodeRequestId] = new BuildResult(request, new BuildAbortedException());
BackEnd\Components\RequestBuilder\BatchingEngine.cs (4)
230itemListsToBeBatched[consumedMetadataReference.ItemName] = null; 274itemListsToBeBatched[consumedItemName] = items; 404itemMetadataValues[metadataQualifiedName] = String.Empty; 412itemMetadataValues[metadataQualifiedName] = ((IItem)item).GetMetadataValueEscaped(metadataName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
746_addTable[name] = value;
BackEnd\Components\RequestBuilder\Lookup.cs (5)
227lookupHash[propertyName] = ((IProperty)property).EvaluatedValueEscaped; 783PrimaryModifyTable[itemType] = modifiesOfType; 834_cloneTable[cloneItem] = originalItem; 1119_modifications[modificationPair.Key] = modificationPair.Value; 1183_modifications[metadataName] = value;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
482_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.GlobalRequestId;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
844itemVectorCollection[itemVectorType] = new ItemVectorPartition(MSBuildNameIgnoreCaseComparer.Default); 850itemVectorPartition[item] = itemVectorContents; 859discreteItems[item] = item;
BackEnd\Components\Scheduler\SchedulableRequest.cs (7)
141_timeRecords[SchedulableRequestState.Unscheduled] = new ScheduleTimeRecord(); 142_timeRecords[SchedulableRequestState.Blocked] = new ScheduleTimeRecord(); 143_timeRecords[SchedulableRequestState.Yielding] = new ScheduleTimeRecord(); 144_timeRecords[SchedulableRequestState.Executing] = new ScheduleTimeRecord(); 145_timeRecords[SchedulableRequestState.Ready] = new ScheduleTimeRecord(); 146_timeRecords[SchedulableRequestState.Completed] = new ScheduleTimeRecord(); 363_requestsWeAreBlockedBy[key] = blockingRequest;
BackEnd\Components\Scheduler\Scheduler.cs (3)
492_availableNodes[nodeInfo.NodeId] = nodeInfo; 1299configurationCountsByNode[availableNodeId] = _schedulingData.GetConfigurationsCountByNode(availableNodeId, true /* excludeTraversals */, _configCache); 2313availableNodeIdsToIndex[availableNodeId] = indexIntoArrays;
BackEnd\Components\Scheduler\SchedulingData.cs (13)
273_unscheduledRequestNodesByRequest[request] = requestNode; 280_configurationToRequests[request.BuildRequest.ConfigurationId] = requests; 288_buildHierarchy[request] = new List<SchedulableRequest>(8); 322_executingRequestByNode[request.AssignedNode] = null; 342_scheduledRequestsByNode[request.AssignedNode] = requestsAssignedToNode; 353_configurationsByNode[request.AssignedNode] = configurationsAssignedToNode; 370_blockedRequests[request.BuildRequest.GlobalRequestId] = request; 375_yieldingRequests[request.BuildRequest.GlobalRequestId] = request; 394_executingRequests[request.BuildRequest.GlobalRequestId] = request; 395_executingRequestByNode[request.AssignedNode] = request; 396_configurationToNode[request.BuildRequest.ConfigurationId] = request.AssignedNode; 406_readyRequests[request.BuildRequest.GlobalRequestId] = request; 411_readyRequestsByNode[request.AssignedNode] = readyRequestsOnNode;
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
305_configIdToPaths[root.ConfigId] = pathsForConfig; 416_configIdToData[configId] = data; 417_configPathToData[configFullPath] = data; 468accumulatedTimeByConfiguration[request.BuildRequest.ConfigurationId] = accumulatedTime + request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalMilliseconds;
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
276_manifestToResolvers[resolverManifest] = newResolvers; 425_manifestToResolvers[sdkResolverManifest] = resolvers; 491_manifestToResolvers[sdkDefaultResolversManifest] = defaultResolvers;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
394setParameters[parameter.Key] = String.Empty; 919_intrinsicTasks[_taskName] = returnClass; 925_intrinsicTasks[_taskName] = returnClass;
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
66_projectsPerOutputPath[targetPath] = context.Data.ProjectFilePath; 95_projectsPerReferencePath[referenceFullPath] = (context.Data.ProjectFilePath, evaluatedReferencePath);
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
87_projectsPerOutputPath[path!] = projectPath;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
662_deferredEvalDiagnostics[eventArgs.BuildEventContext.EvaluationId] = list;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
222taskData.TaskParameters[parameterName] = new TaskInvocationCheckData.TaskParameter(parameterValue, isOutput);
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
176filteredConfig[newKey] = kv.Value;
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
88resultingDictionary[property.Key] = property.Value;
Collections\ItemDictionary.cs (2)
333_itemLists[itemType] = list; 399_itemLists[projectItem.Key] = list;
Collections\PropertyDictionary.cs (1)
526dictionary[property.Key] = property.EscapedValue;
Collections\WeakValueDictionary.cs (1)
134_dictionary[key] = wrappedValue;
CommunicationsUtilities.cs (1)
372table[key] = value;
Construction\ProjectTaskElement.cs (1)
153parametersClone[entry.Key] = entry.Value.Item1;
Construction\Solution\ProjectInSolution.cs (1)
277_projectConfigurations[configurationName] = configuration;
Construction\Solution\SolutionFile.cs (4)
496_solutionFoldersByGuid[proj.ProjectGuid] = proj; 678_solutionConfigurationsByFullName[solutionConfiguration.FullName] = solutionConfiguration; 1260_projectsByGuid[proj.ProjectGuid] = proj; 1735rawProjectConfigurationsEntries[nameValue[0].Trim()] = nameValue[1].Trim();
Construction\Solution\SolutionProjectGenerator.cs (4)
2068properties[property.Item1] = EscapingUtilities.Escape(traversalProject.GetPropertyValue(property.Item1)); 2072properties[property.Item1] = EscapingUtilities.Escape(property.Item2); 2079properties[globalProperty.Name] = ((IProperty)globalProperty).EvaluatedValueEscaped; 2088properties[Constants.SubToolsetVersionPropertyName] = traversalProject.SubToolsetVersion;
Definition\Project.cs (2)
2155dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 2672removeElementCache[itemElement.ItemType] = cumulativeRemoveElementData;
Definition\ProjectCollection.cs (2)
573dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 1016_toolsets[toolset.ToolsVersion] = toolset;
Definition\ToolsetConfigurationReader.cs (1)
218_projectImportSearchPathsCache[key] = kindToPathsCache;
Definition\ToolsetReader.cs (2)
427toolsets[toolset.ToolsVersion] = toolset; 480subToolsets[subToolsetVersion] = new SubToolset(subToolsetVersion, subToolsetProperties);
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Evaluation\ConditionEvaluator.cs (1)
89conditionedPropertiesTable[propertyNameString] = conditionedPropertyValues;
Evaluation\Evaluator.cs (5)
908_projectSupportsReturnsAttribute[currentProjectOrImport] = projectSupportsReturnsAttribute || (target.Returns != null); 1047activeTargets[targetName] = activeTargetsByEvaluationOrder.AddLast(targetElement); 1069targetsWhichRunBeforeByTarget[unescapedBeforeTarget] = beforeTargetsForTarget; 1092targetsWhichRunAfterByTarget[unescapedAfterTarget] = afterTargetsForTarget; 1944escapedMetadata[metadata.Key] = EscapingUtilities.Escape(metadata.Value);
Evaluation\EvaluatorMetadataTable.cs (1)
102_metadata[xml.Name] = new EvaluatorMetadata(xml, evaluatedValueEscaped);
Evaluation\Expander.cs (1)
2588directoryNameTable[unescapedPath] = directoryName;
Evaluation\ExpressionShredder.cs (1)
450pair.Metadata[qualifiedMetadataName] = new MetadataReference(itemName, metadataName);
Evaluation\LazyItemEvaluator.cs (2)
242_cache[globsToIgnore] = items; 529_itemLists[itemElement.ItemType] = newList;
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (4)
79_dictionaryBuilder[oldNormalizedValue] = oldDictionaryEntry; 84_dictionaryBuilder[newNormalizedValue] = newDictionaryEntry; 91_dictionaryBuilder[newNormalizedValue] = dictionaryEntry; 190_dictionaryBuilder[key] = dictionaryValue;
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
136capturedItemsFromReferencedItemTypes[referencedItem.Item.Key] = referencedItem.Item;
Evaluation\Preprocessor.cs (2)
123_importTable[element] = list; 146_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>();
Evaluation\Profiler\EvaluationProfiler.cs (1)
154_evaluationProfiler._timeSpent[Location] = updatedTimeSpent;
Evaluation\ToolsetProvider.cs (1)
42_toolsets[toolset.ToolsVersion] = toolset;
FileMatcher.cs (1)
2485searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
Graph\GraphBuilder.cs (2)
182transitiveReferenceCache[parsedProject.GraphNode] = transitiveReferences; 214projectsByPath[projectPath] = new List<ProjectGraphNode> { project.Value.GraphNode };
Graph\ParallelWorkSet.cs (1)
57completedWork[kvp.Key] = workItem.Value;
Graph\ProjectGraph.cs (3)
580if (--inDegree[reference] == 0) 714targetLists[node] = targetLists[node].AddRange(requestedTargets); 781targetLists[pair.Key] = pair.Value;
Instance\HostServices.cs (6)
225_projectAffinities[projectFile] = nodeAffinity; 239_hostObjectMap[newFullPath] = hostObjects; 301_hostObjectMap[projectFile] = hostObjects; 324hostObjectMap[pairKey] = hostObject; 444_hostObjects[new TargetTaskKey(targetName, taskName)] = new MonikerNameOrITaskHost(hostObject); 460_hostObjects[new TargetTaskKey(targetName, taskName)] = new MonikerNameOrITaskHost(monikerName);
Instance\ProjectInstance.cs (2)
1084dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 2551globalProperties[propertyInstance.Name] = ((IProperty)propertyInstance).EvaluatedValueEscaped;
Instance\ProjectItemInstance.cs (2)
1501clonedMetadata[metadatum.Name] = metadatum.EvaluatedValue; 1518clonedMetadata[metadatum.Name] = metadatum.EvaluatedValueEscaped;
Instance\ProjectTaskInstance.cs (1)
241filteredParameters[parameter.Key] = parameter.Value.Item1;
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
403_tasksAndAppDomains[taskInstance] = taskAppDomain;
Instance\TaskFactoryWrapper.cs (3)
300namesOfPropertiesWithAmbiguousMatches[propertyInfo.Name] = String.Empty; 311namesOfPropertiesWithRequiredAttribute[propertyInfo.Name] = String.Empty; 322namesOfPropertiesWithOutputAttribute[propertyInfo.Name] = String.Empty;
Instance\TaskRegistry.cs (2)
707_taskRegistrations[taskIdentity] = registeredTaskEntries; 1344_taskNamesCreatableByFactory[taskIdentity] = creatableByFactory;
Logging\BaseConsoleLogger.cs (1)
687table[scopeName] = counter;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
723d[evaluationLocation] = profiledLocation; 1513result[key] = value;
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
1118nameValueListHashes[hash] = nameValueRecordId; 1259stringHashes[hash] = stringRecordId;
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
571propertyOutputMap[projectKey] = result; 582propertyOutputMap[projectKey] = value; 1212propertyOutputMap[evaluationKey] = value; 1675table[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;
NodePacketFactory.cs (1)
36_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
PlatformNegotiation.cs (1)
119table[keyVal[0]] = keyVal[1];
PropertyParser.cs (2)
68propertiesTable[propertyName] = propertyValue; 183finalPropertiesTable[propertyNameValuePair.Name] = propertyValue;
SolutionConfiguration.cs (4)
64_cachedProjectElements[projectGuid] = xmlElement; 67_cachedProjectElementsByAbsolutePath[projectAbsolutePath] = xmlElement; 68_cachedProjectAbsolutePathsByGuid[projectGuid] = projectAbsolutePath; 69_cachedProjectGuidsByAbsolutePath[projectAbsolutePath] = projectGuid;
TaskHostConfiguration.cs (1)
204_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskHostTaskComplete.cs (1)
123_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskParameter.cs (2)
449escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.Escape(entry.Value); 856_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
Tracing.cs (1)
112s_counts[counter] = incremented;
TypeLoader.cs (1)
203assembliesDictionary[Path.GetFileName(runtimeAssembly)] = runtimeAssembly;
Microsoft.Build.Engine.OM.UnitTests (5)
Definition\ProjectProperty_Tests.cs (1)
193globalProperties["g"] = String.Empty;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Instance\ProjectInstance_Tests.cs (1)
1028globalProperties["g"] = "gv";
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
127newKnown[implType] = factory;
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (1)
138collections[nextCollectionId] = result;
Microsoft.Build.Engine.UnitTests (69)
BackEnd\BinaryTranslator_Tests.cs (6)
435value["foo"] = "bar"; 436value["alpha"] = "omega"; 473value["foo"] = new BaseClass(1); 474value["alpha"] = new BaseClass(2); 512value["foo"] = new BaseClass(1); 513value["alpha"] = new BaseClass(2);
BackEnd\BuildRequestConfiguration_Tests.cs (5)
276globalProperties["ThreeIn"] = "3"; 353globalProperties["ThreeIn"] = "3"; 354globalProperties["BazIn"] = "bazfile"; 458globalProperties["ThreeIn"] = "3"; 459globalProperties["BazIn"] = "bazfile";
BackEnd\NodeEndpointInProc_Tests.cs (1)
441_linkStatusTable[endpoint] = new LinkStatusContext(Thread.CurrentThread, status);
BackEnd\TaskExecutionHost_Tests.cs (9)
144parameters["ExecuteReturnParam"] = ("true", ElementLocation.Create("foo.proj")); 170parameters["NonExistentParam"] = ("foo", ElementLocation.Create("foo.proj")); 609parameters["ExecuteReturnParam"] = ("true", ElementLocation.Create("foo.proj")); 625parameters["ExecuteReturnParam"] = ("false", ElementLocation.Create("foo.proj")); 643parameters["ExecuteReturnParam"] = ("false", ElementLocation.Create("foo.proj")); 1137_parametersSetOnTask[parameterName] = valueSet; 1145_outputsReadFromTask[parameterName] = actualValue; 1484parameters[parameterName] = (value, ElementLocation.Create("foo.proj")); 1495parameters["ExecuteReturnParam"] = (returnParam ? "true" : "false", ElementLocation.Create("foo.proj"));
Collections\OMcollections_tests.cs (6)
270values["one"] = "1"; 271values["two"] = "2"; 272values["three"] = "3"; 275convertedValues["one"] = 1; 276convertedValues["two"] = 2; 277convertedValues["three"] = 3;
Construction\SolutionProjectGenerator_Tests.cs (12)
1665globalProperties["Configuration"] = "Debug"; 1671globalProperties["Configuration"] = "Release"; 2034globalProperties["Configuration"] = "Nonexistent"; 2035globalProperties["SkipInvalidConfigurations"] = "true"; 2128globalProperties["Configuration"] = "Release"; 2216globalProperties["Configuration"] = "Release"; 2293globalProperties["Configuration"] = "Release"; 2294globalProperties["SkipInvalidConfigurations"] = "true"; 2703globalProperties["ImportDirectorySolutionProps"] = "false"; 2704globalProperties["ImportDirectorySolutionTargets"] = "false"; 2711globalProperties["DirectorySolutionPropsPath"] = projectPath; 2715globalProperties["DirectorySolutionTargetsPath"] = projectPath;
Evaluation\Expander_Tests.cs (5)
781itemMetadataTable["Culture"] = "abc%253bdef;$(Gee_Aych_Ayee)"; 782itemMetadataTable["Language"] = "english"; 1359itemMetadataTable["Culture"] = "abc%253bdef;$(Gee_Aych_Ayee)"; 1360itemMetadataTable["Language"] = "english"; 3912itemMetadataTable["Compile.Identity"] = "fOo.Cs";
Evaluation\ExpressionShredder_Tests.cs (1)
1182consumedMetadataReferences[qualifiedMetadataName] = new MetadataReference(itemName, metadataName);
ExpressionTreeExpression_Tests.cs (1)
401metadataDictionary["Culture"] = "french";
Graph\ProjectGraph_Tests.cs (1)
2332expectedGlobalProperties[PropertyNames.IsGraphBuild] = "true";
Graph\ResultCacheBasedBuilds_Tests.cs (3)
449expectedNodeBuildOutput[node] = ExpectedBuildOutputForNode(node); 462outputCaches[node] = env.DefaultTestDirectory.CreateFile($"OutputCache-{ProjectNumber(node)}").Path; 476results[ProjectNumber(node)] = (result, logger);
HashTableUtility_Tests.cs (15)
29h1["a"] = "x"; // <---------- Must be the same in both hashtables. 31h2["a"] = "x"; // <---------- Must be the same in both hashtables. 32h2["b"] = "y"; 45h1["a"] = "x"; 46h2["a"] = "x"; 49h1["b"] = "y"; 50h1["c"] = "z"; 51h2["b"] = "y"; 52h2["c"] = "z"; 55h1["b"] = "j"; 58h2["b"] = "j"; 59h2["c"] = "k"; 62h1["a"] = null; 63h1["c"] = "k"; 66h2["a"] = null;
Instance\HostServices_Tests.cs (1)
504globals["UniqueDummy"] = Guid.NewGuid().ToString();
Instance\ProjectTaskInstance_Internal_Tests.cs (1)
75parametersCopy[param.Key] = (param.Value.Item1, param.Value.Item2);
ProjectCache\ProjectCacheTests.cs (2)
506nodesToBuildResults[node] = buildResult; 598nodesToBuildResults[node] = buildResult;
Microsoft.Build.Framework (56)
BinaryTranslator.cs (3)
631additionalEntries[key] = value; 643dictionary[key] = value; 716dictionary[key] = value;
BuildException\BuildExceptionSerializationHelper.cs (1)
62exceptionFactories[key] = exceptionFactory;
BuildSubmissionStartedEventArgs.cs (1)
93globalProperties[key] = value;
Telemetry\BuildCheckTelemetry.cs (23)
26properties["SubmissionId"] = _submissionId.ToString(); 27properties["AssemblyName"] = assemblyName; 31properties["ExceptionType"] = exceptionType; 35properties["ExceptionMessage"] = exception.Message; 54properties["SubmissionId"] = _submissionId.ToString(); 55properties["RulesCount"] = rulesCount.ToString(CultureInfo.InvariantCulture); 56properties["CustomRulesCount"] = customRulesCount.ToString(CultureInfo.InvariantCulture); 57properties["ViolationsCount"] = violationsCount.ToString(CultureInfo.InvariantCulture); 58properties["TotalRuntimeInMilliseconds"] = totalRuntime.TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 65properties["SubmissionId"] = _submissionId.ToString(); 66properties["RuleId"] = buildCheckRuleTelemetryData.RuleId; 67properties["CheckFriendlyName"] = buildCheckRuleTelemetryData.CheckFriendlyName; 68properties["IsBuiltIn"] = buildCheckRuleTelemetryData.IsBuiltIn.ToString(CultureInfo.InvariantCulture); 69properties["DefaultSeverityId"] = ((int)buildCheckRuleTelemetryData.DefaultSeverity).ToString(CultureInfo.InvariantCulture); 70properties["DefaultSeverity"] = buildCheckRuleTelemetryData.DefaultSeverity.ToString(); 71properties["EnabledProjectsCount"] = buildCheckRuleTelemetryData.ProjectNamesWhereEnabled.Count.ToString(CultureInfo.InvariantCulture); 75properties["ExplicitSeverities"] = buildCheckRuleTelemetryData.ExplicitSeverities 77properties["ExplicitSeveritiesIds"] = buildCheckRuleTelemetryData.ExplicitSeverities 81properties["ViolationMessagesCount"] = buildCheckRuleTelemetryData.ViolationMessagesCount.ToString(CultureInfo.InvariantCulture); 82properties["ViolationWarningsCount"] = buildCheckRuleTelemetryData.ViolationWarningsCount.ToString(CultureInfo.InvariantCulture); 83properties["ViolationErrorsCount"] = buildCheckRuleTelemetryData.ViolationErrorsCount.ToString(CultureInfo.InvariantCulture); 84properties["IsThrottled"] = buildCheckRuleTelemetryData.IsThrottled.ToString(CultureInfo.InvariantCulture); 85properties["TotalRuntimeInMilliseconds"] = buildCheckRuleTelemetryData.TotalRuntime.TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
Telemetry\BuildTelemetry.cs (13)
105properties["BuildEngineDisplayVersion"] = DisplayVersion; 110properties["BuildDurationInMilliseconds"] = (FinishedAt.Value - StartAt.Value).TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 115properties["InnerBuildDurationInMilliseconds"] = (FinishedAt.Value - InnerStartAt.Value).TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 120properties["BuildEngineFrameworkName"] = FrameworkName; 125properties["BuildEngineHost"] = Host; 130properties["InitialMSBuildServerState"] = InitialServerState; 135properties["ProjectPath"] = Project; 140properties["ServerFallbackReason"] = ServerFallbackReason; 145properties["BuildSuccess"] = Success.HasValue.ToString(CultureInfo.InvariantCulture); 150properties["BuildTarget"] = Target; 155properties["BuildEngineVersion"] = Version.ToString(); 160properties["BuildCheckEnabled"] = BuildCheckEnabled.Value.ToString(CultureInfo.InvariantCulture); 165properties["SACEnabled"] = SACEnabled.Value.ToString(CultureInfo.InvariantCulture);
Telemetry\LoggingConfigurationTelemetry.cs (14)
106properties["TerminalLogger"] = TerminalLogger.ToString(CultureInfo.InvariantCulture); 110properties["TerminalLoggerUserIntent"] = TerminalLoggerUserIntent; 115properties["TerminalLoggerUserIntentSource"] = TerminalLoggerUserIntentSource; 120properties["TerminalLoggerDefault"] = TerminalLoggerDefault; 125properties["TerminalLoggerDefaultSource"] = TerminalLoggerDefaultSource; 128properties["ConsoleLogger"] = ConsoleLogger.ToString(CultureInfo.InvariantCulture); 131properties["ConsoleLoggerType"] = ConsoleLoggerType; 136properties["ConsoleLoggerVerbosity"] = ConsoleLoggerVerbosity; 139properties["FileLogger"] = FileLogger.ToString(CultureInfo.InvariantCulture); 142properties["FileLoggerType"] = FileLoggerType; 143properties["FileLoggersCount"] = FileLoggersCount.ToString(CultureInfo.InvariantCulture); 148properties["FileLoggerVerbosity"] = FileLoggerVerbosity; 151properties["BinaryLogger"] = BinaryLogger.ToString(CultureInfo.InvariantCulture); 152properties["BinaryLoggerUsedDefaultName"] = BinaryLoggerUsedDefaultName.ToString(CultureInfo.InvariantCulture);
XamlTypes\Rule.cs (1)
500map[property.Name] = property;
Microsoft.Build.Framework.UnitTests (1)
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Microsoft.Build.Tasks.CodeAnalysis (1)
PropertyDictionary.cs (1)
29set { base[name] = value; }
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
TestUtilities\SimpleTaskItem.cs (3)
40Metadata[metadataName] = metadataValue; 48map["Aliases"] = alias; 53map["EmbedInteropTypes"] = e.ToString();
Microsoft.Build.Tasks.Core (50)
AssemblyDependency\Reference.cs (2)
155_sourceItems[itemSpec] = sourceItem; 738_preUnificationVersions[key] = unificationVersion;
AssemblyDependency\ReferenceTable.cs (8)
336_resolvedSDKReferences[sdkName] = resolvedSDK; 420References[assemblyName] = reference; 1339_externallyResolvedImmutableFiles[resolvedPath] = GetAssemblyNameFromItemMetadata(reference.PrimarySourceItem); 1402goodReferences[assemblyName] = assemblyReference; 1430goodReferences[assemblyName] = assemblyReference; 1898fullNameToReference[key] = assemblyNameReference; 1903fullNameToReference[key] = assemblyNameReference; 2193baseNameToReferences[baseName] = refs;
AssemblyDependency\ResolveAssemblyReference.cs (3)
1789_showAssemblyFoldersExLocations[location.SearchPath] = importance; 3032tableMap[listPath] = new AssemblyTableInfo(listPath, targetFrameworkDirectory); 3056tableMap[installedAssemblyTable.ItemSpec] = new AssemblyTableInfo(installedAssemblyTable.ItemSpec, frameworkDirectory);
BootstrapperUtil\BootstrapperBuilder.cs (1)
1535eulas[key] = de;
Copy.cs (2)
487filesActuallyCopied[destPath] = SourceFiles[i].ItemSpec; 555partitionsByDestination[destPath] = sourceIndices;
CreateItem.cs (1)
221uniqueItems[item.ItemSpec] = String.Empty;
CreateManifestResourceName.cs (1)
210itemSpecToTaskitem[resourceFile.ItemSpec] = resourceFile;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
FileMatcher.cs (1)
2485searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
ManifestUtil\ApplicationManifest.cs (2)
671targetPathList[key] = true; // only warn once per path 717targetPathList[key] = true; // only warn once per path
ManifestUtil\Manifest.cs (1)
640identityList[key] = true; // only warn once per identity
PlatformNegotiation.cs (1)
119table[keyVal[0]] = keyVal[1];
PropertyParser.cs (2)
68propertiesTable[propertyName] = propertyValue; 183finalPropertiesTable[propertyNameValuePair.Name] = propertyValue;
RedistList.cs (3)
628denyListOfAssemblyNames[name] = null; 803assemblyEntries[hashIndex] = newEntry; 1060s_subsetListPathCache[key] = subsetFilesForFrameworkDirectory.ToArray();
ResolveSDKReference.cs (2)
290_runtimeReferenceOnlyDependenciesByName[dependencyName] = dependencyVersion; 305sdkItems[sdkName] = installedsdk;
ResourceHandling\MSBuildResXReader.cs (1)
70aliases[alias] = name;
SolutionConfiguration.cs (4)
64_cachedProjectElements[projectGuid] = xmlElement; 67_cachedProjectElementsByAbsolutePath[projectAbsolutePath] = xmlElement; 68_cachedProjectAbsolutePathsByGuid[projectGuid] = projectAbsolutePath; 69_cachedProjectGuidsByAbsolutePath[projectAbsolutePath] = projectGuid;
system.design\stronglytypedresourcebuilder.cs (1)
775reverseFixupTable[newKey] = key;
SystemState.cs (10)
374upToDateLocalFileStateCache[path] = state; 397instanceLocalFileStateCache[path] = cachedProcessFileState; 402instanceLocalOutgoingFileStateCache[path] = cachedProcessFileState; 411instanceLocalOutgoingFileStateCache[path] = cachedInstanceFileState; 425instanceLocalLastModifiedCache[path] = lastModified; 438instanceLocalFileStateCache[path] = fileState; 439instanceLocalOutgoingFileStateCache[path] = fileState; 593retVal.instanceLocalFileStateCache[fullPath] = fileState; 646instanceLocalDirectories[path] = directories; 689instanceLocalDirectoryExists[path] = exists;
Tracing.cs (1)
112s_counts[counter] = incremented;
WriteCodeFragment.cs (2)
331parameterTypes[parameterNameKey] = new ParameterType 364parameterTypes[parameterNameKey] = new ParameterType
Microsoft.Build.Tasks.UnitTests (9)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (4)
847uniqueFileExists[lowerPath] = 0; 850uniqueFileExists[lowerPath]++; 1039uniqueGetAssemblyName[lowerPath] = 0; 1043uniqueGetAssemblyName[lowerPath] = (int)uniqueGetAssemblyName[lowerPath] + 1;
FindInvalidProjectReferences_Tests.cs (4)
29proj1["TargetPlatformMoniker"] = "Windows, Version=7.0"; 32proj2["TargetPlatformMoniker"] = "Windows, Version=8.0"; 35proj3["TargetPlatformMoniker"] = "Windows, Version=8.1"; 38proj4["TargetPlatformMoniker"] = "Windows, Version=8.2";
ResourceHandling\GenerateResource_Tests.cs (1)
3644valuesFromResource[name] = value;
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (2)
1772nodes[parent] = (IsRoot(parent), file.Path); 1794nodes[reference] = (false, file.Path);
TestEnvironment.cs (1)
606tempPaths[TMPDIR] = Environment.GetEnvironmentVariable(TMPDIR);
Microsoft.Build.Utilities.Core (21)
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
FileMatcher.cs (1)
2485searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
MuxLogger.cs (2)
308_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value + 1; 328_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value - 1;
ToolLocationHelper.cs (9)
405extensionSDKs[extension.Key] = extension.Value; 452extensionSDKsAndVersions[extension.Key] = Tuple.Create<string, string>(extension.Value, moniker.TargetPlatformVersion.ToString()); 1427s_vsInstallFolders[versionRange] = vsInstallFolders; 2261s_cachedReferenceAssemblyPaths[referenceAssemblyCacheKey] = dotNetFrameworkReferenceAssemblies; 2315s_cachedTargetFrameworkDisplayNames[targetFrameworkDirectory] = displayName; 3117s_chainedReferenceAssemblyPath[path] = null; 3118s_cachedTargetFrameworkDisplayNames[path] = null; 3178s_cachedTargetFrameworkDisplayNames[path] = displayName; 3211s_chainedReferenceAssemblyPath[path] = pathToReturn;
Tracing.cs (1)
112s_counts[counter] = incremented;
TrackedDependencies\CanonicalTrackedInputFiles.cs (2)
839DependencyTableCache.DependencyTable[tLogRootingMarker] = new DependencyTableCacheEntry(_tlogFiles, DependencyTable); 1092DependencyTable[rootingMarker] = dependenciesWithoutMissingFiles;
TrackedDependencies\CanonicalTrackedOutputFiles.cs (2)
255DependencyTableCache.DependencyTable[tLogRootingMarker] = new DependencyTableCacheEntry(_tlogFiles, DependencyTable); 786DependencyTable[rootingMarker] = dependenciesWithoutMissingFiles;
TrackedDependencies\FlatTrackingData.cs (3)
489DependencyTableCache.DependencyTable[tLogRootingMarker] = new DependencyTableCacheEntry(TlogFiles, DependencyTable); 572DependencyTable[tlogEntry] = _missingFileTimeUtc.ToUniversalTime(); 580DependencyTable[tlogEntry] = fileModifiedTimeUtc;
Microsoft.Cci.Extensions (4)
Filters\BaselineDifferenceFilter.cs (3)
45_ignoreDifferences[filteredLine] = false; 54_ignoreDifferences[difference.Id] = true; 62_ignoreDifferences[diff] = true;
Traversers\DocIdToTypeMappingTraverser.cs (1)
27_typesIdMap[type.UniqueId()] = type;
Microsoft.CodeAnalysis (40)
Binding\AbstractLookupSymbolsInfo.cs (1)
258_nameMap[name] = pair;
CodeGen\CompilationTestData.cs (1)
74map[name] = default(MethodData);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
143hashBucketLabelsMap[hashValue] = hashBucketLabel;
CodeGen\SynthesizedLocalOrdinalsDispenser.cs (1)
58_lazyMap[key] = ordinal + 1;
Collections\IdentifierCollection.cs (1)
73_map[identifier] = new HashSet<string> { identifier, strValue };
Collections\ImmutableArrayExtensions.cs (1)
1161accumulator[key] = arrayBuilder;
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)
57map[analyzer] = default; 290_analyzerExecutionTimeOpt[analyzer] = fullCompilationDiagnostics ? 353lazyLocalDiagnostics[key] = allDiagnostics; 360allDiagnostics[analyzer] = analyzerDiagnostics; 380_nonLocalDiagnosticsOpt[analyzer] = currentDiagnostics;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
79_loadContextByDirectory[fullDirectoryPath] = loadContext;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (2)
149_knownAssemblyPathsBySimpleName[simpleName] = paths.Add(fullPath); 225_analyzerAssemblyInfoMap[originalAnalyzerPath] = (assemblyName, realPath);
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 (3)
268result[pair.Key] = pair.Value; 1567_map[index] = item; 1583_map[index] = item;
Emit\EditAndContinue\SymbolChanges.cs (1)
457changesBuilder[newMember] = change;
InternalUtilities\ConcurrentLruCache.cs (1)
129_cache[key] = result;
InternalUtilities\MultiDictionary.cs (1)
269_dictionary[k] = updated;
InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
MetadataReader\MetadataHelpers.cs (1)
889names[nestedNamespaces[i].Key] = i;
MetadataReader\PEAssembly.cs (1)
147ivtMap[identity.Name] = keys;
MetadataReader\PEModule.cs (1)
3878typesToAssemblyIndexMap[name] = indices;
MetadataReference\AssemblyIdentityMap.cs (1)
103_map[identity.Name] = _map.TryGetValue(identity.Name, out sameName) ? sameName.Add(pair) : OneOrMany.Create(pair);
Operations\ControlFlowGraphBuilder.cs (4)
585regionMap[block] = region; 644regionMap[blocks[i]] = enclosing; 660regionMap[blocks[i]] = enclosing; 6430_currentImplicitInstance.AnonymousTypePropertyValues[initializedProperty] = captured;
RuleSet\RuleSet.cs (2)
161effectiveSpecificOptions[item.Key] = item.Value; 177effectiveSpecificOptions[item.Key] = item.Value;
Microsoft.CodeAnalysis.CodeStyle (22)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
84result[kind] = index;
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (3)
567pragmasToIsUsedMap[pragma] = true; 570pragmasToIsUsedMap[lastEnablePragma.Value] = true; 601suppressMessageAttributesToIsUsedMap[attributeNode] = true;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
335_symbolValueUsageStateMap[memberSymbol] = usageInfo;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1161accumulator[key] = arrayBuilder;
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
269_dictionary[k] = updated;
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
620result[member] = index++;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
179continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
209_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 426=> _analysisDataByBasicBlockMap[basicBlock] = data; 559_reachingDelegateCreationTargets[write] = targetsBuilder; 569_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 581_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 595_reachingDelegateCreationTargets[write] = targetsBuilder;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
84s_optionsToWhitespace[options] = (spaces, whitespaces);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
93trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
93_eventNameToRegistries[eventName] = registries;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
45_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
189result[typeArguments[i]] = typeParameters[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
59mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 131mapping[typeParameter] = newTypeParameter;
Microsoft.CodeAnalysis.CSharp (34)
Binder\OpenTypeVisitor.cs (1)
46_allowedMap[node] = !_seenConstructed;
Binder\RefSafetyAnalysis.cs (2)
200_placeholderScopes[placeholder] = valEscapeScope; 465_localEscapeScopes[local] = (refEscapeScope, valEscapeScope);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
3396candidates[bound] = newBound; 3438candidates[oldCandidate] = merged;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
900containingTypeMap[containingType] = builder;
CommandLine\CSharpCommandLineParser.cs (3)
893warnAsErrors[key] = ReportDiagnostic.Error; 1380diagnosticOptions[o.Key] = o.Value; 1386diagnosticOptions[o.Key] = o.Value;
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
108hoistedLocals[key] = slotIndex;
FlowAnalysis\AbstractFlowPass.cs (2)
702_loopHeadState[node] = this.State.Clone(); 713_loopHeadState[node] = oldState;
Lowering\ClosureConversion\ClosureConversion.cs (3)
188_framePointers[thisType] = thisParameter; 705proxies[_innermostFramePointer] = new CapturedToFrameSymbolReplacement(capturedFrame, isReusable: false); 733proxies[_innermostFramePointer] = oldInnermostFrameProxy;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
849_parameterMap[p] = parameterReference; 896_parameterMap[lambdaParameter] = parameterReference;
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
342_boundRefLocalInitializers[local] = node.Right;
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
301noPiaLocalTypes[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\QuickAttributeChecker.cs (1)
82_nameToAttributeMap[name] = newValue;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
2272indexersBySignature[indexer] = indexer; 2879membersByName[name] = membersForName.Concat(typesAsSymbols); 3713membersByName[name] = FixPartialMethod(membersByName[name], prevMethod, currentMethod); 3748membersByName[name] = Remove(membersByName[name], implementationAccessor); 3820membersByName[fieldName] = Remove(membersByName[fieldName], implementationField); 3826membersByName[name] = Remove(membersByName[name], implementation);
Utilities\FirstAmongEqualsSet.cs (2)
63_dictionary[item] = item; 104_dictionary[item] = item;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
161methodToDiagnostic[owningMethod] = DiagnosticHelper.Create(
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
536candidateMembersToRemove[member] = parameter;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
91tokenToToken[secondBrace] = updatedSecondBrace;
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (3)
93replacementMap[closeParen] = ComputeNewCloseParen(colonToken, closeParen); 97replacementMap[colonToken] = colonToken.WithLeadingTrivia(thisBaseKeyword.LeadingTrivia).WithTrailingTrivia(SyntaxFactory.Space); 100replacementMap[thisBaseKeyword] = thisBaseKeyword.WithoutLeadingTrivia();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
683result[returnTypeParameter] = inferredType;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
338m[nameof(isInsideDelimiters)] = isInsideDelimiters; 339m[nameof(statementNode)] = statementNode.Kind();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (2)
359rule["dotnet_naming_symbols.kinds.applicable_kinds"] = specification; 390rule["dotnet_naming_symbols.accessibilities.applicable_accessibilities"] = specification;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
FlowAnalysis\FlowDiagnosticTests.cs (2)
387if (!warnings.ContainsKey(e.Code)) warnings[e.Code] = 0; 388warnings[e.Code] += 1;
Microsoft.CodeAnalysis.CSharp.Features (12)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
86s_operatorNameToInfo[opName] = (sortOrder: i, position);
Copilot\CSharpCopilotCodeFixProvider.DismissChangesCodeAction.cs (5)
43m["FixedMethod"] = fix; 46m["PromptTitle"] = promptTitle; 48m["DiagnosticId"] = diagnostic.Id; 49m["Message"] = diagnostic.GetMessage(); 50m["OriginalMethod"] = originalMethodNode.ToFullString();
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
161methodToDiagnostic[owningMethod] = DiagnosticHelper.Create(
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
536candidateMembersToRemove[member] = parameter;
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
91tokenToToken[secondBrace] = updatedSecondBrace;
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (3)
93replacementMap[closeParen] = ComputeNewCloseParen(colonToken, closeParen); 97replacementMap[colonToken] = colonToken.WithLeadingTrivia(thisBaseKeyword.LeadingTrivia).WithTrailingTrivia(SyntaxFactory.Space); 100replacementMap[thisBaseKeyword] = thisBaseKeyword.WithoutLeadingTrivia();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\MethodBodyModelTests.cs (2)
130if (!errors.ContainsKey(e.Code)) errors[e.Code] = 0; 131errors[e.Code] += 1;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
1837warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Suppress; 2267warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
123aliasMap[usingDecl.Alias.Name.Identifier.ValueText] = mappedName;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
683result[returnTypeParameter] = inferredType;
Microsoft.CodeAnalysis.EditorFeatures (29)
CommentSelection\AbstractToggleBlockCommentBase.cs (2)
77m[LanguageNameString] = document.Project.Language; 78m[LengthString] = subjectBuffer.CurrentSnapshot.Length;
EditAndContinue\ActiveStatementTrackingService.cs (1)
374return _trackingSpans[document.FilePath] = hasExistingSpans
ExternalAccess\IntelliCode\IntentProcessor.cs (2)
51m["intent"] = intentRequestContext.IntentName; 52m["language"] = languageName;
FindReferences\FindReferencesCommandHandler.cs (1)
140KeyValueLogMessage.Create(LogType.UserAction, m => m["type"] = "streaming"),
Formatting\FormatCommandHandler.cs (1)
62using (Logger.LogBlock(FunctionId.CommandHandler_FormatCommand, KeyValueLogMessage.Create(LogType.UserAction, m => m["Span"] = selectionOpt?.Length ?? -1), cancellationToken))
InlineRename\InlineRenameSession.cs (1)
398m["Kind"] = Enum.GetName(typeof(WorkspaceChangeKind), args.Kind);
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
194_referenceSpanToLinkedRenameSpanMap[span] = trackingSpan;
InlineRename\RenameLogMessage.cs (12)
38m[RenameInComments] = options.RenameInComments; 39m[RenameInStrings] = options.RenameInStrings; 40m[RenameOverloads] = options.RenameOverloads; 41m[RenameFile] = options.RenameFile; 43m[Committed] = (outcome & UserActionOutcome.Committed) == UserActionOutcome.Committed; 44m[Canceled] = (outcome & UserActionOutcome.Canceled) == UserActionOutcome.Canceled; 46m[ConflictResolutionFinishedComputing] = conflictResolutionFinishedComputing; 47m[PreviewChanges] = previewChanges; 49m[RenamedIdentifiersWithoutConflicts] = replacementKinds.Count(r => r == InlineRenameReplacementKind.NoConflict); 50m[ResolvableReferenceConflicts] = replacementKinds.Count(r => r == InlineRenameReplacementKind.ResolvedReferenceConflict); 51m[ResolvableNonReferenceConflicts] = replacementKinds.Count(r => r == InlineRenameReplacementKind.ResolvedNonReferenceConflict); 52m[UnresolvableConflicts] = replacementKinds.Count(r => r == InlineRenameReplacementKind.UnresolvedConflict);
LanguageServer\RazorInProcLanguageClient.cs (3)
79experimental[SimplifyMethodHandler.SimplifyMethodMethodName] = true; 80experimental[FormatNewFileHandler.FormatNewFileMethodName] = true; 81experimental[SemanticTokensRangesHandler.SemanticRangesMethodName] = true;
Shared\Extensions\ITextViewExtensions.AutoClosingViewProperty.cs (1)
88=> _map[key] = value;
Shared\Extensions\ITextViewExtensions.PerSubjectBufferProperty.cs (1)
115_subjectBufferMap[buffer] = value;
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (3)
615bufferToChanges[latestBuffer] = difference; 620bufferToChanges[latestBuffer] = new DiffResult(added: latestSpans.GetSnapshotSpanCollection(snapshot), removed: null); 629bufferToChanges[oldBuffer] = new DiffResult(added: null, removed: previousSpans.GetSnapshotSpanCollection(oldBuffer.CurrentSnapshot));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\EditorTestWorkspace.cs (4)
263mappedSpans[string.Empty] = mappedSpans.TryGetValue(string.Empty, out var emptyTextSpans) 270mappedSpans[string.Empty] = mappedSpans[string.Empty].Add(mappedSpan.ToTextSpan()); 275mappedSpans[string.Empty] = mappedSpans[string.Empty].OrderBy(s => s.End).ThenBy(s => -s.Start).ToImmutableArray(); 417tempMappedMarkupSpans[key] = PooledObjects.ArrayBuilder<TextSpan>.GetInstance();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (1)
71libraries[Path.GetFileNameWithoutExtension(reference.ItemSpecification)] = library;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (27)
InlineRename\UI\InlineRenameAdornmentManager.cs (1)
192m[nameof(useInlineAdornment)] = useInlineAdornment;
InlineRename\UI\SmartRename\SmartRenameViewModel_Telemetry.cs (17)
50m[nameof(isCommit)] = isCommit; 51m["UseSuggestionsPanel"] = true; 52m[nameof(SuggestionsPanelTelemetry.CollapseSuggestionsPanelWhenRenameStarts)] = _suggestionsPanelTelemetry.CollapseSuggestionsPanelWhenRenameStarts; 53m["CollapseSuggestionsPanelWhenRenameEnds"] = _globalOptionService.GetOption(InlineRenameUIOptionsStorage.CollapseSuggestionsPanel); 54m["smartRenameSessionInProgress"] = _smartRenameSession.IsInProgress; 55m["smartRenameCorrelationId"] = _smartRenameSession.CorrelationId; 56m["smartRenameSemanticContextUsed"] = _semanticContextUsed; 57m["smartRenameSemanticContextDelay"] = _semanticContextDelay.TotalMilliseconds; 58m["smartRenameSemanticContextError"] = _semanticContextError; 66m[nameof(isCommit)] = isCommit; 67m["UseDropDown"] = true; 68m[nameof(SuggestionsDropdownTelemetry.DropdownButtonClickTimes)] = _suggestionsDropdownTelemetry.DropdownButtonClickTimes; 69m["smartRenameSessionInProgress"] = _smartRenameSession.IsInProgress; 70m["smartRenameCorrelationId"] = _smartRenameSession.CorrelationId; 71m["smartRenameSemanticContextUsed"] = _semanticContextUsed; 72m["smartRenameSemanticContextDelay"] = _semanticContextDelay.TotalMilliseconds; 73m["smartRenameSemanticContextError"] = _semanticContextError;
QuickInfo\OnTheFlyDocsView.xaml.cs (5)
155m["ElapsedTime"] = copilotRequestTime; 165m["ElapsedTime"] = copilotRequestTime; 166m["ResponseLength"] = response.Length; 174m["ElapsedTime"] = stopwatch.Elapsed; 207m["HasDocumentationComments"] = _onTheFlyDocsInfo.HasComments;
Suggestions\SuggestedActions\SuggestedAction.cs (4)
195map[FixAllLogger.CorrelationId] = fixSome.FixAllState.CorrelationId; 196map[FixAllLogger.FixAllScope] = fixSome.FixAllState.Scope.ToString(); 202map["TelemetryId"] = telemetryId.ToString(); 208map["DiagnosticId"] = diagnosticId.GetDiagnosticID();
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
EEMetadataReferenceResolver.cs (1)
43Requests[referenceIdentity] = (result.Identity, request.Count + 1);
PDB\MethodDebugInfo.Native.cs (1)
465localNames[name] = localNames.ContainsKey(name) ? LocalKind.DuplicateName : LocalKind.ConstantName;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
145previousDeclarationMap[memberName] =
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmDataContainer.cs (1)
48_dataItems[key] = item;
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
145previousDeclarationMap[memberName] =
Microsoft.CodeAnalysis.Features (119)
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;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (2)
162currentDiagnosticSpans[diagnostic] = currentSpan; 169currentDiagnosticSpans[diagnostic] = currentSpan;
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (3)
131m[FixAllLogger.CorrelationId] = correlationId; 171m[FixAllLogger.CorrelationId] = fixAllContext.State.CorrelationId; 172m[FixAllLogger.FixAllScope] = fixAllContext.State.Scope.ToString();
CodeRefactorings\CodeRefactoringService.cs (2)
179m[TelemetryLogging.KeyName] = providerName; 180m[TelemetryLogging.KeyLanguageName] = document.Project.Language;
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
149_childFolders[firstFolder] = firstFolderInfo;
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (2)
226typeConvertibilityCache[methodSymbol.ReturnType] = isConvertible; 244stringCache[symbol] = name;
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
388parameterToPropMap[parameter.Name] = prop;
Diagnostics\DiagnosticAnalyzerTelemetry.cs (21)
71m["Id"] = correlationId; 78m["Analyzer.Name"] = analyzerName; 83m["Analyzer.NameHashCode"] = AnalyzerNameForTelemetry.ComputeSha256Hash(analyzerName); 86m["Analyzer.CodeBlock"] = analyzerInfo.CodeBlockActionsCount; 87m["Analyzer.CodeBlockStart"] = analyzerInfo.CodeBlockStartActionsCount; 88m["Analyzer.CodeBlockEnd"] = analyzerInfo.CodeBlockEndActionsCount; 89m["Analyzer.Compilation"] = analyzerInfo.CompilationActionsCount; 90m["Analyzer.CompilationStart"] = analyzerInfo.CompilationStartActionsCount; 91m["Analyzer.CompilationEnd"] = analyzerInfo.CompilationEndActionsCount; 92m["Analyzer.SemanticModel"] = analyzerInfo.SemanticModelActionsCount; 93m["Analyzer.SyntaxNode"] = analyzerInfo.SyntaxNodeActionsCount; 94m["Analyzer.SyntaxTree"] = analyzerInfo.SyntaxTreeActionsCount; 95m["Analyzer.AdditionalFile"] = analyzerInfo.AdditionalFileActionsCount; 96m["Analyzer.Operation"] = analyzerInfo.OperationActionsCount; 97m["Analyzer.OperationBlock"] = analyzerInfo.OperationBlockActionsCount; 98m["Analyzer.OperationBlockStart"] = analyzerInfo.OperationBlockStartActionsCount; 99m["Analyzer.OperationBlockEnd"] = analyzerInfo.OperationBlockEndActionsCount; 100m["Analyzer.Symbol"] = analyzerInfo.SymbolActionsCount; 101m["Analyzer.SymbolStart"] = analyzerInfo.SymbolStartActionsCount; 102m["Analyzer.SymbolEnd"] = analyzerInfo.SymbolEndActionsCount; 103m["Analyzer.Suppression"] = analyzerInfo.SuppressionActionsCount;
Diagnostics\Log\DiagnosticLogger.cs (4)
27m[From] = from; 28m[Id] = telemetry ? id : id.GetHashCode().ToString(); 29m[HasDescription] = description; 30m[Uri] = telemetry ? uri : uri.GetHashCode().ToString();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1501activeOrMatchedLambdas[oldLambdaBody] = info.WithMatch(lambdaBodyMatch, newLambdaBody);
EditAndContinue\CommittedSolution.cs (2)
105_documentState[documentId] = state; 304_documentState[documentId] = newState;
EditAndContinue\DebuggingSession.cs (1)
313_projectBaselines[baselineProject.Id] = baselines;
EditAndContinue\DebuggingSessionTelemetry.cs (29)
81map["SolutionSessionId"] = data.SolutionSessionId.ToString("B").ToUpperInvariant(); 82map[SessionId] = debugSessionId; 83map["SessionCount"] = data.EditSessionData.Count(session => session.InBreakState); 84map["EmptySessionCount"] = data.EmptyEditSessionCount; 85map["HotReloadSessionCount"] = data.EditSessionData.Count(session => !session.InBreakState); 86map["EmptyHotReloadSessionCount"] = data.EmptyHotReloadEditSessionCount; 95map[SessionId] = debugSessionId; 96map[EditSessionId] = editSessionId; 98map["HadCompilationErrors"] = editSessionData.HadCompilationErrors; 99map["HadRudeEdits"] = editSessionData.HadRudeEdits; 103map["HadValidChanges"] = editSessionData.HadValidChanges; 104map["HadValidInsignificantChanges"] = editSessionData.HadValidInsignificantChanges; 106map["RudeEditsCount"] = editSessionData.RudeEdits.Length; 109map["EmitDeltaErrorIdCount"] = editSessionData.EmitErrorIds.Length; 112map["InBreakState"] = editSessionData.InBreakState; 114map["Capabilities"] = (int)editSessionData.Capabilities; 117map["ProjectIdsWithAppliedChanges"] = editSessionData.Committed ? editSessionData.ProjectsWithValidDelta.Select(ProjectIdToPii) : ""; 120map["ProjectIdsWithUpdatedBaselines"] = editSessionData.ProjectsWithUpdatedBaselines.Select(ProjectIdToPii); 123map["EmitDifferenceMilliseconds"] = (long)editSessionData.EmitDifferenceTime.TotalMilliseconds; 129map["TotalAnalysisMilliseconds"] = (long)editSessionData.AnalysisTime.TotalMilliseconds; 136map[SessionId] = debugSessionId; 137map[EditSessionId] = editSessionId; 138map["ErrorId"] = errorId; 146map[SessionId] = debugSessionId; 147map[EditSessionId] = editSessionId; 149map["RudeEditKind"] = editKind; 150map["RudeEditSyntaxKind"] = syntaxKind; 151map["RudeEditBlocking"] = editSessionData.HadRudeEdits; 152map["RudeEditProjectId"] = ProjectIdToPii(projectId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (16)
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; 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)
75_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)
79map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeBeginningOfSpan]); 82map[tokens[TriviaLocation.AfterBeginningOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterBeginningOfSpan]); 85map[tokens[TriviaLocation.BeforeEndOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeEndOfSpan]); 88map[tokens[TriviaLocation.AfterEndOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterEndOfSpan]); 115tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true); 116tokens[TriviaLocation.BeforeEndOfSpan] = root.FindTokenOnLeftOfPosition(textSpan.End, includeSkipped: false); 117tokens[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
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
366renameTable[symbol] = semanticFacts
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
616mapping[argumentParameter] = i;
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
127anonymousTypeToName[type] = GenerateStructuralTypeName(current);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
74_namedTypes[symbol] = orderAndCount;
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
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
84result[kind] = index;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
335_symbolValueUsageStateMap[memberSymbol] = usageInfo;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
189result[typeArguments[i]] = typeParameters[i];
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
345canEdit[documentId] = canEditDocument;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\SourceMarkers.cs (1)
73tagMap[id] = (tagMap[id].start, match.Index);
Microsoft.CodeAnalysis.LanguageServer (8)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
147_watchedFiles[filePath] = existingWatches + 1; 172_watchedFiles[filePath] = existingWatches - 1;
Telemetry\VSCodeRequestTelemetryLogger.cs (6)
40m[TelemetryLogging.KeyName] = ServerTypeName + "." + workspaceCountMetricName + "." + projectsLoaded; 41m[TelemetryLogging.KeyValue] = 1L; 42m[TelemetryLogging.KeyMetricName] = workspaceCountMetricName; 43m["server"] = ServerTypeName; 44m["workspace"] = workspaceCountMetricName; 45m["projectsLoaded"] = projectsLoaded;
Microsoft.CodeAnalysis.LanguageServer.Protocol (44)
Features\CodeFixes\CodeFixService.cs (3)
529m[TelemetryLogging.KeyName] = fixerName; 530m[TelemetryLogging.KeyLanguageName] = document.Project.Language; 671uniqueDiagosticToEquivalenceKeysMap[diagnostic] = equivalenceKeys;
Handler\Completion\CompletionResultFactory.cs (1)
283commitCharacterReferences[commitCharacters] = existingCount;
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
238idToPreviousDiagnosticParams[id.Value] = diagnosticParams;
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (2)
89_categoryToLspChanged[category] = true; 122_categoryToLspChanged[category] = false;
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
293fieldOffsets[fieldPart] = fieldOffsets.GetValueOrDefault(fieldPart, []).Add(fieldSpan);
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
56_projectIdToLastComputedChecksum[project.Id] = projectChecksum;
Handler\ServerLifetime\InitializeHandler.cs (2)
43m["serverKind"] = context.ServerKind.ToTelemetryString(); 44m["capabilities"] = JsonSerializer.Serialize(serverCapabilities, ProtocolConversions.LspJsonSerializerOptions);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (1)
149result[document] = requestParams;
Handler\Telemetry\RequestTelemetryLogger.cs (26)
41m[TelemetryLogging.KeyName] = ServerTypeName + "." + workspaceCounterMetricName; 42m[TelemetryLogging.KeyValue] = 1L; 43m[TelemetryLogging.KeyMetricName] = workspaceCounterMetricName; 44m["server"] = ServerTypeName; 45m["workspace"] = workspaceCounterMetricName; 54m[TelemetryLogging.KeyName] = ServerTypeName + "." + metricName; 55m[TelemetryLogging.KeyValue] = 1L; 56m[TelemetryLogging.KeyMetricName] = metricName; 57m["server"] = ServerTypeName; 58m["usedForkedSolution"] = usedForkedSolution; 72m[TelemetryLogging.KeyName] = ServerTypeName; 73m[TelemetryLogging.KeyValue] = (long)queuedDuration.TotalMilliseconds; 74m[TelemetryLogging.KeyMetricName] = "TimeInQueue"; 75m["server"] = ServerTypeName; 80m[TelemetryLogging.KeyName] = ServerTypeName + "." + methodName + "." + language; 81m[TelemetryLogging.KeyValue] = (long)requestDuration.TotalMilliseconds; 82m[TelemetryLogging.KeyMetricName] = "RequestDuration"; 83m["server"] = ServerTypeName; 84m["method"] = methodName; 85m["language"] = language; 98m[TelemetryLogging.KeyName] = ServerTypeName + "." + methodName + "." + language + "." + metricName; 99m[TelemetryLogging.KeyValue] = 1L; 100m[TelemetryLogging.KeyMetricName] = metricName; 101m["server"] = ServerTypeName; 102m["method"] = methodName; 103m["language"] = language;
Workspaces\LspWorkspaceManager.cs (2)
412_cachedLspSolutions[workspace] = (forkedFromVersion: null, workspaceCurrentSolution); 436_cachedLspSolutions[workspace] = (workspaceCurrentSolution.WorkspaceVersion, lspSolution);
Workspaces\LspWorkspaceRegistrationService.cs (4)
32m["WorkspaceKind"] = workspace.Kind; 33m["WorkspaceCanOpenDocuments"] = workspace.CanOpenDocuments; 34m["WorkspaceCanChangeActiveContextDocument"] = workspace.CanChangeActiveContextDocument; 35m["WorkspacePartialSemanticsEnabled"] = workspace.PartialSemanticsEnabled;
Microsoft.CodeAnalysis.Remote.ServiceHub (14)
Host\AssetProvider.cs (1)
89Logger.Log(FunctionId.AssetService_Perf, KeyValueLogMessage.Create(map => map["SolutionSyncTime"] = elapsed.TotalMilliseconds));
Host\TestUtils.cs (2)
188var callback = static (Checksum checksum, object asset, Dictionary<Checksum, object> map) => { map[checksum] = asset; }; 231var callback = static (Checksum checksum, object asset, Dictionary<Checksum, object> map) => { map[checksum] = asset; };
Services\DiagnosticAnalyzer\PerformanceQueue.cs (1)
177map[assignedAnalyzerNumber] = (timeSpan.TotalMilliseconds - minSpan.TotalMilliseconds) / fileCount;
Services\DiagnosticAnalyzer\PerformanceTrackerService.cs (3)
83m[AnalyzerId] = analyzerId; 84m[Delay] = delay; 85m[ForSpanAnalysis] = forSpanAnalysis;
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (2)
60m["Host"] = hostProcessId; 61m["Framework"] = RuntimeInformation.FrameworkDescription;
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (4)
65m[nameof(analyzerInfo.AnalyzerId)] = isInternalUser ? analyzerInfo.AnalyzerId : analyzerInfo.PIISafeAnalyzerId; 66m[nameof(analyzerInfo.Average)] = analyzerInfo.Average; 67m[nameof(analyzerInfo.AdjustedStandardDeviation)] = analyzerInfo.AdjustedStandardDeviation; 68m[nameof(forSpanAnalysis)] = forSpanAnalysis;
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
40m[TelemetryLogging.KeyValue] = elapsed;
Microsoft.CodeAnalysis.Remote.Workspaces (1)
SolutionAssetStorage.cs (1)
91_checksumToScope[checksum] = scope;
Microsoft.CodeAnalysis.Scripting (1)
ScriptState.cs (1)
126map[Variables[i].Name] = i;
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\OperationTreeVerifier.cs (1)
288_labelIdMap[symbol] = id;
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
271sourceTypes[target] = symbolSourceTypes;
Diagnostics\OptionsDiagnosticAnalyzer.cs (1)
40_mismatchedOptions[callerName] = options;
Metadata\ILValidation.cs (2)
349=> result[key] = result.TryGetValue(key, out var existing) ? existing + value : value; 380=> result[key] = result.TryGetValue(key, out var existing) ? existing + ", " + value : "// " + value;
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
177kvp[key] = value;
TestableCompiler.cs (1)
217fileSystem.Map[Path.Combine(sdkPath, referenceInfo.FileName)] = new TestableFile(referenceInfo.ImageBytes);
Microsoft.CodeAnalysis.Workspaces (92)
CodeFixesAndRefactorings\FixAllLogger.cs (23)
64m[CorrelationId] = fixAllState.CorrelationId; 68m[providerKey] = fixAllState.Provider.GetType().FullName!; 69m[CodeActionEquivalenceKey] = fixAllState.CodeActionEquivalenceKey; 70m[LanguageName] = fixAllState.Project.Language; 74m[providerKey] = fixAllState.Provider.GetType().FullName!.GetHashCode().ToString(); 75m[CodeActionEquivalenceKey] = fixAllState.CodeActionEquivalenceKey?.GetHashCode().ToString(); 76m[LanguageName] = fixAllState.Project.Language.GetHashCode().ToString(); 79m[FixAllScope] = fixAllState.Scope.ToString(); 83m[DocumentCount] = fixAllState.Project.DocumentIds.Count; 87m[DocumentCount] = fixAllState.Solution.Projects.Sum(p => p.DocumentIds.Count); 120m[CorrelationId] = correlationId; 121m[Result] = value; 149m[CorrelationId] = correlationId; 152m[Result] = value; 160m[CorrelationId] = correlationId; 161m[DocumentsWithDiagnosticsToFix] = documentsAndDiagnosticsToFixMap.Count; 162m[TotalDiagnosticsToFix] = documentsAndDiagnosticsToFixMap.Values.Sum(v => v.Length); 170m[CorrelationId] = correlationId; 171m[ProjectsWithDiagnosticsToFix] = projectsAndDiagnosticsToFixMap.Count; 172m[TotalDiagnosticsToFix] = projectsAndDiagnosticsToFixMap.Values.Sum(v => v.Length); 180m[CorrelationId] = correlationId; 181m[TotalFixesToMerge] = count; 186=> KeyValueLogMessage.Create(LogType.UserAction, m => m[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)
128result[assembly] = projectAndVisibility; 383s_metadataIdToAssemblyName[metadataId] = name;
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
243symbolsWithin[symbol] = group;
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (2)
60_groupMap[dehydrated] = symbolGroup; 62_definitionMap[pair.Key] = pair.Value;
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
303interceptsLocationInfo[interceptsLocationData] = node.FullSpan;
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (3)
354extensionMethodInfo[receiverTypeName] = arrayBuilder; 379allAliases[aliasName] = null; 383allAliases[aliasName] = name;
ReassignedVariable\AbstractReassignedVariableService.cs (1)
170symbolToIsReassigned[symbol] = reassignedResult;
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
372reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan); 454reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
48signatureToConflictingMember[signature] = member;
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
36_documentToModifiedSpansMap[documentId] = spans; 47_documentToComplexifiedSpansMap[documentId] = spans;
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
38m[kv.Key.ToString()] = kv.Value.GetCount();
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (2)
73map[nameof(telemetryKey.Identity.AssemblyVersion)] = telemetryKey.Identity.AssemblyVersion.ToString(); 75map[nameof(telemetryKey.FileVersion)] = telemetryKey.FileVersion;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1161accumulator[key] = arrayBuilder;
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
103_dictionary[k] = valueSet.WithAddedItem(v);
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (2)
149_knownAssemblyPathsBySimpleName[simpleName] = paths.Add(fullPath); 225_analyzerAssemblyInfoMap[originalAnalyzerPath] = (assemblyName, realPath);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
269_dictionary[k] = updated;
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
620result[member] = index++;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
179continueDispatchAfterFinally[current.EnclosingRegion] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (6)
209_analysisDataByBasicBlockMap[basicBlock] = CreateBlockAnalysisData(); 426=> _analysisDataByBasicBlockMap[basicBlock] = data; 559_reachingDelegateCreationTargets[write] = targetsBuilder; 569_lambdaTargetsToAccessingCfgMap[lambdaTarget] = ControlFlowGraph; 581_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph; 595_reachingDelegateCreationTargets[write] = targetsBuilder;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
329previousChangesMap[currentToken.Token] = triviaInfo.Spaces;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
84s_optionsToWhitespace[options] = (spaces, whitespaces);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
93trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
93_eventNameToRegistries[eventName] = registries;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
45_cache[key] = new ReferenceCountedDisposable<Entry>.WeakReference(disposable);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
222importToSyntax[namespaceSymbol] = namespaceSyntax;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
59mapping[method.TypeParameters[i]] = updatedTypeParameters[i]; 131mapping[typeParameter] = newTypeParameter;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
102collisionMap[name] = isCollision;
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
198_queryToStatement[query] = statement;
Storage\SQLite\v2\SQLitePersistentStorage.cs (2)
178d["Result"] = exception.Result.ToString(); 179d["Message"] = exception.Message;
Storage\StorageDatabaseLogger.cs (2)
43m[Kind] = ex.GetType().ToString(); 44m[Reason] = ex.ToString();
Telemetry\TelemetryLogging.cs (3)
67m[KeyName] = name.GetFormattedText(); 68m[KeyValue] = value; 96m[KeyName] = metricName.GetFormattedText();
Utilities\Documentation\XmlDocumentationProvider.cs (1)
80comments[e.Attribute("name").Value] = e.ToString();
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (2)
131_referenceFileWatchingTokens[fullFilePath] = (token, RefCount: count + 1); 175_referenceFileWatchingTokens[fullFilePath] = (watchedFileReference.Token, newRefCount);
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
321m["ProjectGuid"] = projectState.ProjectInfo.Attributes.TelemetryId.ToString("B"); 322m["SyntaxTreesParsed"] = parsedTrees; 323m["HadCompilation"] = hadCompilation;
Workspace\Solution\FileTextLoader.cs (2)
247m["FileLength"] = fileLength; 248m["Ext"] = PathUtilities.GetExtension(path);
Workspace\Solution\ProjectState.cs (1)
148result[contentHash] = documentId;
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
284m["Errors"] = string.Join(";", groups);
Workspace\Solution\TextDocumentStates.cs (1)
368result[filePath] = result.TryGetValue(filePath, out var existingValue)
Workspace\Workspace.cs (3)
389relatedDocumentIdsAndStates[relatedDocumentId] = changedDocument.DocumentState; 1455outputAssemblyToProjectIdMap[p.OutputFilePath!] = p.Id; 1460outputAssemblyToProjectIdMap[p.OutputRefFilePath!] = p.Id;
Workspace\Workspace_Editor.cs (4)
814_bufferToDocumentInCurrentContextMap[textContainer] = id; 817_bufferToAssociatedDocumentsMap[textContainer] = docIds; 844_bufferToAssociatedDocumentsMap[textContainer] = docIds; 845_bufferToDocumentInCurrentContextMap[textContainer] = docIds[0];
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\ProjectFileExtensionRegistry.cs (1)
41_extensionToLanguageMap[fileExtension] = language;
MSBuild\ProjectMap.cs (1)
120_projectPathToProjectInfosMap[projectFilePath] = projectInfos;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1161accumulator[key] = arrayBuilder;
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
129_cache[key] = result;
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
269_dictionary[k] = updated;
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
47_dictionary[k] = set;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
TestFiles\Resources.cs (1)
59cache[name] = result;
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
776s_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.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
71runtimeItems[runtimeName] = runtimeItems[runtimeName].Concat(items);
Microsoft.DotNet.ArcadeLogging (3)
PipelinesLogger.cs (3)
217_taskTelemetryInfoMap[parentId] = telemetryInfo; 256_buildEventContextMap[e.BuildEventContext] = projectInfo.Id; 258_projectInfoMap[projectInfo.Id] = projectInfo;
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\MSBuildListSplitter.cs (1)
44values[key] = value;
Microsoft.DotNet.Build.Tasks.Packaging (23)
ApplyBaseLine.cs (1)
67baseLineVersions[baseLinePackage.ItemSpec] = versions = new SortedSet<Version>();
ApplyMetaPackages.cs (1)
108metaPackagesToAdd[metaPackage] = metaPackageFrameworks = new HashSet<NuGetFramework>();
ApplyPreReleaseSuffix.cs (1)
130_stablePackageVersions[stablePackageId] = newVersion;
GeneratePackageReport.cs (3)
148report.Targets[target] = reportTarget; 303packageItems[packageId] = new List<PackageItem>(); 328_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)
115collection[item.ItemSpec] = item; 120collection[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)
141_suppressions[key] = values;
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
37values[key] = value;
Microsoft.DotNet.Build.Tasks.Workloads (30)
CreateVisualStudioWorkload.wix.cs (7)
157_supportsMachineArch[manifestPackage.SdkFeatureBand] = manifestPackage.SupportsMachineArch; 171manifestMsisByPlatform[platform] = manifestMsi; 250buildData[sourcePackage] = new BuildData(WorkloadPackPackage.Create(pack, sourcePackage, platforms, PackageRootDirectory, 261buildData[sourcePackage].FeatureBands[platform] = new(); 268packsInWorkloadByPlatform[platform] = new(); 294packGroupPackages[uniquePackGroupKey] = groupPackage; 299groupPackage.ManifestsPerPlatform[platform] = new();
Msi\MsiBase.wix.cs (3)
243NuGetPackageFiles[msi.GetMetadata(Workloads.Metadata.FullPath)] = @"\data"; 247NuGetPackageFiles[Path.GetFullPath(msiJsonPath)] = "\\data\\msi.json"; 249NuGetPackageFiles["LICENSE.TXT"] = @"\";
Msi\MsiPayloadPackageProject.wix.cs (6)
42ReplacementTokens[PayloadPackageTokens.__AUTHORS__] = package.Authors; 43ReplacementTokens[PayloadPackageTokens.__COPYRIGHT__] = package.Copyright; 44ReplacementTokens[PayloadPackageTokens.__DESCRIPTION__] = package.Description; 45ReplacementTokens[PayloadPackageTokens.__PACKAGE_ID__] = $"{package.Id}.Msi.{platform}"; 46ReplacementTokens[PayloadPackageTokens.__PACKAGE_PROJECT_URL__] = package.ProjectUrl; 47ReplacementTokens[PayloadPackageTokens.__PACKAGE_VERSION__] = $"{package.PackageVersion}";
Msi\WorkloadManifestMsi.wix.cs (2)
68NuGetPackageFiles[file] = @"\data\extractedManifest\" + Path.GetFileName(file); 101NuGetPackageFiles[jsonFullPath] = @"\data\extractedManifest\" + Path.GetFileName(jsonFullPath);
Msi\WorkloadPackGroupMsi.wix.cs (1)
70sourceDirectoryNamesAndValues[heat.SourceVariableName] = heat.SourceDirectory;
Swix\ComponentSwixProject.cs (6)
42ReplacementTokens[SwixTokens.__VS_COMPONENT_TITLE__] = component.Title; 43ReplacementTokens[SwixTokens.__VS_COMPONENT_DESCRIPTION__] = component.Description; 44ReplacementTokens[SwixTokens.__VS_COMPONENT_CATEGORY__] = component.Category; 45ReplacementTokens[SwixTokens.__VS_IS_UI_GROUP__] = component.IsUiGroup ? "yes" : "no"; 46ReplacementTokens[SwixTokens.__VS_PACKAGE_OUT_OF_SUPPORT__] = OutOfSupport ? "yes" : "no"; 47ReplacementTokens[SwixTokens.__VS_IS_ADVERTISED_PACKAGE__] = component.Advertise ? "yes" : "no";
Swix\MsiSwixProject.wix.cs (1)
92ReplacementTokens[SwixTokens.__VS_PAYLOAD_SOURCE__] = msi.GetMetadata(Metadata.FullPath);
Swix\SwixProjectBase.cs (4)
66ReplacementTokens[SwixTokens.__VS_PACKAGE_NAME__] = Id; 67ReplacementTokens[SwixTokens.__VS_PACKAGE_VERSION__] = $"{Version}"; 77ReplacementTokens[SwixTokens.__VS_PACKAGE_NAME__] = Id; 78ReplacementTokens[SwixTokens.__VS_PACKAGE_VERSION__] = $"{Version}";
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.Helix.JobSender (1)
JobDefinition.cs (1)
119_properties[key] = value;
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
107map[partUri] = ReplacementFiles[i];
Microsoft.DotNet.Open.Api.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
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.SharedFramework.Sdk (8)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (3)
122assemblies[assemblyInfo.Name] = assemblyInfo; 147ignoredReferences[name] = version; 314suspectCycles[suspectAssembly] = cycle;
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.SignCheckLibrary (6)
Verification\ArchiveVerifier.cs (1)
57archiveMap[archiveEntry.FullName] = aliasFullName;
Verification\Jar\JarAttributes.cs (1)
73jarAttributes[attributeName] = attributeValue;
Verification\MsiVerifier.cs (1)
39originalFiles[key] = installPackage.Files[key].TargetPath;
Verification\SignatureVerificationResult.cs (3)
214Detail[key] = detail; 218Detail[key] = String.Join(", ", currentValue, detail); 223Detail[key] = detail;
Microsoft.DotNet.SignTool (7)
src\Configuration.cs (7)
158_whichPackagesTheFileIsIn[fileUniqueKey] = packages; 225_zipDataMap[fileSignInfo.FileContentKey] = zipData; 233_zipDataMap[fileSignInfo.FileContentKey] = msiData; 250_filesByContentKey[fileSignInfo.FileContentKey] = fileSignInfo; 332_hashToCollisionIdMap[signedFileContentKey] = collisionPriorityId; 546_errors[code] = filesErrored; 719_whichPackagesTheFileIsIn[fileUniqueKey] = packages;
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
232packageOrigin[id] = origin;
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
Modeler\EnumOpenApiExtension.cs (1)
24set => _value["name"] = new OpenApiString(value);
Modeler\PaginatedOpenApiExtension.cs (2)
24set => _value["page"] = new OpenApiString(value); 30set => _value["pageSize"] = new OpenApiString(value);
Modeler\ServiceClientModelFactory.cs (2)
375_enumTypeModels[enumName] = value = new EnumTypeModel( 411return _types[id] = CreateTypeModel(id, schema);
ServiceClientCodeFactory.cs (1)
57_files[filePath] = new CodeFile(filePath, file.Contents + writer);
Microsoft.DotNet.VersionTools (5)
Automation\VersionsRepoUpdater.cs (1)
69packages[package.Key] = package.Value;
BuildInfo.cs (1)
187packages[id] = version;
BuildManifest\Model\EndpointModel.cs (3)
28set { Attributes[nameof(Id)] = value; } 34set { Attributes[nameof(Type)] = value; } 40set { Attributes[nameof(Url)] = value; }
Microsoft.DotNet.VersionTools.Tasks (1)
BaseDependenciesTask.cs (1)
236DependencyInfoConfigItems[dependencyInfo] = info;
Microsoft.Extensions.ApiDescription.Client.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.Extensions.Caching.Hybrid.Tests (1)
StampedeTests.cs (1)
445counts[obj] = count + 1;
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.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
128data[key] = value;
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
120data[normalizedKey.Substring(_normalizedPrefix.Length)] = value;
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
81data[key] = value;
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationFileParser.cs (2)
77_data[_paths.Peek()] = null; 105_data[key] = value.ToString();
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteChain.cs (1)
35_callSiteChain[serviceIdentifier] = new ChainItemInfo(_callSiteChain.Count, implementationType);
ServiceLookup\CallSiteFactory.cs (1)
85_descriptorLookup[cacheKey] = cacheItem.Add(descriptor);
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
863_stringPool[s] = s;
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.ResourceMonitoring.Tests (1)
Linux\Resources\HardcodedValueFileSystem.cs (1)
92_fileContent[file.FullName] = value;
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\CollectedMeasurement.cs (1)
31d[tag.Key] = tag.Value;
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
105dict[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 (3)
Latency\Internal\HttpRequestLatencyListener.cs (3)
127socket[key] = tokenIssuer.GetCheckpointToken(_socketMap[key]); 133nameResolution[key] = tokenIssuer.GetCheckpointToken(_nameResolutionMap[key]); 139http[key] = tokenIssuer.GetCheckpointToken(_httpMap[key]);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
299Tags[tag.Key] = tag.Value;
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (1)
161options.Tokens.ProviderMap[providerName] = new TokenProviderDescriptor(provider);
UserManager.cs (1)
1602_tokenProviders[providerName] = provider;
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Parser.cs (3)
581methods[lm.Name] = currentCount + 1; 586methods[lm.Name] = 1; //start from 1 781templateMap[templateName] = templateName;
Microsoft.Extensions.ObjectPool.Microbenchmark (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.Extensions.Options.SourceGeneration (2)
OptionsSourceGenContext.cs (1)
40AttributesToGenerate[attributeName] = value;
Parser.cs (1)
724_synthesizedValidators[mt] = result;
Microsoft.Extensions.SecretManager.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
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)
142_loggers[categoryName] = logger;
Microsoft.Gen.ComplianceReports (2)
Parser.cs (2)
131classifiedMembers[ci.Name] = ci; 192classifiedMembers[ci.Name] = ci;
Microsoft.Gen.Logging (2)
Parsing\Parser.cs (1)
102parameterSymbols[lp] = paramSymbol;
Parsing\Parser.LogProperties.cs (1)
117sensitivePropsFromCtor[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.Interop.ComInterfaceGenerator (4)
ComInterfaceContext.cs (3)
56nameToContextCache[iface.ThisInterfaceKey] = baselessCtx; 74nameToContextCache[iface.ThisInterfaceKey] = diagnostic; 80nameToContextCache[iface.ThisInterfaceKey] = ctx;
ComMethodContext.cs (1)
212allMethodsCache[iface] = imm;
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
49uniqueMarshallersToFix[uniqueMarshallerFixKey] = membersToAdd = new HashSet<string>(); 81partiallyUpdatedSymbols[marshallerType] = newMarshallerType;
Microsoft.Maui (22)
ActivationState.cs (1)
89 state[key] = val;
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>();
Platform\iOS\KeyboardAcceleratorExtensions.cs (2)
57 MenuFlyoutItemHandler.menus[index] = virtualView; 70 MenuFlyoutItemHandler.menus[index] = virtualView;
PropertyMapper.cs (1)
37 _mapper[key] = action;
Microsoft.Maui.Controls (61)
AnimationExtensions.cs (2)
280 s_animations[key] = info; 319 s_kinetics[key] = tick;
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (3)
546 _dataSource.Counts[section] = exArgs.Count; 900 _prototypicalCellByTypeOrDataTemplate[itemTypeOrDataTemplate] = protoCell; 1442 _templateToId[itemTemplate] = key;
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (1)
278 _sectionRenderers[renderer.ViewController] = renderer;
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (5)
357 _trackers[page] = tracker; 417 _completionTasks[_renderer.ViewController] = task; 437 _completionTasks[_renderer.ViewController] = task; 628 _trackers[page] = tracker; 633 _completionTasks[pageViewController] = completionSource;
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
548 _renderers[shellContent] = renderer;
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (1)
178 _cells[context] = cell;
Compatibility\Handlers\TableView\iOS\TableViewModelRenderer.cs (2)
64 _headerCells[section] = table.Model.GetHeaderCell((int)section); 76 _headerCells[section] = table.Model.GetHeaderCell((int)section);
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);
Handlers\Items\iOS\ItemsViewController.cs (1)
769 _measurementCells[ItemsSource[indexPath]] = templatedCell;
Handlers\Items\iOS\ItemsViewLayout.cs (1)
618 _cellSizeCache[item] = size;
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)
115 _viewInfo[view] = new AbsoluteLayoutInfo(); 137 _viewInfo[view] = new AbsoluteLayoutInfo(); 149 _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;
Platform\GestureManager\GesturePlatformManager.iOS.cs (1)
660 _gestureRecognizers[recognizer] = nativeRecognizers;
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)
80 convertedValues[decl] = (value = Convert(styleable, decl.Value, property));
TemplatedItemsList.cs (1)
1329 _oldNames[list] = list.ShortName;
VisualElement\VisualElement.cs (1)
1169 _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; 709 locs[importedPropDeclTypeRef] = loc; 1832 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.Compatibility (10)
iOS\CollectionView\ItemsViewController.cs (1)
601 _measurementCells[ItemsSource[indexPath]] = templatedCell;
iOS\CollectionView\ItemsViewLayout.cs (1)
589 _cellSizeCache[item] = size;
iOS\EventTracker.cs (1)
610 _gestureRecognizers[recognizer] = nativeRecognizer;
iOS\RendererPool.cs (1)
136 _freeRenderers[rendererType] = renderers = new Stack<IVisualElementRenderer>();
iOS\Renderers\CarouselPageRenderer.cs (1)
257 _containerMap[page] = container;
iOS\Renderers\ListViewRenderer.cs (3)
572 _dataSource.Counts[section] = exArgs.Count; 919 _prototypicalCellByTypeOrDataTemplate[itemTypeOrDataTemplate] = protoCell; 1424 _templateToId[itemTemplate] = key;
iOS\Renderers\TableViewModelRenderer.cs (2)
43 _headerCells[section] = View.Model.GetHeaderCell((int)section); 53 _headerCells[section] = View.Model.GetHeaderCell((int)section);
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)
473_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 (56)
Commands\DataCommand.cs (2)
174averageMetric[nameOfMetric] += metricValue; 185averageMetric[nameOfMetric] = Double.NaN;
Commands\TypeInfoCommand.cs (1)
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.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 (1)
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 (43)
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 (21)
267res["boosting_type"] = boosterParams.BoosterName; 269res["verbose"] = Silent ? "-1" : "1"; 271res["nthread"] = NumberOfThreads.Value; 273res["seed"] = (Seed.HasValue) ? Seed : host.Rand.Next(); 275res[GetOptionName(nameof(MaximumBinCountPerFeature))] = MaximumBinCountPerFeature; 276res[GetOptionName(nameof(HandleMissingValue))] = HandleMissingValue; 277res[GetOptionName(nameof(UseZeroAsMissingValue))] = UseZeroAsMissingValue; 278res[GetOptionName(nameof(MinimumExampleCountPerGroup))] = MinimumExampleCountPerGroup; 279res[GetOptionName(nameof(MaximumCategoricalSplitPointCount))] = MaximumCategoricalSplitPointCount; 280res[GetOptionName(nameof(CategoricalSmoothing))] = CategoricalSmoothing; 281res[GetOptionName(nameof(L2CategoricalRegularization))] = L2CategoricalRegularization; 389GbmOptions["objective"] = split[0].Split('=')[1]; 472GbmOptions["tree_learner"] = ParallelTraining.ParallelType(); 477GbmOptions[pair.Key] = pair.Value; 510GbmOptions["learning_rate"] = learningRate; 511GbmOptions["num_leaves"] = numberOfLeaves; 512GbmOptions["min_data_per_leaf"] = minimumExampleCountPerLeaf; 637GbmOptions["categorical_feature"] = string.Join(",", catIndices); 869ivPair[idx] = -1; 881ivPair[newColIdx] = fv; 890ivPair[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 (15)
Model\BertTokenizer.cs (3)
823notNormalizedSpecialTokens[token] = id; 835vocab[new StringSpanOrdinalKey(normalizedToken)] = id; 838specialTokens[normalizedToken] = id;
Model\BPETokenizer.cs (1)
860_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\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.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)
648result[OutputColumn] = new SchemaShape.Column(OutputColumn, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false, 654result[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)
542_idvToTfMapping[x] = x; 545_idvToTfMapping[x] = x; 941outputCache.Outputs[activeOutputColNames[j]] = tensors[j]; 1271resultDic[_options.OutputColumns[i]] = new SchemaShape.Column(_options.OutputColumns[i],
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
107_internCallCountsByString[internedString] = priorCount + 1;
Microsoft.NET.StringTools.net35 (2)
WeakStringCache.Locking.cs (1)
71_stringsByHashCode[hashCode] = handle;
WeakStringCacheInterner.cs (1)
107_internCallCountsByString[internedString] = priorCount + 1;
Microsoft.VisualStudio.LanguageServices (26)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
71Logger.Log(FunctionId.DiagnosticAnalyzerService_Analyzers, KeyValueLogMessage.Create(m => m["AnalyzerCount"] = analyzerCount, LogLevel.Debug));
ErrorReporting\VisualStudioErrorReportingService.cs (2)
54m["Message"] = message; 55m["FeatureName"] = featureName.ToString();
Extensions\VisualStudioWorkspaceImplExtensions.cs (1)
35itemIdToImageHandle[itemId] = imageHandle;
Implementation\VirtualMemoryNotificationListener.cs (2)
101m["MSG"] = msg; 102m["MemoryLeft"] = (long)wParam;
KeybindingReset\KeybindingsResetLogger.cs (2)
17m[nameof(Name)] = Name; 18m[nameof(action)] = action;
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (1)
57this.filters[textView] = filter;
Progression\GraphBuilder.cs (5)
246_nodeToSymbolMap[node] = symbol; 247_nodeToContextProjectMap[node] = contextProject; 250_nodeToContextDocumentMap[node] = contextDocument; 705_nodeToContextDocumentMap[node] = document; 706_nodeToContextProjectMap[node] = document.Project;
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
361_folderNameMap[folderItemID] = folderNames;
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
171_metadataCache[fullPath] = (snapshotTimestamp, metadata);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (1)
95ruleSetRenames[oldFileFullPath] = newFileFullPath;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
226KeyValueLogMessage.Create(m => m["Version"] = FileVersionInfo.GetVersionInfo(typeof(VisualStudioWorkspace).Assembly.Location).FileVersion));
SolutionEventMonitor.cs (1)
72_operations[operation] = _notificationService.Start(operation);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
129_cache[key] = result;
StackTraceExplorer\StackFrameViewModel.cs (1)
229_definitionCache[symbolPart] = await _stackExplorerService.TryFindDefinitionAsync(_workspace.CurrentSolution, _frame, symbolPart, cancellationToken).ConfigureAwait(false);
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
226projectNameToProjectMap[p.Name] = p; 254filePathToDocumentMap[project] = filePathMap;
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
351diagnosticIdMap[projectId] = computedIds;
Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
40m[TelemetryLogging.KeyValue] = elapsed;
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
121Logger.Log(FunctionId.PartialLoad_FullyLoaded, KeyValueLogMessage.Create(LogType.Trace, m => m["AlreadyFullyLoaded"] = completionTask.IsCompleted, LogLevel.Debug));
Microsoft.VisualStudio.LanguageServices.CSharp (11)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (5)
98diagnosticOptions[pair.Key] = ReportDiagnostic.Error; 106diagnosticOptions[diagnosticID] = ReportDiagnostic.Error; 113diagnosticOptions[diagnosticID] = ruleSetOption; 117diagnosticOptions[diagnosticID] = ReportDiagnostic.Default; 123diagnosticOptions[diagnosticID] = ReportDiagnostic.Suppress;
SemanticSearch\SemanticSearchToolWindowImpl.cs (6)
437map["Query"] = new PiiValue(queryString); 441map["Canceled"] = true; 445map["ErrorMessage"] = result.ErrorMessage; 449map["ErrorMessageArgs"] = new PiiValue(string.Join("|", result.ErrorMessageArgs)); 453map["ExecutionTimeMilliseconds"] = (long)result.ExecutionTime.TotalMilliseconds; 454map["EmitTime"] = (long)result.EmitTime.TotalMilliseconds;
Microsoft.VisualStudio.LanguageServices.DevKit (1)
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
40m[TelemetryLogging.KeyValue] = elapsed;
MSBuild (12)
CommunicationsUtilities.cs (1)
372table[key] = value;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
NodePacketFactory.cs (1)
36_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
TaskHostConfiguration.cs (1)
204_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskHostTaskComplete.cs (1)
123_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskParameter.cs (2)
449escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.Escape(entry.Value); 856_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
TerminalLogger\TerminalLogger.cs (1)
539_projects[c] = new(e.ProjectFile!, targetFramework, CreateStopwatch?.Invoke());
TypeLoader.cs (1)
203assembliesDictionary[Path.GetFileName(runtimeAssembly)] = runtimeAssembly;
XMake.cs (3)
1846restoreGlobalProperties[MSBuildConstants.MSBuildRestoreSessionId] = Guid.NewGuid().ToString("D"); 1849restoreGlobalProperties[MSBuildConstants.MSBuildIsRestoring] = bool.TrueString; 3775properties[parameterSections[0]] = parameterSections[1];
MSBuildTaskHost (13)
BinaryTranslator.cs (3)
631additionalEntries[key] = value; 643dictionary[key] = value; 716dictionary[key] = value;
BuildExceptionSerializationHelper.cs (1)
62exceptionFactories[key] = exceptionFactory;
CommunicationsUtilities.cs (1)
372table[key] = value;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Immutable\ImmutableDictionary.cs (2)
138clone._backing[key] = value; 148clone._backing[item.Key] = item.Value;
NodePacketFactory.cs (1)
36_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
TaskHostConfiguration.cs (1)
204_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskHostTaskComplete.cs (1)
123_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskParameter.cs (2)
449escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.Escape(entry.Value); 856_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
PresentationBuildTasks (12)
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
103s_switchMap[switchName] = initialValue;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
400_compatTable[oldXmlns] = newXmlns; 401_compatTableReverse[newXmlns] = oldXmlns;
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; 817_namespaceMap[namespaceName] = namespaceName; 846_namespaceMap[namespaceName] = null; 877_subsumingNamespaces[namespaceName] = null; 904_knownNamespaces[namespaceName] = null; 1807_ignorables[namespaceName] = null; // we don't care about value, just key
PresentationCore (77)
MS\Internal\Automation\EventMap.cs (1)
143_eventsTable[idEvent] = new EventInfo();
MS\Internal\DeferredElementTreeState.cs (2)
18_oldCoreParents[element] = parent; 79_oldLogicalParents[element] = parent;
MS\Internal\FontCache\FontResourceCache.cs (2)
138folderResourceMap[folderName] = new List<string>(1); 142folderResourceMap[resourceFullName] = new List<string>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
179_familyMapRangesByLanguage[matchingLanguage] = ranges;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
861adjInformation[edge] = edgeInfo;
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
103s_switchMap[switchName] = initialValue;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
114_nodeLookup[key] = node;
System\Windows\BinaryFormat\StringRecordsCollection.cs (1)
44_strings[value] = CurrentId;
System\Windows\Input\ManipulationDevice.cs (1)
88_manipulationDevices[element] = device;
System\Windows\Input\ManipulationLogic.cs (1)
554_currentManipulators[id] = new Manipulator2D(id, (float)position.X, (float)position.Y);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
409_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice;
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (1)
131_tabletDeviceMap[tablet.Device] = tablet;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
194_coalescedMoves[stylusDevice] = inputReport; 221_coalescedMoves[stylusDevice] = coalescedMove; 238_lastMovesQueued[stylusDevice] = coalescedMove; 3009__stylusDeviceMap[stylusDeviceId] = stylusDevice; 3140__penContextsMap[inputSource] = penContexts;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
75_pointerLogic.PlugInManagers[_source] = new PointerStylusPlugInManager(_source);
System\Windows\Media\FontEmbeddingManager.cs (2)
59glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>(); 63glyphSet[glyphIndex] = true;
System\Windows\Media\Knowncolors.cs (2)
179s_knownArgbColors[aRGBString] = colorValue; 219s_solidColorBrushCache[argb] = scp;
System\Windows\Media\SolidColorBrush.cs (2)
285fwdDictionary[key] = value; 291revDictionary[value] = keys;
System\Windows\Media\textformatting\TextFormatterContext.cs (43)
412dict[contextInfo.wchHyphen] = true; 413dict[contextInfo.wchTab] = true; 414dict[contextInfo.wchPosTab] = true; 415dict[contextInfo.wchEndPara1] = true; 416dict[contextInfo.wchEndPara2] = true; 417dict[contextInfo.wchAltEndPara] = true; 418dict[contextInfo.wchEndLineInPara] = true; 419dict[contextInfo.wchColumnBreak] = true; 420dict[contextInfo.wchSectionBreak] = true; 421dict[contextInfo.wchPageBreak] = true; 422dict[contextInfo.wchNonBreakSpace] = true; 423dict[contextInfo.wchNonBreakHyphen] = true; 424dict[contextInfo.wchNonReqHyphen] = true; 425dict[contextInfo.wchEmDash] = true; 426dict[contextInfo.wchEnDash] = true; 427dict[contextInfo.wchEmSpace] = true; 428dict[contextInfo.wchEnSpace] = true; 429dict[contextInfo.wchNarrowSpace] = true; 430dict[contextInfo.wchOptBreak] = true; 431dict[contextInfo.wchNoBreak] = true; 432dict[contextInfo.wchFESpace] = true; 433dict[contextInfo.wchJoiner] = true; 434dict[contextInfo.wchNonJoiner] = true; 435dict[contextInfo.wchToReplace] = true; 436dict[contextInfo.wchReplace] = true; 437dict[contextInfo.wchVisiNull] = true; 438dict[contextInfo.wchVisiAltEndPara] = true; 439dict[contextInfo.wchVisiEndLineInPara] = true; 440dict[contextInfo.wchVisiEndPara] = true; 441dict[contextInfo.wchVisiSpace] = true; 442dict[contextInfo.wchVisiNonBreakSpace] = true; 443dict[contextInfo.wchVisiNonBreakHyphen] = true; 444dict[contextInfo.wchVisiNonReqHyphen] = true; 445dict[contextInfo.wchVisiTab] = true; 446dict[contextInfo.wchVisiPosTab] = true; 447dict[contextInfo.wchVisiEmSpace] = true; 448dict[contextInfo.wchVisiEnSpace] = true; 449dict[contextInfo.wchVisiNarrowSpace] = true; 450dict[contextInfo.wchVisiOptBreak] = true; 451dict[contextInfo.wchVisiNoBreak] = true; 452dict[contextInfo.wchVisiFESpace] = true; 453dict[contextInfo.wchEscAnmRun] = true; 454dict[contextInfo.wchPad] = true;
System\Windows\Media\UniqueEventHelper.cs (2)
96delegates[handler] = refCount + 1; 122delegates[handler] = refCount - 1;
System\Windows\Media\Visual.cs (6)
837channelsToCyclicBrushMap[channel] = 1; 843channelsToCyclicBrushMap[channel] += 1; 863cyclicBrushToChannelsMap[cyclicBrush] = 1; 869cyclicBrushToChannelsMap[cyclicBrush] += 1; 908cyclicBrushToChannelsMap[cyclicBrush] = 919channelsToCyclicBrushMap[channel] =
PresentationFramework (58)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
105s_ZLevel[type] = level;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
276_attachedAnnotations[attachedAnnotation] = currentList;
MS\Internal\Annotations\ObservableDictionary.cs (1)
257_nameValues[key] = value;
MS\Internal\Annotations\XmlElementCollection.cs (3)
149_xmlDocsRefCounts[element.OwnerDocument]--; 180_xmlDocsRefCounts[element.OwnerDocument] = 1; 189_xmlDocsRefCounts[element.OwnerDocument]++;
MS\Internal\AppModel\MimeObjectFactory.cs (1)
54_objectConvertersCore[contentType] = method;
MS\Internal\AppModel\ResourceContainer.cs (1)
351_registeredResourceManagers[key.ToLowerInvariant()] = rmwResult;
MS\Internal\Data\AccessorTable.cs (1)
88_table[new AccessorTableKey(sourceValueType, type, name)] = value;
MS\Internal\Data\LiveShapingList.cs (2)
722this[path] = dp; 739this[path] = dp;
MS\Internal\Globalization\BamlTreeMap.cs (3)
467_classAttributeTable[className] = loc; 496_propertyAttributeTable[fullName] = loc; 524_classAttributeTable[className] = new ElementLocalizability(formattingTag, null);
MS\Internal\Interop\InternalDispatchObject.cs (1)
65_dispId2MethodMap[dispid] = method;
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
113_cache[fileName] = module;
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
103s_switchMap[switchName] = initialValue;
System\Windows\Controls\DataGrid.cs (1)
8282dataGridStringBuilders[format] = new StringBuilder();
System\Windows\Controls\DataGridColumnCollection.cs (1)
1472_originalWidthsForResize[column] = column.Width;
System\Windows\Controls\DataGridHelper.cs (2)
426transferEnabledMap[p] = true; 428transferEnabledMap[p] = false;
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
15map[property] = value; 70_itemStorageMap[item] = map;
System\Windows\Data\BindingGroup.cs (1)
1145_notifyDataErrors[itemWR] = itemErrors;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (1)
456_resultCache[wrKey] = new WeakReference<ResourceDictionary>(result.Dictionary);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
72_instances[language] = new SpellCheckerCreationHelper(language);
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (2)
191_instanceInfo.NumCallsMeasured[_action]++; 192_instanceInfo.CumulativeCallTime100Ns[_action] += ticks;
System\Windows\Documents\WinRTSpellerInterop.cs (4)
299_spellCheckers[culture] = null; 329_spellCheckers[culture] = null; 333_spellCheckers[culture] = new Tuple<WordsSegmenter, SpellChecker>(wordBreaker, spellChecker); 467_customDictionaryFiles[ietfLanguageTag] = new List<string>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1590_enumTypeConverterMap[propertyType] = converter; 1599_typeConverterMap[typeConverterId] = converter;
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
429_bamlXmlnsMappings[xmlns] = assemblies;
System\Windows\Markup\BamlReader.cs (1)
2668_reverseXmlnsTable[fullName] = list;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
702_keyTypeMap[type] = result;
System\Windows\Markup\Primitives\MarkupWriter.cs (10)
589writtenAttributes[property.Name] = property.Name; 704writtenAttributes[property.Name] = property.Name; 814writtenAttributes[contentProperty.Name] = contentProperty.Name; 827writtenAttributes[property.Name] = property.Name; 1391_uriToPrefix[uri] = prefix; 1392_prefixToUri[prefix] = uri; 1560DefaultPrefixes[prefix.XmlNamespace] = prefix.Prefix; 1563XmlnsDefinitions[assembly] = namespaceToUri; 1586namespaceToUri[definition.ClrNamespace] = definition.XmlNamespace; 1595assembliesNamespacetoUri[definition.ClrNamespace] = definition.XmlNamespace;
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
47initializedTypes[currentType] = currentType;
System\Windows\Markup\XamlTypeMapper.cs (1)
168_piReverseTable[fullName] = xmlNamespace;
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
204_piNamespaces[xamlNamespace] = clrNs;
System\Windows\Markup\XmlnsCache.cs (2)
400_compatTable[oldXmlns] = newXmlns; 401_compatTableReverse[newXmlns] = oldXmlns;
System\Windows\Shell\JumpList.cs (1)
228s_applicationMap[application] = value;
System\Windows\SystemResources.cs (4)
1136_hwndNotify[hwndDpiInfo] = hwndNotify; 1138_hwndNotifyHook[hwndDpiInfo] = new HwndWrapperHook(SystemThemeFilterMessage); 1152_hwndNotifyHook[hwndDpiInfo] = null; 2060_entries[deferredResourceReference.Key] = new WeakReference<DeferredResourceReference>(deferredResourceReference);
System\Windows\VisualStateManager.cs (1)
704result[new TimelineDataToken(child)] = child;
PresentationUI (2)
MS\Internal\Documents\RightsManagementProvider.cs (2)
692rights[rmLicense.LicensedUser] = rmLicense; 720rights[_user] = ConvertGrantList(_user, grantList);
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
45_content[subpath] = new TestFileInfo(content);
ReachFramework (44)
packaging\XpsDigitalSignature.cs (10)
319hashTable[uri] = uri; 382uriHashTable[selector.SourceUri] = relHash; 387relHash[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)
752dependentList[_thumbnail.Uri] = _thumbnail.Uri;
Packaging\XpsFixedDocumentReaderWriter.cs (3)
713dependentList[Uri] = Uri; 734dependentList[signatureDefinitionPart.Uri] = signatureDefinitionPart.Uri; 834dependents[_documentStructure.Uri] = _documentStructure.Uri;
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
445dependentList[Uri] = Uri;
Packaging\XpsFixedPageReaderWriter.cs (19)
825_resourceCache[xpsResource.Uri] = xpsResource; 1364dependentList[Uri] = Uri; 1416dependents[uri] = uri; 1423dependents[uri] = uri; 1430dependents[uri] = uri; 1437dependents[uri] = uri; 1445dependents[uri] = uri; 1450dependents[_storyFragment.Uri] = _storyFragment.Uri; 1460dependents[_thumbnail.Uri] = _thumbnail.Uri; 1525restictedFontRels[absUri] = rel; 1541_imageCache[absUri] = image; 1551_fontCache[absUri] = font; 1564_colorContextCache[absUri] = colorContext; 1573_resourceDictionaryCache[absUri] = resourceDictionary; 1593_resourceCache[absUri] = xpsResource; 1642_imageCache[xpsImage.Uri] = xpsImage; 1683_fontCache[xpsFont.Uri] = xpsFont; 1755_colorContextCache[xpsColorContext.Uri] = xpsColorContext; 1793_resourceDictionaryCache[xpsResourceDictionary.Uri] = xpsResourceDictionary;
Packaging\XpsManager.cs (10)
322_cachedParts[partUri] = metroPart; 408_cachedParts[partUri] = metroPart; 545_cachedParts[uri] = part; 777dependents[propertiesPart.Uri] = propertiesPart.Uri; 1106_contentTypes[pageContentKey] = 1; 1156_contentTypes[contentKey] = counter; 1236_contentTypes[key] = 1; 1265_packageCache[uri] = 1; 1276_packageCache[uri] = _packageCache[uri]+1; 1293_packageCache[uri] = reference;
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\DataModel.cs (1)
40features[featureName] = parent;
Roslyn.VisualStudio.Next.UnitTests (1)
Services\PerformanceTrackerServiceTests.cs (1)
219matrix[analyzerId] = timeSpans;
SocialWeather (2)
FormatterResolver.cs (2)
24typeFormatters = _formatters[formatType] = new Dictionary<Type, Type>(); 26typeFormatters[typeof(T)] = typeof(TFormatterType);
Swaggatherer (1)
Template.cs (1)
35templatesVisited[template] = visitedTemplateInfo;
System.CodeDom (4)
System\CodeDom\CodeNamespaceImportCollection.cs (2)
34_keys[value.Namespace] = value; 63_keys[c.Namespace] = c;
System\CodeDom\Compiler\CodeDomProvider.cs (2)
41s_compilerLanguages[language] = compilerInfo; 46s_compilerExtensions[extension] = compilerInfo;
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
96newDictionary[pair.Key] = pair.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)
186specializedPartMembers[closedGenericPartType.MetadataToken] = closedGenericPartType; 189specializedPartMembers[method.MetadataToken] = method; 194specializedPartMembers[field.MetadataToken] = field; 199specializedPartMembers[iface.MetadataToken] = iface; 204specializedPartMembers[type.MetadataToken] = type; 211specializedPartMembers[baseType.MetadataToken] = baseType; 235membersTable[lazyMemberInfo] = accessors; 251parametersTable[lazyParameter] = constructorParameters[lazyParameter.Value.Position]; 446metadata[CompositionConstants.GenericContractMetadataName] = GenericServices.GetGenericName(originalImport.ContractName, importParametersOrder, _specialization.Length); 447metadata[CompositionConstants.GenericParametersMetadataName] = GenericServices.Reorder(_specialization, importParametersOrder); 465metadata[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\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\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
486parsetable[realkeyname] = keyvalue!; // last key-value pair wins (or first) 583parsetable[realkeyname] = keyvalue; // last key-value pair wins (or first)
System\Data\Common\AdapterUtil.Common.cs (1)
796hash[columnName] = i;
System\Data\Common\DbConnectionStringBuilder.cs (1)
103CurrentValues[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\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (1)
136hash[fieldName] = i;
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
486parsetable[realkeyname] = keyvalue!; // last key-value pair wins (or first) 583parsetable[realkeyname] = keyvalue; // last key-value pair wins (or first)
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
1150_customProperties[propertyName] = propertyValue!;
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
20set => _contents[key] = value;
System.Drawing.Common.Tests (6)
System\Drawing\ImageAnimator.ManualTests.cs (4)
49frameIndexes[imageName] = 0; 51handlers[imageName] = new(new Action<object, EventArgs>((object o, EventArgs e) => 60animation.Save(Path.Combine(testOutputFolder, $"{++frameIndexes[imageName]}_{timestamp}.jpg"), ImageFormat.Jpeg); 63bitmaps[imageName] = new Bitmap(Helpers.GetTestBitmapPath(imageName));
System\Drawing\Imaging\ImageCodecInfoTests.cs (2)
54_decoders[decoder.Clsid] = decoder; 57_encoders[encoder.Clsid] = encoder;
System.Drawing.Primitives (1)
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 (13)
System\Formats\Tar\PaxTarEntry.cs (4)
125_header.ExtendedAttributes[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime); 126_header.ExtendedAttributes[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime); 171_header.ExtendedAttributes[TarHeader.PaxEaATime] = secondsFromEpochString; 176_header.ExtendedAttributes[TarHeader.PaxEaCTime] = secondsFromEpochString;
System\Formats\Tar\TarHeader.Write.cs (9)
910ExtendedAttributes[PaxEaName] = _name; 911ExtendedAttributes[PaxEaMTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(_mTime); 919ExtendedAttributes[PaxEaLinkName] = _linkName; 924ExtendedAttributes[PaxEaSize] = _size.ToString(); 933ExtendedAttributes[PaxEaUid] = _uid.ToString(); 942ExtendedAttributes[PaxEaGid] = _gid.ToString(); 951ExtendedAttributes[PaxEaDevMajor] = _devMajor.ToString(); 960ExtendedAttributes[PaxEaDevMinor] = _devMinor.ToString(); 976extendedAttributes[key] = value;
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.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)
2780mapping[local] = ResolveLocal(local); 2860_definedParameters[param] = count + 1; 2864_definedParameters[param] = 1; 2880_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)
216cache[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)
734s_tasks[key] = task;
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
217dict[newKey] = item;
System.Private.CoreLib (42)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
358s_delegates[functionPtr] = d;
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
69s_dataStore[name] = data; 140s_switches[switchName] = isEnabled;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
53m_subscriptions[eventListener] = new EventListenerSubscription(matchAnyKeywords, level);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1341args[key] = value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (10)
3674eventsByName[evtName] = evtName; 3972s_preregisteredEtwProviders[id] = etwProvider; 3980s_preregisteredEventPipeProviders[name] = eventPipeProvider; 5368opcodeTab[value] = name; 5387taskTab[value] = name; 5410keywordTab[value] = name; 5435channelTab[value] = new ChannelInfo { Name = name, Keywords = kwd, Attribs = channelAttribute }; 5571perEventByteArrayArgIndices[eventName] = byteArrArgIndices; 5579stringTab[prefixedEventName] = msg; 5875stringTab[key] = value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
150cache[type] = instance;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
486tempHashTable[hashName] = retVal; 714tempHashTable[hashName] = culture;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (3)
1019lcidTable[culture] = result; 1055nameTable[name] = result; 1098nameTable[nameAndAltName] = result;
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
950dictionary[key] = value;
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
307cache[key] = resEntry; 352caseInsensitiveTable[key] = resEntry;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
41s_registrations[signo] = tokens = new HashSet<Token>();
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
153encodingInfoList[codePage] = new EncodingInfo(codePage, webNames[webNameIndices[i]..webNameIndices[i + 1]],
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\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
197activeTasks[taskId] = task;
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
692nameToSlotMap[name] = slot;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
2042cachedData._timeZonesUsingAlternativeIds[id] = zone;
src\System\Attribute.CoreCLR.cs (2)
376types[attrType] = InternalGetAttributeUsage(attrType); 408types[attrType] = usage;
src\System\GC.CoreCLR.cs (3)
887configurationDictionary[nameAsString] = data; 893configurationDictionary[nameAsString] = dataAsString ?? string.Empty; 898configurationDictionary[nameAsString] = data != 0;
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
764_typeBuilderDict[name] = enumBuilder;
src\System\RuntimeType.CoreCLR.cs (2)
1201csEventInfos[name] = eventInfo; 1356csPropertyInfos[name] = cache;
System.Private.Windows.Core (5)
System\Private\Windows\Core\BinaryFormat\Deserializer\DefaultTypeResolver.cs (2)
47_types[typeName.AssemblyQualifiedName] = binderType; 75_types[typeName.AssemblyQualifiedName] = type
System\Private\Windows\Core\BinaryFormat\Deserializer\Deserializer.cs (2)
267_surrogates[type] = surrogate; 350_deserializedObjects[completedId] = objectReference.GetRealObject(Options.StreamingContext);
System\Private\Windows\Core\BinaryFormat\Support\StringRecordsCollection.cs (1)
46_strings[value] = CurrentId;
System.Private.Xml (61)
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)
1787_nsHashtable[prefix] = namespaceIndex; 1829_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex; 2151_attrHashTable[localName] = 0; // overwrite on collision
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
355_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)
1576_locals[key] = value;
System\Xml\Serialization\Compilation.cs (4)
444scopeTable[mapping.Scope!] = mapping; 518serializers[xmlMappings[i].Key!] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass); 729cache[key] = assembly; 735cache[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)
1111memberInfos[mappings[i].Name] = mappings[i].MemberInfo!; 1113memberInfos[mappings[i].ChoiceIdentifier!.MemberName!] = mappings[i].ChoiceIdentifier!.MemberInfo!; 1115memberInfos[$"{mappings[i].Name}Specified"] = mappings[i].CheckSpecifiedMemberInfo!; 1142memberInfos[pair.Key] = pair.Value;
System\Xml\Serialization\XmlSerializer.cs (1)
744typedMappingTable[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)
451_usedPrefixes[prefix] = ns; 564_usedPrefixes[prefix] = ns; 738_usedPrefixes[prefix] = ns; 972_usedPrefixes[prefix] = ns; 1433_conflictPrefixes[ns] = genPrefix;
System\Xml\Xsl\Xslt\Compiler.cs (4)
98_moduleOrder[baseUri] = _moduleOrder.Count; 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)
2641functionsForMode = 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; 332propertyMap[pi.GetMethod] = ai; 334propertyMap[pi.SetMethod] = ai; 342eventMap[ei.AddMethod] = ai; 344eventMap[ei.RemoveMethod] = ai; 346eventMap[ei.RaiseMethod] = ai;
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
195table[tuple.Key] = tuple.Value;
System.Resources.Extensions (6)
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
307cache[key] = resEntry; 352caseInsensitiveTable[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)
831values[key] = value;
System\Runtime\Caching\MemoryCacheEntry.cs (1)
171_fields._dependents[dependent] = dependent;
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.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
163properties[property.Key] = property.Value.ToString(); 172headers[header.Name] = values;
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
22dictionary[key] = value;
System.Text.RegularExpressions (7)
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)
211_operationCache[key] = result = GetOrCreateBDD(set.Ordinal, Not(set.One), Not(set.Zero)); 381cache[bdd] = result = GetOrCreateBDD(bdd.Ordinal, one, zero);
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 (1)
86builder._nodeCache[key] = node;
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
44catMap[c] = new Ranges();
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
1573usedNames[prefix] = count + 1;
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (2)
114transferEnabledMap[p] = true; 116transferEnabledMap[p] = false;
Microsoft\Windows\Controls\KeyTipService.cs (4)
305processedElements[element] = true; 347elementToScopeMap[element] = newScope; 349processedElements[element] = true; 927cultureCache[language] = culture;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
184_childIndexToStarLayoutIndexMap[starChildIndex] = starLayoutIndex;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
686contextualTabHeaders[contextualTabGroupHeader] = new List<RibbonTabHeaderAndIndex>(); 698ribbon.TabDisplayIndexToIndexMap[displayIndex] = i; 699ribbon.TabIndexToDisplayIndexMap[i] = displayIndex; 738ribbon.TabDisplayIndexToIndexMap[displayIndex] = headerAndIndex.Index; 739ribbon.TabIndexToDisplayIndexMap[headerAndIndex.Index] = displayIndex;
System.Windows.Forms (1229)
System\Resources\ResXResourceReader.cs (1)
616_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)
2374_objectDefinedCategoryNames[propcat] = category;
System\Windows\Forms\Application.ComponentManager.cs (1)
123OleComponents[dwComponentID] = entry;
System\Windows\Forms\Application.ThreadContext.cs (1)
93s_contextHash[_id] = this;
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\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)
125_dictionary[key] = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
387owner.Shortcuts[value] = this; 930Owner.Shortcuts[shortcut] = this;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (2)
126toolStripPanelDestinationHash[destinationPanel] = value; 224itemLocationHash[item.Name] = toolStrip;
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\ErrorProvider\ErrorProvider.cs (3)
503controlError[control] = outputError; 718_items[control] = item; 732_windows[parent] = window;
System\Windows\Forms\Help\HelpProvider.cs (4)
176_helpStrings[ctl] = helpString; 192_keywords[ctl] = keyword; 210_navigators[ctl] = navigator; 222_showHelp[ctl] = value;
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; 741s_windowHandles[hwnd] = GCHandle.Alloc(window.PreviousWindow, GCHandleType.Weak);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
101_mappedData[format] = new DataStoreEntry(data, autoConvert);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
120_controlsInfo[controlName] = info;
System\Windows\Forms\PropertyStore.cs (4)
139_values[key] = new(value); 178_values[key] = new(value); 203_values[key] = Value.Create(value); 222_values[key] = Value.Create(value);
System\Windows\Forms\ToolTip\ToolTip.cs (5)
1226_tools[control] = info!; 1819_tools[tool] = tipInfo; 1843_tools[windowAsControl] = tipInfo; 1845_owners[windowAsControl.HWND] = windowAsControl; 2265_tools[control] = tipInfo;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
826t_themeHandles[className] = themeHandle; 859t_themeHandles[className] = themeHandle;
System.Windows.Forms.Design (59)
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)
271_designers[component] = designer;
System\ComponentModel\Design\DesignerHost.Site.cs (1)
93_dictionary[key] = value;
System\ComponentModel\Design\InheritanceService.cs (3)
189_inheritedComponents[compValue] = attr; 264_inheritedComponents[ce.Component!] = InheritanceAttribute.InheritedReadOnly; 269_inheritedComponents[ce.Component!] = _addingAttribute!;
System\ComponentModel\Design\MenuCommandService.cs (3)
269buildVerbs[key] = verbsOrder.Count - 1; 279buildVerbs[designerActionVerb.Text] = verbsOrder.Count - 1; 289buildVerbs[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)
2635names[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; 576metadata[resourceName] = value; 626resourceSet[resourceName] = value; 654resourceSet[resourceName] = value; 692resourceSet[resourceName] = value; 789_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\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
914reverseFixupTable[newKey] = key;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
102_columnsNames[lbi.DataGridViewColumn] = lbi.DataGridViewColumn.Name; 153_columnsNames[newColumn] = columnSiteName; 942_columnsNames[col] = col.Name; 1134_columnsNames[col] = liveCol.Site.Name;
System\Windows\Forms\Design\DocumentDesigner.cs (1)
313_axTools[clsid] = tool;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
63s_currentDrags[data] = component;
System\Windows\Forms\Design\SelectionUIService.cs (6)
411newSelection[comp] = existingItem; 419newSelection[comp] = new SelectionUIItem(this, comp); 927_selectionHandlers[component] = handler; 932_selectionItems[component] = item; 1268_selectionItems[component] = item; 1304_selectionItems[component] = selUI;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1408_extenderProperties[extender.PropertyName] = true;
System\Windows\Forms\Design\TabOrder.cs (2)
460_tabProperties[control] = prop; 810_tabNext[parent] = newIndex;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
121t_cachedToolboxItems[itemType] = tbxItem; 140t_cachedWinformsImages[itemType] = value;
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\AssertExtensions.cs (1)
438actualItemCountMapping[actualItem] = new ItemCount(1, 1);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ApplicationTests.cs (4)
422formClosingProcessed[mdiParent] = 0; 423formClosedProcessed[mdiParent] = 0; 430Assert.Equal(childFormCount, formClosingProcessed[sender]++); 438Assert.Equal(childFormCount, formClosedProcessed[sender]++);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
616this.manipulatorStates[initialState.Id] = initialState;
System.Xaml (17)
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; 817_namespaceMap[namespaceName] = namespaceName; 846_namespaceMap[namespaceName] = null; 877_subsumingNamespaces[namespaceName] = null; 904_knownNamespaces[namespaceName] = null; 1807_ignorables[namespaceName] = null; // we don't care about value, just key
System\Xaml\AttachablePropertyServices.cs (1)
208instanceProperties[name] = value;
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
208xmlnsDictionary[ns.Key] = ns.Value;
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
383result[xmlns] = prefix;
System\Xaml\Schema\TypeReflector.cs (2)
502result[currentProp.Name] = currentProp; 552result[currentEvent.Name] = currentEvent;
System\Xaml\XamlXmlWriter.cs (3)
370prefixAssignmentHistory[prefix] = null; 741prefixMap[prefix] = ns; 742namespaceMap[ns] = prefix;
TaskUsageLogger (4)
TaskUsageLogger.cs (4)
122_toolsVersionsByProjectContextId[e.BuildEventContext.ProjectContextId] = p.ToolsVersion; 155_targetIdsToNames[e.BuildEventContext.TargetId] = e.TargetName; 233_tasksByProjectContextId[projectContextId] = usingTasks; 280_assemblyLocationsByName[evaluatedTaskAssemblyName] = evaluatedTaskAssemblyPath;
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
90_wrappedDictionary[propertyName] = value; //This will replace an existing mapping, unlike Add.
XmlFileLogger (2)
LogProcessNode.cs (1)
104_childNodes[type] = new List<ILogNode> { childNode };
PropertyBag.cs (1)
108_properties[key] = value;
xunit.assert (2)
Sdk\CollectionTracker.cs (2)
600 items[idx] = span[idx]; 856 result[itemIndex] = currentItemsRingBuffer[indexInRingBuffer];
xunit.console (1)
common\Json.cs (1)
529dictionary[memberName] = DeserializeInternal(buffer.Read(), buffer);
Xunit.NetCore.Extensions (4)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
47assemblyFixtureMappings[fixtureAttr.FixtureType] = Activator.CreateInstance(fixtureAttr.FixtureType);
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (1)
40assemblyFixtureMappings[fixtureAttr.FixtureType] = Activator.CreateInstance(fixtureAttr.FixtureType);
AssemblyFixtureSupport\XunitTestCollectionRunnerWithAssemblyFixture.cs (1)
44combinedFixtures[kvp.Key] = kvp.Value;
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (1)
44assemblyFixtureMappings[fixtureAttr.FixtureType] = Activator.CreateInstance(fixtureAttr.FixtureType);
2878 references to Item
Aspire.Dashboard.Tests (2)
GlobalizationHelpersTests.cs (1)
77var englishCultures = GlobalizationHelpers.ExpandedLocalizedCultures[requestedLanguage];
TelemetryRepositoryTests\MetricsTests.cs (1)
622var scope = dimensions[key];
Aspire.EndToEnd.Tests (1)
IntegrationServicesFixture.cs (1)
34public ProjectInfo IntegrationServiceA => Projects["integrationservicea"];
Aspire.Hosting (3)
ProjectResourceBuilderExtensions.cs (2)
445if (endpointCountByScheme[bindingAddress.Scheme] > 1) 447endpointName += endpointCountByScheme[bindingAddress.Scheme];
src\Shared\SecretsStore.cs (1)
31public string? this[string key] => _secrets[key];
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
354Index = g.Min(e => endpointIndexMap[e.Name])
Aspire.Hosting.Azure.Tests (4)
AzureBicepResourceTests.cs (3)
36Assert.Equal("value1", bicepResource.Resource.Parameters["param1"]); 37Assert.Equal("value2", bicepResource.Resource.Parameters["param2"]); 731Assert.Equal("myinstrumentationkey", config["APPLICATIONINSIGHTS_CONNECTION_STRING"]);
AzureResourceExtensionsTests.cs (1)
191Assert.Equal(partitionCount.ToString(CultureInfo.InvariantCulture), config["AZURE_COSMOS_EMULATOR_PARTITION_COUNT"]);
Aspire.Hosting.Dapr.Tests (8)
DaprTests.cs (8)
56e.AllocatedEndpoint = new(e, "localhost", ports[e.Name], targetPortExpression: $$$"""{{- portForServing "{{{e.Name}}}" -}}"""); 62Assert.Equal("3500", config["DAPR_HTTP_PORT"]); 63Assert.Equal("50001", config["DAPR_GRPC_PORT"]); 65Assert.Equal("http://host.docker.internal:3500", config["DAPR_HTTP_ENDPOINT"]); 66Assert.Equal("http://host.docker.internal:50001", config["DAPR_GRPC_ENDPOINT"]); 155e.AllocatedEndpoint = new(e, "localhost", ports[e.Name], targetPortExpression: $$$"""{{- portForServing "{{{e.Name}}}" -}}"""); 161Assert.Equal("http://host.docker.internal:3500", config["DAPR_HTTP_ENDPOINT"]); 162Assert.Equal("http://host.docker.internal:50001", config["DAPR_GRPC_ENDPOINT"]);
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
249Assert.Equal($"{mysql.Resource.Name}:{mysql.Resource.PrimaryEndpoint.TargetPort}", config["PMA_HOST"]); 250Assert.NotNull(config["PMA_USER"]); 251Assert.NotNull(config["PMA_PASSWORD"]);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
123Assert.Equal("test", environmentVariables["ConnectionStrings__connectionString"]);
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
225Assert.Equal($"myredis1:{redis.Resource.Name}:6379:0", config["REDIS_HOSTS"]); 249Assert.Equal($"myredis1:{redis1.Resource.Name}:6379:0,myredis2:myredis2:6379:0", config["REDIS_HOSTS"]);
Aspire.Hosting.Tests (45)
ExpressionResolverTests.cs (4)
66Assert.Equal(expectedConnectionString, config["ConnectionStrings__testresource"]); 98Assert.Equal(expectedValue, config["envname"]); 117Assert.Equal(expectedValue, config["OTEL_EXPORTER_OTLP_ENDPOINT"]); 143public ReferenceExpression ConnectionStringExpression => Expressions[_exprName];
KestrelConfigTests.cs (2)
47Assert.Equal("http://*:port_http", config["Kestrel__Endpoints__http__Url"]); 82Assert.Equal("http://localhost:port_http;http://localhost:port_ExplicitHttp", config["ASPNETCORE_URLS"]);
ProjectResourceTests.cs (9)
363Assert.Equal("http://localhost:p0;https://localhost:p1", config["ASPNETCORE_URLS"]); 364Assert.Equal("5001", config["ASPNETCORE_HTTPS_PORT"]); 365Assert.Equal("p2", config["SOME_ENV"]); 410Assert.Equal("http://localhost:p0", config["ASPNETCORE_URLS"]); 437Assert.Equal("https://localhost:p2;http://localhost:p0;http://localhost:p1;https://localhost:p3;https://localhost:p4", config["ASPNETCORE_URLS"]); 440Assert.Equal("7144", config["ASPNETCORE_HTTPS_PORT"]); 630Assert.Equal($"http://{expectedHost}:p0;https://{expectedHost}:p1", config["ASPNETCORE_URLS"]); 634Assert.Equal($"http://{expectedHost}:{http.TargetPort};https://{expectedHost}:{https.TargetPort}", config["ASPNETCORE_URLS"]); 637Assert.Equal(https.Port.ToString(), config["ASPNETCORE_HTTPS_PORT"]);
UserSecretsParameterDefaultTests.cs (1)
31Assert.Equal(initialValue, userSecrets["Parameters:param1"]);
WithEndpointTests.cs (1)
223Assert.Equal("3001", config["PORT"]);
WithEnvironmentTests.cs (16)
35Assert.Equal("true", config["SP_AVAILABLE"]); 55Assert.Equal("https://localhost:2000", config["myName"]); 68Assert.Equal("value", config["myName"]); 84Assert.Equal("value", config["myName"]); 100Assert.Equal("value2", config["myName"]); 117Assert.Equal("MY_PARAMETER_VALUE", config["MY_PARAMETER"]); 133Assert.Equal("{parameter.value}", config["MY_PARAMETER"]); 172Assert.Equal("value2", config["myName"]); 201Assert.Equal($"http://container1:10005/foo", config["URL"]); 202Assert.Equal("90", config["PORT"]); 203Assert.Equal("10005", config["TARGET_PORT"]); 204Assert.Equal("connectionString;name=1", config["HOST"]); 207Assert.Equal("{container1.bindings.primary.url}/foo", manifestConfig["URL"]); 208Assert.Equal("{container1.bindings.primary.port}", manifestConfig["PORT"]); 209Assert.Equal("{container1.bindings.primary.targetPort}", manifestConfig["TARGET_PORT"]); 210Assert.Equal("{test.connectionString};name=1", manifestConfig["HOST"]);
WithReferenceTests.cs (12)
31Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 54Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 55Assert.Equal("https://localhost:3000", config["services__projecta__myconflictingbinding__0"]); 79Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 80Assert.Equal("http://localhost:3000", config["services__projecta__mynonconflictingbinding__0"]); 102Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 103Assert.Equal("https://localhost:3000", config["services__projecta__mybinding2__0"]); 123Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]); 124Assert.Equal("http://localhost:3000", config["services__projecta__mybinding2__0"]); 193Assert.Equal("test connection string", config["ConnectionStrings__resource"]); 209Assert.Equal("{resource.connectionString}", config["ConnectionStrings__resource"]); 225Assert.Equal("{resource.connectionString}", config["MY_ENV"]);
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
89var endpoints = resourceEndpoints[resource];
BoundTreeGenerator (1)
BoundNodeClassWriter.cs (1)
721string name = _typeMap[node.Name];
Client.ClientBase.IntegrationTests (2)
ClientBaseTests.4.0.0.cs (2)
43Assert.Equal("my value", property.Headers["customer"]); 90Assert.Equal("my value", property.Headers["customer"]);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
277string prevClrNamespace = _parent._namespaceMappings[targetNamespace];
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)
950if (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();
HtmlGenerationWebSite (1)
ProductsService.cs (1)
43_products[category],
Identity.DefaultUI.WebSite (2)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (2)
200return Task.FromResult(_logins[key]); 237return Task.FromResult(_users[userId]);
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
illink (11)
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
270 ? _multiValueLattice.Meet (arr.IndexValues[index.Value], sanitizedValue)
ILLink.Tasks (9)
CreateRuntimeRootDescriptorFile.cs (9)
169 namespaceDictionary[lhs] = namespaceDictionary[prefix] + namespaceDefElements[3]; 409 Dictionary<string, ClassMembers> currentFeatureSwitchMembers = featureSwitchMembers[featureSwitch.Value]; 421 string className = classIdsToClassNames[classId]; 425 members = classNamesToClassMembers[className]; 427 members = featureSwitchMembers[featureSwitch.Value][className]; 438 fullClassName = classIdsToClassNames[classId]; 446 members = classNamesToClassMembers[fullClassName]; 448 members = featureSwitchMembers[featureSwitch.Value][fullClassName]; 477 return namespaceDictionary[classNamespace] + "." + classNameWithCecilNestedFormat;
Infrastructure.Common (1)
TestProperties.cs (1)
61result = s_properties.Value[propertyName];
InMemory.FunctionalTests (346)
BadHttpRequestTests.cs (2)
78var header = BadHeaderData[dataName].header; 79var errorMessage = BadHeaderData[dataName].errorMessage;
Http2\Http2ConnectionTests.cs (26)
187var contentType1 = _receivedHeaders["Content-Type"]; 204var contentType2 = _receivedHeaders["Content-Type"]; 360Assert.Equal("true", _decodedHeaders["trailer-1"]); 388Assert.Equal("true", _decodedHeaders[$"trailer-{i + 1}"]); 2235Assert.Equal(header.Value, _receivedTrailers[header.Key]); 2389Assert.Equal("200", handler.Headers[":status"]); 2390Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2391Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]); 2392Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]); 2406Assert.Equal("200", handler.Headers[":status"]); 2407Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2408Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]); 2409Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]); 3093Assert.Equal("a=0; b=1; c=2", _receivedHeaders[HeaderNames.Cookie]); 4868Assert.Equal("1", _receivedTrailers["trailer-1"]); 4869Assert.Equal("2", _receivedTrailers["trailer-2"]); 5000Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5001Assert.Equal("0", _decodedHeaders["content-length"]); 5002Assert.Equal(_4kHeaderValue, _decodedHeaders["a"]); 5003Assert.Equal(_4kHeaderValue, _decodedHeaders["b"]); 5004Assert.Equal(_4kHeaderValue, _decodedHeaders["c"]); 5005Assert.Equal(_4kHeaderValue, _decodedHeaders["d"]); 5006Assert.Equal(_4kHeaderValue, _decodedHeaders["e"]); 5007Assert.Equal(_4kHeaderValue, _decodedHeaders["f"]); 5008Assert.Equal(_4kHeaderValue, _decodedHeaders["g"]); 5009Assert.Equal(_4kHeaderValue, _decodedHeaders["h"]);
Http2\Http2StreamTests.cs (212)
112Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 113Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 114Assert.Equal(method, _decodedHeaders["Method"]); 131Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 133Assert.Equal(method, _decodedHeaders["Method"]); 162Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 163Assert.Equal("HEAD", _decodedHeaders["Method"]); 214Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 265Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 289Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 290Assert.Equal("CONNECT", _decodedHeaders["Method"]); 318Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 319Assert.Equal("", _decodedHeaders["path"]); 320Assert.Equal("*", _decodedHeaders["rawtarget"]); 321Assert.Equal("0", _decodedHeaders["content-length"]); 349Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 350Assert.Equal("/", _decodedHeaders["path"]); 351Assert.Equal("/", _decodedHeaders["rawtarget"]); 352Assert.Equal("0", _decodedHeaders["content-length"]); 386Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 387Assert.Equal("/a/path", _decodedHeaders["path"]); 388Assert.Equal("?a&que%35ry", _decodedHeaders["query"]); 389Assert.Equal("/a/path?a&que%35ry", _decodedHeaders["rawtarget"]); 390Assert.Equal("0", _decodedHeaders["content-length"]); 431Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 432Assert.Equal("0", _decodedHeaders["content-length"]); 503Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 504Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 554Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 555Assert.Equal("0", _decodedHeaders["content-length"]); 583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 584Assert.Equal("0", _decodedHeaders["content-length"]); 612Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 613Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 614Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 643Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 644Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 645Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 674Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 675Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 676Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 705Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 706Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 707Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 827Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]); 828Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 861Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]); 862Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 898Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 899Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 939Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 940Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 982Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 983Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1025Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1026Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1078Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1079Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1320Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1321Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1358Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1359Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1397Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1398Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1431Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 1432Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1466Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1501Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1502Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1541Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1576Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1624Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1664Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1700Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1701Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1742Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1778Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1779Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1812Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1849Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1850Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1887Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1888Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1934Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 1935Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1973Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1974Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2021Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 2022Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2084Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 2085Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2135Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2136Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2174Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2215Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2216Assert.Equal("Custom 你好 Type", _decodedHeaders[HeaderNames.ContentType]); 2217Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]); 2266Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2267Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2274Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2299Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 2300Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2345Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2352Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2387Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2394Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2442Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2449Assert.Equal(largeHeader, _decodedHeaders["CustomName0"]); 2450Assert.Equal(largeHeader, _decodedHeaders["CustomName1"]); 2451Assert.Equal(largeHeader, _decodedHeaders["CustomName2"]); 2452Assert.Equal(largeHeader, _decodedHeaders["CustomName3"]); 2453Assert.Equal(largeHeader, _decodedHeaders["CustomName4"]); 2460Assert.Equal(largeHeader, _decodedHeaders["CustomName5"]); 2500Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2543Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2550Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]); 2551Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]); 2552Assert.Equal("Custom 你好 Accept", _decodedHeaders[HeaderNames.Accept]); 2584Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2629Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2673Assert.Equal("a-value", _decodedHeaders["a-key"]); 2674Assert.Equal("b-value", _decodedHeaders["b-key"]); 2681Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2712Assert.Equal("a-value", _decodedHeaders["a-key"]); 2713Assert.Equal("b-value", _decodedHeaders["b-key"]); 2720Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2762Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2779Assert.Equal(trailerValue, _decodedHeaders["too_long2"]); 2816Assert.Equal(shortValue, _decodedHeaders["short"]); 2833Assert.Equal(trailerValue, _decodedHeaders["long"]); 2834Assert.Equal(shortValue, _decodedHeaders["short2"]); 2861Assert.Equal("200", _decodedHeaders[":status"]); 2862Assert.Equal("Sat, 01 Jan 2000 00:00:00 GMT", _decodedHeaders["date"]); 2880Assert.Equal(value, _decodedHeaders["too_long_header"]); 2905Assert.Equal(value, _decodedHeaders["too_long_trailer"]); 2919Assert.Equal("200", _decodedHeaders[":status"]); 2920Assert.Equal("Sat, 01 Jan 2000 00:00:00 GMT", _decodedHeaders["date"]); 2938Assert.Equal(value, _decodedHeaders["too_long_header"]); 2963Assert.Equal(value, _decodedHeaders["too_long_trailer"]); 3029Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3035Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 3081Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3087Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 3119Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 3120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3157Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3557Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3594Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3595Assert.Equal(30, _decodedHeaders[HeaderNames.TE].Length); 3643Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3644Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.TE].Length); 3706Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize - 20, _decodedHeaders[HeaderNames.ETag].Length); 3744Assert.Equal(headerValue, _decodedHeaders[longHeaderName]); 3813Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3814Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3862Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3906Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3952Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4005Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4058Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4104Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4154Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4199Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4242Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4280Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4281Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4423Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4473Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4474Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4519Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4520Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4559Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4560Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4623Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4624Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]); 4655Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4688Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4721Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 4776Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4777Assert.Equal("0", _decodedHeaders["content-length"]); 4836Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4837Assert.Equal("0", _decodedHeaders["content-length"]); 4844Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 4897Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 4898Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4962Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5019Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5020Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5086Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5131Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5204Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5213Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5278Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5287Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5354Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5355Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 5425Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5426Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 5499Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5508Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5592Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5665Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5674Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5752Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5761Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5799Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5800Assert.Equal("0", _decodedHeaders["content-length"]); 5874Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5926Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
Http2\Http2WebSocketTests.cs (9)
73Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 138Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 229Assert.Equal("201", _decodedHeaders[InternalHeaderNames.Status]); 265Assert.Equal("201", _decodedHeaders[InternalHeaderNames.Status]); 368Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 432Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 500Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 564Assert.Equal("418", _decodedHeaders[InternalHeaderNames.Status]); 565Assert.Equal("2", _decodedHeaders[HeaderNames.ContentLength]);
Http3\Http3StreamTests.cs (97)
37Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 61Assert.Equal("401", responseHeaders[InternalHeaderNames.Status]); 119Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 120Assert.Equal("Custom", responseHeaders["Method"]); 121Assert.Equal("0", responseHeaders["content-length"]); 156Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 157Assert.Equal("CONNECT", responseHeaders["Method"]); 173Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 174Assert.Equal("", responseHeaders["path"]); 175Assert.Equal("*", responseHeaders["rawtarget"]); 176Assert.Equal("0", responseHeaders["content-length"]); 192Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 193Assert.Equal("/", responseHeaders["path"]); 194Assert.Equal("/", responseHeaders["rawtarget"]); 195Assert.Equal("0", responseHeaders["content-length"]); 218Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 219Assert.Equal("/a/path", responseHeaders["path"]); 220Assert.Equal("?a&que%35ry", responseHeaders["query"]); 221Assert.Equal("/a/path?a&que%35ry", responseHeaders["rawtarget"]); 222Assert.Equal("0", responseHeaders["content-length"]); 252Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 253Assert.Equal("0", responseHeaders["content-length"]); 311Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 312Assert.Equal("0", responseHeaders["content-length"]); 350Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 351Assert.Equal("0", responseHeaders["content-length"]); 370Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 371Assert.Equal("0", responseHeaders["content-length"]); 391Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 392Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 393Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 414Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 415Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 416Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 437Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 438Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 439Assert.Equal("def", responseHeaders[HeaderNames.Host]); 460Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 461Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 462Assert.Equal("def", responseHeaders[HeaderNames.Host]); 570Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 571Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 606Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 607Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 641Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 642Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 843Assert.Equal("Value1", responseTrailers["Trailer1"]); 844Assert.Equal("Value2", responseTrailers["Trailer2"]); 875Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 909Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 910Assert.Equal("Custom 你好 Type", responseHeaders[HeaderNames.ContentType]); 911Assert.Equal("Custom 你好 Value", responseHeaders["CustomName"]); 969Assert.Equal("Value1", responseTrailers["Trailer1"]); 970Assert.Equal("Value2", responseTrailers["Trailer2"]); 1058Assert.Equal("Custom 你好 Value", responseTrailers["CustomName"]); 1059Assert.Equal("Custom 你好 Tag", responseTrailers[HeaderNames.ETag]); 1060Assert.Equal("Custom 你好 Accept", responseTrailers[HeaderNames.Accept]); 1163Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1164Assert.Equal("0", decodedHeaders["content-length"]); 1215Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1216Assert.Equal("0", decodedHeaders["content-length"]); 1219Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1310Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1362Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1363Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]); 1414Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1456Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1457Assert.Equal("0", decodedHeaders["content-length"]); 1510Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1516Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1565Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1571Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1739Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1745Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1803Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1809Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 2339Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]); 2340Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2397Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]); 2398Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2521Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]); 2522Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2562Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]); 2563Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2594Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]); 2595Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2634Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]); 2635Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2689Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]); 2690Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2733Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]); 2734Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2908Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 2912Assert.Equal(i + "-" + headerText, responseHeaders["Header" + i]); 2948Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 2953Assert.Equal(i + "-" + headerText, responseTrailers["Header" + i]); 2976Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
Interop.FunctionalTests (5)
Http3\Http3RequestTests.cs (5)
917var request1Headers = requestHeaders.Single(i => i["id"] == "1"); 930var request2Headers = requestHeaders.Single(i => i["id"] == "2"); 946var request3Headers = requestHeaders.Single(i => i["id"] == "3"); 952Assert.Same((string)request2Headers["alt-used"], (string)request3Headers["alt-used"]);
IOperationGenerator (3)
IOperationClassWriter.cs (3)
415if (_typeMap[type.Base] is { } baseNode) 652node = (AbstractNode?)_typeMap[node.Base] ?? 1082@base = _typeMap[baseName];
Microsoft.Arcade.Test.Common (2)
MockFileSystem.cs (2)
57public void CopyFile(string sourceFileName, string destFileName, bool overwrite = false) => Files[destFileName] = Files[sourceFileName]; 86: base(fileSystem.FileExists(path) ? System.Text.Encoding.UTF8.GetBytes(fileSystem.Files[path]) : new byte[2048])
Microsoft.AspNetCore.Analyzers.Test (6)
StartupFactsTest.cs (6)
115var compilation = TestCompilation.Create(TestSources[source]); 140var compilation = TestCompilation.Create(TestSources[source]); 163var compilation = TestCompilation.Create(TestSources[source]); 185var compilation = TestCompilation.Create(TestSources[source]); 207var compilation = TestCompilation.Create(TestSources[source]); 224var compilation = TestCompilation.Create(TestSources[source]);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
UserJwtsTests.cs (1)
158var jwt = deserialized[id];
Microsoft.AspNetCore.Authentication.Test (89)
FacebookTests.cs (9)
396Assert.Equal("Test App Id", entries["client_id"]); 397Assert.Equal("https://example.com/signin-facebook", entries["redirect_uri"]); 398Assert.Equal("Test App Secret", entries["client_secret"]); 399Assert.Equal("TestCode", entries["code"]); 400Assert.Equal("authorization_code", entries["grant_type"]); 401Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 439Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"])); 440Assert.Equal("S256", queryParams["code_challenge_method"]); 446"https://example.com/signin-facebook?code=TestCode&state=" + queryParams["state"],
GoogleTests.cs (33)
61Assert.Equal("code", queryParams["response_type"]); 62Assert.Equal("Test Id", queryParams["client_id"]); 67Assert.Equal("S256", queryParams["code_challenge_method"]); 191Assert.Equal("openid https://www.googleapis.com/auth/plus.login", query["scope"]); 192Assert.Equal("offline", query["access_type"]); 193Assert.Equal("force", query["approval_prompt"]); 194Assert.Equal("consent", query["prompt"]); 195Assert.Equal("false", query["include_granted_scopes"]); 196Assert.Equal("test@example.com", query["login_hint"]); 199var stateProperties = stateFormat.Unprotect(query["state"]); 243Assert.Equal("https://www.googleapis.com/auth/plus.login", query["scope"]); 244Assert.Equal("offline", query["access_type"]); 245Assert.Equal("force", query["approval_prompt"]); 246Assert.Equal("consent", query["prompt"]); 247Assert.Equal("false", query["include_granted_scopes"]); 248Assert.Equal("test@example.com", query["login_hint"]); 251var stateProperties = stateFormat.Unprotect(query["state"]); 299Assert.Equal("https://www.googleapis.com/auth/plus.login", query["scope"]); 300Assert.Equal("offline", query["access_type"]); 301Assert.Equal("force", query["approval_prompt"]); 302Assert.Equal("consent", query["prompt"]); 303Assert.Equal("false", query["include_granted_scopes"]); 304Assert.Equal("test@example.com", query["login_hint"]); 307var stateProperties = stateFormat.Unprotect(query["state"]); 1035Assert.Equal("Test Client Id", entries["client_id"]); 1036Assert.Equal("https://example.com/signin-google", entries["redirect_uri"]); 1037Assert.Equal("Test Client Secret", entries["client_secret"]); 1038Assert.Equal("TestCode", entries["code"]); 1039Assert.Equal("authorization_code", entries["grant_type"]); 1040Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 1072Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"])); 1073Assert.Equal("S256", queryParams["code_challenge_method"]); 1079"https://example.com/signin-google?code=TestCode&state=" + queryParams["state"],
MicrosoftAccountTests.cs (15)
271Assert.Equal("https://graph.microsoft.com/user.read", query["scope"]); 272Assert.Equal("consumers", query["domain_hint"]); 273Assert.Equal("username", query["login_hint"]); 274Assert.Equal("select_account", query["prompt"]); 275Assert.Equal("query", query["response_mode"]); 278var stateProperties = stateFormat.Unprotect(query["state"]); 302Assert.Equal("Test Client Id", entries["client_id"]); 303Assert.Equal("https://example.com/signin-microsoft", entries["redirect_uri"]); 304Assert.Equal("Test Client Secret", entries["client_secret"]); 305Assert.Equal("TestCode", entries["code"]); 306Assert.Equal("authorization_code", entries["grant_type"]); 307Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 339Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"])); 340Assert.Equal("S256", queryParams["code_challenge_method"]); 346"https://example.com/signin-microsoft?code=TestCode&state=" + queryParams["state"],
WsFederation\WsFederationTest.cs (16)
79Assert.Equal("http://Automation1", queryItems["wtrealm"]); 80Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 81Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 82Assert.Equal("wsignin1.0", queryItems["wa"]); 95Assert.Equal("http://Automation1", queryItems["wtrealm"]); 96Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 97Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 98Assert.Equal("wsignin1.0", queryItems["wa"]); 111Assert.Equal("http://Automation1", queryItems["wtrealm"]); 112Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 113Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]); 114Assert.Equal("wsignin1.0", queryItems["wa"]); 126var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 128request.Content = CreateSignInContent("WsFederation/ValidToken.xml", queryItems["wctx"]); 177var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 179request.Content = CreateSignInContent("WsFederation/InvalidToken.xml", queryItems["wctx"]);
WsFederation\WsFederationTest_Handler.cs (16)
77Assert.Equal("http://Automation1", queryItems["wtrealm"]); 78Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 79Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 80Assert.Equal("wsignin1.0", queryItems["wa"]); 93Assert.Equal("http://Automation1", queryItems["wtrealm"]); 94Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 95Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 96Assert.Equal("wsignin1.0", queryItems["wa"]); 109Assert.Equal("http://Automation1", queryItems["wtrealm"]); 110Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 111Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]); 112Assert.Equal("wsignin1.0", queryItems["wa"]); 124var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 126request.Content = CreateSignInContent("WsFederation/ValidToken.xml", queryItems["wctx"]); 175var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 177request.Content = CreateSignInContent("WsFederation/InvalidToken.xml", queryItems["wctx"]);
Microsoft.AspNetCore.Components (3)
Rendering\RenderTreeBuilder.cs (1)
816var 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.Endpoints (24)
Assets\ImportMapDefinition.cs (1)
141((Dictionary<string, string>)importMap._scopes[key])[scopeKey] = scopeValue;
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)
99var locationsForName = _namedSubmitEventsByScopeQualifiedName[scopeQualifiedName];
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileProvider.cs (1)
104return _fileTriggers[filter];
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
25get => _contents is null ? throw new KeyNotFoundException() : _contents[key];
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\EditFormTest.cs (2)
203Assert.Equal("my method", editFormAttributes["method"]); 204Assert.Equal("some value", editFormAttributes["custom attribute"]);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
106if ((preferredEncoding == encoding.Value || encoding.Value == "*") && ResourceExists(context, _encodingExtensionMap[preferredEncoding]))
Microsoft.AspNetCore.Components.WebAssembly.Tests (15)
Hosting\WebAssemblyHostConfigurationTest.cs (15)
100Assert.Equal("2008", section["year"]); 101Assert.Equal("4", section["count"]); 102Assert.Equal("michelin", section["brand"]); 103Assert.Equal("rally", section["brand:type"]); 163Assert.Equal("NoKeyValue1", dict[""]); 164Assert.Equal("ValueInMem1", dict["KeyInMem1"]); 165Assert.Equal("ValueDeep1", dict["KeyInMem1:Deep1"]); 169Assert.Equal("NoKeyValue2", dict2[""]); 170Assert.Equal("ValueInMem2", dict2["KeyInMem2"]); 171Assert.Equal("ValueDeep2", dict2["KeyInMem2:Deep2"]); 175Assert.Equal("NoKeyValue3", dict3[""]); 176Assert.Equal("ValueInMem3", dict3["KeyInMem3"]); 177Assert.Equal("ValueInMem4", dict3["KeyInMem4"]); 178Assert.Equal("ValueDeep3", dict3["KeyInMem3:Deep3"]); 179Assert.Equal("ValueDeep4", dict3["KeyInMem3:Deep4"]);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (2)
35return _counters[counterName].Reader.ReadAllAsync(cancellationToken); 55var writer = _counters[counter].Writer;
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRing.cs (1)
37_defaultKeyHolder = _keyIdToKeyHolderMap[DefaultKeyId];
Microsoft.AspNetCore.DataProtection.Tests (6)
KeyManagement\XmlKeyManagerTests.cs (6)
965Assert.True(keyDictWithRevocations[key1.KeyId].IsRevoked); 966Assert.True(keyDictWithRevocations[key2.KeyId].IsRevoked); 967Assert.True(keyDictWithRevocations[key3.KeyId].IsRevoked); 968Assert.False(keyDictWithRevocations[key4.KeyId].IsRevoked); 977Assert.True(keyDictWithRevocations[key2.KeyId].IsRevoked); 979Assert.False(keyDictWithRevocations[key4.KeyId].IsRevoked);
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.Grpc.Swagger.Tests (46)
Binding\BodyTests.cs (4)
27var path = swagger.Paths["/v1/body1"]; 46var path = swagger.Paths["/v1/body2"]; 62var path = swagger.Paths["/v1/body3"]; 76var path = swagger.Paths["/v1/body4"];
Binding\ParametersTests.cs (10)
27var path = swagger.Paths["/v1/parameters1"]; 43var path = swagger.Paths["/v1/parameters2/{parameterInt}"]; 59var path = swagger.Paths["/v1/parameters3/{parameterOne}"]; 80var path = swagger.Paths["/v1/parameters4/{parameterTwo}"]; 97var path = swagger.Paths["/v1/parameters5/{parameterOne}"]; 111var path = swagger.Paths["/v1/parameters6"]; 127var path = swagger.Paths["/v1/parameters7/{parameterOne.nestedParameterOne}/{parameterOne.nestedParameterTwo}"]; 149var path = swagger.Paths["/v1/parameters9"]; 171var path1 = swagger.Paths["/v1/parameters10/{parameterInt}:one"]; 173var path2 = swagger.Paths["/v1/parameters10/{parameterInt}:two"];
Binding\ResponseBodyTests.cs (8)
28var path = swagger.Paths["/v1/responsebody1"]; 31var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 42var path = swagger.Paths["/v1/responsebody2"]; 45var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 58var path = swagger.Paths["/v1/responsebody3"]; 61var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 83var path = swagger.Paths["/v1/responsebody4"]; 86var bodySchema = operation.Responses["200"].Content["application/json"].Schema;
GrpcSwaggerServiceExtensionsTests.cs (6)
47var path = swagger.Paths["/v1/greeter/{name}"]; 49Assert.Equal("OK", operation.Responses["200"].Description); 50Assert.Equal("Error", operation.Responses["default"].Description); 82Assert.True(swagger.Paths["/v1/greeter/{name}"].Operations.ContainsKey(OperationType.Get)); 87Assert.True(swagger.Paths["/v1/greeter/{name}"].Operations.ContainsKey(OperationType.Get)); 88Assert.True(swagger.Paths["/v1/add/{value1}/{value2}"].Operations.ContainsKey(OperationType.Get));
SchemaGeneratorIntegrationTests.cs (11)
39schema = repository.Schemas[schema.Reference.Id]; 43var enumSchema = repository.Schemas[schema.Properties["enumValue"].Reference.Id]; 63schema = repository.Schemas[schema.Reference.Id]; 83schema = repository.Schemas[schema.Reference.Id]; 100schema = repository.Schemas[schema.Reference.Id]; 113schema = repository.Schemas[schema.Reference.Id]; 143var resolvedSchema = repository.Schemas[schema.Reference.Id]; 158schema = repository.Schemas[schema.Reference.Id]; 173schema = repository.Schemas[schema.Reference.Id]; 190schema = repository.Schemas[schema.Reference.Id]; 205schema = repository.Schemas[schema.Reference.Id];
XmlComments\XmlDocumentationIntegrationTests.cs (7)
50var path = swagger.Paths["/v1/greeter/{name}"]; 61var path = swagger.Paths["/v1/greeter/{name}"]; 73var path = swagger.Paths["/v1/greeter/{name}"]; 85var path = swagger.Paths["/v1/greeter"]; 96var path = swagger.Paths["/v1/greeter"]; 107var path = swagger.Paths["/v1/greeter/{name}"]; 118var path = swagger.Paths["/v1/greeter/query/{name}"];
Microsoft.AspNetCore.Hosting.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (2)
35return _counters[counterName].Reader.ReadAllAsync(cancellationToken); 55var writer = _counters[counter].Writer;
Microsoft.AspNetCore.Http (2)
HeaderDictionary.cs (1)
109return Store[key];
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Http.Extensions (22)
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.Http.Extensions.Tests (6)
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (6)
109Assert.True(elements["foo"]); 110Assert.False(elements["bar"]); 111Assert.True(elements["baz"]); 146Assert.True(elements["foo"]); 147Assert.False(elements["bar"]); 148Assert.True(elements["baz"]);
Microsoft.AspNetCore.Http.Microbenchmarks (9)
AdaptiveCapacityDictionaryBenchmark.cs (9)
68_ = _dict[_oneValue.Key]; 179_ = _dictTen[val.Key]; 190_ = _dictTen[val.Key]; 200_ = _dictTen[val.Key]; 210_ = _dictTen[val.Key]; 220_ = _dictTen[val.Key]; 230_ = _dictTen[val.Key]; 241_ = _dictTen[val.Key]; 291_ = _filledDictTen["s"];
Microsoft.AspNetCore.Identity.FunctionalTests (10)
Infrastructure\ServerFactory.cs (1)
107var selectedFrameworkAssembly = _assemblyMap[framework == "V4" ? UIFramework.Bootstrap4 : UIFramework.Bootstrap5];
MapIdentityApiTests.cs (9)
43await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 62await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 73await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 106await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 134AddIdentityActions[addIdentityMode](services); 275await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 291await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 666await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 1025AddIdentityActions[addIdentityModes](services);
Microsoft.AspNetCore.Identity.InMemory.Test (4)
InMemoryStore.cs (2)
45roles.Add(_roles[r].Name); 114return Task.FromResult(_roles[roleId]);
InMemoryUserStore.cs (2)
200return Task.FromResult(_logins[key]); 237return Task.FromResult(_users[userId]);
Microsoft.AspNetCore.JsonPatch.Tests (9)
Internal\DictionaryAdapterTest.cs (9)
34Assert.Equal(200, dictionary[key]); 54Assert.Equal("James", dictionary[intKey]); 73Assert.Equal("James", dictionary[key]); 101Assert.Equal("James", dictionary[nameKey]); 128Assert.Equal("James", dictionary[nameKey]); 156Assert.Equal("James", dictionary[nameKey]); 176Assert.Equal("James", dictionary[guidKey]); 195Assert.Equal(5, dictionary[guidKey]); 254Assert.Equal("James", dictionary[nameKey].RectangleProperty);
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\ModelBinderFactory.cs (1)
159if (visited[key] is PlaceholderBinder placeholderBinder)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationParts\RelatedAssemblyPartTest.cs (1)
112return Assemblies[assemblyName.Name];
Controllers\ControllerBinderDelegateProviderTest.cs (2)
271Assert.Equal(value, arguments["foo"]); 899Assert.Null(arguments["test-parameter"]);
ModelBinding\FormValueProviderTest.cs (2)
31Assert.Equal(BackingStore[invariantCultureKey], invariantCultureResult.Values); 34Assert.Equal(BackingStore[currentCultureKey], currentCultureResult.Values);
ModelBinding\JQueryFormValueProviderTest.cs (2)
69Assert.Equal(BackingStore[invariantCultureKey], invariantCultureResult.Values); 72Assert.Equal(BackingStore[currentCultureKey], currentCultureResult.Values);
Routing\UrlHelperTestBase.cs (5)
637Assert.Same(id, dictionary["ID"]); 638Assert.Same(isprint, dictionary["isprint"]); 682Assert.Same(action, dict["ACTION"]); 683Assert.Same(controller, dict["Controller"]); 684Assert.Same(id, dict["ID"]);
SerializableErrorTests.cs (4)
23var arr = Assert.IsType<string[]>(serializableError["key1"]); 26Assert.Equal("Test Error 3", (serializableError["key2"] as string[])[0]); 40var arr = Assert.IsType<string[]>(serializableError["KEY1"]); 55var arr = Assert.IsType<string[]>(serializableError["key1"]);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
SerializableErrorWrapperTests.cs (1)
41Assert.Equal("key1-error", wrapper.SerializableError["key1"]);
Microsoft.AspNetCore.Mvc.FunctionalTests (17)
FormFileUploadTest.cs (2)
81Assert.Equal(new[] { "camera_spec1.txt", "camera_spec2.txt" }, product.Specs["camera"]); 83Assert.Equal(new[] { "battery_spec1.txt", "battery_spec2.txt" }, product.Specs["battery"]);
InputValidationTests.cs (10)
98errors["RequiredProp"]); 101errors["BindRequiredProp"]); 104errors["RequiredAndBindRequiredProp"]); 107errors["OptionalStringLengthProp"]); 110errors["OptionalRangeDisplayNameProp"]); 113errors["requiredParam"]); 116errors["bindRequiredParam"]); 119errors["requiredAndBindRequiredParam"]); 122errors["optionalStringLengthParam"]); 125errors["optionalRangeDisplayNameParam"]);
RoutingTestsBase.cs (4)
1198Assert.Equal("17", result.RouteValues["id"]); 1220Assert.Equal("17", result.RouteValues["id"]); 1242Assert.Equal("17", result.RouteValues["id"]); 1264Assert.Equal("123", result.RouteValues["id"]);
RoutingWithoutRazorPagesTestsBase.cs (1)
72Assert.Equal("pagevalue", result.RouteValues["page"]);
Microsoft.AspNetCore.Mvc.IntegrationTests (22)
BodyValidationIntegrationTests.cs (11)
133Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["CompanyName"]); 134Assert.Equal(priceRange, modelStateErrors["Price"]); 135Assert.Equal(categoryRequired, modelStateErrors["Category"]); 136Assert.Equal(contactUsRequired, modelStateErrors["Contact"]); 137Assert.Equal(detail2Required, modelStateErrors["ProductDetails.Detail2"]); 138Assert.Equal(detail3Required, modelStateErrors["ProductDetails.Detail3"]); 178Assert.Equal(productDetailsRequired, modelStateErrors["ProductDetails"]); 218Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors[""]); 298Assert.Equal(priceRange, modelStateErrors["Price"]); 299Assert.Equal(contactLength, modelStateErrors["Contact"]); 339Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors[""]);
TryValidateModelIntegrationTest.cs (11)
42Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors["software"]); 122Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["[0].CompanyName"]); 123Assert.Equal(priceRange, modelStateErrors["[0].Price"]); 124Assert.Equal(categoryRequired, modelStateErrors["[0].Category"]); 125AssertErrorEquals(contactUsMax + contactUsRegEx, modelStateErrors["[0].Contact"]); 126Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["[1].CompanyName"]); 127Assert.Equal(priceRange, modelStateErrors["[1].Price"]); 128Assert.Equal(categoryRequired, modelStateErrors["[1].Category"]); 129AssertErrorEquals(contactUsMax + contactUsRegEx, modelStateErrors["[1].Contact"]); 149AssertErrorEquals("Property", modelStateErrors["Message"]); 150AssertErrorEquals("Model", modelStateErrors[""]);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
502format = _rfc3339Formats["datetime"];
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
CookieTempDataProviderTest.cs (1)
351public CookieInfo this[string key] => _cookies[key];
Rendering\HtmlHelperHiddenTest.cs (2)
770model => model.Property3["key"], 829model => model.Property3["key"],
Rendering\HtmlHelperPasswordTest.cs (2)
330model => model.Property3["key"], 478model => model.Property3["key"],
Rendering\HtmlHelperTextAreaTest.cs (2)
48model => model.Property3["key"], 95model => model.Property3["key"],
Rendering\HtmlHelperTextBoxTest.cs (2)
66model => model.Property3["key"], 113model => model.Property3["key"],
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
104return _fileTriggers[filter];
Microsoft.AspNetCore.OpenApi (1)
Comparers\ComparerHelpers.cs (1)
45if (!y.TryGetValue(key, out var value) || !comparer.Equals(x[key], value))
Microsoft.AspNetCore.OpenApi.Tests (150)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (3)
143var defaultOperation = operation.Responses["200"]; 146var annotatedOperation = operation.Responses["201"]; 198Summary = $"| Local Summary | 200 Status Response Content-Type: {operation.Responses["200"].Content.Keys.Single()}"
Services\CreateSchemaReferenceIdTests.cs (7)
35var operation = document.Paths["/api"].Operations[OperationType.Post]; 73var operation = document.Paths["/"].Operations[OperationType.Post]; 122var operation = document.Paths["/"].Operations[OperationType.Post]; 179var operation = document.Paths["/"].Operations[OperationType.Post]; 181var response = operation.Responses["200"]; 222var operation = document.Paths["/"].Operations[OperationType.Post]; 224var response = operation.Responses["200"];
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Operations.cs (10)
25var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 43var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 61var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 79var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 96var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 120var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 144var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 196var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 214var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 229var operation = document.Paths["/api/todos"].Operations[OperationType.Get];
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (24)
26var pathParameter = Assert.Single(document.Paths["/api/todos/{id}"].Operations[OperationType.Get].Parameters); 30var queryParameter = Assert.Single(document.Paths["/api/todos"].Operations[OperationType.Get].Parameters); 34var headerParameter = Assert.Single(document.Paths["/api"].Operations[OperationType.Get].Parameters); 55var pathParameter = Assert.Single(document.Paths["/api/todos/{id}"].Operations[OperationType.Get].Parameters); 58var guidParameter = Assert.Single(document.Paths["/api/todos/{guid}"].Operations[OperationType.Get].Parameters); 61var isCompletedParameter = Assert.Single(document.Paths["/api/todos/{isCompleted}"].Operations[OperationType.Get].Parameters); 81var queryParameter = Assert.Single(document.Paths["/api/todos"].Operations[OperationType.Get].Parameters); 84var nullableQueryParameter = Assert.Single(document.Paths["/api/users"].Operations[OperationType.Get].Parameters); 87var defaultQueryParameter = Assert.Single(document.Paths["/api/projects"].Operations[OperationType.Get].Parameters); 107var headerParameter = Assert.Single(document.Paths["/api/todos"].Operations[OperationType.Get].Parameters); 110var nullableHeaderParameter = Assert.Single(document.Paths["/api/users"].Operations[OperationType.Get].Parameters); 113var defaultHeaderParameter = Assert.Single(document.Paths["/api/projects"].Operations[OperationType.Get].Parameters); 136var pathParameter = Assert.Single(document.Paths["/api/todos/{id}"].Operations[OperationType.Get].Parameters); 139var guidParameter = Assert.Single(document.Paths["/api/todos/{guid}"].Operations[OperationType.Get].Parameters); 142var isCompletedParameter = Assert.Single(document.Paths["/api/todos/{isCompleted}"].Operations[OperationType.Get].Parameters); 162var usersOperation = document.Paths["/api/users"].Operations[OperationType.Post]; 164var todosOperation = document.Paths["/api/todos"].Operations[OperationType.Post]; 186Assert.Null(document.Paths["/api/accept"].Operations[OperationType.Get].Parameters); 187Assert.Null(document.Paths["/api/accept-lower"].Operations[OperationType.Get].Parameters); 188Assert.Null(document.Paths["/api/authorization"].Operations[OperationType.Get].Parameters); 189Assert.Null(document.Paths["/api/authorization-lower"].Operations[OperationType.Get].Parameters); 190Assert.Null(document.Paths["/api/content-type"].Operations[OperationType.Get].Parameters); 191Assert.Null(document.Paths["/api/content-type-lower"].Operations[OperationType.Get].Parameters); 202var operation = document.Paths["/custom-binding"].Operations[OperationType.Get];
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Responses.cs (13)
27var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 55var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 79var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 104var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 127var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 157var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 181var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 200var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 228var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 261var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 280var okResponse = operation.Responses["200"]; 327var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 358var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values);
Services\OpenApiGeneratorTests.cs (16)
208var createdResponseType = responses["201"]; 214var badRequestResponseType = responses["400"]; 231var createdResponseType = operation.Responses["201"]; 237var badRequestResponseType = operation.Responses["400"]; 253var successResponse = operation.Responses["201"]; 256var clientErrorResponse = operation.Responses["400"]; 270var continueResponse = operation.Responses["100"]; 273var switchingProtocolsResponse = operation.Responses["101"]; 290var continueResponse = operation.Responses["100"]; 293var createdResponse = operation.Responses["201"]; 296var multipleChoicesResponse = operation.Responses["300"]; 299var badRequestResponse = operation.Responses["400"]; 302var InternalServerErrorResponse = operation.Responses["500"]; 317var unregisteredResponse1 = operation.Responses["46"]; 320var unregisteredResponse2 = operation.Responses["654"]; 323var unregisteredResponse3 = operation.Responses["1111"];
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (2)
621var operation = document.Paths["/api/with-enum"].Operations[OperationType.Get]; 691var operation = document.Paths["/api/{student}"].Operations[OperationType.Get];
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (7)
22var operation = document.Paths["/api"].Operations[OperationType.Post]; 59var operation = document.Paths["/api"].Operations[OperationType.Post]; 104var operation = document.Paths["/api"].Operations[OperationType.Post]; 143var operation = document.Paths["/api"].Operations[OperationType.Post]; 182var operation = document.Paths["/api"].Operations[OperationType.Post]; 235var operation = document.Paths["/api"].Operations[OperationType.Post]; 270var operation = document.Paths["/api"].Operations[OperationType.Post];
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (19)
29var operation = document.Paths["/"].Operations[OperationType.Post]; 86var operation = document.Paths["/"].Operations[OperationType.Post]; 147var operation = document.Paths[path].Operations[OperationType.Post]; 164var operation = document.Paths["/required-properties"].Operations[OperationType.Post]; 191var operation = document.Paths[$"/{path}"].Operations[OperationType.Post]; 214var operation = document.Paths[$"/proposal"].Operations[OperationType.Post]; 247var enumerableTodo = document.Paths["/enumerable-todo"].Operations[OperationType.Post]; 248var arrayTodo = document.Paths["/array-todo"].Operations[OperationType.Post]; 249var arrayParsable = document.Paths["/array-parsable"].Operations[OperationType.Get]; 308var operation = document.Paths["/api"].Operations[OperationType.Post]; 348var operation = document.Paths["/api"].Operations[OperationType.Post]; 396var operation = document.Paths["/api"].Operations[OperationType.Post]; 414var operation = document.Paths["/api"].Operations[OperationType.Post]; 466var operation = document.Paths["/api"].Operations[OperationType.Post]; 511var operation = document.Paths["/api"].Operations[OperationType.Post]; 576var operation = document.Paths["/api"].Operations[OperationType.Post]; 611var operation = document.Paths["/api"].Operations[OperationType.Post]; 637var operation = document.Paths["/api"].Operations[OperationType.Post]; 675var operation = document.Paths["/api"].Operations[OperationType.Post];
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (19)
27var operation = document.Paths["/api"].Operations[OperationType.Post]; 31var operation2 = document.Paths["/api-2"].Operations[OperationType.Post]; 78var operation = document.Paths["/api"].Operations[OperationType.Post]; 82var response = operation.Responses["200"]; 132var operation = document.Paths["/api"].Operations[OperationType.Post]; 136var operation2 = document.Paths["/api-2"].Operations[OperationType.Post]; 189var operation = document.Paths["/api"].Operations[OperationType.Post]; 193var operation2 = document.Paths["/api-2"].Operations[OperationType.Post]; 225var operation = document.Paths["/api"].Operations[OperationType.Post]; 229var operation2 = document.Paths["/api-2"].Operations[OperationType.Post]; 292var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 317var operation = document.Paths["/api"].Operations[OperationType.Post]; 318var requestBody = operation.Responses["200"].Content["application/json"]; 321var operation2 = document.Paths["/api-2"].Operations[OperationType.Post]; 322var requestBody2 = operation2.Responses["200"].Content["application/json"]; 374var operation = document.Paths["/"].Operations[OperationType.Post]; 438var operation = document.Paths["/"].Operations[OperationType.Post]; 473var operation = document.Paths["/todo"].Operations[OperationType.Get]; 474var response = operation.Responses["200"].Content["application/json"];
Transformers\SchemaTransformerTests.cs (30)
198var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 228var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 251var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 274var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 302var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 312var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 337var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 347var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 374var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 400var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 462var path = document.Paths["/list"]; 464var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 468path = document.Paths["/single"]; 470responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 496var path = document.Paths["/shape"]; 503path = document.Paths["/triangle"]; 531var path = document.Paths["/list-of-todo"]; 533var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 538var otherPath = document.Paths["/list-of-int"]; 540var otherResponseSchema = otherGetOperation.Responses["200"].Content["application/json"].Schema; 570var path = document.Paths["/list"]; 572var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 611var path = document.Paths["/list"]; 613var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 652var path = document.Paths["/list"]; 654var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 692var path = document.Paths["/todo"]; 733var path = document.Paths["/todo"]; 735var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema.GetEffective(document); 738var shapePath = document.Paths["/shape"];
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
347return ValueTask.FromResult(_storage[key]);
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\TestServerVariablesFeature.cs (1)
19get => _variables[variableName];
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)
261var 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.Core.Tests (55)
CertificatePathWatcherTests.cs (2)
526var oldChangeToken = _changeTokens[path]; 543return new MockFileInfo(_lastModifiedTimes[subpath]);
ConnectionDispatcherTests.cs (1)
47Assert.Equal(connection.ConnectionId, pairs["ConnectionId"]);
SniOptionsSelectorTests.cs (17)
73Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]); 76Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]); 79Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]); 85Assert.Equal("WildcardOnly", pathDictionary[noSubdomainOptions.ServerCertificate]); 88Assert.Equal("WildcardOnly", pathDictionary[anotherTldOptions.ServerCertificate]); 130Assert.Equal("Long", pathDictionary[baSubdomainOptions.ServerCertificate]); 134Assert.Equal("Short", pathDictionary[aSubdomainOptions.ServerCertificate]); 176Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]); 179Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]); 182Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]); 225Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]); 228Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]); 231Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]); 240var fullChain = fullChainDictionary[aSubdomainOptions.ServerCertificate]; 288Assert.Equal("a", pathDictionary[aSubdomainOptions.ServerCertificate]); 291Assert.Equal("b", pathDictionary[bSubdomainOptions.ServerCertificate]); 381Assert.Equal("WildcardOnly", pathDictionary[options.ServerCertificate]);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (22)
123Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 125Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key); 126Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value); 137Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]); 139Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key); 140Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value); 151Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]); 170Assert.Equal(_literalHeaderNameString, _handler.DecodedHeaders[_headerNameString]); // but we got the header anyway 515Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 531Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 547Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 563Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 579Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 595Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 631Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 646Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 696Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 729Assert.Equal(string8191, _handler.DecodedHeaders[string8191]); 730Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 754Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 779Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 943Assert.Equal(expectedHeaderValue, handler.DecodedHeaders[expectedHeaderName]);
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (13)
77Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 79Assert.Equal(":method", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Key); 80Assert.Equal("GET", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Value); 92Assert.Equal(_headerValueString, _handler.DecodedHeaders[_contentTypeString]); 94Assert.Equal(_contentTypeString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Key); 95Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Value); 193Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 209Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 225Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 241Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 257Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 273Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 357Assert.Equal(expectedValue.Value, handler.DecodedHeaders[expectedValue.Key]);
Microsoft.AspNetCore.Shared.Tests (40)
CopyOnWriteDictionaryHolderTest.cs (2)
55Assert.Equal("value2", source["key2"]); 82Assert.Equal("value1", source["key1"]);
CopyOnWriteDictionaryTest.cs (2)
76Assert.Equal("value2", sourceDictionary["key2"]); 102Assert.Equal("value1", sourceDictionary["key1"]);
runtime\Http2\HPackDecoderTest.cs (22)
123Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 125Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key); 126Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value); 137Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]); 139Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key); 140Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value); 151Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]); 170Assert.Equal(_literalHeaderNameString, _handler.DecodedHeaders[_headerNameString]); // but we got the header anyway 515Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 531Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 547Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 563Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 579Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 595Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 631Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 646Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 696Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 729Assert.Equal(string8191, _handler.DecodedHeaders[string8191]); 730Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 754Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 779Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 943Assert.Equal(expectedHeaderValue, handler.DecodedHeaders[expectedHeaderName]);
runtime\Http3\QPackDecoderTest.cs (13)
77Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 79Assert.Equal(":method", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Key); 80Assert.Equal("GET", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Value); 92Assert.Equal(_headerValueString, _handler.DecodedHeaders[_contentTypeString]); 94Assert.Equal(_contentTypeString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Key); 95Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Value); 193Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 209Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 225Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 241Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 257Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 273Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 357Assert.Equal(expectedValue.Value, handler.DecodedHeaders[expectedValue.Key]);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (79)
HubConnectionTests.cs (46)
92var protocol = HubProtocols[protocolName]; 131var protocol = HubProtocols["json"]; 161var protocol = HubProtocols["json"]; 191var protocol = HubProtocols[protocolName]; 220var protocol = HubProtocols[protocolName]; 249var protocol = HubProtocols[protocolName]; 281var protocol = HubProtocols[protocolName]; 316var protocol = HubProtocols[protocolName]; 378var protocol = HubProtocols[protocolName]; 408var protocol = HubProtocols[protocolName]; 448var protocol = HubProtocols[protocolName]; 483var protocol = HubProtocols[protocolName]; 529var protocol = HubProtocols[protocolName]; 564var protocol = HubProtocols[protocolName]; 601var protocol = HubProtocols[protocolName]; 649var protocol = HubProtocols[protocolName]; 685var protocol = HubProtocols[protocolName]; 719var protocol = HubProtocols[protocolName]; 761var protocol = HubProtocols[protocolName]; 791var protocol = HubProtocols[protocolName]; 828var protocol = HubProtocols[protocolName]; 875var protocol = HubProtocols[protocolName]; 928var protocol = HubProtocols[protocolName]; 969var protocol = HubProtocols[protocolName]; 1010var protocol = HubProtocols[protocolName]; 1045var protocol = HubProtocols[protocolName]; 1073var hubProtocol = HubProtocols[hubProtocolName]; 1100var hubProtocol = HubProtocols[hubProtocolName]; 1127var hubProtocol = HubProtocols[hubProtocolName]; 1154var hubProtocol = HubProtocols[hubProtocolName]; 1181var hubProtocol = HubProtocols[hubProtocolName]; 1209var hubProtocol = HubProtocols[hubProtocolName]; 1237var hubProtocol = HubProtocols[hubProtocolName]; 1265var hubProtocol = HubProtocols[hubProtocolName]; 1292var hubProtocol = HubProtocols[hubProtocolName]; 1319var hubProtocol = HubProtocols[hubProtocolName]; 1355var protocol = HubProtocols[protocolName]; 1409var protocol = HubProtocols[protocolName]; 2328await using var connection = CreateHubConnection(server.Url, "/default", transportType, HubProtocols["json"], LoggerFactory); 2553var protocol = HubProtocols["json"]; 2612var protocol = HubProtocols["json"]; 2682var protocol = HubProtocols["json"]; 2754var protocol = HubProtocols["json"]; 2806var protocol = HubProtocols["json"]; 2856var protocol = HubProtocols["json"]; 2878connectionBuilder.Services.AddSingleton<IHubProtocol>(new HubProtocolVersionTests.SingleVersionHubProtocol(HubProtocols["json"], 1));
HubConnectionTests.Tracing.cs (33)
32var protocol = HubProtocols[protocolName]; 161Assert.Equal("value-1", baggage["baggage-1"]); 173Assert.Equal("value-2", baggage["baggage-2"]); 194Assert.Equal("value-1", baggage["baggage-1"]); 197Assert.Equal("signalr", tags["rpc.system"]); 198Assert.Equal("HelloWorld", tags["rpc.method"]); 199Assert.Equal(clientHubName, tags["rpc.service"]); 200Assert.Equal("127.0.0.1", tags["server.address"]); 201Assert.Equal(port, (int)tags["server.port"]); 211Assert.Equal("value-2", baggage["baggage-2"]); 214Assert.Equal("signalr", tags["rpc.system"]); 215Assert.Equal("HelloWorld", tags["rpc.method"]); 216Assert.Equal(clientHubName, tags["rpc.service"]); 217Assert.Equal("127.0.0.1", tags["server.address"]); 218Assert.Equal(port, (int)tags["server.port"]); 226var protocol = HubProtocols[protocolName]; 334Assert.Equal("value-1", baggage["baggage-1"]); 355Assert.Equal("value-1", baggage["baggage-1"]); 358Assert.Equal("signalr", tags["rpc.system"]); 359Assert.Equal("Stream", tags["rpc.method"]); 360Assert.Equal(clientHubName, tags["rpc.service"]); 361Assert.Equal("127.0.0.1", tags["server.address"]); 362Assert.Equal(port, (int)tags["server.port"]); 371var protocol = HubProtocols[protocolName]; 450Assert.Equal(typeof(OperationCanceledException).FullName, tags["error.type"]); 459Assert.Equal(typeof(OperationCanceledException).FullName, tags["error.type"]); 474var protocol = HubProtocols[protocolName]; 547Assert.Equal(typeof(HubException).FullName, tags["error.type"]); 556Assert.Equal(typeof(HubException).FullName, tags["error.type"]); 570var protocol = HubProtocols[protocolName]; 642Assert.Equal(typeof(HubException).FullName, tags["error.type"]); 652Assert.Equal(typeof(HubException).FullName, tags["error.type"]); 660var protocol = HubProtocols[protocolName];
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HttpConnectionFactoryTests.cs (2)
112property.SetValue(options, testValues[property.Name]); 119Assert.Equal(testValues[property.Name], property.GetValue(shallowCopiedOptions));
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
DefaultHubMessageSerializerTests.cs (2)
22var testData = _invocationTestData[testName]; 42var testData = _invocationTestData["Single supported protocol"];
RedisProtocolTests.cs (9)
37var testData = _ackTestData[testName]; 49var testData = _ackTestData[testName]; 69var testData = _groupCommandTestData[testName]; 85var testData = _groupCommandTestData[testName]; 144var testData = _invocationTestData[testName]; 176var testData = _invocationTestData[testName]; 191var testData = _invocationTestData[testName]; 254var testData = _completionMessageTestData[testName]; 266var testData = _completionMessageTestData[testName];
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTests.cs (2)
2470Assert.Equal("formattedString", result["Message"]); 2471Assert.Equal("formattedString", result["paramName"]);
UserAgentHeaderTest.cs (1)
18var testData = UserAgents[testDataName];
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
34_expandingAccumulator[key].Add(value);
Microsoft.AspNetCore.WebUtilities.Tests (95)
FormPipeReaderTests.cs (45)
21Assert.Equal("bar", formCollection[""].ToString()); 31Assert.Equal("bar", formCollection[""].ToString()); 32Assert.Equal("2", formCollection["baz"].ToString()); 42Assert.Equal("", formCollection["foo"].ToString()); 52Assert.Equal("", formCollection["foo"].ToString()); 62Assert.Equal("", formCollection["foo"].ToString()); 63Assert.Equal("2", formCollection["baz"].ToString()); 73Assert.Equal("", formCollection["foo"].ToString()); 74Assert.Equal("2", formCollection["baz"].ToString()); 96Assert.Equal("1", formCollection["foo"].ToString()); 97Assert.Equal("2", formCollection["bar"].ToString()); 98Assert.Equal("3", formCollection["baz"].ToString()); 139Assert.Equal("1", formCollection["fooooooooo"].ToString()); 140Assert.Equal("2", formCollection["bar"].ToString()); 141Assert.Equal("3,4", formCollection["baz"].ToString()); 167Assert.Equal("1", formCollection["foo"].ToString()); 168Assert.Equal("1234567890", formCollection["bar"].ToString()); 169Assert.Equal("3,4", formCollection["baz"].ToString()); 251Assert.Equal(expectedValue, form[key]); 268Assert.Equal("bar", dict["foo"]); 269Assert.Equal("boo", dict["baz"]); 286Assert.Equal("bar", dict["foo"]); 287Assert.Equal("boo", dict["baz"]); 288Assert.Equal("", dict["t"]); 308Assert.Equal("bar", dict["foo"]); 309Assert.Equal("boo", dict["baz"]); 310Assert.Equal("", dict["t"]); 327Assert.Equal("bar", dict["foo"]); 328Assert.Equal("boo", dict["baz"]); 329Assert.Equal("", dict["t"]); 349Assert.Equal("bar", dict["foo"]); 350Assert.Equal("boo", dict["baz"]); 351Assert.Equal("", dict["t"]); 368Assert.Equal("bar", dict["foo"]); 369Assert.Equal("bo" + new string('a', 128), dict["baz"]); 386Assert.Equal(" ", dict[" "]); 387Assert.Equal(" ", dict[" "]); 388Assert.Equal("", dict[" "]); 405Assert.Equal(" ", dict[" "]); 406Assert.Equal(" +", dict[" +"]); 407Assert.Equal("", dict[" "]); 424Assert.Equal("\"%-.<>\\^_`{|}~", dict["\"%-.<>\\^_`{|}~"]); 425Assert.Equal("wow", dict["\"%-.<>\\^_`{|}"]); 441Assert.Equal("bar", dict["foo"]); 442Assert.Equal("boo", dict["baz"]);
FormReaderTests.cs (16)
20Assert.Equal("bar", formCollection[""].ToString()); 32Assert.Equal("bar", formCollection[""].ToString()); 33Assert.Equal("2", formCollection["baz"].ToString()); 45Assert.Equal("", formCollection["foo"].ToString()); 57Assert.Equal("", formCollection["foo"].ToString()); 58Assert.Equal("2", formCollection["baz"].ToString()); 70Assert.Equal("1", formCollection["foo"].ToString()); 71Assert.Equal("2", formCollection["bar"].ToString()); 72Assert.Equal("3", formCollection["baz"].ToString()); 109Assert.Equal("1", formCollection["foo"].ToString()); 110Assert.Equal("2", formCollection["bar"].ToString()); 111Assert.Equal("3,4", formCollection["baz"].ToString()); 136Assert.Equal("1", formCollection["foo"].ToString()); 137Assert.Equal("1234567890", formCollection["bar"].ToString()); 138Assert.Equal("3,4", formCollection["baz"].ToString()); 202Assert.Equal(expectedValue, form[key]);
MultipartReaderTests.cs (20)
116Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 159Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 176Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 193Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 201Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]); 202Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 219Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 227Assert.Equal("form-data; name=\"file1\"; filename=\"a色.txt\"", section.Headers["Content-Disposition"][0]); 228Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 245Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 253Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]); 254Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 262Assert.Equal("form-data; name=\"file2\"; filename=\"a.html\"", section.Headers["Content-Disposition"][0]); 263Assert.Equal("text/html", section.Headers["Content-Type"][0]); 292Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 300Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]); 301Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 339Assert.Equal("form-data; name=\"text\" filename=\"a\uFFFD!.txt\"", section.Headers["Content-Disposition"][0]); 374Assert.Equal("form-data; name=\"text\" filename=\"a\uFFFD\uFFFDU.txt\"", section.Headers["Content-Disposition"][0]); 403Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
QueryHelpersTests.cs (14)
15Assert.Equal("value1", collection["key1"].FirstOrDefault()); 16Assert.Equal("value2", collection["key2"].FirstOrDefault()); 24Assert.Equal("value1", collection["key1"].FirstOrDefault()); 25Assert.Equal("value2", collection["key2"].FirstOrDefault()); 33Assert.Equal(new[] { "valueA", "valueC" }, collection["key1"].ToArray()); 34Assert.Equal("valueB", collection["key2"].FirstOrDefault()); 42Assert.Equal(string.Empty, collection["key1"].FirstOrDefault()); 43Assert.Equal(string.Empty, collection["key2"].FirstOrDefault()); 51Assert.Equal(new[] { "value1", "" }, collection[""].ToArray()); 59Assert.Equal("", collection["fields [todoItems]"].FirstOrDefault()); 67Assert.Equal("fields [todoItems]", collection[""].FirstOrDefault()); 75Assert.Equal("", collection["fields [todoItems]"].FirstOrDefault()); 83Assert.Equal("[ 1 ]", collection["fields [todoItems]"].FirstOrDefault()); 91Assert.Equal(new[] { "[ 1 ]", "[ 2 ]" }, collection["fields [todoItems]"].ToArray());
Microsoft.Build (71)
BackEnd\BuildManager\BuildManager.cs (1)
2056ProjectGraphNode finishedNode = buildingNodes[finishedBuildSubmission];
BackEnd\BuildManager\CacheAggregator.cs (1)
94configIdMapping[result.ConfigurationId],
BackEnd\Components\BuildComponentFactoryCollection.cs (3)
113BuildComponentEntry existingEntry = _componentEntriesByType[componentType]; 124BuildComponentEntry existingEntry = _componentEntriesByType[componentType]; 135ErrorUtilities.VerifyThrow(_componentEntriesByType[componentType].Pattern == CreationPattern.Singleton, "Previously existing factory for type {0} was not a singleton factory.", componentType);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
402BuildRequestEntry entry = _requestsByGlobalRequestId[unblocker.BlockedRequestId]; 482BuildRequestEntry entry = _requestsByGlobalRequestId[response.GlobalRequestId];
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
519_unresolvedConfigurations[newRequest.ConfigurationId].Add(newRequest);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
188SendData(_nodeContexts[hostContext], packet); 502NodeContext context = _nodeContexts[hostContext];
BackEnd\Components\Logging\LoggingService.cs (1)
1077EventSourceSink eventSource = (EventSourceSink)_eventSinkDictionary[_centralForwardingLoggerSinkId];
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
534discreteTargetInputItemSpecs.AddRange(GetItemSpecsFromItemVectors(itemVectorsInTargetInputs, itemVectorType, itemVectorsInTargetInputs[itemVectorType])); 605ItemVectorPartition inputItemVectors = itemVectorsInTargetInputs[itemVectorType]; 606ItemVectorPartition outputItemVectors = itemVectorsInTargetOutputs[itemVectorType]; 847ItemVectorPartition itemVectorPartition = itemVectorCollection[itemVectorType]; 849ErrorUtilities.VerifyThrow(!itemVectorCollection[itemVectorType].ContainsKey(item), "ItemVectorPartition already contains a vector for items with the expression '{0}'", item);
BackEnd\Components\Scheduler\SchedulableRequest.cs (3)
305return _timeRecords[desiredState].AccumulatedTime; 476_timeRecords[_state].EndState(currentTime); 477_timeRecords[newState].StartState(currentTime);
BackEnd\Components\Scheduler\Scheduler.cs (12)
1166if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1300configurationCountLimit += configurationCountsByNode[availableNodeId]; 1309return Comparer<int>.Default.Compare(configurationCountsByNode[left], configurationCountsByNode[right]); 1334if (request.AssignedNode == nodeId || requiredNodeId == nodeId || configurationCountsByNode[nodeId] <= configurationCountLimit) 1340else if (configurationCountsByNode[nodeId] > configurationCountLimit) 1342TraceScheduler("Chose not to assign request {0} to node {2} because its count of configurations ({3}) exceeds the current limit ({4}).", request.BuildRequest.GlobalRequestId, request.BuildRequest.ConfigurationId, nodeId, configurationCountsByNode[nodeId], configurationCountLimit); 1364bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1455bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1731if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1741existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 2365int nodeForEvent = availableNodeIdsToIndex[buildEvent.Request.AssignedNode];
BackEnd\Components\Scheduler\SchedulingData.cs (13)
294_buildHierarchy[parent].Add(request); 327_readyRequestsByNode[request.AssignedNode].Remove(request); 331LinkedListNode<SchedulableRequest> requestNode = _unscheduledRequestNodesByRequest[request]; 380ErrorUtilities.VerifyThrow(_configurationToRequests[request.BuildRequest.ConfigurationId].Count > 0, "Configuration {0} has no requests assigned to it.", request.BuildRequest.ConfigurationId); 381_configurationToRequests[request.BuildRequest.ConfigurationId].Remove(request); 392ErrorUtilities.VerifyThrow(!_executingRequestByNode.ContainsKey(request.AssignedNode) || _executingRequestByNode[request.AssignedNode] == null, "Node {0} is currently executing a request.", request.AssignedNode); 431return _configurationToRequests[configurationId]; 454return _executingRequests[globalRequestId]; 463return _blockedRequests[globalRequestId]; 486return _yieldingRequests[globalRequestId]; 495return _readyRequests[globalRequestId]; 554return _executingRequestByNode[nodeId]; 628return _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]; 381PlanConfigData parent = _configIdToData[configId]; 386PlanConfigData child = _configIdToData[childId];
Collections\HashTableUtility.cs (1)
53comparison = String.Compare(h1Entry.Value, h2[h1Entry.Key],
Collections\WeakValueDictionary.cs (2)
89WeakReference<V> wrappedValue = _dictionary[key]; 103wrappedValue = _dictionary[key];
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (3)
71ItemDataCollectionValue<I> oldDictionaryEntry = _dictionaryBuilder[oldNormalizedValue]; 82ItemDataCollectionValue<I> newDictionaryEntry = _dictionaryBuilder[newNormalizedValue]; 89ItemDataCollectionValue<I> dictionaryEntry = _dictionaryBuilder[newNormalizedValue];
Evaluation\Preprocessor.cs (1)
149imports = _implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument];
Graph\GraphBuilder.cs (5)
92EntryPointNodes = _entryPointConfigurationMetadata.Select(e => allParsedProjects[e].GraphNode).ToList(); 148allParsedProjects[referenceInfo.ReferenceConfiguration].GraphNode, 155foreach (var transitiveProjectReference in GetTransitiveProjectReferencesExcludingSelf(allParsedProjects[referenceInfo.ReferenceConfiguration])) 186ParsedProject reference = allParsedProjects[referenceInfo.ReferenceConfiguration]; 210projectsByPath[projectPath].Add(project.Value.GraphNode);
Graph\ProjectGraph.cs (1)
714targetLists[node] = targetLists[node].AddRange(requestedTargets);
Instance\ProjectInstance.cs (1)
3299multiDictionary.Add(item.EvaluatedInclude, projectItemToInstanceMap[item]);
Logging\ProfilerLogger.cs (1)
165AggregateProfiledLocation(profiledLocation, _aggregatedLocations[evaluationLocation]));
NodePacketFactory.cs (1)
66PacketFactoryRecord record = _packetFactories[packet.Type];
PlatformNegotiation.cs (4)
65projectReferencePlatforms.Contains(projectReferenceLookupTable[currentProjectPlatform])) 67buildProjectReferenceAs = projectReferenceLookupTable[currentProjectPlatform]; 73projectReferencePlatforms.Contains(currentProjectLookupTable[currentProjectPlatform])) 75buildProjectReferenceAs = currentProjectLookupTable[currentProjectPlatform];
Microsoft.Build.BuildCheck.UnitTests (3)
ConfigurationProvider_Tests.cs (2)
62configs["property2"].ShouldBe("value2"); 63configs["property1"].ShouldBe("value1");
EditorConfigParser_Tests.cs (1)
57mergedResult["property1"].ShouldBe("value1");
Microsoft.Build.Engine.OM.UnitTests (5)
Construction\ProjectTaskElement_Tests.cs (4)
143Assert.Equal("v1", parameters["p1"]); 144Assert.Equal("v2", parameters["p2"]); 162Assert.Equal("v1b", parameters["p1"]); 230Assert.Equal("v2", parameters["p2"]);
Instance\ProjectItemInstance_Tests.cs (1)
1205Assert.Equal(expected[key], item.GetMetadataValue(key));
Microsoft.Build.Engine.UnitTests (97)
BackEnd\BinaryTranslator_Tests.cs (16)
444Assert.Equal(value["foo"], deserializedValue["foo"]); 445Assert.Equal(value["alpha"], deserializedValue["alpha"]); 446Assert.Equal(value["FOO"], deserializedValue["FOO"]); 482Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"])); 483Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"])); 484Assert.Equal(0, BaseClass.Comparer.Compare(value["FOO"], deserializedValue["FOO"])); 521Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"])); 522Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
BackEnd\NodeEndpointInProc_Tests.cs (4)
268Assert.Equal(LinkStatus.Active, _linkStatusTable[endpoints.NodeEndpoint].status); 269Assert.Equal(LinkStatus.Active, _linkStatusTable[endpoints.ManagerEndpoint].status); 418Assert.Equal(LinkStatus.Inactive, _linkStatusTable[endpoints.NodeEndpoint].status); 419Assert.Equal(LinkStatus.Inactive, _linkStatusTable[endpoints.ManagerEndpoint].status);
BackEnd\RequestedProjectState_Tests.cs (2)
83items["item2"].Add("metadatum4"); 84clone.ItemFilters["item2"].Count.Should().NotBe(items["item2"].Count);
BackEnd\TaskExecutionHost_Tests.cs (9)
342Assert.Equal(1, ((int[])_parametersSetOnTask["IntArrayParam"])[0]); 343Assert.Equal(0, ((int[])_parametersSetOnTask["IntArrayParam"])[1]); 1368Assert.Equal(expectedValue, _parametersSetOnTask[parameterName]); 1380ITaskItem actualItem = _parametersSetOnTask[parameterName] as ITaskItem; 1394ITaskItem actualItem = _parametersSetOnTask[parameterName] as ITaskItem; 1407ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[]; 1421ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[]; 1439ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[]; 1458Array actualArray = _parametersSetOnTask[parameterName] as Array;
BackEnd\TaskHostConfiguration_Tests.cs (8)
525Assert.Equal(config.TaskParameters["Text"].WrappedParameter, deserializedConfig.TaskParameters["Text"].WrappedParameter); 526Assert.Equal(config.TaskParameters["BoolValue"].WrappedParameter, deserializedConfig.TaskParameters["BoolValue"].WrappedParameter); 574TaskHostPacketHelpers.AreEqual((ITaskItem)config.TaskParameters["TaskItemValue"].WrappedParameter, (ITaskItem)deserializedConfig.TaskParameters["TaskItemValue"].WrappedParameter); 623ITaskItem[] itemArray = (ITaskItem[])config.TaskParameters["TaskItemArrayValue"].WrappedParameter; 624ITaskItem[] deserializedItemArray = (ITaskItem[])deserializedConfig.TaskParameters["TaskItemArrayValue"].WrappedParameter;
BackEnd\TaskHostTaskComplete_Tests.cs (8)
176Assert.Equal(complete.TaskOutputParameters["Text"].WrappedParameter, deserializedComplete.TaskOutputParameters["Text"].WrappedParameter); 177Assert.Equal(complete.TaskOutputParameters["BoolValue"].WrappedParameter, deserializedComplete.TaskOutputParameters["BoolValue"].WrappedParameter); 203TaskHostPacketHelpers.AreEqual((ITaskItem)complete.TaskOutputParameters["TaskItemValue"].WrappedParameter, (ITaskItem)deserializedComplete.TaskOutputParameters["TaskItemValue"].WrappedParameter); 230ITaskItem[] itemArray = (ITaskItem[])complete.TaskOutputParameters["TaskItemArrayValue"].WrappedParameter; 231ITaskItem[] deserializedItemArray = (ITaskItem[])deserializedComplete.TaskOutputParameters["TaskItemArrayValue"].WrappedParameter;
BuildEnvironmentHelper_Tests.cs (1)
553return _mockEnvironment.ContainsKey(variable) ? _mockEnvironment[variable] : null;
Collections\OMcollections_tests.cs (1)
285Assert.Equal(convertedValues[value.Key], value.Value);
Definition\Toolset_Tests.cs (1)
156Assert.Equal(@"c:\foo", t2.ImportPropertySearchPathsTable["MSBuildExtensionsPath"].SearchPaths[0]);
Definition\ToolsetConfigurationReader_Tests.cs (2)
566Dictionary<string, ProjectImportPathMatch> pathsTable = toolsets["2.0"].ImportPropertySearchPathsTable; 586var paths = pathsTable[kind];
Definition\ToolsVersion_Tests.cs (1)
985string xmlContents = _defaultTasksFileMap[path];
ExpressionTree_Tests.cs (14)
348List<string> properties = conditionedProperties["foo"]; 353properties = conditionedProperties["foo"]; 358properties = conditionedProperties["foo"]; 360properties = conditionedProperties["branch"]; 362properties = conditionedProperties["build"]; 364properties = conditionedProperties["platform"]; 369properties = conditionedProperties["foo"]; 371properties = conditionedProperties["branch"]; 373properties = conditionedProperties["build"]; 375properties = conditionedProperties["platform"]; 380properties = conditionedProperties["foo"]; 382properties = conditionedProperties["branch"]; 384properties = conditionedProperties["build"]; 386properties = conditionedProperties["platform"];
Graph\GraphLoadedFromSolution_tests.cs (1)
710var expectedProjectConfiguration = actualProjectConfigurations[GetProjectNumber(node).ToString()][expectedCurrentConfiguration];
Graph\IsolateProjects_Tests.cs (4)
337var deserializedOutputCacheDeclaredReference = CacheSerialization.DeserializeCaches(outputCaches[topoSortedProjectGraphNodes[0]]); 338var deserializedOutputCacheRoot = CacheSerialization.DeserializeCaches(outputCaches[topoSortedProjectGraphNodes[1]]); 349MockLogger rootLogger = results["1"].Logger; 350MockLogger declaredReferenceLogger = results["2"].Logger;
Graph\ProjectGraph_Tests.cs (3)
1613results["2"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 1614BuildResult project1BuildResult = results["1"].Result; 1616MockLogger project1MockLogger = results["1"].Logger;
Graph\ResultCacheBasedBuilds_Tests.cs (17)
330(node, localExpectedOutput) => localExpectedOutput[node].Skip(1).ToArray()); 351var outputCache = outputCaches[rootNode]; 363rootNodeBuildResult.ResultsByTarget["Build"].Items.Select(i => i.ItemSpec).ToArray().ShouldBe(expectedOutput[rootNode]); 393results["3"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 394results["2"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 396results["1"].Result.OverallResult.ShouldBe(BuildResultCode.Failure); 397results["1"].Logger.ErrorCount.ShouldBe(1); 398results["1"].Logger.Errors.First().Message.ShouldContain("MSB4252"); 400results["1"].Logger.Errors.First().BuildEventContext.NodeId.ShouldNotBe(BuildEventContext.InvalidNodeId); 401results["1"].Logger.Errors.First().BuildEventContext.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId); 402results["1"].Logger.Errors.First().BuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.InvalidProjectContextId); 403results["1"].Logger.Errors.First().BuildEventContext.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId); 404results["1"].Logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId); 435expectedOutputProducer ??= ((node, expectedOutputs) => expectedOutputs[node]); 452var cacheFilesForReferences = node.ProjectReferences.Where(r => outputCaches.ContainsKey(r)).Select(r => outputCaches[r]).ToArray(); 463buildParameters.OutputResultsCacheFile = outputCaches[node]; 498foreach (var referenceOutput in node.ProjectReferences.SelectMany(n => expectedNodeBuildOutput[n]))
InternalEngineHelpers.cs (1)
149? factory.IndicateSuccess(_mapping[sdkReference.Name], null)
SolutionFileBuilder.cs (4)
121projectInfos[parent].AddDependency(projectInfos[dependency]); 130projectInfos[parent].AddGuidDependencies(dependencyGuids); 192foreach (var configurationMapping in ProjectConfigurations[project.Key])
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.Framework.UnitTests (4)
BuildCheckTracingEventArgs_Tests.cs (4)
54argDeserialized.TracingData.TelemetryData["id1"].ShouldBeEquivalentTo(arg.TracingData.TelemetryData["id1"]); 55argDeserialized.TracingData.TelemetryData["id2"].ShouldBeEquivalentTo(arg.TracingData.TelemetryData["id2"]);
Microsoft.Build.Tasks.Core (12)
AssemblyDependency\ReferenceTable.cs (2)
1506Reference primaryAssemblyReference = References[primaryAssemblyName]; 1913assemblyNamesList.Add(fullNameToReference[versionLessAssemblyName]);
BootstrapperUtil\BootstrapperBuilder.cs (1)
747_products.Add(availableProducts[p.ProductCode]);
ManifestUtil\ApplicationManifest.cs (2)
668else if (!targetPathList[key]) 714else if (!targetPathList[key])
ManifestUtil\Manifest.cs (1)
637else if (!identityList[key])
PlatformNegotiation.cs (4)
65projectReferencePlatforms.Contains(projectReferenceLookupTable[currentProjectPlatform])) 67buildProjectReferenceAs = projectReferenceLookupTable[currentProjectPlatform]; 73projectReferencePlatforms.Contains(currentProjectLookupTable[currentProjectPlatform])) 75buildProjectReferenceAs = currentProjectLookupTable[currentProjectPlatform];
RedistList.cs (1)
1061return s_subsetListPathCache[key];
ResolveSDKReference.cs (1)
484if (referencesToAddMetadata.ContainsKey(sdkSimpleName) && referencesToAddMetadata[sdkSimpleName].Equals(rawSdkVersion, StringComparison.InvariantCultureIgnoreCase))
Microsoft.Build.Tasks.UnitTests (45)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (4)
131cache2["path2"].Assembly.Name.ShouldBe(cache["path2"].Assembly.Name); 132SystemState.FileState dll = cache["dllName"]; 133SystemState.FileState dll2 = cache2["dllName"];
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
1043uniqueGetAssemblyName[lowerPath] = (int)uniqueGetAssemblyName[lowerPath] + 1;
GetInstalledSDKLocations_Tests.cs (18)
296Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=1.0"]); 297Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=2.0"]); 298Assert.Equal("2.0", sdksAndVersions["MyAssembly, Version=3.0"]); 299Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=4.0"]); 300Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=5.0"]); 301Assert.Equal("2.0", sdksAndVersions["MyAssembly, Version=6.0"]); 347extensionSDKs["MyAssembly, Version=1.0"]); 353extensionSDKs["MyAssembly, Version=2.0"]); 359extensionSDKs["MyAssembly, Version=3.0"]); 366extensionSDKs["MyAssembly, Version=4.0"]); 372extensionSDKs["MyAssembly, Version=5.0"]); 378extensionSDKs["MyAssembly, Version=6.0"]); 421extensionSDKs["MyAssembly, Version=1.0"]); 427extensionSDKs["MyAssembly, Version=2.0"]); 433extensionSDKs["MyAssembly, Version=3.0"]); 440extensionSDKs["MyAssembly, Version=4.0"]); 446extensionSDKs["MyAssembly, Version=5.0"]); 452extensionSDKs["MyAssembly, Version=6.0"]);
MockUnmanagedMemoryHelper.cs (4)
52_dependentAllocations[_mainAllocationHandle].Add(handle); 76while (_dependentAllocations[handle].Count > 0) 78Marshal.FreeHGlobal(_dependentAllocations[handle][0]); 79_dependentAllocations[handle].RemoveAt(0);
PropertyParser_Tests.cs (16)
37Assert.Equal("Debug", propertiesTable["Configuration"]); 56Assert.Equal("Debug", propertiesTable["Configuration"]); 57Assert.Equal("AnyCPU", propertiesTable["Platform"]); 58Assert.Equal("Lab22Dev", propertiesTable["VBL"]); 76Assert.Equal("Debug", propertiesTable["Configuration"]); 77Assert.Equal("AnyCPU", propertiesTable["Platform"]); 95Assert.Equal("", propertiesTable["Configuration"]); 96Assert.Equal("", propertiesTable["Platform"]); 132Assert.Equal("Clean; Build", propertiesTable["DependsOn"]); 149Assert.Equal("CleanBuild", propertiesTable["Depends On"]); 165Assert.Equal("Debug", propertiesTable["Configuration"]); 166Assert.Equal("Any CPU", propertiesTable["Platform"]); 182Assert.Equal("1234;5678;9999", propertiesTable["WarningsAsErrors"]); 183Assert.Equal("Debug", propertiesTable["Configuration"]); 199Assert.Equal(@"c:\Rajeev%3bs Stuff\binaries", propertiesTable["OutDir"]); 200Assert.Equal("Debug", propertiesTable["Configuration"]);
RARPrecomputedCache_Tests.cs (1)
145SystemState.FileState assembly3 = rarReaderTask._cache.instanceLocalFileStateCache[dllName];
ResourceHandling\GenerateResource_Tests.cs (1)
3649Assert.Equal(resxValue, valuesFromResource[resxDataName]);
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (1)
477item.GetMetadataValue(key).ShouldBe(expected[key]);
TestEnvironment.cs (1)
590Environment.SetEnvironmentVariable(key, tempPaths[key]);
Microsoft.Build.Utilities.Core (3)
MuxLogger.cs (1)
316int value = _submissionProjectsInProgress[e.BuildEventContext.SubmissionId];
ToolLocationHelper.cs (1)
539return targetPlatformMoniker.ExtensionSDKs[sdkMoniker];
TrackedDependencies\CanonicalTrackedOutputFiles.cs (1)
323if (DependencyTable[sourceRoot].Count == 0)
Microsoft.Build.Utilities.UnitTests (52)
ToolLocationHelper_Tests.cs (52)
3793targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3794targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3795targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3796targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "v1.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3797targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=2.0"); 3798targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=2.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0", "ExtensionSDKs", "MyAssembly", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3801targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3802targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3803targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=3.0"); 3804targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=3.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3805targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=4.0"); 3806targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=4.0"].ShouldBe(Path.Combine(_fakeStructureRoot2, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "4.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3813targetPlatforms[key].Path.ShouldBeNull(); 3814targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3815targetPlatforms[key].ExtensionSDKs.ShouldContainKey("AnotherAssembly, Version=1.0"); 3816targetPlatforms[key].ExtensionSDKs["AnotherAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "4.0", "ExtensionSDKs", "AnotherAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3819targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3820targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3821targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3822targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3825targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3826targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3827targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3828targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3831targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3832targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3835targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3836targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3837targetPlatforms[key].Platforms.Count.ShouldBe(3); 3838targetPlatforms[key].ContainsPlatform("PlatformAssembly", "0.1.2.3").ShouldBeTrue(); 3839targetPlatforms[key].Platforms["PlatformAssembly, Version=0.1.2.3"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0", "Platforms", "PlatformAssembly", "0.1.2.3") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3840targetPlatforms[key].ContainsPlatform("PlatformAssembly", "1.2.3.0").ShouldBeTrue(); 3841targetPlatforms[key].ContainsPlatform("Sparkle", "3.3.3.3").ShouldBeTrue(); 3844targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3845targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3846targetPlatforms[key].Platforms.Count.ShouldBe(1); 3847targetPlatforms[key].ContainsPlatform("PlatformAssembly", "0.1.2.3").ShouldBeTrue(); 3848targetPlatforms[key].Platforms["PlatformAssembly, Version=0.1.2.3"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0", "Platforms", "PlatformAssembly", "0.1.2.3") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4064targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4067targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4070targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4073targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4076targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
Microsoft.CodeAnalysis (31)
CodeGen\LocalSlotManager.cs (1)
148return LocalMap[symbol];
CodeGen\SwitchStringJumpTableEmitter.cs (1)
122_builder.MarkLabel(hashBucketLabelsMap[kvPair.Key]);
Collections\TopologicalSort.cs (2)
56if (predecessorCounts[node] == 0) 74var count = predecessorCounts[succ];
DiagnosticAnalyzer\AnalysisResultBuilder.cs (3)
100return _analyzerExecutionTimeOpt[analyzer]; 292_analyzerExecutionTimeOpt[analyzer] + timeSpan; 600var executionTime = _analyzerExecutionTimeOpt != null ? _analyzerExecutionTimeOpt[analyzer] : default;
DiagnosticAnalyzer\AnalyzerManager.cs (1)
53private AnalyzerExecutionContext GetAnalyzerExecutionContext(DiagnosticAnalyzer analyzer) => _analyzerExecutionContextMap[analyzer];
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
1185var methodDef = _parameterDefList[paramDef]; 1513int next = this.added[row]; 1575=> _map[rowId];
InternalUtilities\ConcurrentLruCache.cs (1)
73_cache[key].Value);
InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
MetadataReader\MetadataHelpers.cs (1)
897int keyIndex = names[pair.Key];
Operations\ControlFlowGraphBuilder.cs (14)
584Debug.Assert(regionMap[block] == subRegion); 643Debug.Assert(regionMap[blocks[i]] == subRegion); 659Debug.Assert(regionMap[blocks[i]] == subRegion); 702regionMap[predecessor] == regionMap[block]) 729RegionBuilder currentRegion = regionMap[block]; 743RegionBuilder currentRegion = regionMap[block]; 786Debug.Assert(regionMap[block] == tryAndFinallyEnclosing); 813regionMap[predecessor] != currentRegion) 873regionMap[predecessor] != currentRegion) 887RegionBuilder? destinationRegionOpt = next.Destination == null ? null : regionMap[next.Destination]; 963RegionBuilder currentRegion = regionMap[block]; 974regionMap[predecessor] == currentRegion) 1105RegionBuilder predecessorRegion = regionMap[predecessor];
PEWriter\FullMetadataWriter.cs (2)
222return MetadataTokens.FieldDefinitionHandle(_fieldDefIndex[typeDef]); 227return MetadataTokens.MethodDefinitionHandle(_methodDefIndex[typeDef]);
PEWriter\MetadataWriter.cs (1)
857return MetadataTokens.AssemblyFileHandle(_fileRefIndex[mref.Name]);
Microsoft.CodeAnalysis.CodeStyle (10)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
565return [.. result.Keys.OrderBy(s => result[s])];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
141var writes2 = other._reachingWrites[symbol];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
203=> _analysisDataByBasicBlockMap[basicBlock]; 207if (_analysisDataByBasicBlockMap[basicBlock] == null) 213return _analysisDataByBasicBlockMap[basicBlock]; 347Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 399var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
446state.allRangeVariables[x2].Free(); 522state.allRangeVariables[y].Add(let.Identifier.ValueText);
Binder\Binder.QueryTranslationState.cs (1)
67result.Add(vars, allRangeVariables[vars].ToImmutable());
Binder\Binder_Query.cs (4)
448state.allRangeVariables[x2].Free(); 518state.allRangeVariables[x2].Free(); 702var x2m = state.allRangeVariables[x2]; 756state.allRangeVariables[y].Add(let.Identifier.ValueText);
CodeGen\Optimizer.cs (4)
100var locInfo = info[local]; 1892var locInfo = _locals[local]; 1944var locInfo = _locals[local]; 1962var locInfo = _locals[local];
CommandLine\CSharpCommandLineParser.cs (1)
891if (diagnosticOptions[key] == ReportDiagnostic.Warn)
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
79var existing = map[key];
FlowAnalysis\AbstractFlowPass.cs (1)
710var oldState = _loopHeadState[node];
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
264var proxy = proxyLabels[proxied]; 802return _labelsInInterestingTry[statement];
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
411return _placeholderMap[node];
Lowering\ClosureConversion\ClosureConversion.cs (1)
618Symbol framePointer = _framePointers[frameClass];
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1084return _parameterMap[node.ParameterSymbol];
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
56return _labelsInYieldingTrys[statement];
Lowering\LocalRewriter\LocalRewriter.cs (1)
504var value = _placeholderReplacementMapDoNotUseDirectly[placeholder];
Lowering\LocalRewriter\LocalRewriter.PlaceholderReplacer.cs (1)
30var value = _placeholders[placeholder];
Lowering\MethodToClassRewriter.cs (1)
477return _placeholderMap[node];
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
768hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)proxies[local]).HoistedField); 946CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter]; 997CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter];
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
477var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 497BoundExpression parameterProxy = copySrc[parameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F);
Symbols\Source\ConstantEvaluationHelpers.cs (6)
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 (5)
2258Debug.Assert(!membersByName[indexerName.AsMemory()].Any(SymbolExtensions.IsIndexer)); 3713membersByName[name] = FixPartialMethod(membersByName[name], prevMethod, currentMethod); 3748membersByName[name] = Remove(membersByName[name], implementationAccessor); 3820membersByName[fieldName] = Remove(membersByName[fieldName], implementationField); 3826membersByName[name] = Remove(membersByName[name], implementation);
Symbols\Source\SourceNamespaceSymbol.cs (1)
304foreach (var symbol in result[name])
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
107return _patterns[key]; 111return _recursivePatterns[key]; 117return new StringReader(_responseFiles[fullPath]); 2500Assert.Equal(expectedEmbeddedMap[docPath], embeddedSource.ToString()); 2527Assert.Equal(expectedEmbeddedMap[docPath], sourceStr); 2546Assert.Equal(fileMap[name], content);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_MarshalAs.cs (1)
40var blob = blobs[field.Name];
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
158=> s_operatorNameToInfo[operatorName].position;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
493return statement.ReplaceNodes(replacements.Keys, (orig, partiallyReplaced) => replacements[orig]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NullableTests.cs (8)
751string s = source.Replace("TYPE", t).Replace("OP", oper).Replace("ZERO", zeros[t]).Replace("ONE", ones[t]); 1297.Replace("NAME", names[oper]) 1298.Replace("TWOX", twos[typeX]) 1299.Replace("ONEX", ones[typeX]) 1300.Replace("TWOY", twos[typeY]) 1301.Replace("ONEY", ones[typeY])); 1303main += "M" + m + "_" + typeX + "_" + names[oper] + "_" + typeY + "();\n";
Semantics\UnsafeTests.cs (1)
10655Assert.Equal(s_specialTypeSizeOfMap[type.SpecialType], sizeOfSummary.ConstantValue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
LexicalAndXml\XmlDocCommentTests.cs (1)
3402Assert.Equal(attributes[attribute.Name.LocalName.Value as string], attribute.TextTokens.ToString());
Syntax\SyntaxAnnotationTests.cs (3)
829return _nodeOrTokenMap[node].AsNode().CopyAnnotationsTo(base.Visit(node)); 839return _nodeOrTokenMap[token].AsToken().CopyAnnotationsTo(base.VisitToken(token)); 855return _triviaMap[trivia].CopyAnnotationsTo(base.VisitTrivia(trivia));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1069return expectedBlobs[s];
Microsoft.CodeAnalysis.EditorFeatures (5)
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (1)
180Debug.Assert(_spanToLruNode[firstNode.Value.Span] == firstNode);
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
289_session.UndoManager.UpdateSelection(this.ActiveTextView, _subjectBuffer, _referenceSpanToLinkedRenameSpanMap[_activeSpan.Value].TrackingSpan);
Preview\AbstractPreviewFactoryService.cs (2)
237var oldProjectReference = oldProjectReferences[projectId]; 238var newProjectReference = newProjectReferences[projectId];
Workspaces\AbstractTextBufferVisibilityTracker.cs (1)
128var data = _visibilityTracker._subjectBufferToCallbacks[subjectBuffer];
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
755public IList<LSP.Location> GetLocations(string locationName) => _locations[locationName];
Workspaces\EditorTestWorkspace.cs (3)
270mappedSpans[string.Empty] = mappedSpans[string.Empty].Add(mappedSpan.ToTextSpan()); 275mappedSpans[string.Empty] = mappedSpans[string.Empty].OrderBy(s => s.End).ThenBy(s => -s.Start).ToImmutableArray(); 453tempMappedMarkupSpans[key].Add(new TextSpan(spanStartLocation!.Value, spanEndLocationExclusive!.Value - spanStartLocation.Value));
Microsoft.CodeAnalysis.Features (75)
ChangeSignature\AbstractChangeSignatureService.cs (8)
387var nodes = nodesToUpdate[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\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
305var orderedDocuments = changedDocuments.OrderBy(t => codeActionToDiagnosticLocation[t.action])
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
323completionContext, [.. symbolToContextMap.Keys], symbol => symbolToContextMap[symbol], missingSymbolsMap, totalProjects);
EditAndContinue\EditSession.cs (1)
789var 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)
36Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.AfterBeginningOfSpan].Span) && textSpan.Contains(tokens[TriviaLocation.BeforeEndOfSpan].Span)); 45var rootWithAnnotation = ReplaceTokens(root, map.Keys, (o, n) => map[o]); 78token = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => tokens[TriviaLocation.BeforeBeginningOfSpan]); 79map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeBeginningOfSpan]); 81token = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => tokens[TriviaLocation.AfterBeginningOfSpan]); 82map[tokens[TriviaLocation.AfterBeginningOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterBeginningOfSpan]); 84token = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => tokens[TriviaLocation.BeforeEndOfSpan]); 85map[tokens[TriviaLocation.BeforeEndOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeEndOfSpan]); 87token = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => tokens[TriviaLocation.AfterEndOfSpan]); 88map[tokens[TriviaLocation.AfterEndOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterEndOfSpan]); 95var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.BeforeBeginningOfSpan], tokens[TriviaLocation.AfterBeginningOfSpan], t => t.FullSpan.End <= textSpan.Start); 96var triviaAtEnd = SplitTrivia(tokens[TriviaLocation.BeforeEndOfSpan], tokens[TriviaLocation.AfterEndOfSpan], t => t.FullSpan.Start < textSpan.End); 115tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true); 117tokens[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)
212return root.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o])); 225return root.ReplaceNodes(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o]));
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
49.SelectMany(framework => framework.Dependencies!.Keys.Where(key => framework.Dependencies[key].AutoReferenced))
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\SourceMarkers.cs (1)
73tagMap[id] = (tagMap[id].start, match.Index);
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
168var existingWatches = _watchedFiles[filePath];
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\CodeFixes\CodeFixService.cs (2)
1021return _fixerToIndex[x] - _fixerToIndex[y];
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RebuildCommandLineTests.cs (2)
100var peStream = FilePathToStreamMap[peFilePath].GetStream(); 101var pdbStream = pdbFilePath is object ? FilePathToStreamMap[pdbFilePath].GetStream() : null;
Microsoft.CodeAnalysis.Test.Utilities (5)
CommonTestBase.cs (1)
140return expectedBlobs[s];
InstrumentationChecker.cs (1)
336var expectedSnippets = _spanExpectations[method].SnippetExpectations;
Mocks\TestSourceReferenceResolver.cs (1)
51var data = _sources[resolvedPath];
TestableFileSystem.cs (2)
80return map[filePath].GetStream(access); 83OpenFileFunc = (string filePath, FileMode mode, FileAccess access, FileShare share) => map[filePath].GetStream(access),
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\DiagnosticLocalizationTests.cs (2)
190return _resourceSetMap[culture.Name]; 218return _resourcesMap[name];
Microsoft.CodeAnalysis.Workspaces (21)
CodeCleanup\AbstractCodeCleanerService.cs (1)
596return node.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations([.. tokenMap[o]]));
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
475return [.. projectsToExamine.OrderBy((p1, p2) => order[p1.Id] - order[p2.Id])];
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
293if (!documentIdErrorStateLookup[documentId] && _nonConflictSymbolKeys.IsDefault)
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\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
565return [.. result.Keys.OrderBy(s => result[s])];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
141var writes2 = other._reachingWrites[symbol];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (5)
203=> _analysisDataByBasicBlockMap[basicBlock]; 207if (_analysisDataByBasicBlockMap[basicBlock] == null) 213return _analysisDataByBasicBlockMap[basicBlock]; 347Debug.Assert(_analysisDataByBasicBlockMap[basicBlock] != null); 399var mergedAnalysisData = _analysisDataByBasicBlockMap[basicBlock];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
77var itemsAfterBeforeList = itemToItemsBefore[itemAfter]; 84return item => itemToItemsBefore[item];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
118if (!collisionMap[name] && canUse(name))
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
269_project._documentWatchedFiles[documentId].Dispose();
Workspace\Workspace_Editor.cs (1)
317oldActiveContextDocumentId = _bufferToDocumentInCurrentContextMap[container];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
73_cache[key].Value);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
65key, _dictionary[key]);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestWorkspace`1.cs (3)
685var fromName = projectElementToProjectName[projectElement]; 688var fromProject = projectNameToTestHostProject[fromName]; 689var toProject = projectNameToTestHostProject[toName];
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.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
71runtimeItems[runtimeName] = runtimeItems[runtimeName].Concat(items);
Microsoft.DotNet.Build.Tasks.Packaging (23)
GeneratePackageReport.cs (5)
168version = _targetPathToPackageItem[AggregateNuGetAssetResolver.AsPackageSpecificTargetPath(PackageId, refAssm)].Version?.ToString() ?? version; 305packageItems[packageId].Add(packageItem); 326Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 336_resolver.AddPackageItems(packageId, packageItems[packageId].Select(f => f.TargetPath)); 344var 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)
67promotedDependencies.AddRange(CopyDependencies(libSets[nearestLibFx], refFx)); 81promotedDependencies.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 (22)
CreateVisualStudioWorkload.wix.cs (18)
159else if (_supportsMachineArch[manifestPackage.SdkFeatureBand] != manifestPackage.SupportsMachineArch) 163Log.LogWarning($"{_supportsMachineArch} was previously set to {_supportsMachineArch[manifestPackage.SdkFeatureBand]}"); 221WorkloadPack pack = manifest.Packs[packId]; 259if (!buildData[sourcePackage].FeatureBands.ContainsKey(platform)) 261buildData[sourcePackage].FeatureBands[platform] = new(); 264_ = buildData[sourcePackage].FeatureBands[platform].Add(manifestPackage.SdkFeatureBand); 270packsInWorkloadByPlatform[platform].Add(buildData[sourcePackage].Package); 301groupPackage.ManifestsPerPlatform[platform].Add(manifestPackage); 356foreach (ReleaseVersion sdkFeatureBand in data.FeatureBands[platform]) 359if (_supportsMachineArch[sdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 361MsiSwixProject swixProject = _supportsMachineArch[sdkFeatureBand] ? 405PossiblyParallelForEach(!DisableParallelPackageGroupProcessing, packGroup.ManifestsPerPlatform[platform], manifestPackage => 408if (_supportsMachineArch[manifestPackage.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 410MsiSwixProject swixProject = _supportsMachineArch[manifestPackage.SdkFeatureBand] ? 437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 441MsiSwixProject swixProject = _supportsMachineArch[msi.Package.SdkFeatureBand] ?
Swix\SwixComponent.cs (1)
205component.AddDependency(manifest.Packs[packId]);
Utils.cs (1)
75content = content.Replace(token, tokenReplacements[token]);
Wix\HarvesterToolTask.cs (1)
132CommandLineBuilder.AppendSwitch(s_SuppressionArguments[suppression]);
WorkloadPackPackage.wix.cs (1)
71string sourcePackage = Path.Combine(packageSource, $"{pack.AliasTo[rid]}.{pack.Version}.nupkg");
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.Helix.Client (1)
generated-code\PagedResponse.cs (1)
116var rel = props["rel"];
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.SignCheckLibrary (8)
Verification\ArchiveVerifier.cs (1)
65SignatureVerificationResult result = VerifyFile(archiveMap[fullName], svr.Filename,
Verification\Jar\JarIndividualEntry.cs (2)
78string manifestDigest = Attributes[digestAttributeKey]; 80DigestValue = Attributes[digestAttributeKey];
Verification\Jar\JarSignatureFile.cs (2)
109a => String.Equals(MainAttributes[a], manifest.GetManifestDigest(JarUtils.GetHashAlgorithmFromDigest(a, "-Digest-Manifest"))) 128return String.Equals(MainAttributes[digestAttributeKey],
Verification\MsiVerifier.cs (2)
55SignatureVerificationResult packageFileResult = VerifyFile(installPackage.Files[key].TargetPath, svr.Filename, Path.Combine(svr.VirtualPath, originalFiles[key]), containerPath: null); 56packageFileResult.AddDetail(DetailKeys.File, SignCheckResources.DetailFullName, originalFiles[key]);
Verification\SignatureVerificationManager.cs (1)
202return _fileVerifiers[extension];
Microsoft.DotNet.SignTool (13)
src\Configuration.cs (10)
188foreach (var containerName in _whichPackagesTheFileIsIn[erroredFile]) 245hasSignableParts = _zipDataMap[fileSignInfo.FileContentKey].NestedParts.Values.Any(b => b.FileSignInfo.SignInfo.ShouldSign || b.FileSignInfo.HasSignableParts); 315collisionPriorityId = _hashToCollisionIdMap[parentSignedFileContentKey]; 326string existingCollisionId = _hashToCollisionIdMap[signedFileContentKey]; 384signInfo = new SignInfo(pktBasedSignInfo.Certificate, collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]); 396new ExplicitCertificateKey(file.FileName, peInfo.PublicKeyToken, peInfo.TargetFramework, _hashToCollisionIdMap[signedFileContentKey]), 399new ExplicitCertificateKey(file.FileName, peInfo.PublicKeyToken, collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]), 458collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]), out explicitCertificateName); 471signInfo = signInfo.WithCertificateName(explicitCertificateName, _hashToCollisionIdMap[signedFileContentKey]); 480d.GetMetadata(SignToolConstants.CollisionPriorityId) == _hashToCollisionIdMap[signedFileContentKey])).Any();
src\SignToolTask.cs (3)
402if(map[extension].Any(m => m.CollisionPriorityId == signInfo.CollisionPriorityId)) 406map[extension].Add(signInfo); 462map[publicKeyToken].Add(signInfo);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (11)
Languages\angular\Angular.cs (4)
364context.WriteTemplate("models", context.Templates["Models"], model); 365context.WriteTemplate("helper", context.Templates["Helper"], model); 366context.WriteTemplate("index", context.Templates["index"], model); 367context.WriteTemplate(Helpers.CamelCase(context.Options.ClientName.AsSpan()), context.Templates["ServiceClient"], model);
Languages\csharp\CSharp.cs (4)
228context.WriteTemplate(context.Options.ClientName, context.Templates["ServiceClient"], model); 229context.WriteTemplate("PagedResponse", context.Templates["PagedResponse"], model); 233context.WriteTemplate($"Models/{Helpers.PascalCase(type.Name.AsSpan())}", context.Templates["Model"], type); 238context.WriteTemplate(group.Name, context.Templates["MethodGroup"], group);
Modeler\EnumOpenApiExtension.cs (1)
23get => ((OpenApiString) _value["name"]).Value;
Modeler\PaginatedOpenApiExtension.cs (2)
23get => ((OpenApiString) _value["page"]).Value; 29get => ((OpenApiString) _value["pageSize"]).Value;
Microsoft.DotNet.VersionTools (2)
BuildManifest\VersionIdentifier.cs (1)
208return majorMinorPatchDictionary[maxKey];
Dependencies\BuildOutput\FileRegexPackageUpdater.cs (1)
32return matchingBuildInfo.RawPackages[PackageId];
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
275get => _properties[key];
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLoggerTests.cs (6)
89Assert.Equal("V0", ss["K0"]); 90Assert.Equal("V1", ss["K1"]); 91Assert.Null(ss["K2"]); 92Assert.Equal("[\"0\",\"1\",\"2\"]", ss["K3"]); 105Assert.Equal("Bob", ss["name"]); 106Assert.Equal("Hello {name}", ss["{OriginalFormat}"]);
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
ManifestEmbeddedFileProviderTests.cs (4)
414Assert.IsAssignableFrom<IDirectoryContents>(root["wwwroot"]); 415Assert.IsAssignableFrom<IDirectoryContents>(root["config"]); 418Assert.Equal(wwwrootExpected, (IDirectoryContents)root["wwwroot"], FileInfoComparer.Instance); 419Assert.Equal(configExpected, (IDirectoryContents)root["config"], FileInfoComparer.Instance);
Microsoft.Extensions.Http.Diagnostics (3)
Latency\Internal\HttpRequestLatencyListener.cs (3)
127socket[key] = tokenIssuer.GetCheckpointToken(_socketMap[key]); 133nameResolution[key] = tokenIssuer.GetCheckpointToken(_nameResolutionMap[key]); 139http[key] = tokenIssuer.GetCheckpointToken(_httpMap[key]);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
136enricher.Tags["error.type"].Should().BeOfType<string>().Subject.Should().Be("500");
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
107var description = Options.Tokens.ProviderMap[providerName];
Microsoft.Gen.Logging (3)
Emission\Emitter.Method.cs (1)
609_ = sb.Append(_classificationMap[ct]);
Parsing\Parser.cs (2)
501Diag(DiagDescriptors.TagNameCollision, parameterSymbols[parameter].GetLocation(), parameter.ParameterName, fullName, lm.Name); 507Diag(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 (1)
ComMethodContext.cs (1)
195baseMethods = 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 (1)
Handlers\MenuFlyoutItem\MenuFlyoutItemHandler.iOS.cs (1)
56 menus[index].Clicked();
Microsoft.Maui.Controls (50)
AnimationExtensions.cs (1)
231 Info info = s_animations[key];
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (3)
474 viewController = _trackers[page].ViewController; 514 System.Diagnostics.Debug.Write($"Disposing {_trackers[page].ViewController.GetHashCode()}"); 515 RemoveViewController(_trackers[page].ViewController);
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (3)
342 var oldRenderer = _renderers[oldContent]; 356 var currentRenderer = _renderers[newContent]; 513 var oldRenderer = _renderers[oldItem];
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (1)
171 var view = _cells[context].View;
Compatibility\Handlers\TableView\iOS\TableViewModelRenderer.cs (2)
66 var result = _headerCells[section]; 78 var result = _headerCells[section];
DragAndDrop\DataPackagePropertySet.cs (1)
21 get => _propertyBag[key];
Internals\NameScope.cs (1)
58 _values.Remove(_names[name]);
Layout\AbsoluteLayout.cs (4)
72 _ => _viewInfo[view].LayoutFlags, 81 _ => _viewInfo[view].LayoutBounds, 93 _viewInfo[view].LayoutFlags = flags; 106 _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]; }
Platform\GestureManager\GesturePlatformManager.iOS.cs (1)
693 var uiRecognizers = _gestureRecognizers[gestureRecognizer];
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)) 330 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module)) 340 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IMarkupExtension")))) 342 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null; 350 var compiledValueProviderName = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "ProvideCompiledAttribute"))?.ConstructorArguments?[0].Value as string; 370 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, markupExtensionType), module)) 383 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IValueProvider")))) 385 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null; 391 var valueProviderType = context.Variables[node].VariableType; 411 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, valueProviderInterface), module)) 1293 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceType), module)) 1336 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, parameterTypes[1]), module)) 1418 if (context.Variables[elementNode].VariableType.FullName == "System.Object") 1421 yield return Create(Ldloc, context.Variables[elementNode]); 1426 yield return Create(Ldloc, context.Variables[elementNode]); 1431 yield return Create(Ldloc, context.Variables[elementNode]); 1437 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, bpTypeRef, module)) 1443 if (context.Variables[elementNode].VariableType.FullName == "System.Object") 1497 var vardef = context.Variables[elementNode]; 1577 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, propertyType, module)) 1653 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1662 var nodeTypeRef = context.Variables[node].VariableType; 1676 var vardef = context.Variables[elementNode]; 1707 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1715 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.TypeSystem.Object, module)) 1726 var nodeTypeRef = context.Variables[node].VariableType; 1727 yield return Create(Ldloc, context.Variables[node]); 1753 var parentVar = parentContext.Variables[parentNode]; 1842 templateIl.Append(templateContext.Variables[node].LoadAs(parentContext.Cache, module.TypeSystem.Object, module));
Microsoft.Maui.Controls.Compatibility (5)
iOS\EventTracker.cs (1)
652 var uiRecognizer = _gestureRecognizers[gestureRecognizer];
iOS\Renderers\CarouselPageRenderer.cs (2)
316 UIView container = _containerMap[child]; 328 UIView container = _containerMap[page];
iOS\Renderers\TableViewModelRenderer.cs (2)
45 var result = _headerCells[section]; 55 var result = _headerCells[section];
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.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)
70return NameMapping[name]; 405field.SetValue(LightGbmTrainerOptions, Double.Parse(modelParameters[lightGbmName])); 409field.SetValue(LightGbmTrainerOptions, int.Parse(modelParameters[lightGbmName])); 413field.SetValue(LightGbmTrainerOptions, float.Parse(modelParameters[lightGbmName])); 419if (modelParameters[lightGbmName] == "1") 425field.SetValue(LightGbmTrainerOptions, Convert.ChangeType(modelParameters[lightGbmName], field.FieldType)); 429var catBoundaries = !String.IsNullOrEmpty(modelParameters["categorical_feature"]) ? modelParameters["categorical_feature"].Split(',').Select(x => int.Parse(x, CultureInfo.InvariantCulture)).ToArray() : null; 710ch.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.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)
1628return 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)
280Assert.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 (8)
Text\StopWordsRemovingTransformer.cs (1)
411var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[_colMapNewToOld[iinfo]]);
Text\TextNormalizing.cs (1)
421ch = CombinedDiacriticsMap[ch];
Text\WordEmbeddingsExtractor.cs (6)
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))
Microsoft.ML.Vision (7)
DnnRetrainTransform.cs (7)
284inputsForTraining[i] = _idvToTfMapping[_inputs[i]]; 549(_tfInputTypes, _tfInputShapes, _tfInputOperations) = GetInputInfo(Host, _session, _inputs.Select(x => _idvToTfMapping[x]).ToArray(), batchSize); 880var tensor = outputCache.Outputs[_parent._outputs[iinfo]]; 893var tensor = outputCache.Outputs[_parent._outputs[iinfo]]; 908var tensor = outputCache.Outputs[_parent._outputs[iinfo]]; 929_parent._inputs.Select(x => _parent._idvToTfMapping[x]).ToArray(), 930_parent._outputs.Select(x => _parent._idvToTfMapping[x]).ToArray());
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
39_dict.Item(key) = New KeyInfo(value, node)
Microsoft.VisualStudio.LanguageServices (12)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
127var matchingParameters = parameterNameOverlapMap[parameterName];
GenerateType\GenerateTypeDialogViewModel.cs (2)
89return _accessListMap[SelectedAccessibilityString]; 140return _typeKindMap[SelectedTypeKindString];
Implementation\VsRefactorNotifyService.cs (2)
43var itemIDs = hierarchyToItemIDsMap[hierarchy]; 80var itemIDs = hierarchyToItemIDsMap[hierarchy];
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (5)
66Marshal.ThrowExceptionForHR(textView.RemoveCommandFilter(this.filters[textView])); 67this.filters[textView].SetContentType(install: false); 68this.filters[textView].Dispose(); 105this.filters[textView].RemoveContext(); 110this.filters[textView].SetContext(context);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
73_cache[key].Value);
StackTraceExplorer\StackFrameViewModel.cs (1)
230return _definitionCache[symbolPart];
MSBuild (2)
NodePacketFactory.cs (1)
66PacketFactoryRecord record = _packetFactories[packet.Type];
TerminalLogger\TerminalLogger.cs (1)
546_nodes[nodeIndex] = new NodeStatus(e.ProjectFile!, null, "Restore", _projects[c].Stopwatch);
MSBuildTaskHost (3)
Immutable\ImmutableDictionary.cs (2)
49public V this[K key] => _backing[key]; 253get { return _backing[key]; }
NodePacketFactory.cs (1)
66PacketFactoryRecord record = _packetFactories[packet.Type];
PresentationBuildTasks (8)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
191Debug.Assert(targetOutputs[CompileTargetName].Length == 1); 192TemporaryAssemblyForLocalTypeReference = targetOutputs[CompileTargetName][0].ItemSpec; 306Debug.Assert(targetOutputs[CompileTargetName].Length == 1); 307TemporaryAssemblyForLocalTypeReference = targetOutputs[CompileTargetName][0].ItemSpec;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1479bracketCharacters = bracketCharacterCache[propertyName];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
204return MasterBracketCharacterCache[type];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
395_compatTable[oldXmlns] != newXmlns) 398_compatTable[oldXmlns]));
PresentationCore (49)
MS\Internal\DeferredElementTreeState.cs (2)
28parent = treeState._oldCoreParents[element]; 89parent = treeState._oldLogicalParents[element];
MS\Internal\FontCache\FontResourceCache.cs (2)
139folderResourceMap[folderName].Add(fileName); 143folderResourceMap[resourceFullName].Add(String.Empty);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
1701_strokeLookupTable[s].CompressionData = xpData; 1711_strokeLookupTable[s].ISFReadyStrokeData = isfReadyData; 1715_strokeLookupTable[s].StorePressure = shouldStorePressure; 1887if (currentDrawingAttributesTableIndex != _strokeLookupTable[s].DrawingAttributesTableIndex) 1891cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex); 1892currentDrawingAttributesTableIndex = _strokeLookupTable[s].DrawingAttributesTableIndex; 1901if (currentStrokeDescriptorTableIndex != _strokeLookupTable[s].StrokeDescriptorTableIndex) 1905cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex); 1906currentStrokeDescriptorTableIndex = _strokeLookupTable[s].StrokeDescriptorTableIndex; 1915if (uCurrMetricDescriptorTableIndex != _strokeLookupTable[s].MetricDescriptorTableIndex) 1919cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex); 1920uCurrMetricDescriptorTableIndex = _strokeLookupTable[s].MetricDescriptorTableIndex; 1929if (currentTransformTableIndex != _strokeLookupTable[s].TransformTableIndex) 1933cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex); 1934currentTransformTableIndex = _strokeLookupTable[s].TransformTableIndex; 1950cbStroke = StrokeSerializer.EncodeStroke(s, tempstrm, GetCompressionAlgorithm(), guidList, _strokeLookupTable[s]); 2557StrokeSerializer.BuildStrokeDescriptor(stroke, guidList, _strokeLookupTable[stroke], out strokeDescriptor, out metricBlock); 2566_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)descriptorIndex; 2573_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1; 2594_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)tmp; 2602_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1); 2619_strokeLookupTable[stroke].TransformTableIndex = (uint)i; 2627_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1); 2641_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)i; 2649_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)_drawingAttributesTable.Count - 1;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (2)
389EdgeInfo ei = adjInformation[edge]; 856edgeInfo = adjInformation[edge];
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (3)
118Node node = _nodeLookup[key]; 164Node node = _nodeLookup[key]; 200Node node = _nodeLookup[key];
System\Windows\Input\ManipulationDevice.cs (1)
252ManipulationDevice device = _manipulationDevices[element];
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
410Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 413toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
68_manager = StylusLogic.GetCurrentStylusLogicAs<PointerLogic>().PlugInManagers[presentationSource];
System\Windows\Media\FontEmbeddingManager.cs (2)
57glyphSet = _collectedGlyphTypefaces[glyphTypeface]; 91Dictionary<ushort, bool> glyphsUsed = _collectedGlyphTypefaces[glyphTypeface];
System\Windows\Media\SolidColorBrush.cs (1)
280return fwdDictionary[key];
System\Windows\Media\Visual.cs (8)
841Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 867Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 894Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 897if (cyclicBrushToChannelsMap[cyclicBrush] == 1) 909cyclicBrushToChannelsMap[cyclicBrush] - 1; 917Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 920channelsToCyclicBrushMap[channel] - 1; 929if (channelsToCyclicBrushMap[channel] == 0)
PresentationFramework (72)
MS\Internal\Annotations\AnnotationMap.cs (1)
92List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId];
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
83IList<IAnnotationComponent> currentList = _attachedAnnotations[attachedAnnotation]; 233IList<IAnnotationComponent> currentList = _attachedAnnotations[attachedAnnotation]; //save the current list
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
244_currentAnnotations[args.Annotation.Id].Dirty = true; 256_currentAnnotations[args.Annotation.Id].Dirty = true; 268_currentAnnotations[args.Annotation.Id].Dirty = true;
MS\Internal\Annotations\XmlElementCollection.cs (1)
153if (_xmlDocsRefCounts[element.OwnerDocument] == 0)
MS\Internal\AppModel\ResourceContainer.cs (1)
303_registeredResourceManagers[key].Assembly = assembly;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
425ret = _cachedXmlElements[token]; 530return s_xmlTokeFullNames[token];
MS\Internal\Globalization\BamlResourceDeserializer.cs (3)
357stackForProperty = _propertyInheritanceTreeStack[propertyName]; 371Stack<ILocalizabilityInheritable> stackForProperty = _propertyInheritanceTreeStack[propertyName]; 380Stack<ILocalizabilityInheritable> stackForProperty = _propertyInheritanceTreeStack[propertyName];
MS\Internal\Globalization\BamlTreeMap.cs (3)
455return _classAttributeTable[className]; 486return _propertyAttributeTable[fullName]; 520_classAttributeTable[className].FormattingTag = formattingTag;
MS\Internal\IO\Packaging\XamlFilter.cs (1)
846return _lcidDictionary[languageString];
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (2)
212type = CustomTypeToHelperTypeMappings[CustomAbiTypeNameToTypeMappings[runtimeClassName]];
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
392return _predefinedNamespaces[name];
System\Windows\Controls\DataGrid.cs (4)
8301dataGridStringBuilders[format].Append(preparingRowClipboardContentEventArgs.FormatClipboardCellValues(format)); 8318dataGridStringBuilders[format].Append(preparingRowClipboardContentEventArgs.FormatClipboardCellValues(format)); 8324DataGridClipboardHelper.GetClipboardContentForHtml(dataGridStringBuilders[DataFormats.Html]); 8331dataObject.SetData(format, dataGridStringBuilders[format].ToString(), false /*autoConvert*/);
System\Windows\Controls\DataGridColumnCollection.cs (2)
544DisplayIndexMap.Add(assignedDisplayIndexMap[displayIndex]); 1487column.Width = _originalWidthsForResize[column];
System\Windows\Documents\FixedTextContainer.cs (1)
467lfs = highlights[page];
System\Windows\Documents\HighlightVisual.cs (1)
81ArrayList highlights = _panel.Highlights[_page];
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (14)
102ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 129ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 156ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 179ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 204ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 232ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 259ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 286ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 314ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 342ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 370ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 403ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 499ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 519ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
82return _instances[language];
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (5)
206ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 251ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 288ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 332ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 363ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);
System\Windows\Documents\Speller.cs (1)
356DictionaryInfo info = UriMap[uri];
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (4)
196(long)Math.Floor(1.0d * _instanceInfo.CumulativeCallTime100Ns[_action] / _instanceInfo.NumCallsMeasured[_action]); 206if (alwaysLog || (ticks > _timeLimits100Ns[_action]) || (runningAverage > 2 * _timeLimits100Ns[_action]))
System\Windows\Documents\WinRTSpellerInterop.cs (5)
337return (_spellCheckers[culture] == null ? false : true); 470_customDictionaryFiles[ietfLanguageTag].Add(lexiconPrivateCopyPath); 781return _spellCheckers[Culture]?.Item1; 796return _spellCheckers[_defaultCulture]?.Item1; 812return _spellCheckers[Culture]?.Item2;
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
333Baml6ConstructorInfo info = Constructors[paramCount];
System\Windows\Markup\BamlReader.cs (2)
2663list = _reverseXmlnsTable[fullName]; 2682xmlnsList = _reverseXmlnsTable[fullName];
System\Windows\Markup\MarkupExtensionParser.cs (1)
1479bracketCharacters = bracketCharacterCache[propertyName];
System\Windows\Markup\ParserContext.cs (1)
204return MasterBracketCharacterCache[type];
System\Windows\Markup\XmlnsCache.cs (2)
395_compatTable[oldXmlns] != newXmlns) 398_compatTable[oldXmlns]));
System\Windows\StyleHelper.cs (1)
2693sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
System\Windows\SystemResources.cs (5)
1137_hwndNotify[hwndDpiInfo].Dispatcher.ShutdownFinished += OnShutdownFinished; 1139_hwndNotify[hwndDpiInfo].AddHook(_hwndNotifyHook[hwndDpiInfo]); 1151_hwndNotify[hwndDpiInfo].Dispose(); 1650return _hwndNotify[hwndDpiInfo];
System\Windows\TemplateContent.cs (1)
1378return TemplateLoadData.NamedTypes[name];
PresentationUI (2)
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
160_activeParts[normalizedPartUri].Target = newPackage.GetPart(part.Uri); 387result = _activeParts[normalizedPartUri];
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
43var old = _content[subpath];
ReachFramework (26)
packaging\XpsDigitalSignature.cs (2)
374relHash = uriHashTable[selector.SourceUri]; 405Dictionary<string, int> relHash = uriHashTable[selector.SourceUri];
Packaging\XpsFixedPageReaderWriter.cs (9)
903xpsResource = (XpsResource)_imageCache[resourceUri]; 907xpsResource = (XpsResource)_fontCache[resourceUri]; 911xpsResource = (XpsResource)_colorContextCache[resourceUri]; 915xpsResource = (XpsResource)_resourceDictionaryCache[resourceUri]; 919xpsResource = (XpsResource)_resourceCache[resourceUri]; 1118xpsFont = _fontCache[uri]; 1144xpsColorContext = _colorContextCache[uri]; 1170xpsResourceDictionary = _resourceDictionaryCache[uri]; 1283xpsImage = _imageCache[uri];
Packaging\XpsManager.cs (10)
536return _cachedParts[uri]; 924docCounter = _contentTypes[docContentKey]-1; 947docCounter = _contentTypes[docContentKey]-1; 1050int docNumber = _contentTypes[contentKey] - 1; 1057int docNumber = _contentTypes[documentContentKey] - 1; 1058int pageNumber = _contentTypes[pageContentKey] - 1; 1084int counter = _contentTypes[contentKey]; 1091docCounter = _contentTypes[docContentKey]-1; 1276_packageCache[uri] = _packageCache[uri]+1; 1287reference = _packageCache[uri];
Packaging\XpsResourcePolicy.cs (2)
90else if (_objDict[serviceType] != service) 159service = _objDict[serviceType];
Serialization\ColorTypeConverter.cs (1)
309profileUri = colorContextTable[colorContext.GetHashCode()];
Serialization\ImageSourceTypeConverter.cs (2)
456imageUri = imageUriHashTable[_uriHashValue]; 484imageUri = imageCrcTable[_crc32HashValue];
Sockets.FunctionalTests (5)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (5)
746}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 778}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 816}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 893}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 1069}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
117return _membersTable[originalLazyMember]; 128return _parametersTable[originalParameter];
System.ComponentModel.TypeConverter (6)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
1568converterData = IntrinsicTypeConverters[typeof(Enum)]; 1572converterData = IntrinsicTypeConverters[typeof(Array)]; 1576converterData = IntrinsicTypeConverters[s_intrinsicNullableKey]; 1580converterData = IntrinsicTypeConverters[typeof(ICollection)]; 1584converterData = IntrinsicTypeConverters[s_intrinsicReferenceKey]; 1611converterData = 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)
424indirectLocationInputs[configKey].Add(
System.Data.Common (9)
System\Data\Common\AdapterUtil.Common.cs (1)
817if (i != hash[columnName])
System\Data\Common\DbConnectionOptions.cs (2)
53public string? this[string keyword] => _parsetable[keyword]; 170string realkeyname = ((null != synonyms) ? (string)synonyms[keyname] : keyname);
System\Data\DataColumnCollection.cs (1)
835if (_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]; } 195object? value = _parsetable[KEY.Integrated_Security]; 225object? value = _parsetable[keyName]; 251return _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.Diagnostics.Process (2)
System\Collections\Specialized\DictionaryWrapper.cs (2)
19get => _contents[key]; 52return _contents.ContainsKey(item.Key) && _contents[item.Key] == item.Value;
System.Drawing.Common.Tests (5)
System\Drawing\ImageAnimator.ManualTests.cs (5)
64ImageAnimator.Animate(bitmaps[imageName], handlers[imageName]); 72ImageAnimator.StopAnimate(bitmaps[imageName], handlers[imageName]); 73bitmaps[imageName].Dispose();
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)
234stringBuilder.Append(_parameterDictionary[parameterKey]);
System\IO\Packaging\Package.cs (1)
1221var keyValue = partDictionary[id];
System\IO\Packaging\ZipPackage.cs (4)
921WriteDefaultElement(writer, key, _defaultDictionary[key]); 929WriteOverrideElement(writer, key, _overrideDictionary[key]); 1474_ignoredItemDictionary[normalizedPrefixName].Add(zipFileName); 1489_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)
2873int 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 (8)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
5700WriteNameAndMessageAttribs(sb, "task", taskTab[task]); 5777WriteNameAndMessageAttribs(sb, "opcode", opcodeTab[opcode]); 5792WriteNameAndMessageAttribs(sb, "keyword", keywordTab[keyword]);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
69sb.Append(seq_mapping[elem]);
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');
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
188return _typeBuilderDict[name];
System.Private.Windows.Core (4)
System\Private\Windows\Core\BinaryFormat\Deserializer\Deserializer.cs (2)
174return _deserializedObjects[_rootId]; 339object @object = _deserializedObjects[completedId];
System\Private\Windows\Core\BinaryFormat\Serializer\RecordMap.cs (1)
13public IRecord this[Id id] => _recordMap[id];
System\Private\Windows\Core\BinaryFormat\Support\StringRecordsCollection.cs (1)
19public IRecord this[Id id] => _memberReferences[id];
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)
623_methods[mapping.Key!].readMethod = GetMethodFromType(reader.GetType(), methodName); 625return _methods[mapping.Key!].readMethod!.Invoke(reader, Array.Empty<object>()); 650_methods[mapping.Key!].writeMethod = GetMethodFromType(writer.GetType(), methodName); 652_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)
255ilg.StoreMember(_idNameFields[id]); 296ilg.LoadMember(_idNameFields[name ?? string.Empty]); 298ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1716ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1721ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1768ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1776ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 2792MemberInfo memInfo = memberInfos[source.Substring(3)]; 2866memberMapping.MemberInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializer.cs (1)
740index = 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)
380PropertyAccessorInfo ai = propertyMap[pi.GetMethod ?? pi.SetMethod!]; 397EventAccessorInfo 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)
1443Debug.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.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)
87processor = s_lookup[Oids.Rsa]; 92processor = 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.Syndication (5)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
595result.AttributeExtensions.Add(attr, attrs[attr]);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
22_attributeExtensions.Add(key, source._attributeExtensions[key]); 99string value = _attributeExtensions[qname];
System\ServiceModel\Syndication\SyndicationContent.cs (2)
93writer.WriteAttributeString(key.Name, key.Namespace, _attributeExtensions[key]); 111AttributeExtensions.Add(key, source._attributeExtensions[key]);
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1221parameterIndex[paramKey].MatchingProperty.Name);
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCharClass.cs (1)
445category = 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\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
445category = s_definedCategories[InternalRegexIgnoreCase];
System.Windows.Controls.Ribbon (11)
Microsoft\Windows\Controls\KeyTipService.cs (2)
357AddElementToScope(elementToScopeMap[element], element); 915culture = cultureCache[language];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
74int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 92int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 280int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 312int starLayoutIndex = _childIndexToStarLayoutIndexMap[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
248int index = ribbon.TabDisplayIndexToIndexMap[i]; 688contextualTabHeaders[contextualTabGroupHeader].Add(new RibbonTabHeaderAndIndex() { RibbonTabHeader = tabHeader, Index = i }); 730foreach (RibbonTabHeaderAndIndex headerAndIndex in contextualTabHeaders[contextualTabGroupHeader])
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1650return TabDisplayIndexToIndexMap[displayIndex]; 1664return TabIndexToDisplayIndexMap[index];
System.Windows.Forms (26)
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)
248Keys keyValue = keyNames[keyString]; 263Keys keyValue = keyNames[keyString]; 296Keys keyValue = keyNames[keyString]; 311Keys keyValue = keyNames[keyString]; 342return CultureToDisplayOrder[culture]; 355return CultureToKeyName[culture]; 368Keys[] values = [.. CultureToKeyName[CultureInfo.InvariantCulture].Values];
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\OLE\DataObject.DataStore.cs (2)
175Debug.Assert(_mappedData[baseVar[i]] is not null, $"Null item in data collection with key '{baseVar[i]}'"); 176if (_mappedData[baseVar[i]]!.AutoConvert)
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)
300if (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)
2008ImageList unscaledImageList = _imageListCacheByDPI[ScaleHelper.OneHundredPercentLogicalDpi];
System\Windows\Forms\Design\TabOrder.cs (1)
249if (_tabProperties[control].IsReadOnly)
System.Windows.Forms.Design.Tests (19)
System\ComponentModel\Design\ComponentDesignerTests.cs (10)
79PropertyDescriptor result = properties["SettingsKey"]; 91result = properties["SettingsKey"]; 2314PropertyDescriptor result = properties["SettingsKey"]; 2334PropertyDescriptor result = properties["SettingsKey"]; 2367Assert.Same(descriptor, properties["SettingsKey"]); 2439EventDescriptor result = Assert.IsAssignableFrom<EventDescriptor>(events["Event"]); 2744PropertyDescriptor result = properties["SettingsKey"]; 2765PropertyDescriptor result = properties["SettingsKey"]; 2800Assert.Same(descriptor, properties["SettingsKey"]); 2879EventDescriptor result = Assert.IsAssignableFrom<EventDescriptor>(events["Event"]);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (9)
140CodeDomComponentSerializationState valueState1 = state["name1"]; 154CodeDomComponentSerializationState valueState2 = state["name2"]; 242CodeDomComponentSerializationState valueState = state["name"]; 344CodeDomComponentSerializationState valueState = state["name"]; 389CodeDomComponentSerializationState valueState = state["name"]; 440CodeDomComponentSerializationState valueState = state["name"]; 486CodeDomComponentSerializationState valueState = state["name"]; 530CodeDomComponentSerializationState valueState = state["name"]; 579CodeDomComponentSerializationState valueState = state["name"];
System.Windows.Forms.Primitives.TestUtilities (1)
SystemCOLORs.cs (1)
51string colorString = string.Join(", ", colors.Select(c => s_names[c]));
System.Windows.Forms.Tests (3)
System\Windows\Forms\ClipboardTests.cs (3)
1128if (typeof(T).AssemblyQualifiedName != _formatToTypeName[format]) 1133return JsonSerializer.Deserialize<T>(_formatToJson[format]); 1137public object GetData(string format) => _formatToJson[format];
System.Xaml (10)
System\Xaml\Context\NameFixupGraph.cs (4)
262FrugalObjectList<NameFixupToken> dependencies = _dependenciesByName[name]; 290FrugalObjectList<NameFixupToken> dependencies = _dependenciesByParentObject[parentObj]; 312FrugalObjectList<NameFixupToken> nameDependencies = _dependenciesByName[name]; 446FrugalObjectList<NameFixupToken> parentDependencies = _dependenciesByParentObject[parentInstance];
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1515value = propertyValues[prop]; 2547List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2557List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2590ObjectWriterContext ctx = PendingKeyConversionContexts[instance];
System\Xaml\Parser\MeScanner.cs (1)
593bracketCharacters = _context.CurrentEscapeCharacterMapForMarkupExtension[propertyName];
System\Xaml\Parser\NodeStreamSorter.cs (1)
211string uriString = _xmlnsDictionary[prefix];
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
169_targetIdsToNames[e.BuildEventContext.TargetId],
UnitTests.Common (2)
TestTypes.cs (2)
157return (s_localizedErrorCodes.ContainsKey(errorCode) ? s_localizedErrorCodes[errorCode] : s_localizedErrorCodes[ErrorCode.UnknownException]);
XmlFileLogger (2)
LogProcessNode.cs (2)
100_childNodes[type].Add(childNode); 117return _childNodes.ContainsKey(t) ? _childNodes[t].Cast<T>() : new List<T>();
xunit.assert (1)
Sdk\CollectionTracker.cs (1)
637 printedValues.Append(ArgumentFormatter.Format(items[idx], depth));
xunit.console (1)
Utility\TransformFactory.cs (1)
61.Select(output => new Action<XElement>(xml => instance.availableTransforms[output.Key].OutputHandler(xml, output.Value)))