Implemented interface member:
method
Add
System.Collections.Generic.IDictionary<TKey, TValue>.Add(TKey, TValue)
2927 references to Add
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (2)
123documentPerformance.Add(documentId, currentDocumentPerformance); 421telemetryInfoDictionary.Add(pair.Key, pair.Value);
Aspire.Dashboard (2)
Extensions\FluentUIExtensions.cs (1)
25attributes.Add(attribute, value);
Model\TraceHelpers.cs (1)
72appFirstTimes.Add(
Aspire.Hosting (1)
Dcp\Model\Schema.cs (1)
12_byType.Add(typeof(T), (kind, resource));
Aspire.Hosting.Azure.EventHubs (3)
AzureEventHubsExtensions.cs (3)
156context.EnvironmentVariables.Add("ACCEPT_EULA", "Y"); 157context.EnvironmentVariables.Add("BLOB_SERVER", $"{blobEndpoint.Resource.Name}:{blobEndpoint.TargetPort}"); 158context.EnvironmentVariables.Add("METADATA_SERVER", $"{tableEndpoint.Resource.Name}:{tableEndpoint.TargetPort}");
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
402onDemandResourcesPaths.Add(component.Name, componentPath);
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (4)
146context.EnvironmentVariables.Add($"KAFKA_CLUSTERS_{index}_NAME", endpoint.Resource.Name); 147context.EnvironmentVariables.Add($"KAFKA_CLUSTERS_{index}_BOOTSTRAPSERVERS", bootstrapServers); 209context.EnvironmentVariables.Add($"KAFKA_LISTENERS", $"PLAINTEXT://localhost:29092,CONTROLLER://localhost:29093,PLAINTEXT_HOST://0.0.0.0:{KafkaBrokerPort},PLAINTEXT_INTERNAL://0.0.0.0:{KafkaInternalBrokerPort}"); 211context.EnvironmentVariables.Add("KAFKA_LISTENER_SECURITY_PROTOCOL_MAP", "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT");
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
193context.EnvironmentVariables.Add("MILVUS_URL", $"{resource.PrimaryEndpoint.Scheme}://{resource.Name}:{resource.PrimaryEndpoint.TargetPort}");
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
223context.EnvironmentVariables.Add("ME_CONFIG_MONGODB_PORT", targetPortValue.ToString(CultureInfo.InvariantCulture)); 225context.EnvironmentVariables.Add("ME_CONFIG_BASICAUTH", "false");
Aspire.Hosting.MySql (3)
MySqlBuilderExtensions.cs (3)
135context.EnvironmentVariables.Add("PMA_HOST", $"{endpoint.Resource.Name}:{endpoint.TargetPort}"); 136context.EnvironmentVariables.Add("PMA_USER", "root"); 137context.EnvironmentVariables.Add("PMA_PASSWORD", singleInstance.PasswordParameter.Value);
Aspire.Hosting.PostgreSQL (4)
PostgresBuilderExtensions.cs (4)
334context.EnvironmentVariables.Add("PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED", "False"); 335context.EnvironmentVariables.Add("PGADMIN_CONFIG_SERVER_MODE", "False"); 338context.EnvironmentVariables.Add("PGADMIN_DEFAULT_EMAIL", "admin@domain.com"); 339context.EnvironmentVariables.Add("PGADMIN_DEFAULT_PASSWORD", "admin");
BoundTreeGenerator (1)
BoundNodeClassWriter.cs (1)
42_typeMap.Add(tree.Root, null);
BuildBoss (2)
SolutionCheckerUtil.cs (2)
57solutionMap.Add(pair.Key, pair.Value.ProjectData); 100map.Add(projectData.Key, new SolutionProjectData(projectEntry, projectData));
BuildValidator (1)
PEReaderExtensions.cs (1)
89_namedExportRva.Add(nameBuilder.ToString(), addressTable[ordinalTable[entryIndex]]);
ConfigurationSchemaGenerator (2)
ConfigurationBindingGenerator.ForSchemaGeneration.cs (1)
80_createdTypeSpecs.Add(typeSymbol, currentResult);
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
114_createdTypeSpecs.Add(typeSymbol, CreateTypeSpec(typeParseInfo));
CSharpSyntaxGenerator (1)
SignatureWriter.cs (1)
25_typeMap.Add(tree.Root, null);
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (1)
141_contents.Add(key.ToLower(CultureInfo.InvariantCulture), values);
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
284_parent._namespaceMappings.Add(targetNamespace, clrNamespace); 389specifiedTypes.Add(typeArg, null);
dotnet-svcutil-lib (237)
AppInsightsTelemetryClient.cs (1)
215properties.Add("ExceptionString", exceptionString);
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
73nameTable.Add(type.Name, type);
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
56_privateIfaceMethods.Add(method.Name, new PrivateInterfaceMethod(ifaceType));
CommandProcessorOptions.cs (1)
867specifiedTypes.Add(typeArg, null);
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (3)
1835nstable.Add(nsdecl.prefix, nsdecl.uri); 1849nstable.Add(nsdecl.prefix, nsdecl.uri); 1902_namespaces.Add(prefix, nsdecl);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
8225_currentEntities.Add(entity, entity);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (3)
1017dict.Add(_nameTable.Add(string.Empty), _nameTable.Add(a.Value)); 1025dict.Add(_nameTable.Add(localName), _nameTable.Add(a.Value)); 1051dict.Add(_nameTable.Add("xml"), _nameTable.Add(XmlReservedNs.NsXml));
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (3)
370_mappings.Add(uri, data); 379_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 380_mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (6)
671_schemaInfo.UndeclaredElementDecls.Add(elementName, elementDecl); 969_schemaInfo.ElementDecls.Add(name, elementDecl); 1246_schemaInfo.ParameterEntities.Add(entityName, entity); 1253_schemaInfo.GeneralEntities.Add(entityName, entity); 1337_schemaInfo.Notations.Add(notation.Name.Name, notation); 1386_undeclaredNotations.Add(notationName, un);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (5)
270schemaInfo.ElementDecls.Add(element.QualifiedName, element.ElementDecl); 275schemaInfo.AttributeDecls.Add(attribute.QualifiedName, attribute.AttDef); 283schemaInfo.ElementDeclsByType.Add(type.QualifiedName, type.ElementDecl); 294schemaInfo.Notations.Add(no.Name.Name, no); 774decl.ProhibitedAttributes.Add(attribute.QualifiedName, attribute.QualifiedName);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (1)
190_attdefs.Add(attdef.Name, attdef);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (5)
355_targetNamespaces.Add(tns, true); 363_elementDecls.Add(entry.Key, entry.Value); 370_elementDeclsByType.Add(entry.Key, entry.Value); 377_attributeDecls.Add(attdef.Name, attdef); 384Notations.Add(notation.Name.Name, notation);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (5)
145schemaInfo.ElementDecls.Add(element.QualifiedName, element.ElementDecl); 149schemaInfo.AttributeDecls.Add(attribute.QualifiedName, attribute.AttDef); 153schemaInfo.ElementDeclsByType.Add(type.QualifiedName, type.ElementDecl); 162schemaInfo.Notations.Add(no.Name.Name, no); 846decl.ProhibitedAttributes.Add(attribute.QualifiedName, attribute.QualifiedName);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (3)
671builder._SchemaInfo.TargetNamespaces.Add(builder._TargetNamespace, true); 747builder._SchemaInfo.ElementDecls.Add(qname, builder._ElementDef._ElementDecl); 1062builder._SchemaInfo.AttributeDecls.Add(qname, builder._AttributeDef._AttDef);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
28_table.Add(name, value);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (5)
89_argList.Add("this", new ArgBuilder("this", 0, _typeBuilder.BaseType)); 93_argList.Add(arg.Name, arg); 162_tmpLocals.Add(type, localTmp); 2667_locals.Add(key, value); 2722freeLocals.Add(key, freeLocalQueue);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1186replaceList.Add(pair.Key, replacedInfo);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (5)
76s_regexs.Add(pattern, regex); 94_methodBuilders.Add(methodName, methodBuilderInfo); 299CreatedTypes.Add(baseSerializerType.Name, baseSerializerType); 401CreatedTypes.Add(typedSerializerType.Name, typedSerializerType); 555CreatedTypes.Add(serializerContractType.Name, serializerContractType);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (2)
401_mapNmsp.Add(new XPathNodeRef(pageElem, idxElem), new XPathNodeRef(pageNmsp, idxNmsp)); 435_idValueMap.Add(id, new XPathNodeRef(pageElem, idxElem));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
379memberNamesTable.Add(memberContract.Name, memberContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (19)
67_clrNamespaces.Add(clrNamespace, dataContract.StableName.Namespace); 68_namespaces.Add(dataContract.StableName.Namespace, clrNamespace); 91_clrNamespaces.Add(clrNamespace, dataContractNamespace); 99_namespaces.Add(dataContractNamespace, clrNamespace); 103_namespaces.Add(dataContractNamespace, clrNamespace); 113_clrNamespaces.Add(ns, null); 308contractNamesInHierarchy.Add(classContract.StableName, null); 770_clrNamespaces.Add(typeName, null); 947handledContracts.Add(dataContract, null); 989dataContract.KnownDataContracts.Add(pair.Key, pair.Value); 1028contractCodeDomInfo.GetMemberNames().Add(extensionDataObjectField.Name, null); 1031contractCodeDomInfo.GetMemberNames().Add(extensionDataObjectProperty.Name, null); 1047contractCodeDomInfo.GetMemberNames().Add(memberEvent.Name, null); 1048contractCodeDomInfo.GetMemberNames().Add(raisePropertyChangedEventMethod.Name, null); 1306contractCodeDomInfo.GetMemberNames().Add(memberName, null); 1318memberNames.Add(pair.Key, pair.Value); 1399Namespaces.Add(dataContractNamespace, clrNamespace); 1400ClrNamespaces.Add(clrNamespace, dataContractNamespace); 1514fragments.Add(nsFragment, null);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (9)
661s_typeToIDCache.Add(new TypeHandleRef(typeHandle), id); 822s_typeToBuiltInContract.Add(type, dataContract); 840s_nameToBuiltInContract.Add(qname, dataContract); 1030s_namespaces.Add(key, key); 1054s_clrTypeStrings.Add(Globals.TypeOfInt.GetTypeInfo().Assembly.FullName, s_clrTypeStringsDictionary.Add(Globals.MscorlibAssemblyName)); 1071s_clrTypeStrings.Add(key, value); 2075typesChecked.Add(type, type); 2151knownDataContracts.Add(itemDataContract.StableName, itemDataContract); 2185nameToDataContractTable.Add(dataContract.StableName, dataContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (7)
52ProcessedContracts.Add(pair.Key, pair.Value); 140Contracts.Add(name, dataContract); 333ProcessedContracts.Add(dataContract, dataContract); 346ProcessedContracts.Add(dataContract, info); 355_referencedTypesDictionary.Add(DataContract.GetStableName(Globals.TypeOfNullable), Globals.TypeOfNullable); 423referencedTypes.Add(stableName, types); 434referencedTypes.Add(stableName, type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (2)
175s_typeToName.Add(type, stableName); 176s_nameToType.Add(stableName, type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (27)
130s_essentialExceptionFields.Add("_className", "ClassName"); 131s_essentialExceptionFields.Add("_message", "Message"); 132s_essentialExceptionFields.Add("_data", "Data"); 133s_essentialExceptionFields.Add("_innerException", "InnerException"); 134s_essentialExceptionFields.Add("_helpURL", "HelpURL"); 135s_essentialExceptionFields.Add("_stackTraceString", "StackTraceString"); 136s_essentialExceptionFields.Add("_remoteStackTraceString", "RemoteStackTraceString"); 137s_essentialExceptionFields.Add("_remoteStackIndex", "RemoteStackIndex"); 138s_essentialExceptionFields.Add("_exceptionMethodString", "ExceptionMethod"); 139s_essentialExceptionFields.Add("_HResult", "HResult"); 140s_essentialExceptionFields.Add("_source", "Source"); 141s_essentialExceptionFields.Add("_watsonBuckets", "WatsonBuckets"); 331this.KnownDataContracts.Add(dataDataContract.StableName, dataDataContract); 462memberNamesTable.Add(memberContract.Name, memberContract); 489fieldToValueDictionary.Add("_className", value.GetType().ToString()); 490fieldToValueDictionary.Add("_message", messageValue); //Thick framework retrieves the System.Exception implementation of message 491fieldToValueDictionary.Add("_data", value.Data); 492fieldToValueDictionary.Add("_innerException", value.InnerException); 493fieldToValueDictionary.Add("_helpURL", value.HelpLink); 494fieldToValueDictionary.Add("_stackTraceString", value.StackTrace); 495fieldToValueDictionary.Add("_remoteStackTraceString", null); 496fieldToValueDictionary.Add("_remoteStackIndex", 0); 497fieldToValueDictionary.Add("_exceptionMethodString", null); 498fieldToValueDictionary.Add("_HResult", value.HResult); 499fieldToValueDictionary.Add("_source", null); //value.source caused transparency error on build. 500fieldToValueDictionary.Add("_watsonBuckets", null); 604mapDict.Add(valString, key);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (2)
535s_nsToPrefixTable.Add(ns, prefix); 536s_prefixToNsTable.Add(prefix, ns);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (3)
29_objectDictionary.Add(id, obj); 43_referencedObjectDictionary.Add(id, null); 47_referencedObjectDictionary.Add(id, null);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (1)
40_objectDictionary.Add(obj, null);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
199previousCollectionTypes.Add(dataContract.OriginalUnderlyingType, dataContract.OriginalUnderlyingType); 232knownDataContracts.Add(dataContract.StableName, dataContract); 246schemaObjects.Add(SchemaExporter.AnytypeQualifiedName, new SchemaObjectInfo(null, null, null, knownTypesForObject)); 268schemaObjects.Add(currentTypeName, new SchemaObjectInfo(schemaType, null, schema, null)); 285schemaObjects.Add(baseTypeName, baseTypeInfo); 305schemaObjects.Add(currentElementName, new SchemaObjectInfo(null, schemaElement, schema, null)); 931knownDataContracts.Add(dataContract.StableName, dataContract);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (1)
41_stringDict.Add(id, xmlString);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (2)
191_dictionary.Add(_list[i].Key, _list[i].Value); 195_dictionary.Add(key, value);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
66_lookup.Add(value, str);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
87_items.Add(key, entry);
FrameworkFork\System.ServiceModel\System\IdentityModel\IdentityModelDictionary.cs (1)
47dictionary.Add(_strings[i], i);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
411properties.Add(SecurityUtils.Identities, identities);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
158headers.Add(key, 1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (1)
649importer.State.Add(MaxPolicyRedirectionsKey, this.MaxPolicyRedirections);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
130_endpointPools.Add(key, result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
47_registry.Add(key, registryEntry);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
133_connectionMapping.Add(connection, new IdlingConnectionSettings());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
38_states.Add(key, state);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (6)
203supportedChannels.Add(typeof(IOutputChannel), 0); 207supportedChannels.Add(typeof(IRequestChannel), 0); 211supportedChannels.Add(typeof(IDuplexChannel), 0); 215supportedChannels.Add(typeof(IOutputSessionChannel), 0); 219supportedChannels.Add(typeof(IRequestSessionChannel), 0); 223supportedChannels.Add(typeof(IDuplexSessionChannel), 0);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
199importer.State.Add(StateHelper.s_stateBagKey, retValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
359s_serverCertMap.Add(request, thumbprint);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (4)
33OperationGenerator.ParameterTypes.Add(part, typeReference); 35KnownTypes.Add(part, knownTypeReferences); 40_isNonNillableReferenceTypes.Add(part, isNonNillableReferenceType); 110operationKnownTypes.Add(knownTypeReference, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (3)
51_operationBindingAssertions.Add(operationDescription, new PolicyAssertionCollection()); 55_messageBindingAssertions.Add(messageDescription, new PolicyAssertionCollection()); 60_faultBindingAssertions.Add(faultDescription, new PolicyAssertionCollection());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (8)
852prefixesUsed.Add(pair.Name, null); 1324BodyPartsTable.Add(wsdlMessage, bodyPartsFromBindings); 1567importer.State.Add(typeof(CodeCompileUnit), compileUnit); 1570importer.State.Add(typeof(XsdDataContractImporter), dataContractImporter); 1634importer.State.Add(type, schemaImporter); 1922importer.State.Add(typeof(CodeCompileUnit), compileUnit); 1925importer.State.Add(typeof(XmlSerializerImportOptions), options); 1991importer.State.Add(type, schemaImporter);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (1)
605_usedRetrievers.Add(retriever, retriever);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (3)
117_operationBindingAssertions.Add(operation, new PolicyAssertionCollection()); 128_messageBindingAssertions.Add(message, new PolicyAssertionCollection()); 138_faultBindingAssertions.Add(fault, new PolicyAssertionCollection());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (4)
632_knownTypes.Add(wrapperPart, wrapperKnownTypes); 642_parent.ParameterTypes.Add(wrapperPart, wrapperTypeRef); 643_parent.SpecialPartName.Add(wrapperPart, "Body"); 803contract.ServiceContractGenerator.GeneratedTypedMessages.Add(message, codeTypeReference);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
142_generatedTypes.Add(contractDescription, context);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TransactionFlowAttribute.cs (1)
46dictionary.Add(da, option);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
95_contracts.Add(actualContractType, contractDescription); 1400_messages.Add(typedMessageType, messageDescription.Items);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlContractConversionContext.cs (7)
125_wsdlOperations.Add(operationDescription, wsdlOperation); 126_operationDescriptions.Add(wsdlOperation, operationDescription); 131_wsdlOperationMessages.Add(messageDescription, wsdlOperationMessage); 132_messageDescriptions.Add(wsdlOperationMessage, messageDescription); 137_wsdlOperationFaults.Add(faultDescription, wsdlOperationFault); 138_faultDescriptions.Add(wsdlOperationFault, faultDescription); 165_operationBindings.Add(operation, bindings);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlEndpointConversionContext.cs (6)
147_wsdlOperationBindings.Add(operationDescription, wsdlOperationBinding); 148_operationDescriptionBindings.Add(wsdlOperationBinding, operationDescription); 153_wsdlMessageBindings.Add(messageDescription, wsdlMessageBinding); 154_messageDescriptionBindings.Add(wsdlMessageBinding, messageDescription); 159_wsdlFaultBindings.Add(faultDescription, wsdlFaultBinding); 160_faultDescriptionBindings.Add(wsdlFaultBinding, faultDescription);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
87_exportedContracts.Add(contract, contractContext); 219_exportedBindings.Add(new BindingDictionaryKey(endpoint.Contract, endpoint.Binding), endpointContext); 227_exportedEndpoints.Add(endpointKey, endpoint); 959_lookup.Add(prefix, namespaceUri);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (15)
339_importedPortTypes.Add(wsdlPortTypeQName, contractContext); 420_importedBindings.Add(wsdlBindingQName, bindingEndpointContext); 477_importedPorts.Add(wsdlPort, endpoint); 615_policyDocuments.Add(doc.Identifier, TryConvert<XmlElement>(doc)); 1694unique.Add(element, element); 1872_warnings.Add(warningMessage, warningMessage); 1890_importErrors.Add(item, wie); 2004_policyDictionary.PolicySourceTable.Add(element, wsdl); 2221policyAlternatives.OperationBindingAlternatives.Add(operation, operationAlternatives); 2252policyAlternatives.MessageBindingAlternatives.Add(message, messageAlternatives); 2268policyAlternatives.FaultBindingAlternatives.Add(fault, faultAlternatives); 2335_embeddedPolicyDictionary.Add(wsdl, wsdlPolicyDictionary); 2345wsdlPolicyDictionary.Add(key, element); 2346_policySourceTable.Add(element, wsdl); 2374_externalPolicyDictionary.Add(key, policyDocument.Value);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
585XmlMappings.Add(mappingKey, mapping);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (3)
193alreadyExported.Add(membersMapping, membersMapping); 201_operationGenerator.ParameterTypes.Add(part, new CodeTypeReference(part.BaseType)); 202_operationGenerator.ParameterAttributes.Add(part, additionalAttributes);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
45_operations.Add(operation.Name, operationRuntime);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
919base.Add(new QName(name, ns), message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (4)
49_operationMap.Add(operation.SyncMethod, operation.Name); 56_operationMap.Add(operation.BeginMethod, operation.Name); 57_operationMap.Add(operation.EndMethod, operation.Name); 65_operationMap.Add(operation.TaskMethod, operation.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderT.cs (1)
128s_cache.Add(t, result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
850_mergedSupportingTokenAuthenticatorsMap.Add(action, mergedSpec);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (2)
2944wsdlImporter.State.Add(MetadataExchangeClient.MetadataExchangeClientKey, importer.State[MetadataExchangeClient.MetadataExchangeClientKey]); 2947wsdlImporter.State.Add(SecurityBindingElementImporter.MaxPolicyRedirectionsKey, maximumRedirections);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
41_scopedCertificates.Add(uri, other.ScopedCertificates[uri]);
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceModelDictionary.cs (1)
47dictionary.Add(_strings[i], i);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (3)
93_dictionary.Add(key, item); 97_dictionary.Add(key, item); 180_dictionary.Add(key, item);
ImportModule.cs (6)
224contractGenerator.NamespaceMappings.Add(namespaceMapping.Key, namespaceMapping.Value); 350importer.State.Add(typeof(XmlSerializerImportOptions), importOptions); 353importer.State.Add(typeof(WrappedOptions), new WrappedOptions { WrappedFlag = options.Wrapped == true }); 359importer.State.Add(typeof(DcNS.XsdDataContractImporter), xsdDataContractImporter); 361importer.State.Add(typeof(WrappedOptions), new WrappedOptions { WrappedFlag = options.Wrapped == true }); 390_bindingContractMapping.Add(context.Endpoint.Binding, context.Endpoint.Contract);
Metadata\ServiceDescriptor.cs (1)
301wsdlImporter.State.Add(typeof(FaultImportOptions), new FaultImportOptions() { UseMessageFormat = useMessageFormat });
dotnet-user-jwts (1)
Helpers\DevJwtCliHelpers.cs (1)
207claims.Add(key, value);
FilesWebSite (1)
Controllers\UploadFilesController.cs (1)
35files.Add(keyValuePair.Key, keyValuePair.Value?.Select(formFile => formFile?.FileName).ToList());
HelixTestRunner (10)
TestRunner.cs (10)
27EnvironmentVariables.Add("DOTNET_CLI_HOME", Options.HELIX_WORKITEM_ROOT); 28EnvironmentVariables.Add("PATH", Options.Path); 29EnvironmentVariables.Add("helix", Options.HelixQueue); 34EnvironmentVariables.Add("HELIX_DIR", helixDir); 35EnvironmentVariables.Add("NUGET_FALLBACK_PACKAGES", helixDir); 37EnvironmentVariables.Add("NUGET_RESTORE", nugetRestore); 40EnvironmentVariables.Add("DotNetEfFullPath", dotnetEFFullPath); 43EnvironmentVariables.Add("VSTEST_DUMP_PATH", dumpPath); 44EnvironmentVariables.Add("DOTNET_CLI_VSTEST_TRACE", "1"); 51EnvironmentVariables.Add("PLAYWRIGHT_BROWSERS_PATH", playwrightBrowsers);
IIS.LongTests (11)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
575dictionary.Add("Empty process path", 580dictionary.Add("Unknown hostingModel", 585dictionary.Add("environmentVariables with add", 612dictionary.Add("App in bin subdirectory full path to dll using exec and quotes", 620dictionary.Add("App in subdirectory with space", 628dictionary.Add("App in subdirectory with space and full path to dll", 636dictionary.Add("App in bin subdirectory with space full path to dll using exec and quotes", 644dictionary.Add("App in bin subdirectory and quoted argument", 652dictionary.Add("App in bin subdirectory full path to dll", 683dictionary.Add("App in subdirectory", 692dictionary.Add("App in bin subdirectory full path",
IIS.NewHandler.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
575dictionary.Add("Empty process path", 580dictionary.Add("Unknown hostingModel", 585dictionary.Add("environmentVariables with add", 612dictionary.Add("App in bin subdirectory full path to dll using exec and quotes", 620dictionary.Add("App in subdirectory with space", 628dictionary.Add("App in subdirectory with space and full path to dll", 636dictionary.Add("App in bin subdirectory with space full path to dll using exec and quotes", 644dictionary.Add("App in bin subdirectory and quoted argument", 652dictionary.Add("App in bin subdirectory full path to dll", 683dictionary.Add("App in subdirectory", 692dictionary.Add("App in bin subdirectory full path",
IIS.NewShim.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
575dictionary.Add("Empty process path", 580dictionary.Add("Unknown hostingModel", 585dictionary.Add("environmentVariables with add", 612dictionary.Add("App in bin subdirectory full path to dll using exec and quotes", 620dictionary.Add("App in subdirectory with space", 628dictionary.Add("App in subdirectory with space and full path to dll", 636dictionary.Add("App in bin subdirectory with space full path to dll using exec and quotes", 644dictionary.Add("App in bin subdirectory and quoted argument", 652dictionary.Add("App in bin subdirectory full path to dll", 683dictionary.Add("App in subdirectory", 692dictionary.Add("App in bin subdirectory full path",
IISExpress.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
575dictionary.Add("Empty process path", 580dictionary.Add("Unknown hostingModel", 585dictionary.Add("environmentVariables with add", 612dictionary.Add("App in bin subdirectory full path to dll using exec and quotes", 620dictionary.Add("App in subdirectory with space", 628dictionary.Add("App in subdirectory with space and full path to dll", 636dictionary.Add("App in bin subdirectory with space full path to dll using exec and quotes", 644dictionary.Add("App in bin subdirectory and quoted argument", 652dictionary.Add("App in bin subdirectory full path to dll", 683dictionary.Add("App in subdirectory", 692dictionary.Add("App in bin subdirectory full path",
illink (46)
ILLink.RoslynAnalyzer (16)
DataFlowAnalyzerContext.cs (1)
46 enabledAnalyzers.Add (analyzer, incompatibleMembers);
DynamicallyAccessedMembersAnalyzer.cs (1)
321 DAMArgument.Add (DynamicallyAccessedMembersAnalyzer.attributeArgument, mismatchedArgument.ToString ());
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
103 dict.Add (key, value is IDeepCopyValue<TValue> copyValue ? copyValue.DeepCopy () : value);
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
88 exceptionState.Add (tryOrCatchOrFilterRegion, state); 110 finallyInputState.Add (finallyRegion, state); 131 exceptionFinallyState.Add (branch, state); 154 branchInput.Add (branch, state);
TrimAnalysis\ArrayValue.cs (1)
81 newArray.IndexValues.Add (kvp.Key, kvp.Value.DeepCopy ());
TrimAnalysis\DiagnosticContext.cs (1)
77 DAMArgument.Add ("attributeArgument", expectedAnnotationsValue.DynamicallyAccessedMemberTypes.ToString ());
TrimAnalysis\TrimAnalysisPatternStore.cs (6)
49 AssignmentPatterns.Add (trimAnalysisPattern.Operation, trimAnalysisPattern); 59 FieldAccessPatterns.Add (pattern.Operation, pattern); 69 GenericInstantiationPatterns.Add (pattern.Operation, pattern); 79 MethodCallPatterns.Add (pattern.Operation, pattern); 89 ReflectionAccessPatterns.Add (pattern.Operation, pattern); 99 FeatureCheckReturnValuePatterns.Add (pattern.Operation, pattern);
TrimAnalysis\TrimAnalysisVisitor.cs (1)
113 array.IndexValues.Add (i, ArrayValue.SanitizeArrayElementValue(elements[i]));
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
199 featureSwitchMembers.Add (currentFeatureSwitch.Value, new Dictionary<string, ClassMembers> ());
Infrastructure.Common (1)
TestEventListener.cs (1)
26_targetSourceName.Add(targetSourceName, true);
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
862settings.Add(id, value);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
52_aiaPaths.Add(path, authority); 59_crlPaths.Add(path, authority);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
44delegates.Add("/" + method.Name, appfunc);
IOperationGenerator (1)
IOperationClassWriter.cs (1)
35_typeMap.Add("IOperation", null);
Microsoft.Analyzers.Extra (5)
CallAnalysis\CallAnalyzer.Registrar.cs (5)
38_state.Methods.Add(method, l); 92_state.Ctors.Add(ctor, l); 132_state.Props.Add(prop, l); 170_state.Interfaces.Add(method.ContainingType, handlers); 231_state.ExceptionTypes.Add(type, l);
Microsoft.Analyzers.Local (5)
CallAnalysis\CallAnalyzer.Registrar.cs (5)
38_state.Methods.Add(method, l); 92_state.Ctors.Add(ctor, l); 132_state.Props.Add(prop, l); 170_state.Interfaces.Add(method.ContainingType, handlers); 231_state.ExceptionTypes.Add(type, l);
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticProject.cs (1)
63_solutionCache.Add(testAssembly, solution);
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
66_analysesByType.Add(type, list);
Microsoft.AspNetCore.Authentication (1)
PropertiesSerializer.cs (1)
77extra.Add(key, value);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
96queryStrings.Add("state", state);
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthHandler.cs (2)
212tokenRequestParameters.Add(OAuthConstants.CodeVerifierKey, codeVerifier!); 333parameters.Add(additionalParameter.Key, additionalParameter.Value);
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManager.cs (1)
77_launchBrowsers.Add(browserName, browser);
Microsoft.AspNetCore.Components (18)
NavigationManagerExtensions.cs (1)
711parameterSources.Add(parameterSource.EncodedName.AsMemory(), parameterSource);
Reflection\ComponentProperties.cs (1)
329_underlyingWriters.Add(propertyName, propertySetter);
Reflection\MemberAssignment.cs (1)
28dictionary.Add(property.Name, property);
RenderTree\Renderer.cs (5)
374_componentStateById.Add(componentId, componentState); 375_componentStateByComponent.Add(component, componentState); 630_eventBindings.Add(id, (renderedByComponentId, callback)); 638_eventBindings.Add(id, (renderedByComponentId, new EventCallback(@delegate.Target as IHandleEvent, @delegate))); 679_eventHandlerIdReplacements.Add(oldEventHandlerId, newEventHandlerId);
Routing\RouteTableFactory.cs (1)
97templatesByHandler.Add(componentType, templates);
Sections\SectionRegistry.cs (2)
16_providersByIdentifier.Add(identifier, providers); 65_subscribersByIdentifier.Add(identifier, subscriber);
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
465updatedDefaults.Add(kvp.Key, kvp.Value); 618parameterPolicyReferences.Add(parameter.Name, parameterConstraints);
src\Http\Routing\src\RouteConstraintBuilder.cs (3)
70constraints.Add(kvp.Key, optionalConstraint); 74constraints.Add(kvp.Key, constraint); 172_constraints.Add(key, list);
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
275trees.Add(entry.Order, tree);
src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
114current.Literals.Add(literalPart.Content, next);
Microsoft.AspNetCore.Components.Authorization.Tests (2)
src\Components\Shared\test\TestServiceProvider.cs (2)
36=> _factories.Add(typeof(T), () => value); 39=> KeyedFactories.Add((typeof(T), serviceKey), () => value);
Microsoft.AspNetCore.Components.Endpoints (11)
Discovery\ComponentCollectionBuilder.cs (2)
20_components.Add(assembly, pageCollection); 43_components.Add(assemblyName, components);
Discovery\PageCollectionBuilder.cs (2)
19_pages.Add(assembly, pageCollection); 42_pages.Add(assemblyName, pages);
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
FormMapping\FormDataReader.cs (1)
155result.Add(new FormKey(prefix), new HashSet<FormKey> { new FormKey(keyValue) });
FormMapping\HttpContextFormValueMapper.cs (1)
128dictionary.Add(new FormKey(key.AsMemory()), value);
Rendering\EndpointHtmlRenderer.EventDispatch.cs (2)
130_namedSubmitEventsByLocation.Add(location, scopeQualifiedName); 141dictionary.Add(key, value);
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (2)
87server.Saved.Add(kvp.Key, kvp.Value); 88webAssembly.Saved.Add(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
83dictionary.Add(new FormKey(kvp.Key.AsMemory()), kvp.Value);
Microsoft.AspNetCore.Components.Forms (2)
EditContext.cs (1)
234_fieldStates.Add(fieldIdentifier, state);
ValidationMessageStore.cs (1)
112_messages.Add(fieldIdentifier, messagesForField);
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\TestServiceProvider.cs (2)
36=> _factories.Add(typeof(T), () => value); 39=> KeyedFactories.Add((typeof(T), serviceKey), () => value);
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\EventCallbackSubscribable.cs (1)
29=> _callbacks.Add(owner, callback);
Microsoft.AspNetCore.Components.Server (6)
Circuits\ComponentParameterDeserializer.cs (2)
45parametersDictionary.Add(definition.Name, null); 70parametersDictionary.Add(definition.Name, parameterValue);
Circuits\RemoteJSDataStream.cs (1)
76_runtime.RemoteJSDataStreamInstances.Add(_streamId, this);
src\Components\Shared\src\RenderBatchWriter.cs (1)
252_deduplicatedStringIndices.Add(value, stringIndex);
src\Components\Shared\src\WebRootComponentManager.cs (1)
54_webRootComponents.Add(ssrComponentId, component);
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
256headers.Add(key, value);
Microsoft.AspNetCore.Components.Tests (3)
CascadingParameterStateTest.cs (1)
436supplierParams.Add("Name", name);
src\Components\Shared\test\TestServiceProvider.cs (2)
36=> _factories.Add(typeof(T), () => value); 39=> KeyedFactories.Add((typeof(T), serviceKey), () => value);
Microsoft.AspNetCore.Components.Web (7)
Forms\InputBase.cs (1)
357result.Add(item.Key, item.Value);
Forms\Mapping\FormMappingContext.cs (2)
106errors.Add(key, mappingError); 122_errorsByFormName.Add(formName, formErrors);
JSComponents\JSComponentConfigurationStore.cs (3)
38_jsComponentTypesByIdentifier.Add(identifier, componentType); 39JSComponentParametersByIdentifier.Add(identifier, parameters); 65JSComponentIdentifiersByInitializer.Add(javaScriptInitializer, identifiersForInitializer);
JSComponents\JSComponentInterop.cs (1)
208ParameterInfoByName.Add(propertyInfo.Name, new(propertyInfo.PropertyType));
Microsoft.AspNetCore.Components.Web.Tests (2)
src\Components\Shared\test\TestServiceProvider.cs (2)
36=> _factories.Add(typeof(T), () => value); 39=> KeyedFactories.Add((typeof(T), serviceKey), () => value);
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\WebRootComponentManager.cs (1)
54_webRootComponents.Add(ssrComponentId, component);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
252_deduplicatedStringIndices.Add(value, stringIndex);
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestDocument.cs (2)
23_componentsById.Add(componentId, new RootComponentNode(componentId, selector)); 52_componentsById.Add(componentId, component);
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\KeyRing.cs (2)
25_keyIdToKeyHolderMap.Add(key.KeyId, new KeyHolder(key)); 33_keyIdToKeyHolderMap.Add(defaultKey.KeyId, new KeyHolder(defaultKey));
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
39parametersToRedact.Add(defaultParameter.Key, defaultParameter.Value);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Logging\IncomingHttpRouteUtilityTests.cs (2)
409d.Add("testKey", FakeTaxonomy.PrivateData); 410d.Add("userId", FakeTaxonomy.PublicData);
Logging\TestLogEnrichmentTagCollector.cs (2)
19_tags.Add(kvp.Key, kvp.Value); 28_tags.Add(tagName, tagValue);
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
156resolvedProviders.Add(compressionProvider.EncodingName, compressionProvider);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
402routeParameterDescriptors.Add(completeFieldPath, new RouteParameter(fieldDescriptors, variable, completeJsonPath));
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
402routeParameterDescriptors.Add(completeFieldPath, new RouteParameter(fieldDescriptors, variable, completeJsonPath));
Microsoft.AspNetCore.Http (5)
HeaderDictionary.cs (2)
202Store.Add(item.Key, item.Value); 215Store.Add(key, value);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
123WriteDictionary.Add(key, value);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
230_dictionaryStorage.Add(key, value); 244_dictionaryStorage!.Add(key, value);
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
917names.Add(property.Name, property);
Microsoft.AspNetCore.Http.Extensions (4)
RequestDelegateFactory.cs (1)
2226dictionary.Add(new FormKey(key.AsMemory()), value);
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
155result.Add(new FormKey(prefix), new HashSet<FormKey> { new FormKey(keyValue) });
src\Shared\ParameterBindingMethodCache.cs (1)
328lookupTable.Add(new ParameterLookupKey(properties[i].Name, properties[i].PropertyType), properties[i]);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
24map.Add(value, builder);
StaticRouteHandlerModel\EndpointParameter.cs (1)
482lookupTable.Add(new ParameterLookupKey(property.Name, property.Type), property);
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
796services.AddIdentity<PocoUser, PocoRole>(o => o.Tokens.ProviderMap.Add("A", new TokenProviderDescriptor(typeof(ATokenProvider)) 893services.AddIdentity<PocoUser, PocoRole>(o => o.Tokens.ProviderMap.Add(TokenOptions.DefaultProvider, new TokenProviderDescriptor(typeof(ATokenProvider))
Microsoft.AspNetCore.Identity.UI (6)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (3)
66personalData.Add(p.Name, p.GetValue(user)?.ToString() ?? "null"); 72personalData.Add($"{l.LoginProvider} external login provider key", l.ProviderKey); 75personalData.Add($"Authenticator Key", await _userManager.GetAuthenticatorKeyAsync(user));
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (3)
66personalData.Add(p.Name, p.GetValue(user)?.ToString() ?? "null"); 72personalData.Add($"{l.LoginProvider} external login provider key", l.ProviderKey); 75personalData.Add($"Authenticator Key", await _userManager.GetAuthenticatorKeyAsync(user));
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestCollectionRunner.cs (1)
44CollectionFixtureMappings.Add(mapping.Key, mapping.Value);
Microsoft.AspNetCore.JsonPatch.Tests (4)
Internal\DictionaryAdapterTest.cs (4)
145dictionary.Add(nameKey, "Mike"); 165dictionary.Add(guidKey, "Mike"); 185dictionary.Add(guidKey, 5); 240dictionary.Add(nameKey, new Rectangle()
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
83_inner.Add(key, value);
src\Shared\ParameterBindingMethodCache.cs (1)
328lookupTable.Add(new ParameterLookupKey(properties[i].Name, properties[i].PropertyType), properties[i]);
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
194statusCodes.Add(statusCode, (statusCode, metadata.ReturnType));
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (1)
109responseTypes.Add(StatusCodes.Status200OK, new ApiResponseType
DefaultApiDescriptionProvider.cs (1)
243routeParameters.Add(routeParameter.Name!, CreateRouteInfo(routeParameter));
Microsoft.AspNetCore.Mvc.Core (14)
ApplicationModels\ApplicationModelFactory.cs (2)
181actionsByMethod.Add(action.ActionMethod, actions); 201actionsByRouteName.Add(routeName, actions);
Formatters\TextOutputFormatter.cs (1)
44cache.Add(mediaType, MediaType.ReplaceEncoding(mediaType, Encoding.UTF8));
Infrastructure\ActionSelectionTable.cs (2)
142ordinalIgnoreCaseEntries.Add(routeValues, entries); 155ordinalEntries.Add(routeValues, entries);
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
32propertyBinders.Add(property, context.CreateBinder(property));
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
28propertyBinders.Add(property, context.CreateBinder(property));
ModelBinding\Binders\DictionaryModelBinder.cs (1)
209keyMappings.Add(bindingContext.ModelName, convertedKey);
ModelBinding\ModelBinderFactory.cs (1)
144visited.Add(key, null);
Routing\AttributeRoute.cs (1)
194templateCache.Add(template, parsedTemplate);
SerializableError.cs (1)
50Add(key, errorMessages);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
123WriteDictionary.Add(key, value);
ValidationProblemDetails.cs (2)
48errorDictionary.Add(key, new[] { errorMessage }); 58errorDictionary.Add(key, errorMessages);
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
301binders.Add(property, innerBinder);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
361binders.Add(property, innerBinder); 1589propertyBinders.Add(property, context.CreateBinder(property));
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
679valueProvider.Add(kvp.Key, string.Empty);
ModelBinding\QueryStringValueProviderFactoryTest.cs (1)
34queryValues.Add("foo", "bar");
ResponseCacheAttributeTest.cs (5)
30cacheProfiles.Add("Cache20Sec", new CacheProfile { NoStore = true }); 31cacheProfiles.Add("Test", new CacheProfile { Duration = 20 }); 50cacheProfiles.Add("Cache20Sec", new CacheProfile { NoStore = true }); 51cacheProfiles.Add("Test", new CacheProfile { Duration = 20 }); 190cacheProfiles.Add("Test", new CacheProfile { NoStore = false });
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
LinkBuilder.cs (1)
29Values.Add("link_" + kvp.Key, kvp.Value);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
198namesAndValues.Add(field.Name, value);
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
SerializableErrorWrapper.cs (1)
74SerializableError.Add(key, value);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (5)
DelegatingEnumerableTest.cs (2)
35error1.Add("key1", "key1-error"); 37error2.Add("key1", "key1-error");
EnumerableWrapperProviderFactoryTest.cs (3)
13serializableError.Add("key1", "key1-error"); 66serializableError.Add("key1", "key1-error"); 119serializableError.Add("key1", "key1-error");
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
InputParentValidationTests.cs (2)
97result.Add(string.Empty, new string[] { "The model is not valid." }); 102result.Add("Name", new string[] { "The Name field is required." });
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
ActionParametersIntegrationTest.cs (1)
1088propertyBinders.Add(property, context.CreateBinder(property));
BodyValidationIntegrationTests.cs (1)
908result.Add(item.Key, errorMessage);
TryValidateModelIntegrationTest.cs (1)
239result.Add(item.Key, errorMessage);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
BsonTempDataSerializer.cs (1)
232convertedDictionary.Add(item.Key, jObject.Value<TVal>(item.Key));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
75_precompiledViews.Add(precompiledView.RelativePath, precompiledView);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultEditorTemplates.cs (1)
186htmlAttributes.Add("type", inputType);
TempDataDictionary.cs (1)
190_data.Add(key, value);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CookieTempDataProviderTest.cs (1)
119values.Add("int", 10);
Microsoft.AspNetCore.OpenApi (4)
Services\OpenApiGenerator.cs (3)
243eligibleAnnotations.Add(StatusCodes.Status200OK, (responseType, new MediaTypeCollection())); 247eligibleAnnotations.Add(StatusCodes.Status200OK, (responseType, new MediaTypeCollection() { "text/plain" })); 251eligibleAnnotations.Add(StatusCodes.Status200OK, (responseType, new MediaTypeCollection() { "application/json" }));
src\Shared\ParameterBindingMethodCache.cs (1)
328lookupTable.Add(new ParameterLookupKey(properties[i].Name, properties[i].PropertyType), properties[i]);
Microsoft.AspNetCore.RateLimiting (4)
RateLimiterOptions.cs (3)
58PolicyMap.Add(policyName, new DefaultRateLimiterPolicy(ConvertPartitioner<TPartitionKey>(policyName, partitioner), null)); 82UnactivatedPolicyMap.Add(policyName, policyFunc); 103PolicyMap.Add(policyName, new DefaultRateLimiterPolicy(ConvertPartitioner<TPartitionKey>(policyName, policy.GetPartition), policy.OnRejected));
RateLimitingMiddleware.cs (1)
52_policyMap.Add(unactivatedPolicy.Key, unactivatedPolicy.Value(serviceProvider));
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
123WriteDictionary.Add(key, value);
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (1)
55((Dictionary<string, int>)executionContext.Items["test-entry"]).Add("from-child", 1234);
Microsoft.AspNetCore.Routing (34)
DecisionTree\DecisionTreeBuilder.cs (3)
129criteria.Add(kvp.Key, criterion); 135criterion.Add(kvp.Value, branch); 173reducedBranches.Add(branch.Key.Value, newBranch);
DefaultLinkParser.cs (1)
107constraints.Add(kvp.Key, constraintsForParameter);
Internal\DfaGraphWriter.cs (1)
67visited.Add(node, label);
Matching\AcceptsMatcherPolicy.cs (4)
166edges.Add(contentType, new List<Endpoint>()); 224edges.Add(AnyContentType, new List<Endpoint>() 231edges.Add(string.Empty, endpoints.ToList()); 236edges.Add(string.Empty, anyEndpoints.ToList());
Matching\ContentEncodingNegotiationMatcherPolicy.cs (1)
71_extraDestinations.Add(contentEncoding, (destination, quality));
Matching\DataSourceDependentMatcher.cs (1)
58seenEndpointNames.Add(endpointName, endpoint.DisplayName ?? endpoint.RoutePattern.RawText);
Matching\DfaMatcherBuilder.cs (2)
749_assignments.Add(kvp.Key, _assignments.Count); 770_assignments.Add(parameterPart.Name, slotIndex);
Matching\DfaNode.cs (2)
45PolicyEdges.Add(state, node); 55Literals.Add(literal, node);
Matching\HostMatcherPolicy.cs (1)
213edges.Add(host, new List<Endpoint>());
Matching\HttpMethodDestinationsLookup.cs (1)
82_extraDestinations.Add(method, destination);
Matching\HttpMethodMatcherPolicy.cs (2)
197edges.Add(key, new List<Endpoint>()); 207edges.Add(key, new List<Endpoint>());
Matching\NegotiationMatcherPolicy.cs (3)
271edges.Add(DefaultNegotiationValue, anyEndpoints); 274edges.Add(string.Empty, anyEndpoints); 279edges.Add(string.Empty, anyEndpoints);
Patterns\RoutePatternFactory.cs (4)
465updatedDefaults.Add(kvp.Key, kvp.Value); 618parameterPolicyReferences.Add(parameter.Name, parameterConstraints); 683updatedParameterPolicies.Add(kvp.Key, policyReferences); 1053combinedDictionary.Add(key, value);
RouteCollection.cs (1)
53_namedRoutes.Add(namedRouter.Name, namedRouter);
RouteConstraintBuilder.cs (3)
70constraints.Add(kvp.Key, optionalConstraint); 74constraints.Add(kvp.Key, constraint); 172_constraints.Add(key, list);
RouteValuesAddressScheme.cs (1)
135namedOutboundMatchResults.Add(entry.RouteName, matchResults);
Tree\LinkGenerationDecisionTree.cs (1)
179results.Add(kvp.Key, new DecisionCriterionValue(kvp.Value ?? string.Empty));
Tree\TreeRouteBuilder.cs (1)
275trees.Add(entry.Order, tree);
Tree\UrlMatchingTree.cs (1)
106current.Literals.Add(part.Text, next);
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\HttpMethodPolicyJumpTableBenchmark.cs (1)
22_destinations.Add("MERGE", 10);
Microsoft.AspNetCore.Routing.Tests (18)
DecisionTreeBuilderTest.cs (17)
46item.Criteria.Add("area", new DecisionCriterionValue(value: "Admin")); 47item.Criteria.Add("controller", new DecisionCriterionValue(value: "Users")); 48item.Criteria.Add("action", new DecisionCriterionValue(value: "AddUser")); 87item1.Criteria.Add("controller", new DecisionCriterionValue(value: "Store")); 88item1.Criteria.Add("action", new DecisionCriterionValue(value: "Buy")); 92item2.Criteria.Add("controller", new DecisionCriterionValue(value: "Store")); 93item2.Criteria.Add("action", new DecisionCriterionValue(value: "Checkout")); 135item1.Criteria.Add("controller", new DecisionCriterionValue(value: "Store")); 136item1.Criteria.Add("action", new DecisionCriterionValue(value: "Buy")); 140item2.Criteria.Add("controller", new DecisionCriterionValue(value: "Store")); 141item2.Criteria.Add("action", new DecisionCriterionValue(value: "Checkout")); 145item3.Criteria.Add("action", new DecisionCriterionValue(value: "Buy")); 168item1.Criteria.Add("controller", new DecisionCriterionValue(value: "Store")); 169item1.Criteria.Add("action", new DecisionCriterionValue(value: "Buy")); 173item2.Criteria.Add("controller", new DecisionCriterionValue(value: "Store")); 174item2.Criteria.Add("action", new DecisionCriterionValue(value: "Checkout")); 178item3.Criteria.Add("stub", new DecisionCriterionValue(value: "Bleh"));
RouteTest.cs (1)
309constraints.Add("id", new RangeRouteConstraint(1, 20));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
CachingApplicationPublisher.cs (1)
44_publishCache.Add(dotnetPublishParameters, publishedApplication);
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\CertificatePathWatcher.cs (2)
131_metadataForDirectory.Add(dir, dirMetadata); 146_metadataForFile.Add(path, fileMetadata);
Internal\ConfigurationReader.cs (2)
46certificates.Add(certificateConfig.Key, new CertificateConfig(certificateConfig)); 160sniDictionary.Add(sniChild.Key, sni);
Internal\Http\HttpRequestHeaders.cs (1)
144Unknown.Add(GetInternedHeaderName(key), value);
Internal\Http\HttpResponseHeaders.cs (1)
135Unknown.Add(GetInternedHeaderName(key), value);
Internal\Http\HttpResponseTrailers.cs (1)
42Unknown.Add(GetInternedHeaderName(key), value);
Internal\Http3\Http3Connection.cs (1)
813_unidentifiedStreams.Add(stream.StreamId, stream);
Internal\SniOptionsSelector.cs (1)
111_exactNameOptions.Add(name, sniOptions);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
SniOptionsSelectorTests.cs (1)
928CertToPathDictionary.Add(cert, certInfo.Path);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
52_aiaPaths.Add(path, authority); 59_crlPaths.Add(path, authority);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
InMemoryTransportBenchmark.cs (1)
126_connections.Add(endpoint, connections);
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
862settings.Add(id, value);
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
123WriteDictionary.Add(key, value);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
230_dictionaryStorage.Add(key, value); 244_dictionaryStorage!.Add(key, value);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
2183_pendingCalls.Add(irq.InvocationId, irq);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocolWorker.cs (1)
256headers.Add(key, value);
Microsoft.Build (65)
BackEnd\BuildManager\BuildManager.cs (3)
908_buildSubmissions.Add(newSubmission.SubmissionId, newSubmission); 2044buildingNodes.Add(innerBuildSubmission, node); 2061resultsPerNode.Add(finishedNode, finishedBuildSubmission.BuildResult!);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
367_outstandingResults.Add(result.NodeRequestId, result); 507_outstandingRequests.Add(newRequest.NodeRequestId, newRequest); 516_unresolvedConfigurations.Add(newRequest.ConfigurationId, new List<BuildRequest>());
BackEnd\Components\Caching\ConfigCache.cs (2)
246configurationsToKeep.Add(configId, configuration); 247configurationIdsByMetadataToKeep.Add(metadata.Key, metadata.Value);
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
150envVars.Add((string)baseVar.Key, (string)baseVar.Value);
BackEnd\Components\Communications\NodeManager.cs (1)
337_nodeIdToProvider.Add(node.NodeId, nodeProvider);
BackEnd\Components\Logging\LoggingService.cs (2)
1172_eventSinkDictionary.Add(sinkId, eventSourceSink); 1213_eventSinkDictionary.Add(sinkId, forwardingLoggerSink);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
187pluginSettings.Add(metadatum.Name, metadatum.EvaluatedValue); 333globalProperties.Add(property.Name, property.EvaluatedValue); 632globalProperties.Add(property.Name, property.EvaluatedValue);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (2)
624combinedTable.Add(entry.Key, entry.Value); 631combinedTable.Add(entry.Key, entry.Value);
BackEnd\Components\RequestBuilder\Lookup.cs (3)
353SecondaryModifyTable.Add(entry.Key, entry.Value); 945modifiesOfType.Add(modify.Key, modify.Value); 1141_modifications.Add(metadataName, MetadataModification.CreateFromNewValue(metadataValue));
BackEnd\Shared\BuildRequestConfiguration.cs (1)
458globalProperties.Add(property.Name, ((IProperty)property).EvaluatedValueEscaped);
BackEnd\Shared\BuildResult.cs (1)
652additionalEntries.Add(SpecialKeyForVersion, String.Empty);
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
57static (dict, kvp) => dict.Add(kvp.Key, kvp.Value));
Collections\ItemDictionary.cs (4)
306_nodes.Add(newItem, node); 343_nodes.Add(item, node); 372_itemLists.Add(itemType, new LinkedList<T>()); 403_nodes.Add(projectItem, node);
Collections\LookasideStringInterner.cs (1)
88_stringToIdsMap.Add(str, index);
Collections\MultiDictionary.cs (1)
115_backing.Add(key, new SmallList<V>(value));
Construction\Solution\SolutionFile.cs (2)
860projectsByUniqueName.Add(tempUniqueName, project); 869projectsByUniqueName.Add(uniqueName, proj);
Definition\ProjectCollection.cs (1)
2543_loadedProjects.Add(project.FullPath, projectList);
Definition\ToolsetConfigurationReader.cs (1)
250pathsTable.Add(property.Name, new ProjectImportPathMatch(property.Name, paths.ToList()));
Definition\ToolsetReader.cs (5)
182toolsets.Add( 209toolsets.Add( 225toolsets.Add( 254toolsets.Add("2.0", synthetic20Toolset); 334toolsets.Add(defaultToolsVersion, defaultToolset);
Evaluation\Evaluator.cs (1)
2306_importsSeen.Add(importFileUnescaped, importElement);
Evaluation\ItemSpec.cs (1)
610current._children.Add(normalizedString, child);
Evaluation\LazyItemEvaluator.cs (1)
396itemsWithNoWildcards.Add(fullPath, op);
Evaluation\PropertiesUseTracker.cs (1)
101_properties.Add(propertyName, elementLocation);
Graph\GraphBuilder.cs (2)
334globalPropertiesForProjectConfiguration.Add(projectConfiguration.FullName, projectGlobalProperties); 367solutionDependencies.Add(project.AbsolutePath, solutionDependenciesForProject);
Instance\HostServices.cs (1)
329hostObject._hostObjects.Add(targetTaskKey, new MonikerNameOrITaskHost(hostObjectMapPairValueMonikerName));
Instance\ProjectInstance.cs (1)
3318projectItemToInstanceMap?.Add(item, instance);
Instance\TaskFactoryWrapper.cs (1)
286propertyInfoCache.Add(propertyInfo.Name, propertyInfo);
Instance\TaskRegistry.cs (3)
440taskFactoryParameters.Add(XMakeAttributes.runtime, runtime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime); 441taskFactoryParameters.Add(XMakeAttributes.architecture, architecture == String.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : architecture); 743_overriddenTasks.Add(unqualifiedTaskName, unqualifiedTaskNameMatches);
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
456groupByProjectEntryPoint.Add(key, errorWarningEventListByTarget); 1163_deferredMessages.Add(e.BuildEventContext, messageList); 1726_startedEvent.Add(buildEventContext, eventTimeStamp.Ticks);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
75_projectStartedEvents.Add(e.BuildEventContext, new ProjectStartedEventMinimumFields(projectIncrementKeyLocal, projectTargetKeyLocal, e, parentEvent, requireTimestamp)); 87_targetStartedEvents.Add(e.BuildEventContext, new TargetStartedEventMinimumFields(e, requireTimeStamp));
LogMessagePacketBase.cs (2)
433s_writeMethodCache.Add(_eventType, methodInfo); 512s_readMethodCache.Add(_eventType, methodInfo);
SolutionConfiguration.cs (1)
96_cachedDependencyProjectGuidsByDependingProjectGuid.Add(projectGuid, list);
TaskParameter.cs (2)
328escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 442escapedGenericWrappedMetadata.Add((string)key, value);
ToolsetElement.cs (3)
295_previouslySeenOS.Add(os, string.Empty); 465_previouslySeenPropertyNames.Add(propertyName, string.Empty); 636_previouslySeenToolsVersions.Add(toolsVersion, string.Empty);
TypeLoader.cs (2)
198assembliesDictionary.Add(Path.GetFileName(localPath), localPath); 422_publicTypeNameToType.Add(publicType.FullName, publicType);
Microsoft.Build.Engine.OM.UnitTests (21)
Definition\Project_Tests.cs (12)
813globalProperties.Add("g1", "v1"); 814globalProperties.Add("g2", "v2"); 830globalProperties.Add("g1", "v1"); 833globalProperties.Add("g2", "v2"); 961initial.Add("p0", "v0"); 962initial.Add("p1", "v1"); 989initial.Add("p0", "v0"); 990initial.Add("p1", "v1"); 2421globalProperties.Add("msbuildprojectdirectory", "x"); 2435globalProperties.Add("msbuildprojectdirectory", "x"); 2459globalProperties.Add("Target", "x"); 2529globalProperties.Add("Target", "x");
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (2)
207result.Add(this.Local, new HashSet<Project>(this.Local.Collection.LoadedProjects)); 211result.Add(r, new HashSet<Project>(r.Collection.LoadedProjects));
ObjectModelRemoting\RemoteProjectsProviderMock\CollectionsHelpers.cs (2)
116result.Add(sRemoter.Key, value); 135result.Add(s.Key, valueRemoter);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
90knownTypes.Add(v.CanonicalType, v.ExportFactory);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
218newMap.Add(other.CollectionId, new ExternalConnection(other));
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (2)
100activeLinks.Add(holder.LocalLinkId, holder); 101indexByKey.Add(holder.Key, holder);
TransientIO.cs (1)
97this.Children.Add(subFolder, result);
Microsoft.Build.Engine.UnitTests (40)
BackEnd\AssemblyTaskFactory_Tests.cs (2)
659taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr2); 660taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture);
BackEnd\BuildManager_Tests.cs (1)
3546static (dict, kvp) => dict.Add(kvp.Key, kvp.Value));
BackEnd\IntrinsicTask_Tests.cs (1)
1258globalProperties.Add("global", "v0");
BackEnd\MockRunningObjectTable.cs (1)
34_dictionary.Add(itemName, obj);
BackEnd\RequestedProjectState_Tests.cs (1)
61items.Add("item3", null!);
BackEnd\SdkResultItemComparison_Tests.cs (8)
21sdkResultItem1.Metadata.Add("key1", "value1"); 22sdkResultItem1.Metadata.Add("key2", "value2"); 25sdkResultItem2.Metadata.Add("key2", "value2"); 26sdkResultItem2.Metadata.Add("key1", "value1"); 46sdkResultItem1.Metadata.Add("key1", "value1"); 47sdkResultItem1.Metadata.Add("key2", "value2"); 52sdkResultItem2.Metadata.Add("key2", "value2"); 53sdkResultItem2.Metadata.Add("key1", "value1");
BackEnd\TaskRegistry_Tests.cs (9)
581taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 582taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.x86); 583taskParameters.Add("Foo", "Bar"); 1058taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 1059taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.x86); 1060taskParameters.Add("Foo", "Bar"); 1082taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 1083taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.MSBuildArchitectureValues.x86); 1084taskParameters.Add("Baz", "Qux");
BinaryLogger_Tests.cs (2)
307files.Add(embedFile.FullPath, embedFile.Content); 318embedFiles2.Add(currentFileName, args.OriginalString);
BuildEnvironmentHelper_Tests.cs (1)
543_mockEnvironment.Add(variable, value);
Collections\OMcollections_tests.cs (4)
209dictionary.Add("p", "v"); 212dictionary.Add("p2", "v2"); 226dictionary.Add("p", "v"); 229dictionary.Add("p2", "v2");
ConsoleLogger_Tests.cs (1)
131_environment.Add((string)entry.Key, (string)entry.Value);
Definition\Toolset_Tests.cs (5)
106subToolsets.Add("dogfood", new SubToolset("dogfood", subToolsetProperties)); 535subToolsets.Add("12.0", new SubToolset("12.0", subToolset12Properties)); 536subToolsets.Add("v11.0", new SubToolset("v11.0", subToolset11Properties)); 537subToolsets.Add("FakeSubToolset", new SubToolset("FakeSubToolset", fakeSubToolsetProperties)); 538subToolsets.Add("v13.0", new SubToolset("v13.0", subToolset13Properties));
Definition\ToolsVersion_Tests.cs (1)
948_defaultTasksFileMap.Add(defaultTasksFileCandidate.Path, defaultTasksFileCandidate.XmlContents);
Evaluation\Evaluator_Tests.cs (2)
5144subToolsets.Add("FakeSubToolset", new SubToolset("FakeSubToolset", fakeSubToolsetProperties)); 5145subToolsets.Add("11.0", new SubToolset("11.0", subToolset11Properties));
InternalEngineHelpers.cs (1)
118sdkResultItems.Add(item.Key, new SdkResultItem(item.Value.ItemSpec, newMetadata));
Microsoft.Build.Framework (5)
BinaryReaderExtensions.cs (1)
120data.ExtendedMetadata.Add(key, value);
BinaryTranslator.cs (1)
794dictionary.Add(key, val);
BuildCheck\BuildCheckEventArgs.cs (1)
92infrastructureTracingData.Add(key, value);
TaskItemData.cs (1)
44dictionary.Add(item.Key, item.Value);
XamlTypes\ContentType.cs (1)
162metadata.Add(pair.Name, pair.Value);
Microsoft.Build.Tasks.CodeAnalysis (2)
MapSourceRoots.cs (2)
111rootByItemSpec.Add(sourceRoot.ItemSpec, sourceRoot); 144topLevelMappedPaths.Add(localPath, mappedPath);
Microsoft.Build.Tasks.Core (43)
AssemblyDependency\GenerateBindingRedirects.cs (1)
375map.Add(assemblyIdentity, maxVerStr);
AssemblyDependency\ReferenceTable.cs (3)
1472dependencyGraph.Add(dependee, dependencies); 2060s_monikerToHighestRedistList.Add(targetFrameworkMoniker.Identifier, redistListAndOtherFrameworkName); 3038removedMetadata.Add(key, meta);
AssemblyDependency\ResolveAssemblyReference.cs (1)
1783_showAssemblyFoldersExLocations.Add(location.SearchPath, importance);
BootstrapperUtil\BootstrapperBuilder.cs (7)
266output.Add(product.ProductCode.ToLowerInvariant(), product); 285builtProducts.Add(builder.Product.ProductCode.ToLowerInvariant(), builder); 573_cultures.Add(culture, resourcesNode); 628availableProducts.Add(p.ProductCode, p); 629buildQueue.Add(p.ProductCode, CreateProduct(productNode)); 1039_validationResults.Add(productCodeAttribute.Value, productValidationResults); 2229includedProducts.Add(product.ProductCode, product);
BootstrapperUtil\PackageCollection.cs (1)
35_cultures.Add(package.Culture, package);
BootstrapperUtil\Product.cs (1)
167_cultures.Add(package.Culture, package);
BootstrapperUtil\ProductCollection.cs (1)
33_table.Add(product.ProductCode, product);
BootstrapperUtil\productvalidationresults.cs (1)
32_packageValidationResults.Add(culture, results);
GenerateResource.cs (1)
3856reader.resourcesHashTable.Add(entry.Name, entry);
ManifestUtil\ApplicationManifest.cs (7)
452clsidList.Add(key, comInfo); 464tlbidList.Add(key, comInfo); 486clsidList.Add(key, new ComInfo(outputFileName, file.TargetPath, comClass.ClsId, null)); 501tlbidList.Add(key, new ComInfo(outputFileName, file.TargetPath, null, typeLib.TlbId)); 588usedExtensions.Add(fileAssociation.Extension, fileAssociation); 666targetPathList.Add(key, false); 712targetPathList.Add(key, false);
ManifestUtil\AssemblyIdentity.cs (1)
400redistDictionary.Add(path, RedistList.GetRedistListFromPath(path));
ManifestUtil\Manifest.cs (1)
635identityList.Add(key, false);
ManifestUtil\Util.cs (1)
450list.Add(key, item);
MSBuild.cs (2)
572combinedTable.Add(entry.Key, entry.Value); 579combinedTable.Add(entry.Key, entry.Value);
RedistList.cs (4)
122simpleNameMap.Add(entry.SimpleName, i); 310s_redistListPathCache.Add(frameworkDirectory, results); 362s_cachedRedistList.Add(key, redistList); 835attributes.Add(reader.Name, reader.Value);
ResolveManifestFiles.cs (4)
868_dictionary.Add(key, entry); 880_simpleNameDictionary.Add(key, entry); 927_dictionary.Add(key, entry); 969_dictionary.Add(key, entry);
ResolveSDKReference.cs (4)
361productFamilyNameToSDK.Add(reference.ProductFamilyName, new HashSet<SDKReference> { reference }); 376sdkNameToSDK.Add(reference.SimpleName, new HashSet<SDKReference> { reference }); 1044FrameworkIdentitiesFromManifest.Add(kvp.Key, kvp.Value); 1061AppxLocationsFromManifest.Add(kvp.Key, kvp.Value);
SolutionConfiguration.cs (1)
96_cachedDependencyProjectGuidsByDependingProjectGuid.Add(projectGuid, list);
system.design\stronglytypedresourcebuilder.cs (1)
127resourceTypes.Add(resource.Key, data);
Microsoft.Build.Tasks.UnitTests (12)
AssignTargetPath_Tests.cs (2)
96metaData.Add("TargetPath", targetPath); 97metaData.Add("Link", "c:/foo/bar");
GetInstalledSDKLocations_Tests.cs (3)
293sdksAndVersions.Add(item.GetMetadata("SDKName"), item.GetMetadata("PlatformVersion")); 339extensionSDKs.Add(item.GetMetadata("SDKName"), item.ItemSpec); 413extensionSDKs.Add(item.GetMetadata("SDKName"), item.ItemSpec);
GetSDKReference_Tests.cs (4)
268pathToReferenceMetadata.Add("first", new("dat", "dat2", true, false)); 269pathToReferenceMetadata.Add("second", new("inf", "inf2", false, false)); 271directoryToFileList.Add("third", new List<string>() { "a", "b", "c" }); 272directoryToFileList.Add("fourth", new List<string>() { "1", "2", "3" });
MockUnmanagedMemoryHelper.cs (1)
49_dependentAllocations.Add(_mainAllocationHandle, new List<IntPtr>());
RARPrecomputedCache_Tests.cs (1)
76rarWriterTask._cache.instanceLocalFileStateCache.Add(dllName,
ResolveSDKReference_Tests.cs (1)
334dict.Add("Microsoft.VCLibs", "11.0");
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1235dictionary.Add(item.Key, item.Value);
Microsoft.Build.Utilities.Core (34)
MuxLogger.cs (1)
252_submissionRecords.Add(submissionId, record);
ToolLocationHelper.cs (11)
627filteredExtensionSdks.Add(sdk.Key, sdk.Value); 903s_cachedTargetPlatformReferences.Add(cacheKey, targetPlatformReferences); 992s_cachedExtensionSdkReferences.Add(cacheKey, extensionSdkReferences); 2469s_cachedTargetPlatforms.Add(cachedTargetPlatformsKey, collection); 2480s_cachedExtensionSdks.Add(cachedExtensionSdksKey, extensionSdk); 2550targetPlatformSDK.ExtensionSDKs.Add(SDKKey, FileUtilities.EnsureTrailingSlash(sdkVersionDirectory.FullName)); 2630platformSDKs.Add(targetPlatformSDK, targetPlatformSDK); 2750platformMonikers.Add(targetPlatformSDK, targetPlatformSDK); 2823targetPlatformSDK.ExtensionSDKs.Add(sdkKey, FileUtilities.EnsureTrailingSlash(directoryName)); 3053sdk.Platforms.Add(sdkKey, FileUtilities.EnsureTrailingSlash(platformVersion.FullName)); 3690s_cachedHighestFrameworkNameForTargetFrameworkIdentifier.Add(key, highestFrameworkName);
ToolsetElement.cs (3)
295_previouslySeenOS.Add(os, string.Empty); 465_previouslySeenPropertyNames.Add(propertyName, string.Empty); 636_previouslySeenToolsVersions.Add(toolsVersion, string.Empty);
TrackedDependencies\CanonicalTrackedInputFiles.cs (11)
454sourceDependencies.Add(dependee, new TaskItem(dependee)); 695primaryFiles.Add(FileUtilities.NormalizePath(file.ItemSpec), null); 701primaryFiles.Add(tlogEntry, null); 717dependencies.Add(tlogEntry, null); 720DependencyTable.Add(tlogEntry, dependencies); 745dependencies.Add(tlogEntry, null); 781DependencyTable.Add(tlogEntry, dependencies); 789dependencies.Add(tlogEntry, null); 1077fileCache.Add(file, fileExists); 1083dependenciesWithoutMissingFiles.Add(file, kvp.Value); 1088dependenciesWithoutMissingFiles.Add(file, file);
TrackedDependencies\CanonicalTrackedOutputFiles.cs (8)
188DependencyTable.Add(tlogEntry, dependencies); 212dependencies.Add(tlogEntry, fileModifiedTime); 485outputs.Add(dependee, new TaskItem(dependee)); 540DependencyTable.Add(sourceKey, dependencies); 558dependencies.Add(fullComputedOutput, fileModifiedTime); 771fileCache.Add(file, fileExists); 777dependenciesWithoutMissingFiles.Add(file, kvp.Value); 782dependenciesWithoutMissingFiles.Add(file, DateTime.Now);
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
4060targetPlatforms.Add(sdk, sdk);
Microsoft.Cci.Extensions (11)
Mappings\AssemblyMapping.cs (2)
42_properties.Add(prop.Key, mapping); 66_namespaces.Add(ns, mapping);
Mappings\AssemblySetMapping.cs (2)
36_assemblies.Add(assembly, mapping); 50_namespaces.Add(nspace, nsMapping);
Mappings\AttributesMapping.cs (1)
52_attributes.Add(attrGroup.Key, mapping);
Mappings\NamespaceMapping.cs (1)
32_types.Add(type, mapping);
Mappings\TypeMapping.cs (2)
57_nestedTypes.Add(nestedType, mapping); 69_members.Add(member, mapping);
SRMetadataPEReaderCache.cs (1)
38_cache.Add(assemblyPath, (stream, peReader));
Traversers\DependencyTraverser.cs (1)
201_dependencies.Add(definition, depends);
Traversers\ResolveAllReferencesTraverser.cs (1)
114_missingDependencies.Add(reference, dependents);
Microsoft.CodeAnalysis (119)
Binding\AbstractLookupSymbolsInfo.cs (1)
251_nameMap.Add(name, pair);
CodeGen\CompilationTestData.cs (1)
78map.Add(name, pair.Value);
CodeGen\LocalSlotManager.cs (1)
139LocalMap.Add(symbol, local);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
201stringHashMap.Add(hash, bucket);
Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
Collections\IdentifierCollection.cs (1)
90_map.Add(identifier, identifier);
Collections\ImmutableArrayExtensions.cs (3)
1169accumulator.Add(key, item); 1181result.Add(entry.Key, createMembers(entry.Value)); 1226dictionary.Add(entry.Key, namedTypes);
Collections\KeyedStack.cs (1)
26_dict.Add(key, store);
Collections\TopologicalSort.cs (2)
119predecessorCounts.Add(n, 0); 134predecessorCounts.Add(succ, 1);
CommandLine\CommonCompiler.cs (1)
450embeddedTreeMap.Add(tree.FilePath, tree);
CommandLine\SarifV1ErrorLogger.cs (3)
262_counters.Add(descriptor.Id, 0); 263_keys.Add(descriptor, descriptor.Id); 277_keys.Add(descriptor, key);
CommandLine\SarifV2ErrorLogger.cs (1)
488_distinctDescriptors.Add(descriptor, new(Index: Count, info ?? default));
Compilation\CommonModuleCompilationState.cs (1)
53_lazyStateMachineTypes.Add(method, stateMachineClass);
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (3)
44Add(name, new Value(publicKeyToken, version)); 123Add(key, values = new List<Value>()); 143Add(key, values = new List<Value>());
DiagnosticAnalyzer\AnalysisResultBuilder.cs (3)
135completedAnalyzersByTree.Add(tree, completedAnalyzers); 139_completedSyntaxAnalyzersByAdditionalFile.Add(additionalFile, completedAnalyzers); 297_analyzerActionCounts.Add(analyzer, getAnalyzerActionCounts(analyzer));
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
145_knownAssemblyPathsBySimpleName.Add(simpleName, paths);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1161programmaticSuppressionsBuilder.Add(programmaticSuppression.SuppressedDiagnostic, array); 1308GeneratedCodeSymbolsForTreeMap.Add(tree, generatedCodeSymbols);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
937nodeActionsByKind.Add(kind, actionsForKind = ArrayBuilder<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>.GetInstance()); 1036operationActionsByKind.Add(kind, actionsForKind = ArrayBuilder<OperationAnalyzerAction>.GetInstance());
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
245typeNameMap.Add(supportedLanguage, builder);
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
154_lazySymbolScopeTasks.Add(symbol, symbolScopeTask);
DiagnosticAnalyzer\AnalyzerManager.cs (1)
47analyzerExecutionContextMap.Add(analyzer, new AnalyzerExecutionContext(analyzer));
DiagnosticAnalyzer\CompilationAnalysisValueProvider.cs (1)
60_valueMap.Add(key, value);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
64_globalSymbolSuppressions.Add(symbol, suppressions);
Emit\EditAndContinue\DefinitionMap.cs (4)
98mappedMethods.Add(newMethod, new EncMappedMethod(oldMethod, edit.SyntaxMap, edit.RuntimeRudeEdit)); 193declaratorToIndex.Add(declarators[i], i); 511hoistedLocals.Add(slot, slotIndex); 523awaiters.Add(slot, slotIndex);
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
64_typesUsedByDeletedMembers.Add(typeDef, deletedType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (14)
175addedOrChangedMethodsByIndex.Add(MetadataTokens.GetRowNumber(GetMethodDefinitionHandle(pair.Key)), pair.Value); 245result.Add(pair.Key, pair.Value); 512result.Add(typeDef, deletedMethodDefs); 665_deletedTypeMembers.Add(typeDef, newMethodDefs.ToImmutable()); 735_firstParamRowMap.Add(GetMethodDefinitionHandle(methodDef), _parameterDefs.NextRowId); 739_parameterDefList.Add(paramDef, methodDef); 783_existingParameterDefs.Add(paramDef, MetadataTokens.GetRowNumber(param)); 784_parameterDefList.Add(paramDef, methodDef); 798_parameterDefList.Add(paramDef, methodDef); 900_addedOrChangedMethods.Add(body.MethodDefinition, info); 1582this.added.Add(item, index); 1741this.added.Add(item, index); 1779this.added.Add(item, index); 1815this.added.Add(item, index);
Emit\EditAndContinue\EmitBaseline.cs (3)
509result.Add(reader.GetRowNumber(parentType), rowId); 524result.Add(reader.GetRowNumber(parentType), rowId); 550result.Add(key, row);
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
94previousLocalInfoToSlot.Add(localInfo, slot);
Emit\EditAndContinue\SymbolChanges.cs (5)
390lazyDeletedMembersBuilder.Add(newContainingType, deletedMembersPerType); 403changesBuilder.Add(newContainingType, SymbolChange.ContainsChanges); 434updatedMethodsBuilder.Add(newMember.ContainingType, updatedMethodsPerType); 461changesBuilder.Add(newMember, change); 487changes.Add(containingSymbol, SymbolChange.ContainsChanges);
Emit\EditAndContinue\SymbolMatcher.cs (2)
89result.Add(key, pair.Value); 102result.Add(pair.Key, pair.Value.MapTypes(this));
InternalUtilities\ConcurrentLruCache.cs (1)
111_cache.Add(key, new CacheValue { Node = node, Value = value });
InternalUtilities\EnumerableExtensions.cs (1)
795dictionary.Add(grouping.Key, items);
MetadataReader\PEModule.cs (4)
756namespaceHandles.Add(nsHandle, new ArrayBuilder<TypeDefinitionHandle> { typeDef }); 772namespaces.Add(@namespace, kvp.Value); 829namespaces.Add(namespaceName, null); 3883typesToAssemblyIndexMap.Add(name, (FirstIndex: referencedAssemblyIndex, SecondIndex: -1));
NativePdbWriter\PdbWriter.cs (3)
339_qualifiedNameCache.Add(@namespace, result); 359_qualifiedNameCache.Add(typeReference, result); 637_documentIndex.Add(document, documentIndex);
Operations\ControlFlowGraphBuilder.cs (4)
392continueDispatchAfterFinally.Add(@finally, continueDispatch); 1319_regionMap.Add(block, _currentRegion); 3895_labeledBlocks.Add(labelOpt, labeledBlock); 8017explicitProperties.Add(property, assignment);
Operations\ControlFlowGraphBuilder.ImplicitInstanceInfo.cs (1)
70AnonymousTypePropertyValues.Add(pair.Key, pair.Value);
Operations\OperationMapBuilder.cs (1)
115argument.Add(operation.Syntax, operation);
PEWriter\FullMetadataWriter.cs (2)
392_fieldDefIndex.Add(typeDef, _fieldDefs.NextRowId); 398_methodDefIndex.Add(typeDef, _methodDefs.NextRowId);
PEWriter\MetadataWriter.cs (15)
686_fileRefIndex.Add(key, _fileRefList.Count); 719_customAttributeSignatureIndex.Add(customAttribute, result); 822_fieldSignatureIndex.Add(fieldReference, result); 849_fileRefIndex.Add(key, index = _fileRefList.Count); 1062_methodInstanceSignatureIndex.Add(methodInstanceReference, result); 1078_marshallingDescriptorIndex.Add(marshallingInformation, result); 1144_signatureIndex.Add(methodReference, KeyValuePairUtil.Create(result, signatureBlob)); 1290_signatureIndex.Add(propertyDef, KeyValuePairUtil.Create(result, blob)); 1655_typeSpecSignatureIndex.Add(typeReference, result); 3028_smallMethodBodies.Add(smallBodyKey, encodedBody.Offset); 4265_index.Add(item, index); 4292_index.Add(item, index); 4316_instanceIndex.Add(item, index); 4324_instanceIndex.Add(item, index); 4325_structuralIndex.Add(item, index);
PEWriter\MetadataWriter.DynamicAnalysis.cs (4)
61_blobs.Add(ImmutableArray<byte>.Empty, default(BlobHandle)); 88_blobs.Add(blob, index); 115_guids.Add(guid, result); 211index.Add(document, documentRowId);
PEWriter\MetadataWriter.PortablePdb.cs (2)
452scopeIndex.Add(scope, result); 772index.Add(document, documentHandle);
ReferenceManager\CommonReferenceManager.Resolution.cs (4)
267boundReferences.Add(boundReference, boundReference); 521ObservedMetadata.Add(peReference, (MetadataOrDiagnostic?)newMetadata ?? newDiagnostic!); 626lazyAliasMap.Add(primaryReference, mergedAliases); 677referencesBySimpleName.Add(identity.Name, new List<ReferencedAssemblyIdentity> { referencedAssembly });
ReferenceManager\CommonReferenceManager.State.cs (3)
490referencedModulesMap.Add(references[i], moduleIndex); 499referencedAssembliesMap.Add(reference, assemblyIndex); 504(mergedAssemblyReferencesMapOpt ??= new Dictionary<MetadataReference, ImmutableArray<MetadataReference>>()).Add(reference, referenceMap[i].MergedReferences);
RuleSet\RuleSet.cs (3)
166effectiveSpecificOptions.Add(item.Key, item.Value); 181effectiveSpecificOptions.Add(item.Key, item.Value); 310diagnosticOptions.Add(rule.Key, rule.Value);
SourceGeneration\Nodes\GeneratorRunStateTable.cs (1)
99stepCollectionBuilder.Add(step.Name, stepsByName);
SpecialTypes.cs (1)
96s_nameToTypeIdMap.Add(name, (ExtendedSpecialType)i);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 542accumulator.Add(key, bucket); 553dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
WellKnownTypes.cs (1)
710s_nameToTypeIdMap.Add(name, typeId);
Microsoft.CodeAnalysis.CodeStyle (35)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
43s_cachedProperties.Add((includeInFixAll, equivalenceKey), properties);
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
176enumValues.Add(enumValue, fieldSymbol);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
289pragmasToIsUsedMap.Add(trivia, false);
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
1169accumulator.Add(key, item); 1181result.Add(entry.Key, createMembers(entry.Value)); 1226dictionary.Add(entry.Key, namedTypes);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
795dictionary.Add(grouping.Key, items);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 542accumulator.Add(key, bucket); 553dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
893directiveMap.Add(directive, previousDirective); 894directiveMap.Add(previousDirective, directive); 906directiveMap.Add(regionStack.Pop(), null); 930conditionalMap.Add(cond, condDirectives); 936directiveMap.Add(directive, ifDirective); 937directiveMap.Add(ifDirective, directive);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
111_reachingWrites.Add(symbol, values); 234result.Add(symbol, values);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
170builder.Add(block, null); 468_lValueFlowCapturesMap.Add(captureId, captures);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
169_pendingWritesMap.Add(assignmentOperation, set); 177_pendingWritesMap.Add(deconstructionAssignment, set);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
106_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
36ruleNamesAndPriorities.Add(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
202_symbolToId.Add(symbol, id);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
75Substitutions.Add(symbol, namedType); 82Substitutions.Add(symbol, commonDerivedType);
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder.QueryTranslationState.cs (1)
57result.Add(vars, ImmutableArray<string>.Empty);
Binder\Binder_Constraints.cs (1)
49names.Add(name, names.Count);
Binder\DecisionDagBuilder.cs (1)
867uniqueState.Add(state, state);
Binder\PatternExplainer.cs (4)
270constraints.Add(temp, constraintBuilder = new ArrayBuilder<(BoundDagTest, bool)>()); 281evaluations.Add(temp, evaluationBuilder = new ArrayBuilder<BoundDagEvaluation>()); 568properties.Add(e.Field, subPattern); 575properties.Add(e.Property, subPattern);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
236lookedInInterfaces.Add(operatorSourceOpt, hadUserDefinedCandidateFromInterfaces); 287lookedInInterfaces.Add(@interface, hadUserDefinedCandidate);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3343candidates.Add(newCandidate, newCandidate);
Binder\SwitchBinder.cs (2)
127map.Add(key, label); 462result.Add(node, label);
BoundTree\BoundNode_Source.cs (1)
422tempIdentifiers.Add(local, identifier);
CodeGen\EmitStatement.cs (1)
2014labelClones.Add(label, clone);
CodeGen\Optimizer.cs (3)
1817_locals.Add(dummy, LocalDefUseInfo.GetInstance(StackDepth())); 1841_locals.Add(dummy, LocalDefUseInfo.GetInstance(StackDepth())); 2006_locals.Add(local, LocalDefUseInfo.GetInstance(stack));
Compiler\ClsComplianceChecker.cs (1)
1081containingTypes.Add(containingType.OriginalDefinition, containingType);
Compiler\TypeCompilationState.cs (1)
159_wrappers.Add(method, wrapper);
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
169map.Add(local, slotIndex);
Emitter\Model\PEModuleBuilder.cs (2)
731exportedNamesMap.Add(fullEmittedName, type); 1479_fixedImplementationTypes.Add(field, result);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
825labelsInInterestingTry.Add(node, currentLabels); 976proxyLabels.Add(label, proxy); 1057_hoistedLocals.Add(local, local); 1070_hoistedLocals.Add(local, newLocal);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
121_awaiterFields.Add(awaiterType, result); 352_placeholderMap.Add(awaitablePlaceholder, expression);
Lowering\ClosureConversion\ClosureConversion.cs (3)
359_frames.Add(scope.BoundNode, env); 723_framePointers.Add(frame, framePointer); 1553_parameterMap.Add(parameter, synthesizedMethod.Parameters[parameter.Ordinal]);
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.IteratorFinallyFrame.cs (2)
87knownStates.Add(state, innerHandler); 116proxyLabels.Add(label, proxy);
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
80yieldingTryLabels.Add(node, currentLabels);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
82_delegateFields.Add((constrainedToTypeOpt, delegateType, targetMethod), field);
Lowering\LocalRewriter\LocalRewriter.cs (1)
540_placeholderReplacementMapDoNotUseDirectly.Add(placeholder, value);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
184_lazyUnmatchedLabelCache.Add(node, unmatched);
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
57_sectionLabels.Add(section, result);
Lowering\MethodToClassRewriter.cs (2)
113localMap.Add(local, newLocal); 464_placeholderMap.Add(awaitablePlaceholder, rewrittenPlaceholder);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (6)
135this.proxies.Add(proxy.Key, proxy.Value); 237_dispatches.Add(resumeLabel, new List<StateMachineState> { stateNumber }); 325proxies.Add(local, proxy); 502_lazyAvailableReusableHoistedFields.Add(field.Type, fields = new ArrayBuilder<StateMachineFieldSymbol>()); 553proxies.Add(local, new CapturedToExpressionSymbolReplacement(replacement, hoistedFields.ToImmutableAndFree(), isReusable: true)); 894oldDispatches.Add(dispatchLabel, new List<StateMachineState>(from kv in _dispatches.Values from n in kv orderby n select n));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
231proxiesBuilder.Add(local, new CapturedToStateMachineFieldReplacement(field, isReusable: false)); 241proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 248initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(initialThis, isReusable: false)); 256proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 261initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(field, isReusable: false));
Lowering\SynthesizedSubmissionFields.cs (1)
89_previousSubmissionFieldMap.Add(previousSubmissionType, previousSubmissionField);
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
262namespaces.Add(c.Name.AsMemory(), c);
Symbols\ReferenceManager.cs (1)
858missingAssemblies.Add(assemblyIdentity, missingAssembly);
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
226_retargetingAssemblyMap.Add(underlyingBoundReferences[j],
Symbols\Source\SourceMemberContainerSymbol.cs (7)
1352conflictDict.Add(key, t); 2083conversionsAsMethods.Add(conversion, conversion); 2119methodsBySignature.Add(method, method); 2694instanceMap.Add(this, this); 2736instanceMap.Add(tOriginal, t); 2883membersByName.Add(name, typesAsSymbols); 3633membersBySignature.Add(symbol, symbol);
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
284structsInParent.Add(trivia, new WeakReference<SyntaxNode>(structure));
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
38_map.Add(identifier, list);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (2)
59_trailingTriviaMap.Add(pair.Key.Item1, trailingTrivia); 64_leadingTriviaMap.Add(pair.Key.Item2, leadingTrivia);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
2440expectedEmbeddedMap.Add(src.Path, embed_cs); 2445expectedEmbeddedMap.Add(src2.Path, embed2_cs); 2450expectedEmbeddedMap.Add(txt.Path, embed_xyz);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
917mapping.Add(descriptor.SuppressedDiagnosticId, descriptor);
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (2)
682dictionary.Add("dotnet_naming_rule.R2.priority", "0"); 683dictionary.Add("dotnet_naming_rule.R1.priority", "1");
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
32s_recommenderMap.Add(kind, (AbstractSyntacticSingleKeywordRecommender)recommender);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4748warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress);
Emit\EmitErrorTests.cs (1)
305warnOpts.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedVarAssg), ReportDiagnostic.Suppress);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
Attributes\AttributeTests_Assembly.cs (3)
183warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress); 215warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress); 431warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress);
Attributes\AttributeTests_MarshalAs.cs (2)
495expectedBlobs.Add(fldName, new byte[] { 0x2a, (byte)i }); 638expectedBlobs.Add(fldName, new byte[] { 0x1e, 0x01, (byte)i });
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2845visitedEntryPoints.Add(entryPointName, true);
Diagnostics\DiagnosticAnalyzerTests.cs (18)
317specificDiagOptions.Add(noneDiagDescriptor.Id, ReportDiagnostic.Error); 318specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Error); 319specificDiagOptions.Add(warningDiagDescriptor.Id, ReportDiagnostic.Error); 332specificDiagOptions.Add(noneDiagDescriptor.Id, ReportDiagnostic.Suppress); 333specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Suppress); 334specificDiagOptions.Add(warningDiagDescriptor.Id, ReportDiagnostic.Suppress); 335specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Suppress); 344specificDiagOptions.Add(noneDiagDescriptor.Id, ReportDiagnostic.Info); 345specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Hidden); 346specificDiagOptions.Add(warningDiagDescriptor.Id, ReportDiagnostic.Error); 347specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Warn); 459specificDiagOptions.Add(disabledDiagDescriptor.Id, ReportDiagnostic.Warn); 460specificDiagOptions.Add(enabledDiagDescriptor.Id, ReportDiagnostic.Suppress); 531specificDiagOptions.Add(FullyDisabledAnalyzer.desc1.Id, ReportDiagnostic.Warn); 532specificDiagOptions.Add(PartiallyDisabledAnalyzer.desc2.Id, ReportDiagnostic.Suppress); 540specificDiagOptions.Add(FullyDisabledAnalyzer.desc3.Id, ReportDiagnostic.Warn); 1141specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.EnabledRule.Id, ReportDiagnostic.Suppress); 1150specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.DisabledRule.Id, ReportDiagnostic.Warn);
Microsoft.CodeAnalysis.CSharp.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
459replacements.Add(declaration, IdentifierName(designation.Identifier) 486replacements.Add(pattern, pattern.WithDesignation(newDesignation));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
11038noWarns.Add(MessageProvider.Instance.GetIdForErrorCode(219), ReportDiagnostic.Suppress);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\PartialPropertiesTests.cs (1)
862visitedEntryPoints.Add(entryPointName, true);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Diagnostics\DiagnosticTest.cs (3)
1429warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error); 1824warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error); 2248warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Error);
Syntax\SyntaxAnnotationTests.cs (3)
442nodeOrTokenMap.Add(oldNode, newNode); 448nodeOrTokenMap.Add(oldToken, newToken); 461triviaMap.Add(oldTrivia, newTrivia);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
38_map.Add(identifier, list);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (2)
59_trailingTriviaMap.Add(pair.Key.Item1, trailingTrivia); 64_leadingTriviaMap.Add(pair.Key.Item2, leadingTrivia);
Microsoft.CodeAnalysis.EditorFeatures (3)
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (1)
157_spanToLruNode.Add(span, node);
Shared\Utilities\ClassificationTypeMap.cs (1)
50_identityMap.Add(value, registryService.GetClassificationType(ClassificationLayer.Semantic, value));
Workspaces\AbstractTextBufferVisibilityTracker.cs (1)
95_subjectBufferToCallbacks.Add(subjectBuffer, data);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (1)
626=> Messages.Add(source.GetType().Name, ToLogFormat(exception));
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
102expectedMap.Add(expectedLines[i].Trim(), expectedLines[i + 1].Trim());
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (1)
53libraries.Add(Path.GetFileNameWithoutExtension(library.Path), library);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
457localNames.Add(localSlot0.GetName(), LocalKind.VariableName);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Resolver.cs (1)
40_requests.Add(process, requests);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
90favoritesMembersByName.Add(member.DisplayName, member);
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (2)
83favoritesMemberNames.Add(favorite, null); 582result.Add(browsableAttribute.TargetMember, browsableAttribute.State);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
90favoritesMembersByName.Add(member.DisplayName, member);
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (2)
83favoritesMemberNames.Add(favorite, null); 582result.Add(browsableAttribute.TargetMember, browsableAttribute.State);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
40_identityMap.Add(value, registryService.GetClassificationType(value));
Microsoft.CodeAnalysis.Features (114)
ChangeSignature\SignatureChange.cs (1)
43_originalIndexToUpdatedIndexMap.Add(i, index);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
53currentDiagnosticSpans.Add(diagnostic, diagnostic.Location.SourceSpan);
Completion\CompletionService.ProviderManager.cs (1)
129_rolesToProviders.Add(roles, providers);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
565documentToEditorMap.Add(document, editor);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
754map.Add(edit.OldNode, edit.Kind); 759map.Add(edit.NewNode, edit.Kind); 770map.Add(editScript.Match.OldRoot, EditKind.Update); 771map.Add(editScript.Match.NewRoot, EditKind.Update); 3454constructorEdits.Add(newType, constructorEdit = new MemberInitializationUpdates(oldType));
EditAndContinue\DebuggingSession.cs (1)
314_initialBaselineModuleReaders.Add(moduleId, (metadataReaderProvider, debugInfoReaderProvider));
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
193s_lazyModuleDiagnosticDescriptors.Add(status, descriptor = new DiagnosticDescriptor(
EditAndContinue\SolutionSnapshotRegistry.cs (1)
45_pendingSolutionSnapshots.Add(id, solution);
EditAndContinue\Utilities\BidirectionalMap.cs (8)
33forward.Add(entry.Key, entry.Value); 34reverse.Add(entry.Value, entry.Key); 37forward.Add(source, target); 38reverse.Add(target, source); 55forward.Add(entry.Key, entry.Value); 56reverse.Add(entry.Value, entry.Key); 61forward.Add(entry.Key, entry.Value); 62reverse.Add(entry.Value, entry.Key);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
75_documentWorkCoordinatorMap.Add((workspaceKind, solutionServices), coordinator);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (2)
116_documentWorkQueue.Add(key.ProjectId, documentMap); 126documentMap.Add(key, item);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncProjectWorkItemQueue.cs (1)
81_projectWorkQueue.Add(key, item);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
235_cancellationMap.Add(key, source);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (2)
259_pendingWork.Add(documentId, new UnitTestingData(project, documentId, document, changedMember, Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.Services))); 375_pendingWork.Add(projectId, data);
ExtractMethod\ExtractMethodMatrix.cs (72)
107s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.InputOnly); 108s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.InputOnly); 109s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.InputOnly); 110s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.InputOnly); 111s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.MoveIn); 112s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.InputOnly); 113s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.SplitIn); 114s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.InputOnly); 115s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: false, readOutside: false, writtenOutside: true), VariableStyle.MoveOut); 116s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: false, readOutside: true, writtenOutside: true), VariableStyle.MoveOut); 117s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.None); 118s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.SplitOut); 119s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.SplitOut); 120s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: false, readOutside: false, writtenOutside: false), VariableStyle.None); 121s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: false, readOutside: false, writtenOutside: true), VariableStyle.SplitOut); 122s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: false, readOutside: true, writtenOutside: true), VariableStyle.SplitOut); 123s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.None); 124s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.SplitOut); 125s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.SplitOut); 126s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: false, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.MoveIn); 127s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: false, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.SplitIn); 128s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.SplitIn); 129s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.SplitIn); 130s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: false, readOutside: false, writtenOutside: true), VariableStyle.InputOnly); 131s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: false, readOutside: true, writtenOutside: true), VariableStyle.Ref); 132s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.MoveIn); 133s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.SplitIn); 134s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.SplitIn); 135s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.SplitIn); 136s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: true, readInside: false, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.None); 137s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: true, readInside: false, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.SplitOut); 138s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: true, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.SplitOut); 139s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: true, readInside: true, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.None); 140s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: true, readInside: true, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.SplitOut); 141s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: false, alwaysAssigned: true, variableDeclared: true, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.SplitOut); 142s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.Ref); 143s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Ref); 144s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.Ref); 145s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Ref); 146s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: false, readOutside: true, writtenOutside: false), VariableStyle.NotUsed); 147s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: false, readOutside: true, writtenOutside: true), VariableStyle.NotUsed); 148s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.OutWithMoveOut); 149s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.OutWithMoveOut); 150s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: false, readOutside: true, writtenOutside: false), VariableStyle.OutWithMoveOut); 151s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: false, readOutside: true, writtenOutside: true), VariableStyle.OutWithMoveOut); 152s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.OutWithMoveOut); 153s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: false, variableDeclared: true, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.OutWithMoveOut); 154s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.Out); 155s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Out); 156s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.Out); 157s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Out); 158s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: true, readInside: false, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.OutWithMoveOut); 159s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: true, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.OutWithMoveOut); 160s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: true, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.OutWithMoveOut); 161s_matrix.Add(new Key(dataFlowIn: false, dataFlowOut: true, alwaysAssigned: true, variableDeclared: true, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.OutWithMoveOut); 162s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: false, readOutside: false, writtenOutside: false), VariableStyle.InputOnly); 163s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: false, readOutside: false, writtenOutside: true), VariableStyle.InputOnly); 164s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: false, readOutside: true, writtenOutside: false), VariableStyle.InputOnly); 165s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: false, readOutside: true, writtenOutside: true), VariableStyle.InputOnly); 166s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.InputOnly); 167s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.InputOnly); 168s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.InputOnly); 169s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.InputOnly); 170s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: false), VariableStyle.InputOnly); 171s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: false, writtenOutside: true), VariableStyle.InputOnly); 172s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.InputOnly); 173s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: false, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.InputOnly); 174s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: false, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Ref); 175s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.OutWithErrorInput); 176s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: true, alwaysAssigned: false, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Ref); 177s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: true, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: false), VariableStyle.OutWithErrorInput); 178s_matrix.Add(new Key(dataFlowIn: true, dataFlowOut: true, alwaysAssigned: true, variableDeclared: false, readInside: true, writtenInside: true, readOutside: true, writtenOutside: true), VariableStyle.Ref);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
309methodCallSites.Add(refLocation.Document, list);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
73nameToParameterDict.Add(variable, parameterSymbol);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (2)
82_namedTypes.Add(symbol, (order: _namedTypes.Count, count: 1)); 96_namedTypes.Add(symbol, (order: _namedTypes.Count, count: 1));
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
176_documentationMap.Add( 180_documentationMap.Add( 764_groupMap.Add(group, existingParts);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (2)
95_typeForwardCache.Add(dllPath, cachedTypeForwards); 216result.Add((foundNamespace, foundTypeName), assemblyName);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
26result.Add(glyph, new QuickInfoGlyphElement(glyph));
Snippets\RoslynLSPSnippetConverter.cs (1)
96dictionary.Add(position - textChangeStart, (placeholder.Text, i + 1));
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
43s_cachedProperties.Add((includeInFixAll, equivalenceKey), properties);
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
176enumValues.Add(enumValue, fieldSymbol);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
75Substitutions.Add(symbol, namedType); 82Substitutions.Add(symbol, commonDerivedType);
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
502result.Add(pair.Key, pair.Value);
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
241_debuggerService.LoadedModules!.Add(moduleId, availability);
EditAndContinue\SourceMarkers.cs (2)
65tagMap.Add(id, (match.Index, match.Index)); 69tagMap.Add(id, (match.Index + match.Length, -1));
Options\NamingStyleTestUtilities.cs (1)
60guidMap.Add(guid, existingOrdinal);
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 542accumulator.Add(key, bucket); 553dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
Microsoft.CodeAnalysis.LanguageServer (2)
Services\ExtensionAssemblyManager.cs (2)
119assemblyFullNameToLoadContext.Add(assemblyFullName, directoryContext); 134directoryLoadContexts.Add(directory, loadContext);
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
Features\CodeFixes\CodeFixService.cs (2)
672diagnosticAndEquivalenceKeyToFixersMap.Add((diagnostic, equivalenceKey), fixer); 678diagnosticAndEquivalenceKeyToFixersMap.Add((diagnostic, equivalenceKey), fixer);
Features\DecompiledSource\AssemblyResolver.cs (1)
177_inMemoryImagesForTesting.Add(reference, (fileName, image));
Handler\Completion\CompletionResultFactory.cs (1)
238currentRuleCache.Add(item.Rules.CommitCharacterRules, cachedCommitCharacters);
Handler\References\FindUsagesLSPContext.cs (1)
112_definitionToId.Add(definition, _id);
Handler\SemanticTokens\SemanticTokensSchema.cs (2)
110tokenTypeToIndex.Add(lspTokenType, tokenTypeToIndex.Count); 113tokenTypeToIndex.Add(roslynTokenType, tokenTypeToIndex.Count);
LspServices\LspServices.cs (2)
68serviceMap.Add(metadata.TypeRef.TypeName, serviceGetter); 77serviceMap.Add(metadata.TypeRef.TypeName, serviceGetter);
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (3)
125itemRawJsonCache.Add(basicCommitCharacters, jsonString); 137itemRawJsonCache.Add(augmentedCommitCharacters, jsonString); 221itemRawJsonCache.Add(completionItem.CommitCharacters, jsonString);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (2)
65builder.Add( 87builder.Add(
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
108languages.Add(metadata.Language, new(() => 123genericMethodMap.Add(methodGroup.Key, languages.ToFrozenDictionary());
Microsoft.CodeAnalysis.PooledObjects.Package (3)
ArrayBuilder.cs (3)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 542accumulator.Add(key, bucket); 553dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
RebuildCommandLineTests.cs (3)
38FilePathToStreamMap.Add(Path.Combine(BuildPaths.WorkingDirectory, filePath), new TestableFile(content)); 43FilePathToStreamMap.Add(Path.Combine(BuildPaths.SdkDirectory!, filePath), new TestableFile(imageBytes)); 51FilePathToStreamMap.Add(filePath, new TestableFile());
Microsoft.CodeAnalysis.Remote.ServiceHub (7)
Host\RemoteSolutionCache.cs (3)
155m.Add(nameof(_cacheHits), _cacheHits); 156m.Add(nameof(_cacheMissesInHistory), _cacheMissesInHistory); 157m.Add(nameof(_cacheMissesNotInHistory), _cacheMissesNotInHistory);
Host\RemoteWorkspace_SolutionCaching.cs (1)
97_solutionChecksumToSolution.Add(solutionChecksum, solution);
Services\DiagnosticAnalyzer\PerformanceQueue.cs (2)
216_idMap.Add(analyzerName, id); 233reverseMap.Add(kv.Value, kv.Key);
Services\FindUsages\RemoteFindUsagesService.cs (1)
125_definitionItemToId.Add(item, id);
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (4)
TelemetryLoggerTests.cs (4)
93p.Add("test1", 1); 95p.Add("test3", new object[] { 3, new PiiValue(4) }); 115logger.LogBlockStart(FunctionId.Debugging_EncSession_EditSession_EmitDeltaErrorId, KeyValueLogMessage.Create(p => p.Add("test", "start"), logLevel: LogLevel.Information), blockId: 1, CancellationToken.None); 120logger.LogBlockEnd(FunctionId.Debugging_EncSession_EditSession_EmitDeltaErrorId, KeyValueLogMessage.Create(p => p.Add("test", "end")), blockId: 1, delta: 100, CancellationToken.None);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
271_noShadowCopyCache.Add(key, new CacheEntry<Metadata>(publicMetadata, newMetadata)); 337_shadowCopies.Add(key, newCopy);
Microsoft.CodeAnalysis.Test.Utilities (14)
Assert\AssertEx.cs (1)
390indexes.Add(expectedItem, counter++);
CommonTestBase.cs (2)
608map.Add(topOperation, null); 621map.Add(child, operation);
Compilation\CompilationExtensions.cs (1)
333explicitNodeMap.Add(operation.Syntax, operation);
Compilation\ControlFlowGraphVerifier.cs (1)
1825_anonymousFunctionsMap.Add(operation, g);
Compilation\OperationTreeVerifier.cs (1)
313_explicitNodeMap.Add(operation.Syntax, operation);
Compilation\TestOperationVisitor.cs (1)
200explicitNodeMap.Add(descendant.Syntax, descendant);
CompilationVerifier.cs (2)
159result.Add(method.FullName, method); 353readersByName.Add(name, new PEReader(module.Image));
Diagnostics\OptionsDiagnosticAnalyzer.cs (1)
44_mismatchedOptions.Add(callerName, options);
InstrumentationChecker.cs (1)
311_spanExpectations.Add(method, result);
TestableCompiler.cs (3)
79FileSystem.Map.Add(filePath, file); 87FileSystem.Map.Add(filePath, file); 95FileSystem.Map.Add(filePath, file);
Microsoft.CodeAnalysis.UnitTests (5)
CachingLookupTests.cs (4)
159dict.Add(k, Values(k, numbers, false)); 191dict.Add(k, Values(k, numbers, false)); 223dict.Add(k, Values(k, numbers, false)); 253dict.Add(k, Values(k, numbers, false));
Diagnostics\DiagnosticLocalizationTests.cs (1)
171_resourceSetMap.Add(kvp.Key, resourceSet);
Microsoft.CodeAnalysis.VisualBasic (11)
Binding\Binder_XmlLiterals.vb (2)
1125namespaces.Add(prefix, namespaceName) 1154allAttributes.Add(name, attribute)
Lowering\Diagnostics\DiagnosticsPass.vb (1)
175_withExpressionPlaceholderMap.Add(info.ExpressionPlaceholder, node)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (5)
155variableScope.Add(parameter, _currentBlock) 251blockParent.Add(_currentBlock, previousBlock) 308blockParent.Add(_currentBlock, oldBlock) 315variableScope.Add(parameter, _currentBlock) 534gotoBlock.Add(node, _currentBlock)
Symbols\Metadata\PE\PENamespaceSymbol.vb (1)
206members.Add(ns.Name, ImmutableArray.Create(Of Symbol)(ns))
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
211_retargetingAssemblyMap.Add(underlyingBoundReferences(j),
Symbols\Source\SourceModuleSymbol.vb (1)
479Aliases.Add(name, pair)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_MarshalAs.vb (2)
393expectedBlobs.Add(fldName, New Byte() {&H2A, CByte(i)}) 520expectedBlobs.Add(fldName, New Byte() {&H1E, &H1, CByte(i)})
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Syntax\SyntaxAnnotationTests.vb (3)
408nodeOrTokenMap.Add(oldNode, newNode) 412nodeOrTokenMap.Add(oldToken, newToken) 424triviaMap.Add(oldTrivia, newTrivia)
Microsoft.CodeAnalysis.Workspaces (63)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
218docIdToTextMerger.Add(docId, textMerger);
Differencing\Match.cs (2)
290_oneToTwo.Add(node1, node2); 291_twoToOne.Add(node2, node1);
Differencing\Match.LongestCommonSubsequence.cs (1)
33result.Add(oldNodes[pair.Key], newNodes[pair.Value]);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
471order.Add(projectId, index);
FindSymbols\ReferenceLocationExtensions.cs (1)
61result.Add(containingSymbol, locations);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
91interceptsLocationInfo.Add(
Log\HistogramLogAggregator.cs (3)
116properties.Add(prefix + nameof(BucketSize), BucketSize); 117properties.Add(prefix + nameof(MaxBucketValue), MaxBucketValue); 118properties.Add(prefix + "Buckets", GetBucketsAsString());
ReassignedVariable\AbstractReassignedVariableService.cs (1)
97syntaxTreeToModel.Add(syntaxTree, model);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
274documentIdErrorStateLookup.Add(documentId, await originalDoc.HasAnyErrorsAsync(_cancellationToken).ConfigureAwait(false));
Shared\Utilities\DocumentationComment.cs (3)
155_comment._exceptionTexts.Add(typeAndBuilderPair.Key, typeAndBuilderPair.Value.AsImmutable()); 261_comment._parameterTexts.Add(name, TrimEachLine(paramText)); 272_comment._typeParameterTexts.Add(name, TrimEachLine(typeParamText));
Shared\Utilities\ExtensionOrderer.cs (1)
30graph.Nodes.Add(extension, new Node<TExtension, TMetadata>(extension));
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
1169accumulator.Add(key, item); 1181result.Add(entry.Key, createMembers(entry.Value)); 1226dictionary.Add(entry.Key, namedTypes);
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
145_knownAssemblyPathsBySimpleName.Add(simpleName, paths);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
795dictionary.Add(grouping.Key, items);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 542accumulator.Add(key, bucket); 553dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
893directiveMap.Add(directive, previousDirective); 894directiveMap.Add(previousDirective, directive); 906directiveMap.Add(regionStack.Pop(), null); 930conditionalMap.Add(cond, condDirectives); 936directiveMap.Add(directive, ifDirective); 937directiveMap.Add(ifDirective, directive);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
111_reachingWrites.Add(symbol, values); 234result.Add(symbol, values);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
170builder.Add(block, null); 468_lValueFlowCapturesMap.Add(captureId, captures);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
169_pendingWritesMap.Add(assignmentOperation, set); 177_pendingWritesMap.Add(deconstructionAssignment, set);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
106_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
36ruleNamesAndPriorities.Add(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
202_symbolToId.Add(symbol, id);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
114_documentPathsToDocumentIds.Add(fullPath, documentId); 115_project._documentWatchedFiles.Add(documentId, _project._documentFileChangeContext.EnqueueWatchingFile(fullPath)); 170_documentPathsToDocumentIds.Add(fullPath, documentId);
Workspace\Solution\ProjectDependencyGraph.cs (1)
224reverseReferencesMapBuilders.Add(referencedId, builder);
Workspace\Solution\Solution.cs (2)
1524_documentIdToFrozenSolution.Add(documentId, lazySolution); 1544solution._documentIdToFrozenSolution.Add(documentId, AsyncLazy.Create(solution));
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
637metadataReferenceToProjectId.Add(metadataReference, projectReference.ProjectId);
Workspace\Solution\SolutionCompilationState.SkeletonReferenceSet.cs (1)
48_referenceMap.Add(properties, value);
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
90_lazyProjectChecksums.Add(projectId, checksums);
Workspace\Solution\SolutionState_Checksum.cs (1)
85_lazyProjectChecksums.Add(projectId, checksums);
Workspace\Workspace_Editor.cs (4)
451_documentToAssociatedBufferMap.Add(documentId, textContainer); 452_openSourceGeneratedDocumentIdentities.Add(documentId, (document.Identity, document.GenerationDateTime)); 497_textTrackers.Add(documentId, tracker); 498_documentToAssociatedBufferMap.Add(documentId, textContainer);
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\BuildHostProcessManager.cs (1)
103_processes.Add(buildHostKind, buildHostProcess);
MSBuild\MSBuildProjectLoader.Worker.cs (2)
252_projectIdToFileInfoMap.Add(projectId, projectFileInfo); 269_pathToDiscoveredProjectInfosMap.Add(projectPath, results);
MSBuild\ProjectMap.cs (3)
91_projectIdToOutputFilePathMap.Add(projectId, outputFilePath); 96_projectIdToOutputRefFilePathMap.Add(projectId, outputRefFilePath); 135_projectPathToProjectIdsMap.Add(projectPath, projectIds);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
MSBuild\ProjectFile\ProjectFile.cs (3)
409metadata.Add(MetadataNames.Aliases, string.Join(",", aliases)); 412metadata.Add(MetadataNames.HintPath, hintPath); 488metadata.Add(MetadataNames.Aliases, string.Join(",", reference.Aliases));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
1169accumulator.Add(key, item); 1181result.Add(entry.Key, createMembers(entry.Value)); 1226dictionary.Add(entry.Key, namedTypes);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
111_cache.Add(key, new CacheValue { Node = node, Value = value });
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
795dictionary.Add(grouping.Key, items);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
523dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 542accumulator.Add(key, bucket); 553dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
177properties.Add(k, v);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
MEF\TestComposition.cs (1)
119s_factoryCache.Add(key, newFactory);
Remote\InProcRemostHostClient.cs (2)
222_inProcBrokeredServicesMap.Add(serviceDescriptor.Moniker, serviceFactory); 228_remoteBrokeredServicesMap.Add(moniker, serviceFactory);
Workspaces\TestWorkspace`1.cs (3)
654projectNameToTestHostProject.Add(project.Name, project); 655projectElementToProjectName.Add(projectElement, project.Name); 674projectNameToTestHostProject.Add(submission.Name, submission);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
FunctionIdTests.cs (1)
28map.Add(value, name);
Remote\ServiceDescriptorTests.cs (1)
82types.Add(type, declaringMember);
SolutionTests\ProjectDependencyGraphTests.cs (1)
698references.Add(projectName, referencedProjectNames);
Microsoft.CommonLanguageServerProtocol.Framework.Package (4)
HandlerProvider.cs (2)
65builder.Add( 87builder.Add(
RequestExecutionQueue.cs (2)
108languages.Add(metadata.Language, new(() => 123genericMethodMap.Add(methodGroup.Key, languages.ToFrozenDictionary());
Microsoft.CSharp (10)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
81_DictionaryOfParameters.Add(call, parameter);
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (1)
112dict.Add(NameManager.GetPredefinedName(predefName), TokenFacts.GetText(token));
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
59s_dictionary.Add(new Key(child.name, child.parent), child);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
189typesByName.Add(s_types[i].Name, (PredefinedType)i);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
134s_tableTypeArrays.Add(key, result);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
78s_aggregateTable.Add(MakeKey(aggregate, MakeKey(outer, args)), ats); 93s_arrayTable.Add(new KeyPair<CType, int>(elementType, rankNum), pArray); 107s_parameterModifierTable.Add(new KeyPair<CType, bool>(elementType, isOut), parameterModifier); 119s_pointerTable.Add(elementType, pointer); 131s_nullableTable.Add(underlyingType, nullable);
Microsoft.Data.Analysis (8)
DataFrame.IO.cs (1)
406names.Add(fields[i], 1);
DataFrame.Join.cs (2)
219newRetainedIndicesReverseMapping.Add(i, originalIndex); 268shrinkedOccurences.Add(newOccurrenceKey, crossing);
DataFrameColumn.cs (1)
288ret.Add(i, otherRowIndices);
DataFrameColumnCollection.cs (1)
59_columnNameToIndexDictionary.Add(newName, currentIndex);
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
507multimap.Add(str, new List<long>() { i });
DataFrameColumns\StringDataFrameColumn.cs (1)
426multimap.Add(str, new List<long>() { i });
PrimitiveDataFrameColumn.cs (1)
637multimap.Add(readOnlySpan[i], new List<long>() { currentLength });
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
75runtimeItems.Add(runtimeName, items);
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
349parameters.Add(name.Trim(), value.Trim());
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
PublishToSymbolServerTest.cs (1)
221task.FeedConfigs.Add(TargetFeedContentType.Symbols, feedConfigsForSymbols);
Microsoft.DotNet.Build.Tasks.Packaging (18)
ApplyMetaPackages.cs (2)
68suppressMetaPackages.Add(metapackage.ItemSpec, value); 88suppressMetaPackages.Add(metaPackageThisPackageIsIn, new HashSet<string> { "All" } );
GeneratePackageReport.cs (6)
116report.Targets.Add(fx.ToString(), reportTarget); 171report.SupportedFrameworks.Add(fx.ToString(), version); 222_frameworks.Add(fx, runtimeIds); 231_frameworks.Add(fileFramework, s_noRids); 243_frameworks.Add(inboxFramework, s_noRids); 274_frameworks.Add(derivedFx, s_noRids);
HarvestPackage.cs (3)
143_packageFolders.Add(PackageId, LocatePackageFolder(PackageId, PackageVersion)); 149_packageFolders.Add(runtimePackage.ItemSpec, LocatePackageFolder(runtimePackage.ItemSpec, runtimePackage.GetMetadata("Version"))); 285livePackageFiles.Add(livePackageItem.TargetPath, livePackageItem);
NuGetAssetResolver.cs (4)
197resolvedAssets.Add(package, 247resolvedAssets.Add(package, 265resolvedAssets.Add(package, 282resolvedAssets.Add(package, contentItemGroups);
PackageIndex.cs (2)
761packageToMetaPackage.Add(packageId, metaPackageId); 781packageToMetaPackage.Add(metaPackage.Key, metaPackage.Value);
SplitReferences.cs (1)
95packageReferences.Add(emptyItem.ItemSpec, emptyItem);
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
46s_targetFrameworkResolverCache.Add(runtimeGraph, targetFrameworkResolver);
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\WorkloadPackGroupMsi.wix.cs (1)
177Subdirectories.Add(name, subdir);
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
165typeTable.Add(type, assemblyListForTypes);
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
112props.Add(p.key, p.value);
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
110_downloadedProfiles.Add(platform, profilePath);
Microsoft.DotNet.Helix.Sdk.Tests (5)
CreateXHarnessAndroidWorkItemsTests.cs (2)
33_fileSystem.Files.Add(zipPath, "zip of " + folder); 107_fileSystem.Files.Add("apks/xharness-payload-system.foo.zip", "archive");
CreateXHarnessAppleWorkItemsTests.cs (3)
35_fileSystem.Files.Add(zipPath, "zip of " + folder); 117_fileSystem.Files.Add("apps/xharness-payload-system.foo.zip", "archive"); 221_fileSystem.Files.Add("/apps/System.Foo.zip", "zipped payload");
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
260packages.Add(packageId, packageInfo);
Microsoft.DotNet.PackageTesting (2)
GetCompatiblePackageTargetFrameworks.cs (1)
103packageTfmMapping.Add(forwardTfm, new HashSet<NuGetFramework> { reverseTfm });
VerifyTypes.cs (1)
68types.Add(type, assembly);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
68types.Add(type, assembly);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\SignatureVerificationManager.cs (1)
163_fileVerifiers.Add(fileVerifier.FileExtension, fileVerifier);
Microsoft.DotNet.SignTool (8)
src\BatchSignUtil.cs (1)
181engines.Add(fileUniqueKey, file);
src\Configuration.cs (3)
238_filesByContentKey.Add(fileSignInfo.FileContentKey, fileSignInfo); 322_hashToCollisionIdMap.Add(signedFileContentKey, collisionPriorityId); 744nestedParts.Add(relativePath, new ZipPart(relativePath, fileSignInfo));
src\SignToolTask.cs (3)
410map.Add(extension, new List<SignInfo> { signInfo }); 466map.Add(publicKeyToken, new List<SignInfo> { signInfo }); 519map.Add(key, certificateName);
src\Telemetry.cs (1)
36_metrics.Add(name, value);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\Language.cs (1)
33templates.Add(relative, new Template(LoadTemplateFile(hb, file)));
Microsoft.DotNet.VersionTools (7)
BuildManifest\Model\SigningInformationParsingExtensions.cs (4)
50extensionToCertMapping.Add(signInfo.Include, hashSet); 108keyToCertMapping.Add(key, hashSet); 166extensionToCertMapping.Add(signInfo.Include, hashSet); 213pktMapping.Add(signInfo.PublicKeyToken, hashSet);
BuildManifest\VersionIdentifier.cs (3)
169majorMinorPatchDictionary.Add(majorMinorPatchIndex, majorMinorPatch); 175majorMinorPatchDictionary.Add(majorMinorPatchIndex, $"{majorMinorPatch}{versionSuffix.ToString()}"); 199majorMinorPatchDictionary.Add(majorMinorPatchIndex, $"{majorMinorPatch}{versionSuffix.ToString()}");
Microsoft.DotNet.XliffTasks (2)
Model\XlfDocument.cs (2)
86nodesById.Add(node.Id, node); 269dictionary.Add(id, target);
Microsoft.DotNet.XUnitExtensions (1)
Discoverers\ConditionalTheoryDiscoverer.cs (1)
44_conditionCache.Add(methodInfo, skipReason);
Microsoft.Extensions.Compliance.Redaction (1)
RedactorProvider.cs (1)
42map.Add(DataClassification.None, typeof(NullRedactor));
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
293_properties.Add(key, value);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
158switchMappingsCopy.Add(mapping.Key, mapping.Value);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
99data.Add(NormalizeKey(file.Name), TrimNewLine(streamReader.ReadToEnd()));
Microsoft.Extensions.Configuration.Xml (4)
XmlStreamConfigurationProvider.cs (4)
99children.Add(element.SiblingName, new List<XmlConfigurationElement> 107children.Add(parent.SingleChild.SiblingName, new List<XmlConfigurationElement> { parent.SingleChild }); 108children.Add(element.SiblingName, new List<XmlConfigurationElement> { element }); 408configuration.Add(key, value);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
141resolvedServices.Add(callSite.Cache.Key, resolved);
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
649libraries.Add(Pool(libraryName), ReadOneLibrary(ref reader));
Microsoft.Extensions.Diagnostics (2)
Metrics\DefaultMeterFactory.cs (1)
53_cachedMeters.Add(options.Name, meterList);
Metrics\ListenerSubscription.cs (1)
123_instruments.Add(instrument, state);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummarizer.cs (1)
24exceptionTypesToProvidersBuilder.Add(exceptionType, exceptionSummaryProvider);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
160healthStatusRecords.Add(GetKey(index), entry);
Microsoft.Extensions.Http.Diagnostics (2)
Http\DownstreamDependencyMetadataManager.cs (2)
97dependencyTrieMap.Add(routeMetadata.DependencyName, routeMetadataTrieRoot); 177finalArrayDict.Add(dep.Key, finalArray);
Microsoft.Extensions.Options.SourceGeneration (4)
Emitter.cs (2)
807staticValidationAttributesDict.Add(instantiationStatement, staticValidationAttributeInstance); 913staticValidatorsDict.Add(validatorTypeFQN, staticValidatorInstance);
Parser.cs (2)
525validationAttr.Properties.Add(namedArgument.Key, GetArrayArgumentExpression(namedArgument.Value.Values, isParams)); 529validationAttr.Properties.Add(namedArgument.Key, GetArgumentExpression(namedArgument.Value.Type!, namedArgument.Value.Value));
Microsoft.Extensions.Telemetry (1)
Latency\Internal\Registry.cs (1)
41keyOrderBuilder.Add(OrderedKeys[i], i);
Microsoft.Extensions.Telemetry.Tests (12)
Enrichment\Internals\TestLogEnrichmentTagCollector.cs (2)
18_tags.Add(kvp.Key, kvp.Value); 27_tags.Add(tagName, tagValue);
Enrichment\Internals\TestMetricEnrichmentTagCollector.cs (2)
18_tags.Add(kvp.Key, kvp.Value.ToString() ?? string.Empty); 27_tags.Add(tagName, tagValue.ToString() ?? string.Empty);
Http\HttpParserTests.cs (5)
198parametersToRedact.Add("routeId", FakeTaxonomy.PrivateData); 251parametersToRedact.Add("routeId", DataClassification.None); 262parametersToRedact.Add("chatId", DataClassification.None); 325parametersToRedact.Add("controller", FakeTaxonomy.PrivateData); 326parametersToRedact.Add("action", FakeTaxonomy.PrivateData);
Http\HttpRouteFormatterTests.cs (3)
182parametersToRedact.Add("chatId", FakeTaxonomy.PrivateData); 401parametersToRedact.Add("controller", FakeTaxonomy.PrivateData); 402parametersToRedact.Add("action", FakeTaxonomy.PrivateData);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
128options.Add("build_property.ComplianceReportOutputPath", string.Empty);
Microsoft.Gen.Logging (1)
Emission\Emitter.cs (1)
116_classificationMap.Add(classificationAttr, fieldName);
Microsoft.Gen.Metrics (5)
Emitter.cs (1)
29metricClassesDict.Add(cl.Namespace, list);
MetricFactoryEmitter.cs (1)
25metricClassesDict.Add(cl.Namespace, list);
Parser.cs (3)
387tagDescriptionDictionary.Add(fieldSymbol.ConstantValue.ToString(), xmlDefinition); 749tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 781tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.MetricsReports (3)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (3)
387tagDescriptionDictionary.Add(fieldSymbol.ConstantValue.ToString(), xmlDefinition); 749tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 781tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
109options.Add("build_property.MetricsReportOutputPath", string.Empty);
Microsoft.Interop.ComInterfaceGenerator (14)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (13)
59methodsOfInterest.Add(marshalType.GetMembers("SetComObjectData")[0], firstArgumentTypeLookupOnly); 60methodsOfInterest.Add(marshalType.GetMembers("GetComObjectData")[0], firstArgumentTypeLookupOnly); 61methodsOfInterest.Add(marshalType.GetMembers("ReleaseComObject")[0], firstArgumentTypeLookupOnly); 62methodsOfInterest.Add(marshalType.GetMembers("FinalReleaseComObject")[0], firstArgumentTypeLookupOnly); 68methodsOfInterest.Add(createAggregatedObject, ImmutableArray.Create(CreateTypeArgumentTypeLookup(0), CreateArgumentTypeLookup(1))); 72methodsOfInterest.Add(createAggregatedObject, ImmutableArray.Create(CreateArgumentTypeLookup(1))); 80methodsOfInterest.Add(createWrapperOfType, ImmutableArray.Create(CreateTypeArgumentTypeLookup(0), CreateTypeArgumentTypeLookup(1), firstArgumentTypeLookup)); 84methodsOfInterest.Add(createWrapperOfType, ImmutableArray.Create(firstArgumentTypeLookup, CreateTypeOfArgumentTypeLookup(1))); 88methodsOfInterest.Add(marshalType.GetMembers("GetTypedObjectForIUnknown")[0], ImmutableArray.Create(CreateTypeOfArgumentTypeLookup(1))); 89methodsOfInterest.Add(marshalType.GetMembers("GetIUnknownForObject")[0], firstArgumentTypeLookupOnly); 90methodsOfInterest.Add(marshalType.GetMembers("GetIDispatchForObject")[0], firstArgumentTypeLookupOnly); 96methodsOfInterest.Add(getComInterfaceForObject, ImmutableArray.Create(CreateTypeArgumentTypeLookup(0), CreateTypeArgumentTypeLookup(1), firstArgumentTypeLookup)); 100methodsOfInterest.Add(getComInterfaceForObject, ImmutableArray.Create(CreateArgumentTypeLookup(0), CreateTypeOfArgumentTypeLookup(1)));
ComInterfaceContext.cs (1)
36nameToInterfaceInfoMap.Add(iface.ThisInterfaceKey, iface);
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (1)
227modes.Add(marshalMode, data.Value);
Marshalling\MarshallerHelpers.cs (1)
131elementIndexToEdgeMapNodeId.Add(keyFn(element), nextEdgeMapIndex++);
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
421result.Add(identifier, (method, parameterTypes)); 457result.Add(identifier, (method, parameterTypes));
Microsoft.Maui (4)
Extensions\EnumerableExtensions.cs (1)
45 result.Add(group, new List<TSource> { item });
Platform\iOS\MauiSwipeView.cs (1)
311 _swipeItems.Add(item, swipeItem);
VisualDiagnostics\VisualDiagnosticsOverlay.iOS.cs (1)
22 _scrollViews.Add(scrollBar, dispose);
WeakEventManager.cs (1)
110 _eventHandlers.Add(eventName, targets);
Microsoft.Maui.Controls (19)
Application\Application.cs (1)
504 _requestedWindows.Add(id, new WeakReference<Window>(window));
BindableObject.cs (1)
748 _properties.Add(property, context);
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
276 createdPages.Add(item, page);
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (1)
77 _cells.Add(element, result);
DragAndDrop\DataPackagePropertySet.cs (1)
36 _propertyBag.Add(key, value);
Hosting\Effects\AppHostBuilderExtensions.cs (2)
78 RegisteredEffects.Add(typeof(TEffect), () => 92 RegisteredEffects.Add(TEffect, () =>
Layout\FlexLayout.cs (1)
491 _viewInfo.Add(child, new FlexInfo());
ListProxy.cs (1)
359 _items.Add(_enumeratorIndex, _enumerator.Current);
OrderedDictionary.cs (2)
167 _dict.Add(key, value); 357 _dict.Add(key, value);
PlatformConfigurationRegistry.cs (1)
29 _platformSpecifics.Add(typeof(T), emptyConfig);
ResourceDictionary.cs (1)
198 _innerDictionary.Add(key, value);
ResourcesExtensions.cs (2)
24 resources.Add(res.Key, value); 39 resources.Add(res.Key, res.Value);
Shell\ShellNavigationQueryParameters.cs (2)
62 _internal.Add(key, value); 68 _internal.Add(item.Key, item.Value);
Shell\ShellRouteParameters.cs (2)
52 this.Add(key, q.Value); 66 this.Add(item.Key, item.Value);
Microsoft.Maui.Controls.Compatibility (2)
iOS\Renderers\SwipeViewRenderer.cs (2)
475 _swipeItems.Add(formsSwipeItem, swipeItem); 483 _swipeItems.Add(formsSwipeItemView, swipeItem);
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Xaml\XamlNode.cs (1)
217 clone.Properties.Add(kvp.Key, kvp.Value.Clone());
Microsoft.Maui.Controls.Xaml (7)
CreateValuesVisitor.cs (1)
158 node.Properties.Add(XmlName.xKey, xKey);
XamlNode.cs (1)
217 clone.Properties.Add(kvp.Key, kvp.Value.Clone());
XamlParser.cs (3)
89 node.Properties.Add(name, prop); 99 node.Properties.Add(XmlName.xArguments, prop); 110 node.Properties.Add(XmlName._CreateContent, prop);
XamlServiceProvider.cs (2)
77 public void Add(Type type, object service) => services.Add(type, service); 294 public void Add(string prefix, string ns) => namespaces.Add(prefix, ns);
Microsoft.Maui.Resizetizer (11)
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"]);
DetectInvalidResourceOutputFilenamesTask.cs (1)
35 tempInvalidItems.Add(item, output);
ResizetizeImages.cs (2)
115 attr.Add("_ResizetizerDpiPath", img.Dpi.Path); 116 attr.Add("_ResizetizerDpiScale", img.Dpi.Scale.ToString("0.0", CultureInfo.InvariantCulture));
TizenSplashUpdater.cs (1)
54 splashDpiMap.Add((resolution, orientation), $"{splashDirectoryName}/{newImage}");
Microsoft.ML.AutoML (4)
Sweepers\ISweeper.cs (1)
88_parameterValues.Add(parameter.Name, parameter);
TrainerExtensions\RankingTrainerExtensions.cs (1)
55property.Add(nameof(FastTreeRankingTrainer.Options.RowGroupColumnName), columnInfo.GroupIdColumnName);
TrainerExtensions\RecommendationTrainerExtensions.cs (2)
28property.Add(nameof(MatrixFactorizationTrainer.Options.MatrixColumnIndexColumnName), columnInfo.UserIdColumnName); 29property.Add(nameof(MatrixFactorizationTrainer.Options.MatrixRowIndexColumnName), columnInfo.ItemIdColumnName);
Microsoft.ML.CodeGenerator (2)
CodeGenerator\CSharp\TrainerGeneratorBase.cs (2)
114_arguments.Add(_hasAdvancedSettings ? kv.Key : NamedParameters[kv.Key], value); 118_arguments.Add(kv.Key, value);
Microsoft.ML.Core (10)
CommandLine\CmdParser.cs (2)
513map.Add(name.ToLowerInvariant(), arg); 517map.Add(nick.ToLowerInvariant(), arg);
ComponentModel\ComponentCatalog.cs (2)
546_classesByKey.Add(key, info); 1097_extensionsMap.Add(key, type);
Data\RoleMappedSchema.cs (2)
209map.Add(role.Value, list); 318copy.Add(kvp.Key, cols);
Data\ServerChannel.cs (1)
87_toPublish.Add(name, func);
Utilities\LruCache.cs (1)
66_cache.Add(key, node);
Utilities\Tree.cs (1)
151_children.Add(key, newChild);
Utilities\Utils.cs (1)
162map.Add(key, value);
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
3354inputBindingMap.Add("Data", new List<ParameterBinding>() { parameterBinding }); 3406inputBindingMap.Add("TrainingData", new List<ParameterBinding>() { parameterBinding });
Microsoft.ML.Data (46)
Commands\DataCommand.cs (3)
178averageMetric.Add(nameOfMetric, metricValue); 189averageMetric.Add(nameOfMetric, Double.NaN); 199newAverageMetric.Add(pair.Key, pair.Value / metricValues.Length);
Data\Conversion.cs (2)
340_getNADelegates.Add(typeof(T), fn); 360_tryParseDelegates.Add(typeof(T), fn);
Data\DataViewTypeManager.cs (2)
211_rawTypeToDataViewTypeMap.Add(rawType, dataViewType); 212_dataViewTypeToRawTypeMap.Add(dataViewType, rawType);
DataLoadSave\Binary\CodecFactory.cs (3)
90_loadNameToCodecCreator.Add(codec.LoadName, codec.GetCodec); 91_simpleCodecTypeMap.Add(codec.Type.RawType, codec); 97_loadNameToCodecCreator.Add(name, fn);
DataLoadSave\Text\TextLoaderParser.cs (1)
720map.Add(info.Kind, fn);
DataView\ArrayDataViewBuilder.cs (4)
90_getKeyValues.Add(name, getKeyValues); 104_getSlotNames.Add(name, getNames); 129_getSlotNames.Add(name, getNames); 164_getSlotNames.Add(name, getNames);
Deprecated\Instances\HeaderSchema.cs (1)
226dict.Add(indices[ii], name);
EntryPoints\EntryPointNode.cs (9)
359_vars.Add(kvp.Key, kvp.Value); 372_vars.Add(newName, v); 608inputBindingMap.Add(kvp.Key, new List<ParameterBinding>() { paramBinding }); 609inputParamBindingMap.Add(paramBinding, new SimpleVariableBinding(kvp.Value)); 743mapping.Add(kvp.Value.VariableName, newName); 754mapping.Add(kvp.Value, newName); 756toModify.Add(kvp.Key, newName); 964InputBindingMap.Add(uniqueName, new List<ParameterBinding> { paramBinding }); 969InputMap.Add(paramBinding, varBinding);
Evaluators\AnomalyDetectionEvaluator.cs (2)
205result.Add(MetricKinds.OverallMetrics, overallDvBldr.GetDataView()); 206result.Add(TopKResults, topKdvBldr.GetDataView());
Evaluators\BinaryClassifierEvaluator.cs (3)
370result.Add(MetricKinds.OverallMetrics, overallDvBldr.GetDataView()); 371result.Add(MetricKinds.ConfusionMatrix, confDvBldr.GetDataView()); 391result.Add(PrCurve, dvBldr.GetDataView());
Evaluators\EvaluatorBase.cs (2)
312dict.Add(MetricKinds.Warnings, dvBldr.GetDataView()); 434_dict.Add(_value, agg);
Evaluators\EvaluatorUtils.cs (2)
847firstDvSlotNames.Add(name, slotNames); 862vectorSizes.Add(name, vectorType.Size);
Evaluators\MultiOutputRegressionEvaluator.cs (1)
161result.Add(MetricKinds.OverallMetrics, overallDvBldr.GetDataView());
Evaluators\RankingEvaluator.cs (2)
239result.Add(MetricKinds.OverallMetrics, overallDvBldr.GetDataView()); 241result.Add(GroupSummary, groupDvBldr.GetDataView());
Evaluators\RegressionEvaluatorBase.cs (1)
109result.Add(MetricKinds.OverallMetrics, overallDvBldr.GetDataView());
Model\Pfa\BoundPfaContext.cs (1)
82_nameToVarName.Add(name, "input." + fieldName);
Transforms\ColumnBindingsBase.cs (1)
339_nameToInfoIndex.Add(name, iinfo);
Transforms\ColumnSelecting.cs (1)
579columnDict.Add(columnName, columnList);
Transforms\NAFilter.cs (2)
119_srcIndexToInfoIndex.Add(index, i); 155_srcIndexToInfoIndex.Add(index, i);
Transforms\OneToOneTransformerBase.cs (1)
105ColMapNewToOld.Add(i, srcCol);
Transforms\ValueMapping.cs (2)
328keyTypeValueMapping.Add(value, index); 892_mapping.Add(key, value);
Microsoft.ML.EntryPoints (43)
CrossValidationMacro.cs (21)
183inputBindingMap.Add(nameof(splitArgs.Data), new List<ParameterBinding>() { paramBinding }); 188outputMap.Add(nameof(CVSplit.Output.TrainData), splitOutputTrainData.VarName); 189outputMap.Add(nameof(CVSplit.Output.TestData), splitOutputTestData.VarName); 242inputBindingMap.Add(nameof(args.TrainingData), new List<ParameterBinding> { trainingData }); 245inputBindingMap.Add(nameof(args.TestingData), new List<ParameterBinding> { testingData }); 250outputMap.Add(nameof(TrainTestMacro.Output.PredictorModel), predModelVar.VarName); 261inputBindingMap.Add(nameof(combineModelsArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 264inputBindingMap.Add(nameof(combineModelsArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 270outputMap.Add(nameof(ModelOperations.PredictorModelOutput.PredictorModel), combineNodeOutputPredictorModel.VarName); 277outputMap.Add(nameof(TrainTestMacro.Output.Warnings), warningVar.VarName); 280outputMap.Add(nameof(TrainTestMacro.Output.OverallMetrics), overallMetric.VarName); 283outputMap.Add(nameof(TrainTestMacro.Output.PerInstanceMetrics), instanceMetric.VarName); 286outputMap.Add(nameof(TrainTestMacro.Output.ConfusionMatrix), confusionMatrix.VarName); 322combineInputBindingMap.Add(nameof(combineArgs.Warnings), new List<ParameterBinding> { warningsArray }); 325combineInputBindingMap.Add(nameof(combineArgs.OverallMetrics), new List<ParameterBinding> { overallArray }); 328combineInputBindingMap.Add(nameof(combineArgs.PerInstanceMetrics), new List<ParameterBinding> { combinePerInstArray }); 333combineInputBindingMap.Add(nameof(combineArgs.ConfusionMatrix), new List<ParameterBinding> { combineConfArray }); 340combineOutputMap.Add(nameof(Output.Warnings), combineWarningVar.VarName); 343combineOutputMap.Add(nameof(Output.OverallMetrics), combineOverallMetric.VarName); 346combineOutputMap.Add(nameof(Output.PerInstanceMetrics), combineInstanceMetric.VarName); 351combineOutputMap.Add(nameof(TrainTestMacro.Output.ConfusionMatrix), combineConfusionMatrix.VarName);
MacroUtils.cs (4)
128inputBindingMap.Add(argName, new List<ParameterBinding>()); 137outputMap.Add(nameof(MacroUtils.ArrayIPredictorModelOutput.OutputModels), outputVarName); 151inputBindingMap.Add(argName, new List<ParameterBinding>()); 159outputMap.Add(nameof(ArrayIDataViewOutput.OutputData), outputVarName);
OneVersusAllMacro.cs (5)
63inputBindingMap.Add(nameof(labelIndicatorArgs.Data), new List<ParameterBinding>() { paramBinding }); 68outputMap.Add(nameof(CommonOutputs.TransformOutput.OutputData), remappedLabelVar.VarName); 176inputBindingMap.Add(nameof(combineArgs.ModelArray), new List<ParameterBinding>() { paramBinding }); 179inputBindingMap.Add(nameof(combineArgs.TrainingData), new List<ParameterBinding>() { paramBinding }); 183outputMap.Add(nameof(Output.PredictorModel), node.GetOutputVariableName(nameof(Output.PredictorModel)));
TrainTestMacro.cs (13)
174inputBindingMap.Add(nameof(combineArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 177inputBindingMap.Add(nameof(combineArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 183outputMap.Add(nameof(ModelOperations.PredictorModelOutput.PredictorModel), combineNodeOutputPredictorModel.VarName); 194inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 198inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 204outputMap.Add(nameof(ScoreModel.Output.ScoredData), scoreNodeOutputScoredData.VarName); 205outputMap.Add(nameof(ScoreModel.Output.ScoringTransform), scoreNodeOutputScoringTransform.VarName); 228inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 232inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 238outputMap.Add(nameof(ScoreModel.Output.ScoredData), scoreNodeOutputScoredData.VarName); 239outputMap.Add(nameof(ScoreModel.Output.ScoringTransform), scoreNodeOutputScoringTransform.VarName); 252inputBindingMap.Add(nameof(evalTrainingArgs.Data), new List<ParameterBinding>() { paramBinding }); 274inputBindingMap.Add(nameof(evalArgs.Data), new List<ParameterBinding>() { paramBinding });
Microsoft.ML.Fairlearn (4)
Metrics\FairlearnMetricCatalog.cs (4)
246diffDict.Add("RSquared", Math.Abs((double)groupMetrics["RSquared"].Max() - (double)groupMetrics["RSquared"].Min())); 247diffDict.Add("RMS", Math.Abs((double)groupMetrics["RMS"].Max() - (double)groupMetrics["RMS"].Min())); 248diffDict.Add("MSE", Math.Abs((double)groupMetrics["MSE"].Max() - (double)groupMetrics["MSE"].Min())); 249diffDict.Add("MAE", Math.Abs((double)groupMetrics["MAE"].Max() - (double)groupMetrics["MAE"].Min()));
Microsoft.ML.FastTree (9)
FastTree.cs (6)
3304keyValues.Add(NodeKeys.LeafValue, _regTree.LeafValue(nodeId)); 3317keyValues.Add(NodeKeys.SplitName, featureList); 3323keyValues.Add(NodeKeys.Threshold, string.Format("<= {0}", _regTree.RawThreshold(nodeId))); 3325keyValues.Add(NodeKeys.SplitGain, _regTree.SplitGains[nodeId]); 3327keyValues.Add(NodeKeys.GainValue, _regTree.GainPValues[nodeId]); 3329keyValues.Add(NodeKeys.PreviousLeafValue, _regTree.PreviousLeafValues[nodeId]);
TreeEnsemble\InternalRegressionTree.cs (3)
1207featureToId.Add(SplitFeatures[n], featureToId.Count + 1); 1263categoricalSplitNodeToId.Add(i, evaluatorCounter); 1287featureToId.Add(categoricalSplitFeature, featureToId.Count + 1);
Microsoft.ML.GenAI.Core (1)
Utility\Cache.cs (1)
51this.Add(layerIndex, (key.MoveToOtherDisposeScope(this._disposeScope), value.MoveToOtherDisposeScope(this._disposeScope)));
Microsoft.ML.LightGbm (27)
LightGbmArguments.cs (3)
251NameMapping.Add(nameof(TreeDropFraction), "drop_rate"); 252NameMapping.Add(nameof(MaximumNumberOfDroppedTreesPerRound), "max_drop"); 253NameMapping.Add(nameof(SkipDropFraction), "skip_drop");
LightGbmBinaryTrainer.cs (7)
172NameMapping.Add(nameof(EvaluateMetricType), "metric"); 173NameMapping.Add(nameof(EvaluateMetricType.None), "None"); 174NameMapping.Add(nameof(EvaluateMetricType.Default), ""); 175NameMapping.Add(nameof(EvaluateMetricType.Logloss), "binary_logloss"); 176NameMapping.Add(nameof(EvaluateMetricType.Error), "binary_error"); 177NameMapping.Add(nameof(EvaluateMetricType.AreaUnderCurve), "auc"); 178NameMapping.Add(nameof(WeightOfPositiveExamples), "scale_pos_weight");
LightGbmMulticlassTrainer.cs (5)
115NameMapping.Add(nameof(EvaluateMetricType), "metric"); 116NameMapping.Add(nameof(EvaluateMetricType.None), "None"); 117NameMapping.Add(nameof(EvaluateMetricType.Default), ""); 118NameMapping.Add(nameof(EvaluateMetricType.Error), "multi_error"); 119NameMapping.Add(nameof(EvaluateMetricType.LogLoss), "multi_logloss");
LightGbmRankingTrainer.cs (6)
152NameMapping.Add(nameof(CustomGains), "label_gain"); 153NameMapping.Add(nameof(EvaluateMetricType), "metric"); 154NameMapping.Add(nameof(EvaluateMetricType.None), "None"); 155NameMapping.Add(nameof(EvaluateMetricType.Default), ""); 156NameMapping.Add(nameof(EvaluateMetricType.MeanAveragedPrecision), "map"); 157NameMapping.Add(nameof(EvaluateMetricType.NormalizedDiscountedCumulativeGain), "ndcg");
LightGbmRegressionTrainer.cs (6)
142NameMapping.Add(nameof(EvaluateMetricType), "metric"); 143NameMapping.Add(nameof(EvaluateMetricType.None), "None"); 144NameMapping.Add(nameof(EvaluateMetricType.Default), ""); 145NameMapping.Add(nameof(EvaluateMetricType.MeanAbsoluteError), "mae"); 146NameMapping.Add(nameof(EvaluateMetricType.RootMeanSquaredError), "rmse"); 147NameMapping.Add(nameof(EvaluateMetricType.MeanSquaredError), "mse");
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
43packageVersions.Add(detailSplit[1], detailSplit[4]);
Microsoft.ML.ResultProcessor (4)
ResultProcessor.cs (4)
77SameHeaderValues.Add(ResultProcessor.LearnerName, LearnerName); 78SameHeaderValues.Add(ResultProcessor.TestDataset, testFile); 79SameHeaderValues.Add(ResultProcessor.TrainDataset, trainFile); 140MapDefaultSettingToLearner.Add(predictorName, temp);
Microsoft.ML.Samples (66)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (30)
43dic1.Add("Country", "UK"); 44dic1.Add("DeviceType", "Laptop"); 45dic1.Add("DataCenter", "DC1"); 49dic2.Add("Country", "UK"); 50dic2.Add("DeviceType", "Mobile"); 51dic2.Add("DataCenter", "DC1"); 55dic3.Add("Country", "UK"); 56dic3.Add("DeviceType", AGG_SYMBOL); 57dic3.Add("DataCenter", "DC1"); 61dic4.Add("Country", "UK"); 62dic4.Add("DeviceType", "Laptop"); 63dic4.Add("DataCenter", "DC2"); 67dic5.Add("Country", "UK"); 68dic5.Add("DeviceType", "Mobile"); 69dic5.Add("DataCenter", "DC2"); 73dic6.Add("Country", "UK"); 74dic6.Add("DeviceType", AGG_SYMBOL); 75dic6.Add("DataCenter", "DC2"); 79dic7.Add("Country", "UK"); 80dic7.Add("DeviceType", AGG_SYMBOL); 81dic7.Add("DataCenter", AGG_SYMBOL); 85dic8.Add("Country", "UK"); 86dic8.Add("DeviceType", "Laptop"); 87dic8.Add("DataCenter", AGG_SYMBOL); 91dic9.Add("Country", "UK"); 92dic9.Add("DeviceType", "Mobile"); 93dic9.Add("DataCenter", AGG_SYMBOL); 102dim.Add("Country", "UK"); 103dim.Add("DeviceType", AGG_SYMBOL); 104dim.Add("DataCenter", AGG_SYMBOL);
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (36)
57dic2.Add("Country", "UK"); 58dic2.Add("DeviceType", "Mobile"); 59dic2.Add("DataCenter", "DC1"); 63dic3.Add("Country", "UK"); 64dic3.Add("DeviceType", AGG_SYMBOL); 65dic3.Add("DataCenter", "DC1"); 69dic4.Add("Country", "UK"); 70dic4.Add("DeviceType", "Laptop"); 71dic4.Add("DataCenter", "DC2"); 75dic5.Add("Country", "UK"); 76dic5.Add("DeviceType", "Mobile"); 77dic5.Add("DataCenter", "DC2"); 81dic6.Add("Country", "UK"); 82dic6.Add("DeviceType", AGG_SYMBOL); 83dic6.Add("DataCenter", "DC2"); 87dic7.Add("Country", "UK"); 88dic7.Add("DeviceType", AGG_SYMBOL); 89dic7.Add("DataCenter", AGG_SYMBOL); 93dic8.Add("Country", "UK"); 94dic8.Add("DeviceType", "Laptop"); 95dic8.Add("DataCenter", AGG_SYMBOL); 99dic9.Add("Country", "UK"); 100dic9.Add("DeviceType", "Mobile"); 101dic9.Add("DataCenter", AGG_SYMBOL); 105dic10.Add("Country", "UK"); 106dic10.Add("DeviceType", "Mobile"); 107dic10.Add("DataCenter", "DC3"); 111dic11.Add("Country", "UK"); 112dic11.Add("DeviceType", "Laptop"); 113dic11.Add("DataCenter", "DC3"); 117dic12.Add("Country", "UK"); 118dic12.Add("DeviceType", AGG_SYMBOL); 119dic12.Add("DataCenter", "DC3"); 128dim.Add("Country", "UK"); 129dim.Add("DeviceType", AGG_SYMBOL); 130dim.Add("DataCenter", AGG_SYMBOL);
Microsoft.ML.SearchSpace (4)
Parameter.cs (2)
313(_value as Dictionary<string, Parameter>).Add(key, value); 327(_value as Dictionary<string, Parameter>).Add(item.Key, item.Value);
SearchSpace.cs (2)
233res.Add(field.Name, option); 280res.Add(property.Name, option);
Microsoft.ML.Sweeper (1)
ISweeper.cs (1)
117_parameterValues.Add(parameter.Name, parameter);
Microsoft.ML.TimeSeries (8)
PolynomialUtils.cs (1)
327hash.Add(roots[i], new FactorMultiplicity());
RootCauseAnalyzer.cs (5)
110dimPointMapping.Add(point.Dimension, point); 276entroyGainRatioMap.Add(dimension, gainRatio); 323entropyRatioMap.Add(dimension, gainRatio); 467tree.ChildrenNodes.Add(nextDim, new List<TimeSeriesPoint>()); 713distribution.Add(dimVal, 0);
STL\InnerStl.cs (1)
305_xValuesPool.Add(length, newXValues);
STL\Loess.cs (1)
92_neighbors.Add(i, neighbor);
Microsoft.ML.TimeSeries.Tests (84)
TimeSeriesDirectApi.cs (84)
971expectedDim.Add("Country", "UK"); 972expectedDim.Add("DeviceType", _rootCauseAggSymbol); 973expectedDim.Add("DataCenter", "DC1"); 1000expectedDim.Add("Country", "UK"); 1001expectedDim.Add("DeviceType", _rootCauseAggSymbol); 1002expectedDim.Add("DataCenter", "DC1"); 1016expectedDim.Add("Country", "UK"); 1017expectedDim.Add("DeviceType", "Mobile"); 1018expectedDim.Add("DataCenter", _rootCauseAggSymbol); 1088dic1.Add("Country", "UK"); 1089dic1.Add("DeviceType", "Laptop"); 1090dic1.Add("DataCenter", "DC1"); 1094dic2.Add("Country", "UK"); 1095dic2.Add("DeviceType", "Mobile"); 1096dic2.Add("DataCenter", "DC1"); 1100dic3.Add("Country", "UK"); 1101dic3.Add("DeviceType", aggSymbol); 1102dic3.Add("DataCenter", "DC1"); 1106dic4.Add("Country", "UK"); 1107dic4.Add("DeviceType", "Laptop"); 1108dic4.Add("DataCenter", "DC2"); 1112dic5.Add("Country", "UK"); 1113dic5.Add("DeviceType", "Mobile"); 1114dic5.Add("DataCenter", "DC2"); 1118dic6.Add("Country", "UK"); 1119dic6.Add("DeviceType", aggSymbol); 1120dic6.Add("DataCenter", "DC2"); 1124dic7.Add("Country", "UK"); 1125dic7.Add("DeviceType", aggSymbol); 1126dic7.Add("DataCenter", aggSymbol); 1130dic8.Add("Country", "UK"); 1131dic8.Add("DeviceType", "Laptop"); 1132dic8.Add("DataCenter", aggSymbol); 1136dic9.Add("Country", "UK"); 1137dic9.Add("DeviceType", "Mobile"); 1138dic9.Add("DataCenter", aggSymbol); 1142dic10.Add("Country", "UK"); 1143dic10.Add("DeviceType", "Mobile"); 1144dic10.Add("DataCenter", "DC3"); 1148dic11.Add("Country", "UK"); 1149dic11.Add("DeviceType", "Laptop"); 1150dic11.Add("DataCenter", "DC3"); 1154dic12.Add("Country", "UK"); 1155dic12.Add("DeviceType", aggSymbol); 1156dic12.Add("DataCenter", "DC3"); 1165dim.Add("Country", val); 1166dim.Add("DeviceType", aggSymbol); 1167dim.Add("DataCenter", aggSymbol); 1232dic1.Add("Country", 10); 1233dic1.Add("DeviceType", 20); 1234dic1.Add("DataCenter", 30); 1238dic2.Add("Country", 10); 1239dic2.Add("DeviceType", 21); 1240dic2.Add("DataCenter", 30); 1244dic3.Add("Country", 10); 1245dic3.Add("DeviceType", _rootCauseAggSymbolForIntDimValue); 1246dic3.Add("DataCenter", 30); 1250dic4.Add("Country", 10); 1251dic4.Add("DeviceType", 20); 1252dic4.Add("DataCenter", 31); 1256dic5.Add("Country", 10); 1257dic5.Add("DeviceType", 21); 1258dic5.Add("DataCenter", 31); 1262dic6.Add("Country", 10); 1263dic6.Add("DeviceType", _rootCauseAggSymbolForIntDimValue); 1264dic6.Add("DataCenter", 31); 1268dic7.Add("Country", 10); 1269dic7.Add("DeviceType", _rootCauseAggSymbolForIntDimValue); 1270dic7.Add("DataCenter", _rootCauseAggSymbolForIntDimValue); 1274dic8.Add("Country", 10); 1275dic8.Add("DeviceType", 20); 1276dic8.Add("DataCenter", _rootCauseAggSymbolForIntDimValue); 1280dic9.Add("Country", 10); 1281dic9.Add("DeviceType", 21); 1282dic9.Add("DataCenter", _rootCauseAggSymbolForIntDimValue); 1286dic10.Add("Country", 10); 1287dic10.Add("DeviceType", 21); 1288dic10.Add("DataCenter", 32); 1292dic11.Add("Country", 10); 1293dic11.Add("DeviceType", 20); 1294dic11.Add("DataCenter", 32); 1298dic12.Add("Country", 10); 1299dic12.Add("DeviceType", _rootCauseAggSymbolForIntDimValue); 1300dic12.Add("DataCenter", 32);
Microsoft.ML.Tokenizers (16)
Model\BPETokenizer.cs (1)
293Merges.Add(new Pair<int>(aId, bId), (i, newId));
Model\CodeGenTokenizer.cs (1)
1808mergeRanks.Add(new StringSpanOrdinalKeyPair(line.Substring(0, index), line.Substring(index + 1)), rank++);
Model\EnglishRobertaTokenizer.cs (1)
242vocab.Add(item.Key.ToString(), item.Value);
Model\SentencePieceTokenizer.cs (6)
51_vocab.Add(new StringSpanOrdinalKey(piece.Piece), (i, piece.Score, (byte)piece.Type)); 52_vocabReverse.Add(i, piece.Piece); 85_specialTokens.Add(new StringSpanOrdinalKey(item.Key), item.Value); 86_specialTokensReverse.Add(item.Value, item.Key); 179vocab.Add(item.Key.ToString(), item.Value.Id); 2254revMerge.Add((symbols[left].pieceSpan.Index, pieceLength), (symbols[left].pieceSpan.Index, symbols[left].pieceSpan.Length, symbols[right].pieceSpan.Index, symbols[right].pieceSpan.Length));
Model\TiktokenTokenizer.cs (3)
1215tiktokenConfiguration.SpecialTokens.Add(extraSpecialToken.Key, extraSpecialToken.Value); 1375tiktokenConfiguration.SpecialTokens.Add(extraSpecialToken.Key, extraSpecialToken.Value); 1415tiktokenConfiguration.SpecialTokens.Add(extraSpecialToken.Key, extraSpecialToken.Value);
Model\WordPieceTokenizer.cs (2)
110vocab.Add(new StringSpanOrdinalKey(line), lineNumber); 111vocabReverse.Add(lineNumber, line);
Utils\ByteToUnicodeEncoding.cs (1)
30byteToUnicodeMapping.Add((char)b, (char)(numChars + n));
Utils\StringSpanOrdinalKey.cs (1)
163dictionary.Add(new StringSpanOrdinalKey(key!), (value, key!));
Microsoft.ML.TorchSharp (5)
AutoFormerV2\Attention.cs (1)
83attentionOffsets.Add(offset, attentionOffsets.Count);
AutoFormerV2\ObjectDetectionMetrics.cs (2)
103iouDic.Add(label, new List<Tuple<float, float>>()); 104groundTruthBoxes.Add(label, 0);
Utils\DefaultDictionary.cs (2)
57_dictionary.Add(item.Key, item.Value); 86_dictionary.Add(key, value);
Microsoft.ML.Transforms (9)
Dracula\CMCountTable.cs (4)
105Tables[i][j].Add(index, value); 254_tables[iLabel][iDepth].Add(kvp.Key, kvp.Value); 273tables[iLabel][iDepth].Add(kvp.Key, (float)kvp.Value); 287_tables[labelKey][i].Add(idx, 0);
Expression\KeyWordTable.cs (1)
73_mpnstrtidPunc.Add(nstrTmp, TokKind.None);
Expression\MethodGenerator.cs (1)
181_locals.Add(key, locals);
PermutationFeatureImportanceExtensions.cs (1)
718output.Add(name, permutationFeatureImportance[i]);
Text\StopWordsRemovingTransformer.cs (1)
371_colMapNewToOld.Add(i, srcCol);
Text\TextNormalizing.cs (1)
315combinedDiacriticsMap.Add(_combinedDiacriticsPairs[i][0], _combinedDiacriticsPairs[i][1]);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\Collection.vb (1)
56m_KeyedNodesHash.Add(Key, newNode)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1603_dict.Add(key, node)
Microsoft.VisualStudio.LanguageServices (23)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
525_definitionToBucket.Add(definition, bucket);
GenerateType\GenerateTypeDialogViewModel.cs (4)
146_typeKindMap.Add(visualBasicKey, typeKind); 147_typeKindMap.Add(csharpKey, typeKind); 155_typeKindMap.Add(visualBasicKey, typeKind); 176_accessListMap.Add(key, accessibility);
Implementation\VsRefactorNotifyService.cs (1)
202hierarchyToItemIDsMap.Add(hierarchy, itemIDsForCurrentHierarchy);
Interactive\VsInteractiveWindowProvider.cs (4)
136=> Logger.Log(InteractiveWindowFunctionId, KeyValueLogMessage.Create(m => m.Add(key, value))); 143m.Add(LogMessage.Window, LogMessage.Close); 144m.Add(LogMessage.LanguageBufferCount, languageBufferCount); 167interactiveCommandMap.Add(name, i);
Interop\CleanableWeakComHandleTable.cs (1)
165_table.Add(key, new WeakComHandle<TValue, TValue>(value));
Progression\GraphBuilder.cs (5)
108_nodeToContextProjectMap.Add(inputNode, project); 109_nodeToContextDocumentMap.Add(inputNode, document); 129_nodeToContextProjectMap.Add(inputNode, project); 136_nodeToSymbolMap.Add(inputNode, symbol); 145_nodeToContextDocumentMap.Add(inputNode, document);
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
350_folderNameMap.Add(folderItemID, folderNames);
ProjectSystem\MiscellaneousFilesWorkspace.cs (2)
117=> _languageInformationByLanguageGuid.Add(languageGuid, new LanguageInformation(languageName, scriptExtension)); 282_monikersToProjectIdAndContainer.Add(moniker, (projectInfo.Id, sourceTextContainer));
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
135specificDiagnosticOptions.Add(rule.Key, rule.Value);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
111_cache.Add(key, new CacheValue { Node = node, Value = value });
Utilities\VsCodeWindowViewTracker.cs (1)
68_trackedTextViews.Add(pTextView, wpfTextView);
Workspace\SourceGeneratedFileManager.cs (1)
198_openFiles.Add(moniker, openFile);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Razor\CSharpLspRazorProjectFactory.cs (1)
30_projects.Add(projectName, projectInfo.Id);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
158_xamlProjects.Add(hierarchy, project);
MSBuild (6)
LogMessagePacketBase.cs (2)
433s_writeMethodCache.Add(_eventType, methodInfo); 512s_readMethodCache.Add(_eventType, methodInfo);
TaskParameter.cs (2)
328escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 442escapedGenericWrappedMetadata.Add((string)key, value);
TypeLoader.cs (2)
198assembliesDictionary.Add(Path.GetFileName(localPath), localPath); 422_publicTypeNameToType.Add(publicType.FullName, publicType);
MSBuildTaskHost (8)
BinaryReaderExtensions.cs (1)
120data.ExtendedMetadata.Add(key, value);
BinaryTranslator.cs (1)
794dictionary.Add(key, val);
Immutable\ImmutableDictionary.cs (1)
215n.Add(item.Key, item.Value);
LogMessagePacketBase.cs (2)
433s_writeMethodCache.Add(_eventType, methodInfo); 512s_readMethodCache.Add(_eventType, methodInfo);
TaskParameter.cs (2)
328escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 442escapedGenericWrappedMetadata.Add((string)key, value);
TypeLoader.cs (1)
321_publicTypeNameToType.Add(publicType.FullName, publicType);
PresentationBuildTasks (17)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (3)
201MasterBracketCharacterCache.Add(type, map); 889cache.Add(propertyName, bracketCharacters); 892cache.Add(constructorArgumentName, bracketCharacters);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
564_cachedMetadataLoadContextAssemblies.Add(fullPathToAssembly, assembly); 565_cachedMetadataLoadContextAssembliesByNameNoExtension.Add(Path.GetFileNameWithoutExtension(fullPathToAssembly), assembly);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (12)
59_elementHandler.Add(AlternateContent, new HandleElementCallback(HandleAlternateContent)); 60_elementHandler.Add(Choice, new HandleElementCallback(HandleChoice)); 61_elementHandler.Add(Fallback, new HandleElementCallback(HandleFallback)); 63_attributeHandler.Add(Ignorable, new HandleAttributeCallback(HandleIgnorable)); 64_attributeHandler.Add(MustUnderstand, new HandleAttributeCallback(HandleMustUnderstand)); 65_attributeHandler.Add(ProcessContent, new HandleAttributeCallback(HandleProcessContent)); 66_attributeHandler.Add(PreserveElements, new HandleAttributeCallback(HandlePreserveElements)); 67_attributeHandler.Add(PreserveAttributes, new HandleAttributeCallback(HandlePreserveAttributes)); 1820_processContents.Add(namespaceName, processContentSet); 1835_preserveElements.Add(namespaceName, preserveElementSet); 1850_preserveAttributes.Add(namespaceName, preserveAttributeSet); 2014_names.Add(itemName, itemName);
PresentationCore (22)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
602_cmap.Add(codePoint, glyphIndex);
MS\Internal\FontCache\FontResourceCache.cs (1)
85_assemblyCaches.Add(uriAssembly, folderResourceMap);
MS\Internal\FontFace\CompositeFontInfo.cs (3)
57_familyMapRangesByLanguage.Add(familyMap.Language, EmptyFamilyMapRanges); 61_familyMapRangesByLanguage.Add(familyMap.Language, EmptyFamilyMapRanges); 150table.Add(language, EmptyFamilyMapRanges);
MS\Internal\FontFace\FontDifferentiator.cs (1)
33faceNames.Add(XmlLanguage.GetLanguage("en-us"), faceName);
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
51convertedDictionary.Add(language, pair.Value);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1683_strokeLookupTable.Add(_coreStrokes[i], new StrokeLookupEntry());
MS\Internal\Ink\Renderer.cs (3)
254_visuals.Add(stroke, visual); 442_visuals.Add(stroke, visual); 665_highlighters.Add(color, hcVisual);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (5)
43_fileExtensionToMimeType.Add(XamlExtension, XamlMime); 44_fileExtensionToMimeType.Add(BamlExtension, BamlMime); 45_fileExtensionToMimeType.Add(JpgExtension, JpgMime); 46_fileExtensionToMimeType.Add(XbapExtension, XbapMime); 63_fileExtensionToMimeType.Add(completeExt, mimeType);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
181_assemblies.Add(key, result);
System\Windows\BinaryFormat\StringRecordsCollection.cs (1)
40_memberReferences.Add(id, reference);
System\Windows\Ink\StrokeCollection2.cs (1)
383highLighters.Add(color, strokes);
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
108_stylusDeviceMap.Add(stylus.CursorId, stylus);
System\Windows\Media\HostVisual.cs (1)
324_connectedChannels.Add(channel, channelDispatcher);
System\Windows\Media3D\Visual3DCollection.cs (1)
552duplicates.Add(visual, String.Empty);
PresentationFramework (71)
MS\Internal\Annotations\AnnotationMap.cs (1)
28_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
120s_ZRanges.Add(level, new ZRange(min, max));
MS\Internal\Annotations\ObservableDictionary.cs (1)
67_nameValues.Add(key, val);
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
73_currentAnnotations.Add(annotation.Id, new CachedAnnotation(annotation, dirty)); 151annotations.Add(annotation.Id, annotation); 173annotations.Add(annotKV.Key, annotKV.Value.Annotation);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (3)
438_cachedXmlElements.Add(token, ret); 550s_xmlTokeFullNames.Add(token, $"{AnnotationXmlConstants.Prefixes.BaseSchemaPrefix}:{xmlName}"); 565s_xmlTokeFullNames.Add(token, xmlName);
MS\Internal\Data\CommitManager.cs (1)
172Add(item, null);
MS\Internal\Data\DataBindEngine.cs (1)
369_valueConverterTable.Add(key, result);
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
362_propertyInheritanceTreeStack.Add(propertyName, stackForProperty);
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
843_contentPropertyTable.Add(fullTypeName, contentProperty);
MS\Internal\Ink\ClipboardProcessor.cs (2)
59_preferredClipboardData.Add(InkCanvasClipboardFormat.InkSerializedFormat, new ISFClipboardData()); 287preferredData.Add(format, clipboardData);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
850_lcidDictionary.Add(languageString, (uint)cultureInfo.LCID);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
27CustomTypeToHelperTypeMappings.Add(publicType, abiType); 28CustomAbiTypeToTypeMappings.Add(abiType, publicType); 29CustomTypeToAbiTypeNameMappings.Add(publicType, winrtTypeName); 30CustomAbiTypeNameToTypeMappings.Add(winrtTypeName, publicType);
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
49_predefinedNamespaces.Add(new Uri(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace), null); 50_predefinedNamespaces.Add(new Uri(AnnotationXmlConstants.Namespaces.BaseSchemaNamespace), null); 51_predefinedNamespaces.Add(new Uri(XamlReaderHelper.DefaultNamespaceURI), null);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
156newChildren.Add(key, peer); 285WeakRefElementProxyStorage.Add(key, wr);
System\Windows\Controls\DataGrid.cs (1)
6817_editingCellAutomationValueHolders.Add(cell.Column, new CellAutomationValueHolder(cell));
System\Windows\Controls\DataGridColumnCollection.cs (2)
501assignedDisplayIndexMap.Add(currentColumnDisplayIndex, columnIndex); 530assignedDisplayIndexMap.Add(nextAvailableColumnIndex, columnIndex);
System\Windows\Controls\Primitives\Selector.cs (2)
2700_set.Add(info, info); 2864_set.Add(_list[i], _list[i]);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (1)
213_dictionariesFromUri.Add(uri, list);
System\Windows\Documents\FixedDSBuilder.cs (1)
49_nameHashTable.Add(Name,
System\Windows\Documents\FixedSchema.cs (1)
243_schemas.Add(mime, schema);
System\Windows\Documents\FixedTextContainer.cs (1)
472highlights.Add(page, lfs);
System\Windows\Documents\Speller.cs (2)
333UriMap.Add(uri, new DictionaryInfo(pathUri, lexicon)); 1569UriMap.Add(item, new DictionaryInfo(tempLocationUri, lexicon));
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (2)
160instanceInfo.CumulativeCallTime100Ns.Add(a, 0); 161instanceInfo.NumCallsMeasured.Add(a, 0);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2745_freezeCache.Add(value, freezable);
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
47_namespaces.Add(prefix, xamlNs);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1773bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 1853bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 2696bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 2826bamlType.Constructors.Add(2, new Baml6ConstructorInfo( 3166bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 4034bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 8295bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 8302bamlType.Constructors.Add(3, new Baml6ConstructorInfo( 9425bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 9444bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 9876bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 10090bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 10652bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 11831bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
137_masterTypeTable.Add(bamlType.UnderlyingType, bamlType); 199_masterTypeTable.Add(type, xamlType); 235_masterTypeTable.Add(type, xamlType);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
35_masterTypeTable.Add(type, xType);
System\Windows\Markup\ParserContext.cs (4)
201MasterBracketCharacterCache.Add(type, map); 793_freezeCache.Add(value, freezable); 889cache.Add(propertyName, bracketCharacters); 892cache.Add(constructorArgumentName, bracketCharacters);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
90constructorArguments.Add(parameters[i].Name, parameters[i].Name);
System\Windows\Markup\XamlTypeMapper.cs (1)
322newDict.Add(kvp.Key, kvp.Value);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
46_nsDefinitions.Add(mapEntry.XmlNamespace, clrNsList); 61_piNamespaces.Add((string)entry.Key, clrNs); 328_allowedInternalTypes.Add(type, result);
System\Windows\Standard\MessageWindow.cs (1)
152s_windowLookup.Add(hwnd, hwndWrapper);
System\Windows\SystemResources.cs (1)
478_dictionaries.Add(assembly, dictionaries);
System\Windows\TemplateContent.cs (2)
316OwnerTemplate.ChildTypeFromChildIndex.Add(childIndex, type.UnderlyingType); 667TemplateLoadData.NamedTypes.Add(name, stack.CurrentFrame.Type);
PresentationUI (4)
MS\Internal\Documents\Application\TransactionalPackage.cs (3)
226_activeParts.Add(normalizedPartUri, (WriteableOnDemandPackagePart)result); 396_activeParts.Add(normalizedPartUri, (WriteableOnDemandPackagePart)result); 411_activeParts.Add(normalizedPartUri, (WriteableOnDemandPackagePart)result);
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
339certificateStatusTable.Add(
ReachFramework (12)
Packaging\XpsResourcePolicy.cs (1)
88_objDict.Add(serviceType, service);
PrintConfig\PrtTicket_Public_Simple.cs (3)
819_setterCache.Add(CapabilityName.PageMediaSize, value); 1061_setterCache.Add(CapabilityName.PageResolution, value); 1442_setterCache.Add(feature, value);
Serialization\ColorTypeConverter.cs (3)
318currentPageColorContextTable.Add(colorContext.GetHashCode(), profileUri); 345colorContextTable.Add(colorContext.GetHashCode(), profileUri); 346currentPageColorContextTable.Add(colorContext.GetHashCode(), profileUri);
Serialization\ImageSourceTypeConverter.cs (4)
188currentPageImageTable.Add(uriHashCode, imageUri); 497manager.ResourcePolicy.ImageUriHashTable.Add(_uriHashValue,imageUri); 502manager.ResourcePolicy.ImageCrcTable.Add(_crc32HashValue, imageUri); 506manager.ResourcePolicy.CurrentPageImageTable.Add(imageUri.GetHashCode(), imageUri);
Serialization\VisualTreeFlattener.cs (1)
508_nameList.Add(fe.Name, 0);
Roslyn.Compilers.Extension (3)
CompilerPackage.cs (3)
72filesToWrite.Add(await GetMSBuildRelativePathAsync($@"Imports\Microsoft.Common.props\ImportBefore\Roslyn.Compilers.Extension.{hiveName}.props", cancellationToken).ConfigureAwait(true), 97filesToWrite.Add(await GetMSBuildRelativePathAsync($@"Microsoft.CSharp.targets\ImportBefore\Roslyn.Compilers.Extension.{hiveName}.targets", cancellationToken).ConfigureAwait(true), targetsContent); 98filesToWrite.Add(await GetMSBuildRelativePathAsync($@"Microsoft.VisualBasic.targets\ImportBefore\Roslyn.Compilers.Extension.{hiveName}.targets", cancellationToken).ConfigureAwait(true), targetsContent);
Roslyn.Test.PdbUtilities (2)
Reader\Token2SourceLineExporter.cs (2)
1273result.Add(name.ToUpperInvariant(), ni); 1329tokenToSourceMapping.Add(token, new PdbTokenLine(token, file_id, line, column, endLine, endColumn));
Shared.Tests (1)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
52dictionary.Add(default!, default!);
Swaggatherer (1)
SwaggathererApplication.cs (1)
91routesByPrecedence.Add(precedence, matches);
System.Collections.Immutable (2)
System\Linq\ImmutableArrayExtensions.cs (2)
581result.Add(keySelector(v), v); 606result.Add(keySelector(v), elementSelector(v));
System.ComponentModel.Composition (18)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
121metadata.Add(CompositionConstants.ExportTypeIdentityMetadataName, typeIdentity);
System\ComponentModel\Composition\ContractNameServices.cs (1)
73TypeIdentityCache.Add(type, typeIdentity);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (2)
489_activatedParts.Add(partDefinition, catalogPart); 742_activatedParts.Add(definition, new CatalogPart(newPart));
System\ComponentModel\Composition\Hosting\CompositionServices.cs (6)
191dictionary.Add(CompositionConstants.PartCreationPolicyMetadataName, creationPolicy); 203dictionary.Add(partMetadata.Name, partMetadata.Value); 210dictionary.Add(CompositionConstants.IsGenericPartMetadataName, true); 214dictionary.Add(CompositionConstants.GenericPartArityMetadataName, genericArguments.Length); 242dictionary.Add(CompositionConstants.GenericParameterConstraintsMetadataName, genericParameterConstraints); 243dictionary.Add(CompositionConstants.GenericParameterAttributesMetadataName, genericParameterAttributes);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (2)
625_assemblyCatalogs.Add(catalogToAdd.Item1, catalogToAdd.Item2); 767_assemblyCatalogs.Add(file, assemblyCatalog);
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (1)
51_exportersIndex.Add(contractName, parts);
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (1)
60_importersIndex.Add(contractName, parts);
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
87_partManagerIndex.Add(contractName, indexEntries);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
328index.Add(contractName, contractParts);
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
130_metadataViewFactories.Add(viewType, metadataViewFactory);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
145CastSingleValueCache.Add(type, _castSingleValue);
System.ComponentModel.Composition.Registration (4)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
131_importBuilders.Add(parameterInfos[index], (Action<ImportBuilder>)importDelegate);
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (3)
166_memberInfos.Add((MemberInfo)element.Item1, element.Item2); 178_memberInfos.Add((MemberInfo)element.Item1, element.Item2); 196_parameters.Add((ParameterInfo)element.Item1, element.Item2);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\MemberDescriptor.cs (1)
357map.Add(typeId, i);
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (2)
202_memberInfos.Add(mi, element.Item2); 217_parameters.Add(pi, element.Item2);
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
191_importBuilders.Add(parameterInfos[index], (Action<ImportConventionBuilder>)importDelegate);
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
147_updateResults.Add(contract, updateResult);
System.Composition.TypedParts (5)
System\Composition\TypedParts\ContractHelpers.cs (3)
51importMetadata.Add(ImportManyImportMetadataConstraintName, true); 61importMetadata.Add(imca.Name, imca.Value); 76importMetadata.Add(prop.Name, prop.GetValue(attr, null));
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
215partMetadata.Add(ma.Name, ma.Value);
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
49_discoveredParts.Add(actualContract, forKey);
System.Configuration.ConfigurationManager (2)
System\Configuration\BaseConfigurationRecord.cs (1)
422indirectLocationInputs.Add(configKey, new List<SectionInput>(1));
System\Configuration\ConfigurationElement.cs (1)
805s_perTypeValidators.Add(type, validator);
System.Console (1)
System\TermInfo.Database.cs (1)
259extendedStrings.Add(names[iName], values[iValue]);
System.Data.Common (10)
System\Data\Common\ObjectStorage.cs (2)
614tmp.Add(entry.Key, entry.Value); 633cache.Add(key, serializer);
System\Data\DataColumnCollection.cs (1)
825_columnFromName.Add(name, column);
System\Data\DataView.cs (5)
554_rowViewCache.Add(_addNewRow, drv); 1312_rowViewCache.Add(row, buffer ?? new DataRowView(this, row)); 1329_rowViewBuffer.Add(row, buffer); 1465rvc.Add(row, drv); 1472rvc.Add(_addNewRow, drv);
System\Data\XMLSchema.cs (2)
1511_tableDictionary!.Add(table, new List<DataTable>()); 1636_tableDictionary!.Add(table, new List<DataTable>());
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (3)
224newConnectionPoolGroups.Add(entry.Key, entry.Value); 228newConnectionPoolGroups.Add(key, newConnectionPoolGroup); 320newConnectionPoolGroups.Add(entry.Key, entry.Value);
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\AggregationManager.cs (1)
152_instruments.Add(instrument, true);
System\Diagnostics\Metrics\Meter.cs (1)
549_nonObservableInstrumentsCache.Add(name, instrumentList);
System\Diagnostics\Metrics\MeterListener.cs (1)
277callbacksArguments?.Add(current.Value, state);
System.Diagnostics.Process (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
114s_childProcessWaitStates.Add(processId, pws); 148s_processWaitStates.Add(processId, pws);
System.Formats.Tar (3)
System\Formats\Tar\TarHeader.cs (1)
137_ea.Add(kvp.Key, kvp.Value);
System\Formats\Tar\TarWriter.Unix.cs (2)
77_userIdentifiers.Add(status.Uid, uName); 87_groupIdentifiers.Add(status.Gid, gName);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
436_wdToPathMap.Add(wd, directoryEntry);
System.IO.Packaging (22)
System\IO\Packaging\ContentType.cs (1)
338(_parameterDictionary ??= new Dictionary<string, string>()).Add(
System\IO\Packaging\OrderedDictionary.cs (1)
35_dictionary.Add(key, _order.AddLast(value));
System\IO\Packaging\Package.cs (1)
441partDictionary.Add(normalizedPartName, new KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>(partUri, parts[i]));
System\IO\Packaging\PartBasedPackageProperties.cs (1)
408_propertyDictionary.Add(propertyenum, value);
System\IO\Packaging\XmlCompatibilityReader.cs (11)
43_elementHandler.Add(AlternateContent, new HandleElementCallback(HandleAlternateContent)); 44_elementHandler.Add(Choice, new HandleElementCallback(HandleChoice)); 45_elementHandler.Add(Fallback, new HandleElementCallback(HandleFallback)); 47_attributeHandler.Add(Ignorable, new HandleAttributeCallback(HandleIgnorable)); 48_attributeHandler.Add(MustUnderstand, new HandleAttributeCallback(HandleMustUnderstand)); 49_attributeHandler.Add(ProcessContent, new HandleAttributeCallback(HandleProcessContent)); 50_attributeHandler.Add(PreserveElements, new HandleAttributeCallback(HandlePreserveElements)); 51_attributeHandler.Add(PreserveAttributes, new HandleAttributeCallback(HandlePreserveAttributes)); 1658_processContents.Add(namespaceName, processContentSet); 1670_preserveElements.Add(namespaceName, preserveElementSet); 1682_preserveAttributes.Add(namespaceName, preserveAttributeSet);
System\IO\Packaging\ZipPackage.cs (7)
1180_defaultDictionary.Add(temporaryUri.PartUriExtension, new ContentType(contentTypeAttributeValue!)); 1209_overrideDictionary.Add(partUri, new ContentType(contentTypeAttributeValue!)); 1244_overrideDictionary.Add(partUri, contentType); 1252_defaultDictionary.Add(extension, contentType); 1411_ignoredItemDictionary.Add(normalizedPrefixNameForThisSequence, zipFileInfoNameList); 1472_ignoredItemDictionary.Add(normalizedPrefixName, new List<string>(_listInitialSize)); 1487_extensionDictionary.Add(extension, new List<string>(_listInitialSize));
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
280s_servers.Add(path, server);
System.Linq (4)
System\Linq\ToCollection.cs (4)
177d.Add(keySelector(element), element); 188d.Add(keySelector(element), element); 235d.Add(keySelector(element), elementSelector(element)); 246d.Add(keySelector(element), elementSelector(element));
System.Linq.Expressions (23)
System\Linq\Expressions\Compiler\BoundConstants.cs (2)
158_cache.Add(reference.Key, local); 186_indexes.Add(value, index = _values.Count);
System\Linq\Expressions\Compiler\CompilerScope.cs (5)
105Definitions.Add(v, VariableStorageKind.Local); 217_locals.Add(variable, new LocalStorage(gen, variable)); 405_locals.Add(v, local); 423_locals.Add(v, local); 458_locals.Add(v, s);
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
72indexes.Add(vars[i], i);
System\Linq\Expressions\Compiler\KeyedStack.cs (1)
20_data.Add(key, stack = new Stack<TValue>());
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
386_labels.Add(target, info);
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (2)
17_labelInfo.Add(node, result = new LabelInfo(_ilg, node, false)); 258_labelInfo.Add(label, new LabelInfo(_ilg, label, TypeUtils.AreReferenceAssignable(lambda.ReturnType, label.Type)));
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
186currentScope.Definitions.Add(v, VariableStorageKind.Local);
System\Linq\Expressions\DebugViewWriter.cs (2)
81ids.Add(e, 1); 91ids.Add(e, id);
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
44_ids.Add(o, id);
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
872s_loadFields.Add(field, instruction);
System\Linq\Expressions\Interpreter\LightLambda.cs (5)
66_handlerEnter.Add(handler.FinallyStartIndex, "finally"); 74_handlerEnter.Add(catchHandler.HandlerStartIndex - 1 /* include EnterExceptionHandler instruction */, catchHandler.ToString()); 80_handlerEnter.Add(filter.StartIndex - 1 /* include EnterExceptionFilter instruction */, "filter"); 94_handlerEnter.Add(handler.FinallyStartIndex, "fault"); 105_tryStart.Add(index, 1);
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
162_closureVariables.Add(variable, result);
System.Linq.Parallel (3)
System\Linq\Parallel\Utils\Lookup.cs (1)
123_dict.Add(grouping.Key, grouping);
System\Linq\ParallelEnumerable.cs (2)
4979result.Add(key, val); 5076result.Add(keySelector(src), elementSelector(src));
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
196_equivalentTypeCache.Add(type, equiv); 434_targetCache.Add(node, newTarget);
System.Net.Http (8)
src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (2)
34_forward.Add(item1, item2); 35_backward.Add(item2, item1);
System\Net\Http\Headers\HttpHeaders.cs (1)
1497dictionary.Add(entry.Key, entry.Value);
System\Net\Http\HttpRequestOptions.cs (1)
37void IDictionary<string, object?>.Add(string key, object? value) => Options.Add(key, value);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
410Parameters.Add(key, value);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1616_httpStreams.Add(http2Stream.StreamId, http2Stream);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
266_activeRequests.Add(quicStream, requestStream);
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (1)
26_cache.Add(key, cred);
System.Net.Mail (4)
src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (2)
34_forward.Add(item1, item2); 35_backward.Add(item2, item1);
System\Net\Mail\MailHeaderInfo.cs (1)
78headers.Add(s_headerInfo[i].NormalizedName, i);
System\Net\TrackingValidationObjectDictionary.cs (1)
72_internalObjects.Add(key, valueToAdd);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
109interfacesByIndex.Add(nii->InterfaceIndex, lni);
System.Net.Primitives (2)
System\Net\CredentialCache.cs (2)
45_cache.Add(key, cred); 71_cacheForHosts.Add(key, credential);
System.ObjectModel (3)
System\Collections\ObjectModel\KeyedCollection.cs (3)
240dict.Add(key, item); 245dict!.Add(key, item); 266dict.Add(key, item);
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
295s_assemblyLoadContexts.Add(assemblyPath, alc);
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
161s_dataStore.Add(new string(pNames[i]), new string(pValues[i]));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
171Add(pair.Key, pair.Value); 179Add(pair.Key, pair.Value); 255Add(keyValuePair.Key, keyValuePair.Value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
75_metadata.Add(key, value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4537allListeners.Add(cur, true);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
978s_sortNameToSortHandleCache.Add(sortName, result);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
297s_loadfile.Add(normalizedPath, result);
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
49_context.Add(memberInfo, state); 298_publicOnlyModules.Add(module, value);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
521localResourceSets.Add(cultureName, rs);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
194_table.Add(en.Key, en.Value);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
337caseInsensitiveTable.Add(currentKey, resLoc);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
110allContexts.Add(_id, new WeakReference<AssemblyLoadContext>(this, true));
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (2)
77((Dictionary<char, int>)_children).Add(c, index); 105children.Add((char)_firstChildChar, _firstChildIndex);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
109prefixToBucket.Add(prefix, bucketIndex);
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
679nameToSlotMap.Add(name, slot);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
645_usedIdToTracksAllValuesMap.Add(availableId, trackAllValues);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
2126cachedData._systemTimeZones.Add(id, value!);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
77internal void AddType(string name, Type type) => _typeBuilderDict.Add(name, type);
System.Private.DataContractSerialization (33)
System\Runtime\Serialization\ClassDataContract.cs (3)
269memberNamesTable.Add(memberContract.Name, memberContract); 1364boundContracts.Add(this, boundClassContract); 1425membersDictionary.Add(Members[i].Name, Members[i]);
System\Runtime\Serialization\CollectionDataContract.cs (1)
1399boundContracts.Add(this, boundCollectionContract);
System\Runtime\Serialization\DataContract.cs (6)
603s_nameToBuiltInContract.Add(qname, dataContract); 657s_typeNameToBuiltInContract.Add(typeName, dataContract); 906s_clrTypeStrings.Add(Globals.TypeOfInt.Assembly.FullName!, s_clrTypeStringsDictionary.Add(Globals.MscorlibAssemblyName)); 918s_clrTypeStrings.Add(key, value); 1949typesChecked.Add(type, type); 2064nameToDataContractTable.Add(dataContract.XmlName, dataContract);
System\Runtime\Serialization\DataContractSet.cs (6)
53ProcessedContracts.Add(pair.Key, pair.Value); 122Contracts.Add(name, dataContract); 321_referencedTypesDictionary.Add(DataContract.GetXmlName(Globals.TypeOfNullable), Globals.TypeOfNullable); 391referencedTypes.Add(xmlName, types); 402referencedTypes.Add(xmlName, type); 641ProcessedContracts.Add(dataContract, dataContract);
System\Runtime\Serialization\EnumDataContract.cs (2)
104s_typeToName.Add(type, xmlName); 105s_nameToType.Add(xmlName, type);
System\Runtime\Serialization\HybridObjectCache.cs (1)
26_objectDictionary.Add(id, obj);
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
168memberTable.Add(_traditionalClassDataContract.MemberNames[i].Value, null);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
227genericDictionaryObj.Add(entry.Key, entry.Value);
System\Runtime\Serialization\ObjectReferenceStack.cs (1)
38_objectDictionary.Add(obj, null);
System\Runtime\Serialization\SchemaImporter.cs (7)
198previousCollectionTypes.Add(dataContract.OriginalUnderlyingType, dataContract.OriginalUnderlyingType); 232knownDataContracts.Add(dataContract.XmlName, dataContract); 246schemaObjects.Add(SchemaExporter.AnytypeQualifiedName, new SchemaObjectInfo(null, null, null, knownTypesForObject)); 267schemaObjects.Add(currentTypeName, new SchemaObjectInfo(schemaType, null, schema, null)); 281schemaObjects.Add(baseTypeName, baseTypeInfo); 300schemaObjects.Add(currentElementName, new SchemaObjectInfo(null, schemaElement, schema, null)); 913knownDataContracts.Add(dataContract.XmlName, dataContract);
System\Xml\XmlBinaryReaderSession.cs (1)
37_stringDict.Add(id, xmlString);
System\Xml\XmlBinaryWriterSession.cs (2)
186_dictionary.Add(_list[i].Key, _list[i].Value); 190_dictionary.Add(key, value);
System\Xml\XmlDictionary.cs (1)
57_lookup.Add(value, str);
System.Private.Windows.Core (5)
System\Private\Windows\Core\BinaryFormat\Deserializer\DefaultTypeResolver.cs (1)
68_assemblies.Add(typeName.AssemblyName.FullName, assembly);
System\Private\Windows\Core\BinaryFormat\Deserializer\Deserializer.cs (2)
234_deserializedObjects.Add(record.Id, value); 248_deserializedObjects.Add(id, deserializer.Object);
System\Private\Windows\Core\BinaryFormat\Serializer\RecordMap.cs (1)
31_recordMap.Add(id, record);
System\Private\Windows\Core\BinaryFormat\Support\StringRecordsCollection.cs (1)
42_memberReferences.Add(id, reference);
System.Private.Xml (145)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
1824nstable.Add(nsdecl.prefix, nsdecl.uri); 1838nstable.Add(nsdecl.prefix, nsdecl.uri); 1891_namespaces.Add(prefix, nsdecl);
System\Xml\Dom\XmlNodeReader.cs (3)
1008dict.Add(_nameTable.Add(string.Empty), _nameTable.Add(a.Value!)); 1016dict.Add(_nameTable.Add(localName), _nameTable.Add(a.Value!)); 1043dict.Add(_nameTable.Add("xml"), _nameTable.Add(XmlReservedNs.NsXml));
System\Xml\Resolvers\XmlPreloadedResolver.cs (2)
363_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 364_mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
System\Xml\Schema\ContentValidator.cs (5)
84_names.Add(name, _last); 121_wildcards.Add(wildcard, _last); 1448stateTable.Add(new BitSet(positionsCount), -1); 1456stateTable.Add(firstpos, 0); 1501stateTable.Add(newset, newState);
System\Xml\Schema\DtdParser.cs (4)
659_schemaInfo.UndeclaredElementDecls.Add(elementName, elementDecl); 957_schemaInfo.ElementDecls.Add(name, elementDecl); 1316_schemaInfo.Notations.Add(notation.Name.Name, notation); 1362_undeclaredNotations.Add(notationName, un);
System\Xml\Schema\DtdParserAsync.cs (3)
303_schemaInfo.UndeclaredElementDecls.Add(elementName, elementDecl); 601_schemaInfo.ElementDecls.Add(name, elementDecl); 950_schemaInfo.Notations.Add(notation.Name.Name, notation);
System\Xml\Schema\SchemaCollectionCompiler.cs (4)
284schemaInfo.ElementDecls.Add(element.QualifiedName, element.ElementDecl!); 290schemaInfo.AttributeDecls.Add(attribute.QualifiedName, attribute.AttDef!); 299schemaInfo.ElementDeclsByType.Add(type.QualifiedName, type.ElementDecl!); 783decl.ProhibitedAttributes.Add(attribute.QualifiedName, attribute.QualifiedName);
System\Xml\Schema\SchemaElementDecl.cs (1)
190_attdefs.Add(attdef.Name, attdef);
System\Xml\Schema\SchemaInfo.cs (2)
309_elementDecls.Add(entry.Key, entry.Value); 316_elementDeclsByType.Add(entry.Key, entry.Value);
System\Xml\Schema\SchemaSetCompiler.cs (4)
152schemaInfo.ElementDecls.Add(element!.QualifiedName, element.ElementDecl!); 157schemaInfo.AttributeDecls.Add(attribute!.QualifiedName, attribute.AttDef!); 162schemaInfo.ElementDeclsByType.Add(type!.QualifiedName, type.ElementDecl!); 859decl.ProhibitedAttributes.Add(attribute.QualifiedName, attribute.QualifiedName);
System\Xml\Schema\XdrBuilder.cs (2)
660builder._SchemaInfo.TargetNamespaces.Add(builder._TargetNamespace, true); 738builder._SchemaInfo.ElementDecls.Add(qname, builder._ElementDef._ElementDecl);
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
22_table.Add(name, value);
System\Xml\Serialization\CodeGenerator.cs (4)
97_argList.Add("this", new ArgBuilder("this", 0, _typeBuilder.BaseType!)); 101_argList.Add(arg.Name, arg); 156_tmpLocals.Add(type, localTmp); 1596freeLocals.Add(key, freeLocalQueue);
System\Xml\Serialization\Compilation.cs (2)
122_methods.Add(xmlMappings[i].Key!, method); 502readerCodeGen.CreatedTypes.Add(writerType.Name, writerType);
System\Xml\Serialization\Models.cs (2)
72_models.Add(type, model); 88_arrayModels.Add(type, model);
System\Xml\Serialization\NameTable.cs (1)
51_table.Add(key, value);
System\Xml\Serialization\Types.cs (1)
1134replaceList.Add(pair.Key, replacedInfo);
System\Xml\Serialization\XmlAttributeOverrides.cs (2)
38_types.Add(type, members); 44members.Add(member, attributes);
System\Xml\Serialization\XmlSerializationILGen.cs (4)
90_methodBuilders.Add(methodName, methodBuilderInfo); 307CreatedTypes.Add(baseSerializerType.Name, baseSerializerType); 403CreatedTypes.Add(typedSerializerType.Name, typedSerializerType); 562CreatedTypes.Add(serializerContractType.Name, serializerContractType);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
198MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.Name)); 262CreatedTypes.Add(readerType.Name, readerType); 934Enums.Add(uniqueName, mapping); 1796_idNames.Add(name, idName); 1797_idNameFields.Add(name, this.typeBuilder.DefineField(idName, typeof(string), FieldAttributes.Private));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
41MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.Name));
System\Xml\Serialization\XmlSerializer.cs (1)
722pendingKeys.Add(mappingKey, i);
System\Xml\Serialization\XmlSerializerNamespaces.cs (2)
46_namespaces.Add(qname.Name, qname); 57_namespaces.Add(qname.Name, qname);
System\Xml\XPath\Internal\XPathParser.cs (40)
815table.Add("last", new ParamInfo(Function.FunctionType.FuncLast, 0, 0, s_temparray1)); 816table.Add("position", new ParamInfo(Function.FunctionType.FuncPosition, 0, 0, s_temparray1)); 817table.Add("name", new ParamInfo(Function.FunctionType.FuncName, 0, 1, s_temparray2)); 818table.Add("namespace-uri", new ParamInfo(Function.FunctionType.FuncNameSpaceUri, 0, 1, s_temparray2)); 819table.Add("local-name", new ParamInfo(Function.FunctionType.FuncLocalName, 0, 1, s_temparray2)); 820table.Add("count", new ParamInfo(Function.FunctionType.FuncCount, 1, 1, s_temparray2)); 821table.Add("id", new ParamInfo(Function.FunctionType.FuncID, 1, 1, s_temparray3)); 822table.Add("string", new ParamInfo(Function.FunctionType.FuncString, 0, 1, s_temparray3)); 823table.Add("concat", new ParamInfo(Function.FunctionType.FuncConcat, 2, 100, s_temparray4)); 824table.Add("starts-with", new ParamInfo(Function.FunctionType.FuncStartsWith, 2, 2, s_temparray5)); 825table.Add("contains", new ParamInfo(Function.FunctionType.FuncContains, 2, 2, s_temparray5)); 826table.Add("substring-before", new ParamInfo(Function.FunctionType.FuncSubstringBefore, 2, 2, s_temparray5)); 827table.Add("substring-after", new ParamInfo(Function.FunctionType.FuncSubstringAfter, 2, 2, s_temparray5)); 828table.Add("substring", new ParamInfo(Function.FunctionType.FuncSubstring, 2, 3, s_temparray6)); 829table.Add("string-length", new ParamInfo(Function.FunctionType.FuncStringLength, 0, 1, s_temparray4)); 830table.Add("normalize-space", new ParamInfo(Function.FunctionType.FuncNormalize, 0, 1, s_temparray4)); 831table.Add("translate", new ParamInfo(Function.FunctionType.FuncTranslate, 3, 3, s_temparray7)); 832table.Add("boolean", new ParamInfo(Function.FunctionType.FuncBoolean, 1, 1, s_temparray3)); 833table.Add("not", new ParamInfo(Function.FunctionType.FuncNot, 1, 1, s_temparray8)); 834table.Add("true", new ParamInfo(Function.FunctionType.FuncTrue, 0, 0, s_temparray8)); 835table.Add("false", new ParamInfo(Function.FunctionType.FuncFalse, 0, 0, s_temparray8)); 836table.Add("lang", new ParamInfo(Function.FunctionType.FuncLang, 1, 1, s_temparray4)); 837table.Add("number", new ParamInfo(Function.FunctionType.FuncNumber, 0, 1, s_temparray3)); 838table.Add("sum", new ParamInfo(Function.FunctionType.FuncSum, 1, 1, s_temparray2)); 839table.Add("floor", new ParamInfo(Function.FunctionType.FuncFloor, 1, 1, s_temparray9)); 840table.Add("ceiling", new ParamInfo(Function.FunctionType.FuncCeiling, 1, 1, s_temparray9)); 841table.Add("round", new ParamInfo(Function.FunctionType.FuncRound, 1, 1, s_temparray9)); 849table.Add("ancestor", Axis.AxisType.Ancestor); 850table.Add("ancestor-or-self", Axis.AxisType.AncestorOrSelf); 851table.Add("attribute", Axis.AxisType.Attribute); 852table.Add("child", Axis.AxisType.Child); 853table.Add("descendant", Axis.AxisType.Descendant); 854table.Add("descendant-or-self", Axis.AxisType.DescendantOrSelf); 855table.Add("following", Axis.AxisType.Following); 856table.Add("following-sibling", Axis.AxisType.FollowingSibling); 857table.Add("namespace", Axis.AxisType.Namespace); 858table.Add("parent", Axis.AxisType.Parent); 859table.Add("preceding", Axis.AxisType.Preceding); 860table.Add("preceding-sibling", Axis.AxisType.PrecedingSibling); 861table.Add("self", Axis.AxisType.Self);
System\Xml\XPath\XPathDocument.cs (2)
389_mapNmsp.Add(new XPathNodeRef(pageElem, idxElem), new XPathNodeRef(pageNmsp, idxNmsp)); 420_idValueMap.Add(id, new XPathNodeRef(pageElem, idxElem));
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
32_lookup.Add(value, id);
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
49_table.Add(func, func);
System\Xml\Xsl\Runtime\XmlILIndex.cs (1)
39_table.Add(key, seq);
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
166_decimalFormats.Add(name, CreateDecimalFormat(infinitySymbol, nanSymbol, characters));
System\Xml\Xsl\XPath\XPathBuilder.cs (27)
791table.Add("last", new FunctionInfo(FuncId.Last, 0, 0, null)); 792table.Add("position", new FunctionInfo(FuncId.Position, 0, 0, null)); 793table.Add("name", new FunctionInfo(FuncId.Name, 0, 1, argNodeSet)); 794table.Add("namespace-uri", new FunctionInfo(FuncId.NamespaceUri, 0, 1, argNodeSet)); 795table.Add("local-name", new FunctionInfo(FuncId.LocalName, 0, 1, argNodeSet)); 796table.Add("count", new FunctionInfo(FuncId.Count, 1, 1, argNodeSet)); 797table.Add("id", new FunctionInfo(FuncId.Id, 1, 1, argAny)); 798table.Add("string", new FunctionInfo(FuncId.String, 0, 1, argAny)); 799table.Add("concat", new FunctionInfo(FuncId.Concat, 2, FunctionInfo.Infinity, null)); 800table.Add("starts-with", new FunctionInfo(FuncId.StartsWith, 2, 2, argString2)); 801table.Add("contains", new FunctionInfo(FuncId.Contains, 2, 2, argString2)); 802table.Add("substring-before", new FunctionInfo(FuncId.SubstringBefore, 2, 2, argString2)); 803table.Add("substring-after", new FunctionInfo(FuncId.SubstringAfter, 2, 2, argString2)); 804table.Add("substring", new FunctionInfo(FuncId.Substring, 2, 3, argFnSubstr)); 805table.Add("string-length", new FunctionInfo(FuncId.StringLength, 0, 1, argString)); 806table.Add("normalize-space", new FunctionInfo(FuncId.Normalize, 0, 1, argString)); 807table.Add("translate", new FunctionInfo(FuncId.Translate, 3, 3, argString3)); 808table.Add("boolean", new FunctionInfo(FuncId.Boolean, 1, 1, argAny)); 809table.Add("not", new FunctionInfo(FuncId.Not, 1, 1, argBoolean)); 810table.Add("true", new FunctionInfo(FuncId.True, 0, 0, null)); 811table.Add("false", new FunctionInfo(FuncId.False, 0, 0, null)); 812table.Add("lang", new FunctionInfo(FuncId.Lang, 1, 1, argString)); 813table.Add("number", new FunctionInfo(FuncId.Number, 0, 1, argAny)); 814table.Add("sum", new FunctionInfo(FuncId.Sum, 1, 1, argNodeSet)); 815table.Add("floor", new FunctionInfo(FuncId.Floor, 1, 1, argDouble)); 816table.Add("ceiling", new FunctionInfo(FuncId.Ceiling, 1, 1, argDouble)); 817table.Add("round", new FunctionInfo(FuncId.Round, 1, 1, argDouble));
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
579paramToTemplate!.Add(xslPar, template); 580paramToFunction!.Add(xslPar, paramFunc);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (9)
304table.Add("current", new FunctionInfo(FuncId.Current, 0, 0, null)); 305table.Add("document", new FunctionInfo(FuncId.Document, 1, 2, s_argFnDocument)); 306table.Add("key", new FunctionInfo(FuncId.Key, 2, 2, s_argFnKey)); 307table.Add("format-number", new FunctionInfo(FuncId.FormatNumber, 2, 3, s_argFnFormatNumber)); 308table.Add("unparsed-entity-uri", new FunctionInfo(FuncId.UnparsedEntityUri, 1, 1, XPathBuilder.argString)); 309table.Add("generate-id", new FunctionInfo(FuncId.GenerateId, 0, 1, XPathBuilder.argNodeSet)); 310table.Add("system-property", new FunctionInfo(FuncId.SystemProperty, 1, 1, XPathBuilder.argString)); 311table.Add("element-available", new FunctionInfo(FuncId.ElementAvailable, 1, 1, XPathBuilder.argString)); 312table.Add("function-available", new FunctionInfo(FuncId.FunctionAvailable, 1, 1, XPathBuilder.argString));
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (2)
758_revApplyTemplatesGraph.Add(mode, templates); 1262compiler.NamedTemplates.Add(newtemplate.Name!, newtemplate);
System.Reflection.Emit (9)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
257_labelTable.Add(emitLabel, new LabelInfo(metadataLabel)); 836_documentToSequencePoints.Add(symbolDoc, sequencePoints);
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
596_docHandles.Add(docWriter, handle); 673_moduleReferences.Add(moduleName, handle); 712_typeReferences.Add(type, typeHandle); 772_memberReferences.Add(memberInfo, memberHandle); 787_memberReferences.Add(pair, memberHandle); 863_assemblyReferences.Add(assembly, handle);
System\Reflection\Emit\TypeBuilderImpl.cs (1)
338_methodOverrides.Add(baseType, im);
System.Reflection.Metadata (12)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (3)
403_guids.Add(guid, result); 456_strings.Add(value, handle); 509_userStrings.Add(value, handle);
System\Reflection\Metadata\Internal\NamespaceCache.cs (6)
124namespaceBuilderTable.Add( 146namespaceTable.Add(group.Key, group.Value.Freeze()); 153namespaceTable.Add(virtualNamespace.Handle, virtualNamespace.Freeze()); 186namespaces.Add(data.FullName, data); 349table.Add(namespaceHandle, newData); 382table.Add(namespaceHandle, newData);
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
104blobs.Add(rawHandle, blob);
System\Reflection\Metadata\MetadataReader.cs (2)
1436groupedNestedTypes.Add(enclosingClass, builder); 1452nestedTypesMap.Add(group.Key, group.Value.ToImmutable());
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
49_fileToPaths.Add(file, paths = new List<string>());
System.Resources.Extensions (11)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (7)
99_caseInsensitiveDups.Add(name, null); 126_caseInsensitiveDups.Add(name, null); 157_caseInsensitiveDups.Add(name, null); 167_caseInsensitiveDups.Add(name, null); 188_caseInsensitiveDups.Add(name, null); 198_caseInsensitiveDups.Add(name, null); 201_preserializedData.Add(name, new PrecannedResource(typeName, data));
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
337caseInsensitiveTable.Add(currentKey, resLoc);
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
76_assemblies.Add(typeName.AssemblyName.FullName, assembly);
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (2)
238_deserializedObjects.Add(record.Id, value); 252_deserializedObjects.Add(id, deserializer.Object);
System.Resources.Writer (7)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (7)
99_caseInsensitiveDups.Add(name, null); 126_caseInsensitiveDups.Add(name, null); 157_caseInsensitiveDups.Add(name, null); 167_caseInsensitiveDups.Add(name, null); 188_caseInsensitiveDups.Add(name, null); 198_caseInsensitiveDups.Add(name, null); 201_preserializedData.Add(name, new PrecannedResource(typeName, data));
System.Runtime.Serialization.Schema (16)
System\Runtime\Serialization\Schema\CodeExporter.cs (16)
62_clrNamespaces.Add(clrNamespace, dataContract.XmlName.Namespace); 63_namespaces.Add(dataContract.XmlName.Namespace, clrNamespace); 84_clrNamespaces.Add(clrNamespace, dataContractNamespace); 92_namespaces.Add(dataContractNamespace, clrNamespace); 96_namespaces.Add(dataContractNamespace, clrNamespace); 106_clrNamespaces.Add(ns, null); 266contractNamesInHierarchy.Add(classContract.XmlName, null); 402_dataContractSet.ProcessedContracts.Add(dataContract, contractCodeDomInfo); 741_clrNamespaces.Add(typeName, null); 940handledContracts.Add(classDataContract, null); 978classDataContract.KnownDataContracts.Add(pair.Key, pair.Value); 1181_dataContractSet.ProcessedContracts.Add(keyValueContract, contractCodeDomInfo); 1488Namespaces.Add(dataContractNamespace, clrNamespace); 1489ClrNamespaces.Add(clrNamespace, dataContractNamespace); 1606fragments.Add(nsFragment, null); 1623previousCollectionTypes.Add(dataContract.OriginalUnderlyingType, dataContract.OriginalUnderlyingType);
System.Security.Cryptography (130)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
31usedTags.Add(tag, fieldName);
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
28usedTags.Add(tag, fieldName);
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
35usedTags.Add(tag, fieldName);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\CryptoConfig.cs (121)
51ht.Add("SHA", OID_OIWSEC_SHA1); 52ht.Add("SHA1", OID_OIWSEC_SHA1); 53ht.Add("System.Security.Cryptography.SHA1", OID_OIWSEC_SHA1); 54ht.Add("System.Security.Cryptography.SHA1CryptoServiceProvider", OID_OIWSEC_SHA1); 55ht.Add("System.Security.Cryptography.SHA1Cng", OID_OIWSEC_SHA1); 56ht.Add("System.Security.Cryptography.SHA1Managed", OID_OIWSEC_SHA1); 58ht.Add("SHA256", OID_OIWSEC_SHA256); 59ht.Add("System.Security.Cryptography.SHA256", OID_OIWSEC_SHA256); 60ht.Add("System.Security.Cryptography.SHA256CryptoServiceProvider", OID_OIWSEC_SHA256); 61ht.Add("System.Security.Cryptography.SHA256Cng", OID_OIWSEC_SHA256); 62ht.Add("System.Security.Cryptography.SHA256Managed", OID_OIWSEC_SHA256); 64ht.Add("SHA384", OID_OIWSEC_SHA384); 65ht.Add("System.Security.Cryptography.SHA384", OID_OIWSEC_SHA384); 66ht.Add("System.Security.Cryptography.SHA384CryptoServiceProvider", OID_OIWSEC_SHA384); 67ht.Add("System.Security.Cryptography.SHA384Cng", OID_OIWSEC_SHA384); 68ht.Add("System.Security.Cryptography.SHA384Managed", OID_OIWSEC_SHA384); 70ht.Add("SHA512", OID_OIWSEC_SHA512); 71ht.Add("System.Security.Cryptography.SHA512", OID_OIWSEC_SHA512); 72ht.Add("System.Security.Cryptography.SHA512CryptoServiceProvider", OID_OIWSEC_SHA512); 73ht.Add("System.Security.Cryptography.SHA512Cng", OID_OIWSEC_SHA512); 74ht.Add("System.Security.Cryptography.SHA512Managed", OID_OIWSEC_SHA512); 76ht.Add("RIPEMD160", OID_OIWSEC_RIPEMD160); 77ht.Add("System.Security.Cryptography.RIPEMD160", OID_OIWSEC_RIPEMD160); 78ht.Add("System.Security.Cryptography.RIPEMD160Managed", OID_OIWSEC_RIPEMD160); 80ht.Add("MD5", OID_RSA_MD5); 81ht.Add("System.Security.Cryptography.MD5", OID_RSA_MD5); 82ht.Add("System.Security.Cryptography.MD5CryptoServiceProvider", OID_RSA_MD5); 83ht.Add("System.Security.Cryptography.MD5Managed", OID_RSA_MD5); 85ht.Add("TripleDESKeyWrap", OID_RSA_SMIMEalgCMS3DESwrap); 87ht.Add("RC2", OID_RSA_RC2CBC); 88ht.Add("System.Security.Cryptography.RC2CryptoServiceProvider", OID_RSA_RC2CBC); 90ht.Add("DES", OID_OIWSEC_desCBC); 91ht.Add("System.Security.Cryptography.DESCryptoServiceProvider", OID_OIWSEC_desCBC); 93ht.Add("TripleDES", OID_RSA_DES_EDE3_CBC); 94ht.Add("System.Security.Cryptography.TripleDESCryptoServiceProvider", OID_RSA_DES_EDE3_CBC); 144ht.Add("RandomNumberGenerator", RNGCryptoServiceProviderType); 145ht.Add("System.Security.Cryptography.RandomNumberGenerator", RNGCryptoServiceProviderType); 148ht.Add("SHA", SHA1CryptoServiceProviderType); 149ht.Add("SHA1", SHA1CryptoServiceProviderType); 150ht.Add("System.Security.Cryptography.SHA1", SHA1CryptoServiceProviderType); 151ht.Add("System.Security.Cryptography.HashAlgorithm", SHA1CryptoServiceProviderType); 153ht.Add("MD5", MD5CryptoServiceProviderType); 154ht.Add("System.Security.Cryptography.MD5", MD5CryptoServiceProviderType); 156ht.Add("SHA256", SHA256DefaultType); 157ht.Add("SHA-256", SHA256DefaultType); 158ht.Add("System.Security.Cryptography.SHA256", SHA256DefaultType); 160ht.Add("SHA384", SHA384DefaultType); 161ht.Add("SHA-384", SHA384DefaultType); 162ht.Add("System.Security.Cryptography.SHA384", SHA384DefaultType); 164ht.Add("SHA512", SHA512DefaultType); 165ht.Add("SHA-512", SHA512DefaultType); 166ht.Add("System.Security.Cryptography.SHA512", SHA512DefaultType); 169ht.Add("System.Security.Cryptography.HMAC", HMACSHA1Type); 170ht.Add("System.Security.Cryptography.KeyedHashAlgorithm", HMACSHA1Type); 171ht.Add("HMACMD5", HMACMD5Type); 172ht.Add("System.Security.Cryptography.HMACMD5", HMACMD5Type); 173ht.Add("HMACSHA1", HMACSHA1Type); 174ht.Add("System.Security.Cryptography.HMACSHA1", HMACSHA1Type); 175ht.Add("HMACSHA256", HMACSHA256Type); 176ht.Add("System.Security.Cryptography.HMACSHA256", HMACSHA256Type); 177ht.Add("HMACSHA384", HMACSHA384Type); 178ht.Add("System.Security.Cryptography.HMACSHA384", HMACSHA384Type); 179ht.Add("HMACSHA512", HMACSHA512Type); 180ht.Add("System.Security.Cryptography.HMACSHA512", HMACSHA512Type); 183ht.Add("RSA", RSACryptoServiceProviderType); 184ht.Add("System.Security.Cryptography.RSA", RSACryptoServiceProviderType); 185ht.Add("System.Security.Cryptography.AsymmetricAlgorithm", RSACryptoServiceProviderType); 190ht.Add("DSA", DSACryptoServiceProviderType); 191ht.Add("System.Security.Cryptography.DSA", DSACryptoServiceProviderType); 197ht.Add(ECDsaIdentifier, ECDsaCngType); 200ht.Add("ECDsaCng", ECDsaCngType); 201ht.Add("System.Security.Cryptography.ECDsaCng", ECDsaCngType); 204ht.Add("DES", DESCryptoServiceProviderType); 205ht.Add("System.Security.Cryptography.DES", DESCryptoServiceProviderType); 207ht.Add("3DES", TripleDESCryptoServiceProviderType); 208ht.Add("TripleDES", TripleDESCryptoServiceProviderType); 209ht.Add("Triple DES", TripleDESCryptoServiceProviderType); 210ht.Add("System.Security.Cryptography.TripleDES", TripleDESCryptoServiceProviderType); 212ht.Add("RC2", RC2CryptoServiceProviderType); 213ht.Add("System.Security.Cryptography.RC2", RC2CryptoServiceProviderType); 215ht.Add("Rijndael", RijndaelManagedType); 216ht.Add("System.Security.Cryptography.Rijndael", RijndaelManagedType); 218ht.Add("System.Security.Cryptography.SymmetricAlgorithm", RijndaelManagedType); 220ht.Add("AES", AesCryptoServiceProviderType); 221ht.Add("AesCryptoServiceProvider", AesCryptoServiceProviderType); 222ht.Add("System.Security.Cryptography.AesCryptoServiceProvider", AesCryptoServiceProviderType); 223ht.Add("AesManaged", AesManagedType); 224ht.Add("System.Security.Cryptography.AesManaged", AesManagedType); 227ht.Add("http://www.w3.org/2000/09/xmldsig#sha1", SHA1CryptoServiceProviderType); 229ht.Add("http://www.w3.org/2001/04/xmlenc#sha256", SHA256DefaultType); 230ht.Add("http://www.w3.org/2001/04/xmlenc#sha512", SHA512DefaultType); 233ht.Add("http://www.w3.org/2001/04/xmlenc#des-cbc", DESCryptoServiceProviderType); 234ht.Add("http://www.w3.org/2001/04/xmlenc#tripledes-cbc", TripleDESCryptoServiceProviderType); 235ht.Add("http://www.w3.org/2001/04/xmlenc#kw-tripledes", TripleDESCryptoServiceProviderType); 237ht.Add("http://www.w3.org/2001/04/xmlenc#aes128-cbc", RijndaelManagedType); 238ht.Add("http://www.w3.org/2001/04/xmlenc#kw-aes128", RijndaelManagedType); 239ht.Add("http://www.w3.org/2001/04/xmlenc#aes192-cbc", RijndaelManagedType); 240ht.Add("http://www.w3.org/2001/04/xmlenc#kw-aes192", RijndaelManagedType); 241ht.Add("http://www.w3.org/2001/04/xmlenc#aes256-cbc", RijndaelManagedType); 242ht.Add("http://www.w3.org/2001/04/xmlenc#kw-aes256", RijndaelManagedType); 245ht.Add("http://www.w3.org/2000/09/xmldsig#hmac-sha1", HMACSHA1Type); 248ht.Add("http://www.w3.org/2001/04/xmldsig-more#md5", MD5CryptoServiceProviderType); 249ht.Add("http://www.w3.org/2001/04/xmldsig-more#sha384", SHA384DefaultType); 250ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-md5", HMACMD5Type); 251ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha256", HMACSHA256Type); 252ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha384", HMACSHA384Type); 253ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha512", HMACSHA512Type); 255ht.Add("2.5.29.10", typeof(X509Certificates.X509BasicConstraintsExtension)); 256ht.Add("2.5.29.19", typeof(X509Certificates.X509BasicConstraintsExtension)); 257ht.Add("2.5.29.14", typeof(X509Certificates.X509SubjectKeyIdentifierExtension)); 258ht.Add("2.5.29.15", typeof(X509Certificates.X509KeyUsageExtension)); 259ht.Add("2.5.29.35", typeof(X509Certificates.X509AuthorityKeyIdentifierExtension)); 260ht.Add("2.5.29.37", typeof(X509Certificates.X509EnhancedKeyUsageExtension)); 261ht.Add(Oids.AuthorityInformationAccess, typeof(X509Certificates.X509AuthorityInformationAccessExtension)); 262ht.Add(Oids.SubjectAltName, typeof(X509Certificates.X509SubjectAlternativeNameExtension)); 265ht.Add("X509Chain", typeof(X509Certificates.X509Chain)); 268ht.Add("1.2.840.113549.1.9.3", "System.Security.Cryptography.Pkcs.Pkcs9ContentType, " + AssemblyName_Pkcs); 269ht.Add("1.2.840.113549.1.9.4", "System.Security.Cryptography.Pkcs.Pkcs9MessageDigest, " + AssemblyName_Pkcs); 270ht.Add("1.2.840.113549.1.9.5", "System.Security.Cryptography.Pkcs.Pkcs9SigningTime, " + AssemblyName_Pkcs); 271ht.Add("1.3.6.1.4.1.311.88.2.1", "System.Security.Cryptography.Pkcs.Pkcs9DocumentName, " + AssemblyName_Pkcs); 272ht.Add("1.3.6.1.4.1.311.88.2.2", "System.Security.Cryptography.Pkcs.Pkcs9DocumentDescription, " + AssemblyName_Pkcs);
System\Security\Cryptography\OidLookup.cs (3)
138s_oidToFriendlyName.Add(oid, primaryFriendlyName); 139s_friendlyNameToOid.Add(primaryFriendlyName, oid); 143s_friendlyNameToOid.Add(additionalName, oid);
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
29usedTags.Add(tag, fieldName);
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
28usedTags.Add(tag, fieldName);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
130_headerParameters.Add(key, value);
System.Security.Cryptography.Pkcs (32)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
31usedTags.Add(tag, fieldName);
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
35usedTags.Add(tag, fieldName);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (1)
31usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
29usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (1)
28usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (5)
19lookup.Add(Oids.DsaWithSha1, new DSACmsSignature(Oids.DsaWithSha1, HashAlgorithmName.SHA1)); 20lookup.Add(Oids.DsaWithSha256, new DSACmsSignature(Oids.DsaWithSha256, HashAlgorithmName.SHA256)); 21lookup.Add(Oids.DsaWithSha384, new DSACmsSignature(Oids.DsaWithSha384, HashAlgorithmName.SHA384)); 22lookup.Add(Oids.DsaWithSha512, new DSACmsSignature(Oids.DsaWithSha512, HashAlgorithmName.SHA512)); 23lookup.Add(Oids.Dsa, new DSACmsSignature(null, default));
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (8)
16lookup.Add(Oids.ECDsaWithSha1, new ECDsaCmsSignature(Oids.ECDsaWithSha1, HashAlgorithmName.SHA1)); 17lookup.Add(Oids.ECDsaWithSha256, new ECDsaCmsSignature(Oids.ECDsaWithSha256, HashAlgorithmName.SHA256)); 18lookup.Add(Oids.ECDsaWithSha384, new ECDsaCmsSignature(Oids.ECDsaWithSha384, HashAlgorithmName.SHA384)); 19lookup.Add(Oids.ECDsaWithSha512, new ECDsaCmsSignature(Oids.ECDsaWithSha512, HashAlgorithmName.SHA512)); 21lookup.Add(Oids.ECDsaWithSha3_256, new ECDsaCmsSignature(Oids.ECDsaWithSha3_256, HashAlgorithmName.SHA3_256)); 22lookup.Add(Oids.ECDsaWithSha3_384, new ECDsaCmsSignature(Oids.ECDsaWithSha3_384, HashAlgorithmName.SHA3_384)); 23lookup.Add(Oids.ECDsaWithSha3_512, new ECDsaCmsSignature(Oids.ECDsaWithSha3_512, HashAlgorithmName.SHA3_512)); 25lookup.Add(Oids.EcPublicKey, new ECDsaCmsSignature(null, null));
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (9)
18lookup.Add(Oids.Rsa, new RSAPkcs1CmsSignature(null, null)); 19lookup.Add(Oids.RsaPkcs1Sha1, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha1, HashAlgorithmName.SHA1)); 20lookup.Add(Oids.RsaPkcs1Sha256, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha256, HashAlgorithmName.SHA256)); 21lookup.Add(Oids.RsaPkcs1Sha384, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha384, HashAlgorithmName.SHA384)); 22lookup.Add(Oids.RsaPkcs1Sha512, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha512, HashAlgorithmName.SHA512)); 24lookup.Add(Oids.RsaPkcs1Sha3_256, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha3_256, HashAlgorithmName.SHA3_256)); 25lookup.Add(Oids.RsaPkcs1Sha3_384, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha3_384, HashAlgorithmName.SHA3_384)); 26lookup.Add(Oids.RsaPkcs1Sha3_512, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha3_512, HashAlgorithmName.SHA3_512)); 28lookup.Add(Oids.RsaPss, new RSAPssCmsSignature());
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\ConnectionPool.cs (3)
128_endpointPools.Add(key, result); 687_forwardTable.Add(uri, pipeName); 693_reverseTable.Add(pipeName, uris);
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
47_registry.Add(key, registryEntry);
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
116_connectionMapping.Add(connection, new IdlingConnectionSettings());
System.ServiceModel.Syndication (23)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (8)
162category.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 583attrs.Add(new XmlQualifiedName(name, ns), value); 595result.AttributeExtensions.Add(attr, attrs[attr]); 677result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 737result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 851result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 944link.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 1038result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (5)
204inlineCategories.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 274referencedCategories.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 380result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 458result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 528result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (1)
22_attributeExtensions.Add(key, source._attributeExtensions[key]);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (7)
240link.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 288category.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 334result.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 437feed.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 539link.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 584person.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 649result.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val);
System\ServiceModel\Syndication\SyndicationContent.cs (1)
111AttributeExtensions.Add(key, source._attributeExtensions[key]);
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
41AttributeExtensions.Add(new XmlQualifiedName(name, ns), value);
System.Text.Encoding.CodePages (3)
System\Text\CodePagesEncodingProvider.cs (1)
70_encodings.Add(codepage, result);
System\Text\EncodingTable.cs (2)
46s_nameToCodePageCache.Add(name, codePage); 181cache.Add(codePage, name);
System.Text.Json (4)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
126nodeIndex.Add(childNode, index);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
538(enumMemberAttributes ??= new(StringComparer.Ordinal)).Add(field.Name, attribute.Name);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
89converters.Add(converter.Type!, converter);
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
53_objectToReferenceIdMap.Add(value, referenceId);
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
126nodeIndex.Add(childNode, index);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (2)
257_stateCache.Add(key, state); // Add to cache first to make 1 the first state ID 333_nfaIdByCoreId.Add(coreState.Id, nfaStateId);
System.Text.RegularExpressions.Generator (3)
RegexGenerator.cs (2)
186requiredHelpers.Add(helper.Key, helper.Value); 205emittedExpressions.Add(key, regexMethod);
RegexGenerator.Emitter.cs (1)
620requiredHelpers.Add(helperName, lines.ToArray());
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
98_limiters.Add(partition.PartitionKey, limiter);
System.Threading.Tasks.Dataflow (3)
Internal\QueuedMap.cs (1)
188_mapKeyToIndex.Add(key, indexOfKeyInQueue);
Internal\ReorderingBuffer.cs (1)
87_reorderingBuffer.Add(id, new KeyValuePair<bool, TOutput>(itemIsValid, item!));
Internal\TargetRegistry.cs (1)
94_targetInformation.Add(target, node);
System.Windows.Forms (23)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
113_extenderCache.Add(control, extender);
System\Windows\Forms\ActiveX\AxHost.cs (2)
2583_propertyInfos.Add(propInfo.Name, propInfo); 2623_properties.Add(propName, prop);
System\Windows\Forms\Application.ComponentManager.cs (1)
84OleComponents.Add(_cookieCounter, entry);
System\Windows\Forms\Control.cs (1)
1881_dpiFonts.Add(newDpi, scaledFont);
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (2)
22s_acWindows.Add(acHandle, this); 96s_acWindows.Add(acHandle, null);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObjectCollection.cs (1)
23Add(key, new ComboBoxItemAccessibleObject(owner, key));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6816_converters.Add(type, converter);
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
208_itemAccessibleObjects.Add(item, value);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4046_listItemsTable.Add(itemID, item);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (2)
138_listViewSubItemAccessibleObjects.Add(accessibleChildIndex, imageAccessibleObject); 156_listViewSubItemAccessibleObjects.Add(accessibleChildIndex, fakeAccessibleObject);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
391owner.Shortcuts.Add(value, this); 934Owner.Shortcuts.Add(shortcut, this);
System\Windows\Forms\DataBinding\BindingContext.cs (1)
278_listManagers.Add(key, new WeakReference(bindingManagerBase, false));
System\Windows\Forms\Form.cs (2)
4480_dpiFormSizes.Add(e.DeviceDpiNew, new Size(e.SuggestedRectangle.Width, e.SuggestedRectangle.Height)); 4486_dpiFormSizes.Add(e.DeviceDpiOld, Size);
System\Windows\Forms\Input\KeysConverter.cs (2)
79CultureToKeyName.Add(cultureInfo, localizedNames); 80CultureToDisplayOrder.Add(cultureInfo, localizedOrder);
System\Windows\Forms\OLE\DataObject.Composition.Binder.cs (3)
145_userTypes.Add(typeName, type); 161s_knownTypes.Add(type.ToTypeName(), type); 266_userTypes.Add(typeName, resolved);
System.Windows.Forms.Design (16)
System\ComponentModel\Design\ComponentDesigner.cs (1)
434props.Add(prop.Name, new(prop, Component));
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
65_descriptors.Add(propertyName, descriptor);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
216categories.Add(categoryName, category);
System\ComponentModel\Design\DesignerActionService.cs (1)
74_designerActionLists.Add(comp, designerActionListCollection);
System\ComponentModel\Design\MenuCommandService.cs (1)
95_commandGroups.Add(commandId.Guid, commandsList);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
179assemblies.Add(a, a.GetName(true));
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
58originalValues.Add(originalValue, 1);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
190resourceTypes.Add((string)entry.Key, data); 281resourceList.Add((string)entry.Key, data);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
245_snapLineToBounds.Add(snapLine, controlRect); 249_snapLineToBounds.Add(snapLine, controlBounds);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
251_componentToDesigner.Add(component, controlDesigner);
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (1)
111s_commandStatusHash.Add(statusHandler, state);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1282hash.Add(props[i].Name, props[i]);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1988_imageListCacheByDPI.Add(ScaleHelper.OneHundredPercentLogicalDpi, ImageList); 2010_imageListCacheByDPI.Add(dpi, scaledImageList);
System.Windows.Forms.Primitives (2)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (2)
55_members.Add( 64_reverseLookup.Add(name, dispId);
System.Windows.Forms.Primitives.TestUtilities (1)
SystemCOLORs.cs (1)
85dictionary.Add(colorRef, colorList);
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
238semanticModelCache.Add(syntaxTree, model);
System.Windows.Forms.Tests (3)
System\Resources\ResXResourceWriterTests.cs (1)
36dictionary.Add(dictionaryEnumerator.Key, dictionaryEnumerator.Value);
System\Windows\Forms\ClipboardTests.cs (2)
1147_formatToTypeName.Add(format, data!.GetType().AssemblyQualifiedName!); 1148_formatToJson.Add(format, JsonSerializer.SerializeToUtf8Bytes(data));
System.Xaml (49)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
181_assemblies.Add(key, result);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (12)
59_elementHandler.Add(AlternateContent, new HandleElementCallback(HandleAlternateContent)); 60_elementHandler.Add(Choice, new HandleElementCallback(HandleChoice)); 61_elementHandler.Add(Fallback, new HandleElementCallback(HandleFallback)); 63_attributeHandler.Add(Ignorable, new HandleAttributeCallback(HandleIgnorable)); 64_attributeHandler.Add(MustUnderstand, new HandleAttributeCallback(HandleMustUnderstand)); 65_attributeHandler.Add(ProcessContent, new HandleAttributeCallback(HandleProcessContent)); 66_attributeHandler.Add(PreserveElements, new HandleAttributeCallback(HandlePreserveElements)); 67_attributeHandler.Add(PreserveAttributes, new HandleAttributeCallback(HandlePreserveAttributes)); 1820_processContents.Add(namespaceName, processContentSet); 1835_preserveElements.Add(namespaceName, preserveElementSet); 1850_preserveAttributes.Add(namespaceName, preserveAttributeSet); 2014_names.Add(itemName, itemName);
System\Xaml\Context\NameFixupGraph.cs (2)
82_dependenciesByChildObject.Add(fixupToken.ReferencedObject, fixupToken); 466dict.Add(key, tokenList);
System\Xaml\Context\XamlCommonFrame.cs (2)
55Namespaces.Add(prefix, xamlNs); 68Namespaces.Add(ns.Key, ns.Value);
System\Xaml\Context\XamlParserContext.cs (1)
34_prescopeNamespaces.Add(prefix, xamlNS);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (3)
1903PendingCollectionAdds.Add(parentCollection, pendingCollection); 1936PendingKeyConversionContexts.Add(parentCollection, new ObjectWriterContext(savedContext, null, null, Runtime)); 2060ctx.ParentPreconstructionPropertyValues.Add(parentProperty, value);
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
334result.Add(oldns, newns);
System\Xaml\Runtime\DynamicMethodRuntime.cs (6)
148ConverterInstances.Add(clrType, result); 181DelegateCreators.Add(targetType, creator); 209FactoryDelegates.Add(ctor, factoryDelegate); 221FactoryDelegates.Add(factory, factoryDelegate); 238PropertyGetDelegates.Add(getter, getterDelegate); 255PropertySetDelegates.Add(setter, setterDelegate);
System\Xaml\Schema\Reflector.cs (2)
144bracketCharacterAttributeList.Add(bracketCharactersAttribute.OpeningBracket, bracketCharactersAttribute.ClosingBracket); 401bracketCharacterList.Add(openingBracket, closingBracket);
System\Xaml\Schema\TypeReflector.cs (4)
508result.Add(currentProp.Name, currentProp); 558result.Add(currentEvent.Name, currentEvent); 874dict.Add(name, list); 1132Add(name, member);
System\Xaml\Schema\XamlTypeInvoker.cs (1)
161addMethods.Add(_xamlType.ItemType, _xamlType.AddMethod);
System\Xaml\XamlObjectReader.cs (8)
2428objectGraphTable.Add(value, info); 2437serviceProviderTable.Add(value, name); 2507namespaceToPrefixMap.Add(ns, string.Empty); 2508prefixToNamespaceMap.Add(string.Empty, ns); 2578namespaceToPrefixMap.Add(namespaceDeclaration.Namespace, namespaceDeclaration.Prefix); 2579prefixToNamespaceMap.Add(namespaceDeclaration.Prefix, namespaceDeclaration.Namespace); 2617namespaceToPrefixMap.Add(ns, prefix); 2618prefixToNamespaceMap.Add(prefix, ns);
System\Xaml\XamlSchemaContext.cs (2)
580map.Add(propertyName, splBracketCharacters); 583map.Add(constructorArgumentName, splBracketCharacters);
System\Xaml\XamlType.cs (2)
1573result.Add(1, GetReadOnly(typeVector)); 1599ctorDict.Add(typeVector.Length, GetReadOnly(typeVector));
System\Xaml\XamlXmlWriter.cs (2)
375prefixAssignmentHistory.Add(prefix, ns); 2175dictionary.Add(member, true);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
209_defaultTasksByToolset.Add(toolsVersion, usingTasks);
VBCSCompiler.UnitTests (1)
CompilerServerTests.cs (1)
134resetVariables.Add(variable.Key, Environment.GetEnvironmentVariable(variable.Key));
WindowsFormsIntegration (74)
System\Windows\Integration\Convert.cs (53)
34_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.AppStarting, SWI.Cursors.AppStarting); 35_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Arrow, SWI.Cursors.Arrow); 36_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Cross, SWI.Cursors.Cross); 37_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Hand, SWI.Cursors.Hand); 38_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Help, SWI.Cursors.Help); 39_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.HSplit, SWI.Cursors.Arrow); //No equivalent 40_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.IBeam, SWI.Cursors.IBeam); 41_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.No, SWI.Cursors.No); 42_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.NoMove2D, SWI.Cursors.ScrollAll); 43_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.NoMoveHoriz, SWI.Cursors.ScrollWE); 44_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.NoMoveVert, SWI.Cursors.ScrollNS); 45_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanEast, SWI.Cursors.ScrollE); 46_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanNorth, SWI.Cursors.ScrollN); 47_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanNE, SWI.Cursors.ScrollNE); 48_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanNW, SWI.Cursors.ScrollNW); 49_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanSouth, SWI.Cursors.ScrollS); 50_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanSE, SWI.Cursors.ScrollSE); 51_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanSW, SWI.Cursors.ScrollSW); 52_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanWest, SWI.Cursors.ScrollW); 53_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeAll, SWI.Cursors.SizeAll); 54_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeNESW, SWI.Cursors.SizeNESW); 55_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeNS, SWI.Cursors.SizeNS); 56_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeNWSE, SWI.Cursors.SizeNWSE); 57_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeWE, SWI.Cursors.SizeWE); 58_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.UpArrow, SWI.Cursors.UpArrow); 59_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.VSplit, SWI.Cursors.Arrow); //No equivalent 60_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.WaitCursor, SWI.Cursors.Wait); 74_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.AppStarting, SWF.Cursors.AppStarting); 75_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Arrow, SWF.Cursors.Arrow); 76_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Cross, SWF.Cursors.Cross); 77_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Hand, SWF.Cursors.Hand); 78_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Help, SWF.Cursors.Help); 79_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.IBeam, SWF.Cursors.IBeam); 80_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.No, SWF.Cursors.No); 81_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.None, SWF.Cursors.Default); 82_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollAll, SWF.Cursors.NoMove2D); 83_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollWE, SWF.Cursors.NoMoveHoriz); 84_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollNS, SWF.Cursors.NoMoveVert); 85_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollE, SWF.Cursors.PanEast); 86_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollN, SWF.Cursors.PanNorth); 87_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollNE, SWF.Cursors.PanNE); 88_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollNW, SWF.Cursors.PanNW); 89_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollS, SWF.Cursors.PanSouth); 90_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollSE, SWF.Cursors.PanSE); 91_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollSW, SWF.Cursors.PanSW); 92_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollW, SWF.Cursors.PanWest); 93_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeAll, SWF.Cursors.SizeAll); 94_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeNESW, SWF.Cursors.SizeNESW); 95_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeNS, SWF.Cursors.SizeNS); 96_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeNWSE, SWF.Cursors.SizeNWSE); 97_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeWE, SWF.Cursors.SizeWE); 98_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.UpArrow, SWF.Cursors.UpArrow); 99_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Wait, SWF.Cursors.WaitCursor);
System\Windows\Integration\ElementHostPropertyMap.cs (9)
37DefaultTranslators.Add("BackColor", BackgroundPropertyTranslator); 38DefaultTranslators.Add("BackgroundImage", BackgroundPropertyTranslator); 39DefaultTranslators.Add("BackgroundImageLayout", BackgroundPropertyTranslator); 40DefaultTranslators.Add("Cursor", CursorPropertyTranslator); 41DefaultTranslators.Add("Enabled", EnabledPropertyTranslator); 42DefaultTranslators.Add("Font", FontPropertyTranslator); 43DefaultTranslators.Add("RightToLeft", RightToLeftPropertyTranslator); 44DefaultTranslators.Add("Visible", VisiblePropertyTranslator); 45DefaultTranslators.Add("ImeMode", ImeModePropertyTranslator);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (12)
32DefaultTranslators.Add("Background", BackgroundPropertyTranslator); 33DefaultTranslators.Add("FlowDirection", FlowDirectionPropertyTranslator); 34DefaultTranslators.Add("FontStyle", FontStylePropertyTranslator); 35DefaultTranslators.Add("FontWeight", FontWeightPropertyTranslator); 36DefaultTranslators.Add("FontFamily", FontFamilyPropertyTranslator); 37DefaultTranslators.Add("FontSize", FontSizePropertyTranslator); 38DefaultTranslators.Add("Foreground", ForegroundPropertyTranslator); 39DefaultTranslators.Add("IsEnabled", IsEnabledPropertyTranslator); 40DefaultTranslators.Add("Padding", PaddingPropertyTranslator); 41DefaultTranslators.Add("Visibility", VisibilityPropertyTranslator); 46DefaultTranslators.Add("Cursor", EmptyPropertyTranslator); 47DefaultTranslators.Add("ForceCursor", EmptyPropertyTranslator);
XmlFileLogger (2)
PropertyBag.cs (2)
116_properties.Add(key, value); 122_properties.Add(key, value);
XmlFormattersWebSite (4)
Controllers\IEnumerableController.cs (4)
53error1.Add("key1", "key1-error"); 54error1.Add("key2", "key2-error"); 57error2.Add("key3", "key1-error"); 58error2.Add("key4", "key2-error");
xunit.console (8)
CommandLine.cs (1)
480project.Output.Add(optionName, option.Value);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (1)
307libraries.Add(Pool(key), ReadLibrary(librariesJson.ValueAsJsonObject(key)));
common\DictionaryExtensions.cs (1)
45result.Add(key, valueSelector(inputValue));
Utility\TransformFactory.cs (5)
24availableTransforms.Add("xml", new Transform 30availableTransforms.Add("xmlv1", new Transform 36availableTransforms.Add("html", new Transform 42availableTransforms.Add("nunit", new Transform 48availableTransforms.Add("junit", new Transform