Implemented interface member:
method
Add
System.Collections.Generic.IDictionary<TKey, TValue>.Add(TKey, TValue)
3910 references to Add
Aspire.Dashboard (6)
Components\Controls\Chart\PlotlyChart.razor.cs (1)
145exemplarGroups.Add(g, groupExemplars);
Extensions\FluentUIExtensions.cs (1)
25attributes.Add(attribute, value);
Model\TraceHelpers.cs (1)
107resourceFirstTimes.Add(
Otlp\Model\OtlpInstrument.cs (3)
67Dimensions.Add(dimension.Attributes, dimension); 122newInstrument.KnownAttributeValues.Add(item.Key, item.Value.ToList()); 126newInstrument.Dimensions.Add(item.Key, DimensionScope.Clone(item.Value, valuesStart, valuesEnd));
Aspire.Hosting (4)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (2)
176node.Add(part, newNode); 192node.Add(fileName, new FileTree
Dcp\Model\Schema.cs (1)
12_byType.Add(typeof(T), (kind, resource));
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
51remappedUrls.Add(originalUrlSnapshot, newUrlSnapshot);
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
57serviceResource.EndpointMappings.Add(endpoint.Name,
Aspire.Hosting.Foundry (9)
HostedAgent\HostedAgentBuilderExtension.cs (9)
224ctx.EnvironmentVariables.Add("OTEL_INSTRUMENTATION_OPENAI_AGENTS_ENABLED", "true"); 225ctx.EnvironmentVariables.Add("OTEL_INSTRUMENTATION_OPENAI_AGENTS_CAPTURE_CONTENT", "true"); 226ctx.EnvironmentVariables.Add("OTEL_INSTRUMENTATION_OPENAI_AGENTS_CAPTURE_METRICS", "true"); 227ctx.EnvironmentVariables.Add("OTEL_GENAI_CAPTURE_MESSAGES", "true"); 228ctx.EnvironmentVariables.Add("OTEL_GENAI_CAPTURE_SYSTEM_INSTRUCTIONS", "true"); 229ctx.EnvironmentVariables.Add("OTEL_GENAI_CAPTURE_TOOL_DEFINITIONS", "true"); 230ctx.EnvironmentVariables.Add("OTEL_GENAI_EMIT_OPERATION_DETAILS", "true"); 231ctx.EnvironmentVariables.Add("OTEL_GENAI_AGENT_NAME", ctx.Resource.Name); 232ctx.EnvironmentVariables.Add("OTEL_GENAI_AGENT_ID", ctx.Resource.Name);
Aspire.Hosting.Kubernetes (1)
Extensions\ResourceExtensions.cs (1)
471pvc.Spec.Resources.Requests.Add("storage", context.Parent.DefaultStorageSize);
Aspire.Hosting.Yarp (3)
YarpEnvConfigGenerator.cs (3)
42environmentVariables.Add(prefix, obj.ToString() ?? ""); 69environmentVariables.Add(prefix, version.ToString()); 80environmentVariables.Add($"{prefix}__{counter}", protocol.ToString());
cdac-build-tool (1)
DataDescriptorModel.cs (1)
270fields.Add(fieldName, fieldBuilder.Build(typeName, fieldName));
ConfigurationSchemaGenerator (3)
ConfigurationBindingGenerator.ForSchemaGeneration.cs (1)
80_createdTypeSpecs.Add(typeSymbol, currentResult);
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
114_createdTypeSpecs.Add(typeSymbol, CreateTypeSpec(typeParseInfo));
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (1)
156_seenTransitiveTypes.Add(typeRef, shouldRegister);
crossgen2 (7)
Program.cs (5)
179_allInputFilePaths.Add(inputFile.Key, inputFile.Value); 180inputFilePaths.Add(inputFile.Key, inputFile.Value); 200_allInputFilePaths.Add(unrootedInputFile.Key, unrootedInputFile.Value); 201unrootedInputFilePaths.Add(unrootedInputFile.Key, unrootedInputFile.Value); 281singleCompilationInputFilePaths.Add(inputFile.Key, inputFile.Value);
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
356originalToReproPackageFileName.Add(originalPath, reproPackagePath); 396dictionary.Add(simpleName, fullFileName);
CSharpSyntaxGenerator (44)
Grammar\GrammarGenerator.cs (43)
137rules.Add("Utf8StringLiteralToken", [Sequence([RuleReference("StringLiteralToken"), utf8Suffix])]); 138rules.Add("Utf8MultiLineRawStringLiteralToken", [Sequence([RuleReference("MultiLineRawStringLiteralToken"), utf8Suffix])]); 139rules.Add("Utf8SingleLineRawStringLiteralToken", [Sequence([RuleReference("SingleLineRawStringLiteralToken"), utf8Suffix])]); 149rules.Add("Modifier", JoinWords(modifierWords)); 153rules.Add("Keyword", keywords); 156rules.Add("OperatorToken", JoinWords(operatorTokens.Select(SyntaxFacts.GetText))); 158rules.Add("PunctuationToken", JoinWords(GetMembers<SyntaxKind>() 165rules.Add("IdentifierToken", [Sequence([Text("@").Optional, RuleReference("IdentifierStartCharacter"), RuleReference("IdentifierPartCharacter")])]); 166rules.Add("IdentifierStartCharacter", [RuleReference("LetterCharacter"), RuleReference("UnderscoreCharacter")]); 167rules.Add("IdentifierPartCharacter", [RuleReference("LetterCharacter"), RuleReference("DecimalDigitCharacter"), RuleReference("ConnectingCharacter"), RuleReference("CombiningCharacter"), RuleReference("FormattingCharacter")]); 168rules.Add("UnderscoreCharacter", [Text("_"), new("""'\\u005' /* unicode_escape_sequence for underscore */""")]); 169rules.Add("LetterCharacter", [ 173rules.Add("CombiningCharacter", [ 177rules.Add("DecimalDigitCharacter", [ 181rules.Add("ConnectingCharacter", [ 185rules.Add("FormattingCharacter", [ 198rules.Add("RealLiteralToken", [ 205rules.Add("ExponentPart", [Sequence([Choice(anyCasing("E")), Choice([Text("+"), Text("-")]).Optional, decimalDigitPlus])]); 206rules.Add("RealTypeSuffix", [.. anyCasing("F"), .. anyCasing("D"), .. anyCasing("M")]); 211rules.Add("NumericLiteralToken", [RuleReference("IntegerLiteralToken"), RuleReference("RealLiteralToken")]); 220rules.Add("IntegerLiteralToken", [RuleReference("DecimalIntegerLiteralToken"), RuleReference("HexadecimalIntegerLiteralToken")]); 221rules.Add("DecimalIntegerLiteralToken", [Sequence([decimalDigitPlus, integerTypeSuffixOpt])]); 222rules.Add("IntegerTypeSuffix", [.. anyCasing("U"), .. anyCasing("L"), .. anyCasing("UL"), .. anyCasing("LU")]); 223rules.Add("DecimalDigit", [.. productionRange('0', '9')]); 224rules.Add("HexadecimalDigit", [decimalDigit, .. productionRange('A', 'F'), .. productionRange('a', 'f')]); 225rules.Add("HexadecimalIntegerLiteralToken", [Sequence([Choice([Text("0x"), Text("0X")]), RuleReference("HexadecimalDigit").OneOrMany, integerTypeSuffixOpt])]); 233rules.Add("SimpleEscapeSequence", [Text(@"\'"), Text(@"\"""), Text(@"\\"), Text(@"\0"), Text(@"\a"), Text(@"\b"), Text(@"\f"), Text(@"\n"), Text(@"\r"), Text(@"\t"), Text(@"\v")]); 234rules.Add("HexadecimalEscapeSequence", [Sequence([Text(@"\x"), hexDigit, .. repeat(hexDigitOpt, 3)])]); 235rules.Add("UnicodeEscapeSequence", [Sequence([Text(@"\u"), .. repeat(hexDigit, 4)]), Sequence([Text(@"\U"), .. repeat(hexDigit, 8)])]); 240rules.Add("StringLiteralToken", [RuleReference("RegularStringLiteralToken"), RuleReference("VerbatimStringLiteralToken")]); 242rules.Add("RegularStringLiteralToken", [Sequence([Text("\""), RuleReference("RegularStringLiteralCharacter").ZeroOrMany, Text("\"")])]); 243rules.Add("RegularStringLiteralCharacter", [RuleReference("SingleRegularStringLiteralCharacter"), RuleReference("SimpleEscapeSequence"), RuleReference("HexadecimalEscapeSequence"), RuleReference("UnicodeEscapeSequence")]); 244rules.Add("SingleRegularStringLiteralCharacter", [new("""/* ~["\\\u000D\u000A\u0085\u2028\u2029] anything but ", \, and new_line_character */""")]); 246rules.Add("VerbatimStringLiteralToken", [Sequence([Text("@\""), RuleReference("VerbatimStringLiteralCharacter").ZeroOrMany, Text("\"")])]); 247rules.Add("VerbatimStringLiteralCharacter", [RuleReference("SingleVerbatimStringLiteralCharacter"), RuleReference("QuoteEscapeSequence")]); 248rules.Add("SingleVerbatimStringLiteralCharacter", [new("/* anything but quotation mark (U+0022) */")]); 250rules.Add("QuoteEscapeSequence", [Text("\"\"")]); 252rules.Add("InterpolatedMultiLineRawStringStartToken", [new(""""'$'+ '"""' '"'*"""")]); 253rules.Add("InterpolatedRawStringEndToken", [new(""""'"""' '"'* /* must match number of quotes in raw_string_start_token */"""")]); 254rules.Add("InterpolatedSingleLineRawStringStartToken", [new(""""'$'+ '"""' '"'*"""")]); 259rules.Add("CharacterLiteralToken", [Sequence([Text("'"), RuleReference("Character"), Text("'")])]); 260rules.Add("Character", [RuleReference("SingleCharacter"), RuleReference("SimpleEscapeSequence"), RuleReference("HexadecimalEscapeSequence"), RuleReference("UnicodeEscapeSequence")]); 261rules.Add("SingleCharacter", [new("""/* ~['\\\u000D\u000A\u0085\u2028\u2029] anything but ', \\, and new_line_character */""")]);
SignatureWriter.cs (1)
25_typeMap.Add(tree.Root, null);
dotnet (14)
CommandFactory\CommandResolution\MSBuildProject.cs (3)
115globalProperties.Add("TargetFramework", framework.GetShortFolderName()); 120globalProperties.Add("OutputPath", outputPath); 125globalProperties.Add("Configuration", configuration);
Commands\New\BuiltInTemplatePackageProvider.cs (1)
83versionFileInfo.Add(directory, versionInfo);
Commands\Test\MTP\IPC\NamedPipeBase.cs (2)
16_typeSerializer.Add(type, namedPipeSerializer); 17_idSerializer.Add(namedPipeSerializer.Id, namedPipeSerializer);
Commands\Test\MTP\IPC\Serializers\HandshakeMessageSerializer.cs (1)
21properties.Add(ReadByte(stream), ReadString(stream));
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
198modulesWithMissingOptions.Add(isBuiltIn, groupedModules);
Commands\Test\MTP\SolutionAndProjectUtility.cs (4)
202globalProperties.Add(ProjectProperties.TargetFramework, tfm); 207globalProperties.Add(ProjectProperties.Configuration, configuration); 212globalProperties.Add(ProjectProperties.Platform, platform); 223globalProperties.Add(property.Key, property.Value);
Commands\Test\MTP\Terminal\TestProgressState.cs (1)
94_testUidToResults.Add(testNodeUid, incrementTestNodeInfoEntry((Passed: 0, Skipped: 0, Failed: 0, LastAttemptNumber: currentAttemptNumber)));
Telemetry\TelemetryClient.cs (1)
188carrierMap.Add("tracestate", [traceState]);
dotnet-format (3)
Analyzers\AnalyzerReferenceInformationProvider.cs (1)
72s_pathsToAssemblies.Add(path, analyzerAssembly);
Analyzers\CodeAnalysisResult.cs (1)
35_dictionary.Add(project, new List<Diagnostic>() { diagnostic });
Analyzers\CodeStyleInformationProvider.cs (1)
60analyzersByLanguage.Add(project.Language, analyzersAndFixers);
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
595s_referencedic.Add(filename, reference);
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)
885specifiedTypes.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)
293wsdlImporter.State.Add(typeof(FaultImportOptions), new FaultImportOptions() { UseMessageFormat = useMessageFormat });
dotnet-user-jwts (1)
Helpers\DevJwtCliHelpers.cs (1)
310claims.Add(key, value);
dotnet-watch (3)
Watch\DotNetWatcher.cs (1)
81processSpec.EnvironmentVariables.Add(name, value);
Watch\MsBuildFileSetFactory.cs (1)
111fileItems.Add(filePath, new FileItem
Watch\StaticFileHandler.cs (1)
41refreshRequests.Add(refreshServer, filesPerServer = []);
DotNetWatchTasks (2)
FileSetSerializer.cs (2)
38projectItems.Add(projectFullPath, project = new ProjectItems()); 55project.StaticFileSetBuilder.Add(fullPath, staticWebAssetPath);
GenerateDocumentationAndConfigFiles (45)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (1)
234releaseTrackingDataByRulesBuilder.Add(ruleId, releaseTrackingDataForRuleBuilder);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
70perTreeOptionsBuilder.Add(tree, new Lazy<SyntaxTreeCategorizedAnalyzerConfigOptions>(() => Create(tree, analyzerConfigOptionsProvider)));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (7)
152wildcardNamesBuilder.Add(AllKinds, associatedValues); 155associatedValues.Add(parts.SymbolName[0..^1], parts.AssociatedValue); 175wildcardNamesBuilder.Add(symbolKind.Value, associatedValues); 178associatedValues.Add(parts.SymbolName[2..^1], parts.AssociatedValue); 186namesBuilder.Add(parts.SymbolName, parts.AssociatedValue); 216symbolsBuilder.Add(constituentNamespace, parts.AssociatedValue); 223symbolsBuilder.Add(symbol, parts.AssociatedValue);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
56instance.Add(kvp.Key, kvp.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
ILAssembler (8)
DocumentCompiler.cs (1)
35loadedDocuments.Add(includedDocument.Path, includedDocument);
EntityRegistry.cs (1)
604cache.Add(key, entity);
GrammarVisitor.cs (2)
1618_mappedFieldDataNames.Add(name, _mappedFieldData.Count); 3652localsScope.Add(loc.Name, currentMethod.AllLocals.Count);
NamedElementList.cs (2)
44_elementsByName.Add(item.Name, item); 63_elementsByName.Add(item.Name, item);
PreprocessedTokenSource.cs (2)
130_definedVars.Add(identifier.Text, StringHelpers.ParseQuotedString(valueMaybe.Text)); 135_definedVars.Add(identifier.Text, null);
ilc (4)
ConfigurablePInvokePolicy.cs (2)
24_directPInvokes.Add("*", null); 69_directPInvokes.Add(libraryName, entrypointSet = new HashSet<string>());
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
356originalToReproPackageFileName.Add(originalPath, reproPackagePath); 396dictionary.Add(simpleName, fullFileName);
ILCompiler.Build.Tasks (2)
ComputeManagedAssembliesToCompileToNative.cs (2)
95nativeAotFrameworkAssembliesToUse.Add(fileName, taskItem); 102nativeAotFrameworkAssembliesToUse.Add(fileName, taskItem);
ILCompiler.Compiler (84)
Compiler\AnalysisBasedMetadataManager.cs (3)
69_reflectableTypes.Add(refType.Entity, refType.Category); 80_reflectableMethods.Add(refMethod.Entity, refMethod.Category); 91_reflectableFields.Add(refField.Entity, refField.Category);
Compiler\BodySubstitutionParser.cs (1)
73_methodSubstitutions.Add(method, BodySubstitution.ThrowingBody);
Compiler\Dataflow\ArrayValue.cs (1)
101newValue.IndexValues.Add(kvp.Key, new ValueBasicBlockPair(kvp.Value.Value.DeepCopy(), kvp.Value.BasicBlockIndex));
Compiler\Dataflow\CompilerGeneratedCallGraph.cs (1)
24_callGraph.Add(fromMember, toMembers);
Compiler\Dataflow\CompilerGeneratedState.cs (1)
321_compilerGeneratedMembers.Add(userDefinedMethod, new List<TypeSystemEntity>(callees));
Compiler\Dataflow\MethodBodyScanner.cs (1)
154knownStacks.Add(newOffset, new Stack<StackSlot>(newStack.Reverse()));
Compiler\Dataflow\TrimAnalysisPatternStore.cs (2)
40AssignmentPatterns.Add(key, pattern); 51MethodCallPatterns.Add(pattern.Origin, pattern);
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (1)
214_nodes.Add(module, result);
Compiler\DependencyAnalysis\StackTraceDocumentsNode.cs (1)
42_documentToIndex.Add(documentName, index);
Compiler\HardwareIntrinsicILProvider.cs (1)
33_instructionSetMap.Add(instructionSetInfo.ManagedName, instructionSetInfo.InstructionSet);
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (1)
51_generatedInfos.Add(definitionIL.OwningMethod, debugInfo);
Compiler\ILScanner.cs (6)
314_vtableSlices.Add(vtableSliceNode.Type, usedSlots.ToArray()); 350_layouts.Add(owningMethodOrType, (layout, discarded)); 622vtables.Add(baseType, baseVtable = BuildVTable(factory, baseType, baseType, new List<MethodDesc>())); 625vtables.Add(type, vtable = BuildVTable(factory, type, type, new List<MethodDesc>())); 866_importationErrors.Add(scannedMethod.Method, scannedMethod.Exception); 924offsets.Add(t, nextDataOffset - factory.Target.PointerSize);
Compiler\ManifestResourceBlockingPolicy.cs (4)
58result.Add(item.Key, set = new HashSet<string>()); 69copy.Add(moduleSet.Key, moduleSet.Value); 152_substitutions.Add(resourceAssembly, new HashSet<string>()); 196_substitutions.Add(assembly, removed = new HashSet<string>());
Compiler\MstatObjectDumper.cs (2)
77_methodEhInfo.Add(ehInfoNode.Method, objectData.Data.Length); 115_deduplicatedBodies.Add(originalBody.Method, targetBodies = new List<(MethodDesc, int)>());
Compiler\ObjectWriter\CodeView\CodeViewFileTableBuilder.cs (1)
54_fileNameToIndex.Add(fileName, fileTableIndex);
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (4)
280_primitiveDwarfTypes.Add(typeFlags, typeIndex); 317_simpleArrayDwarfTypes.Add((elementIndex, size), typeIndex); 470_lineSequences.Add(sectionIndex, lineSequence); 487_fileNameMap.Add(sequencePoint.FileName, fileNameIndex);
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (1)
29_cieOffset.Add(cie, (uint)_sectionWriter.Position);
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
64_usedAbbrevs.Add(abbrev, abbreviationCode);
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (1)
86_directoryNameToIndex.Add(directoryName, directoryIndex);
Compiler\ObjectWriter\ElfObjectWriter.Aot.cs (1)
88_armUnwindSections.Add(sectionWriter.SectionIndex, (exidxSectionWriter, extabSectionWriter));
Compiler\ObjectWriter\UnixObjectWriter.Aot.cs (1)
162_lsdas.Add(nodeWithCodeInfo, symbols);
Compiler\ReachabilityInstrumentationFilter.cs (1)
50_reachabilityInfo.Add(new Guid(guidBytes), tokenStates);
Compiler\RootingServiceProvider.cs (2)
36_factory.NodeAliases.Add(methodEntryPoint, (exportName, exportHidden)); 149_factory.NodeAliases.Add(blob, (exportName, exportHidden));
Compiler\RuntimeConfigurationRootProvider.cs (1)
87valueDict.Add(value, valueNode);
Compiler\SourceLinkWriter.cs (1)
51_sourceLinkMaps.Add(ecmaMethod.Module, map = SourceLinkMap.Parse(sourceLinkData));
Compiler\TypePreinit.cs (9)
64_fieldValues.Add(field, NewUninitializedLocationValue(field.FieldType, field)); 144_nestedPreinitResults.Add(type, result); 153_rvaFieldDatas.Add(field, result = field.GetFieldRvaData()); 161_foreignInstances.Add(allocationSite, result = new ForeignTypeInstance(type, allocationSite, data)); 335_internedStrings.Add(s, instance); 1933_internedTypes.Add(typeHandle.Type, runtimeType = new RuntimeTypeValue(typeHandle.Type)); 2903preinitContext._internedTypes.Add(TypeRepresented, result = new RuntimeTypeValue(TypeRepresented)); 3523preinitContext._internedStrings.Add(value, result = new StringInstance(Type, value)); 3779_fieldValues.Add(field.Key, field.Value);
Compiler\UserDefinedTypeDescriptor.cs (6)
152_knownStateMachineThisTypes.Add(type, typeIndex); 177_thisTypes.Add(type, typeIndex); 218_methodIndices.Add(method, typeIndex); 240_methodIdIndices.Add(method, typeIndex); 373_pointerTypes.Add(pointeeType, typeIndex); 395_byRefTypes.Add(pointeeType, typeIndex);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
22_vertexMap.Add(payload, vertex);
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (3)
289_mangledTypeNames.Add(t, name); 494_unqualifiedMangledMethodNames.Add(m, name); 594_mangledFieldNames.Add(f, sb.ToUtf8String());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
148_symbolNameToIndex.Add(symbolName, (uint)_symbols.Count); 232_symbolNameToIndex.Add(symbolName, (uint)_symbols.Count); 245_symbolNameToIndex.Add(symbolName, (uint)_symbols.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
143_comdatNameToElfSection.Add(comdatName, groupSection);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (1)
402_rangeSymbols.Add(rangeNodeName, (startSymbolName, endSymbolName, endSymbol.Size));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
117_sectionNameToSectionIndex.Add(section.Name, sectionIndex); 272_definedSymbols.Add( 294_mangledNameMap.Add(symbolNode, symbolName);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (2)
142_nodeSymbolMap.Add(symbol, node); 164_methodSymbolMap.Add(symbol, method);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
368_wellKnownSymbols.Add(classCode, currentSymbolName);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
61_stringToOffset.Add(text, index);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
258dataEntryTable.Add(language.Item1, contentBuilder.CountBytes);
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
671dataMerger.Add(schema, schema);
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
64_typeRefs.Add(_typeSystemContext.CanonType, canonTypeRef); 159_assemblyRefs.Add(assemblyDesc, referenceHandle); 241_typeRefs.Add(type, typeHandle); 326_methodRefs.Add(method, methodHandle); 345_fieldRefs.Add(field, fieldHandle);
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
106dict.Add(key, value is IDeepCopyValue<TValue> copyValue ? copyValue.DeepCopy() : value);
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
90exceptionState.Add(tryOrCatchOrFilterRegion, state); 113finallyInputState.Add(finallyRegion, state); 135exceptionFinallyState.Add(branch, state); 160branchInput.Add(branch, state);
ILCompiler.DependencyAnalysisFramework (3)
DependencyAnalyzer.cs (2)
205_conditional_dependency_store.Add(dependency.OtherReasonNode, storedDependencySet); 230_deferredStaticDependencies.Add(dependencyPhase, deferredPerPhaseDependencies);
DgmlWriter.cs (1)
116_nodeMappings.Add(node, nodeId);
ILCompiler.Diagnostics (2)
PdbWriter.cs (2)
328_stringTableToOffsetMapping.Add(str, checked((int)(offset - startOfStringTableOffset))); 359_documentToChecksumOffsetMapping.Add(document, checked((int)(offset - startOfChecksumTableOffset)));
ILCompiler.MetadataTransform (10)
ILCompiler\Metadata\EntityMap.cs (2)
54_map.Add(entity, concreteRecord); 77_map.Add(entity, concreteRecord);
ILCompiler\Metadata\Transform.Namespace.cs (4)
35_namespaceDefs.Add(key, rootNamespace); 60_namespaceDefs.Add(key, nextNamespace); 95_namespaceRefs.Add(key, rootNamespace); 119_namespaceRefs.Add(key, nextNamespace);
ILCompiler\Metadata\Transform.String.cs (1)
24_strings.Add(s, result);
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
214res.Add(kv.Key, Visit(src, kv.Value, true));
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
68_placedMap.Add(vertex, placedVertex); 408_unifier.Add(vertex, vertex);
ILCompiler.ReadyToRun (87)
Compiler\CallChainProfile.cs (6)
86resolvedProfileData.Add(resolvedKeyMethod, new Dictionary<MethodDesc, int>()); 91resolvedProfileData[resolvedKeyMethod].Add(resolvedCalledMethod, 0); 110nameToMethodDescMap.Add(methodName, resolvedMethod); 118_resolveFails.Add(methodName, 0); 282profileData.Add(keyParts, new Dictionary<string, int>()); 286profileData[keyParts].Add(followingMethodList[index], methodCount.GetInt32());
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
129blobCache.Add(debugBlobArrayKey, debugBlob);
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
129inlineeToInliners.Add(inlineeDefinition, inliners);
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (2)
122uniqueSignatures.Add(signature, signatureBlob); 130uniqueFixups.Add(fixup, fixupBlob);
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (3)
132_typeConversions.Add(handle, computedInt); 176_methodConversions.Add(handle, computedInt); 283uniqueInstrumentationData.Add(encodedInstrumentationData, instrumentationDataBlob);
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (2)
239_assemblyRefToModuleIdMap.Add(assemblyName.Name, assemblyRefIndex); 249_moduleIdToAssemblyNameMap.Add(assemblyRefIndex, assemblyName);
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (1)
90uniqueFixups.Add(fixups, fixupBlobVertex);
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (1)
96methodToVirtualIP.Add((method, frameIndex), currentVirtualIP);
Compiler\FileLayoutOptimizer.cs (2)
286methodMap.Add(methodWithGCInfo.Method, methodWithGCInfo); 333mdToIndex.Add(method.Method, index);
Compiler\PettisHansenSort\CallGraphNode.cs (1)
23OutgoingEdges.Add(callee, count);
Compiler\PettisHansenSort\PettisHansen.cs (1)
39phEdges[a].Add(b, weight);
Compiler\ProfileData.cs (1)
115mergedProfileData.Add(data.Method, data);
Compiler\ProfileDataManager.cs (4)
384_placedProfileMethods.Add(home, set = new HashSet<MethodDesc>()); 401_profileData.Add(profileData.Method, profileData); 435delegateTargets.Add(method.Signature, set = new HashSet<MethodDesc>()); 454implementers.Add(implemented, set = new HashSet<TypeDesc>());
Compiler\ReadyToRunCompilationModuleGroupBase.cs (2)
188_moduleCompilationUnits.Add(module, compilationUnit); 740typeRefsInCompilationModuleSet.Add(typeFromTypeRef, new ModuleToken(ecmaModule, typeRefHandle));
Compiler\ReadyToRunStandaloneMethodMetadata.cs (2)
207_alternateNonTokenStrings.Add(token, alternateToken); 226_alternateTypeRefTokens.Add(type, result);
IBC\IBCDataReader.cs (1)
234result.Add(sectionFormat, sectionInfo);
IBC\IBCProfileParser.cs (1)
288blobs.Add(new IBCBlobKey(blob.Token, blob.Type), blob);
IBC\MIbcProfileParser.cs (1)
595weights.Add((MethodDesc)metadataObject, intValue);
IL\ReadyToRunILProvider.cs (1)
164_manifestModuleWrappedMethods.Add(method, wrappedMethodIL);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
1712_preInitedTypes.Add(uninstantiatedType, preInited);
ObjectWriter\MapFileBuilder.cs (1)
127statsNameIndex.Add(node.Name, statsIndex);
ObjectWriter\ProfileFileBuilder.cs (1)
138_symbolMethodMap.Add(kvpSymbolMethod.Value.Method, kvpSymbolMethod.Key);
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\PEReaderExtensions.cs (2)
81_ordinalRva.Add(entryIndex + minOrdinal, addressTable[ordinalIndex]); 97_namedExportRva.Add(nameBuilder.ToString(), addressTable[ordinalTable[entryIndex]]);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
22_vertexMap.Add(payload, vertex);
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (3)
289_mangledTypeNames.Add(t, name); 494_unqualifiedMangledMethodNames.Add(m, name); 594_mangledFieldNames.Add(f, sb.ToUtf8String());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
148_symbolNameToIndex.Add(symbolName, (uint)_symbols.Count); 232_symbolNameToIndex.Add(symbolName, (uint)_symbols.Count); 245_symbolNameToIndex.Add(symbolName, (uint)_symbols.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
143_comdatNameToElfSection.Add(comdatName, groupSection);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (1)
402_rangeSymbols.Add(rangeNodeName, (startSymbolName, endSymbolName, endSymbol.Size));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
117_sectionNameToSectionIndex.Add(section.Name, sectionIndex); 272_definedSymbols.Add( 294_mangledNameMap.Add(symbolNode, symbolName);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (2)
142_nodeSymbolMap.Add(symbol, node); 164_methodSymbolMap.Add(symbol, method);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
368_wellKnownSymbols.Add(classCode, currentSymbolName);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
61_stringToOffset.Add(text, index);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (6)
103_uniqueSignatures.Add(mangledName, _uniqueSignatures.Count); 122_uniqueSymbols.Add(node.GetMangledName(_nodeFactory.NameMangler), _methodCount); 144_uniqueSymbols.Add($"{mangledNodeName}_funclet_{i}", _methodCount); 386_uniqueSymbols.Add(name.ToString(), _methodCount); 524_sectionNameToIndex.Add(section.Name, sectionIndex); 1067_uniqueSignatures.Add(signatureKey, signatureIndex);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
258dataEntryTable.Add(language.Item1, contentBuilder.CountBytes);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
68_placedMap.Add(vertex, placedVertex); 408_unifier.Add(vertex, vertex);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (9)
251objectToHandle.Add(input, result); 252handleToObject.Add(result, input); 652_pins.Add(obj, handle); 757_objectToHandle.Add(obj, handle); 847_instantiationToJitVisibleInstantiation.Add(inst, jitVisibleInstantiation); 2373_doubleAlignHeuristicCache.Add(type, doDoubleAlign); 2510_classNumInstanceFields.Add(lookupType, numInstanceFields); 3745_helperCache.Add(ftnNum, entryPoint); 4640_pgoResults.Add(methodDesc, pgoResults);
src\runtime\src\coreclr\tools\Common\JitInterface\UnboxingMethodDescFactory.cs (1)
16Add(method, result);
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
671dataMerger.Add(schema, schema);
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
64_typeRefs.Add(_typeSystemContext.CanonType, canonTypeRef); 159_assemblyRefs.Add(assemblyDesc, referenceHandle); 241_typeRefs.Add(type, typeHandle); 326_methodRefs.Add(method, methodHandle); 345_fieldRefs.Add(field, fieldHandle);
TypeSystem\Mutable\MutableModule.cs (7)
69_mutableModule._moduleToModuleRefString.Add(module, moduleRefString); 75_moduleRefs.Add(module, result); 117result.Add(typeFromTypeRef, assemblyName); 209Entities.Add(MetadataTokens.GetToken(item.Value), item.Key); 210ExistingEntities.Add(item.Key, MetadataTokens.GetToken(item.Value)); 274_mutableModule._cache.ExistingEntities.Add(value, handle); 275_mutableModule._cache.Entities.Add(handle, value);
ILCompiler.RyuJit (15)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (1)
333mdToIndex.Add(method.Method, index);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\CallGraphNode.cs (1)
23OutgoingEdges.Add(callee, count);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (1)
39phEdges[a].Add(b, weight);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ProfileData.cs (1)
115mergedProfileData.Add(data.Method, data);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (1)
595weights.Add((MethodDesc)metadataObject, intValue);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (9)
251objectToHandle.Add(input, result); 252handleToObject.Add(result, input); 652_pins.Add(obj, handle); 757_objectToHandle.Add(obj, handle); 847_instantiationToJitVisibleInstantiation.Add(inst, jitVisibleInstantiation); 2373_doubleAlignHeuristicCache.Add(type, doDoubleAlign); 2510_classNumInstanceFields.Add(lookupType, numInstanceFields); 3745_helperCache.Add(ftnNum, entryPoint); 4640_pgoResults.Add(methodDesc, pgoResults);
src\runtime\src\coreclr\tools\Common\JitInterface\UnboxingMethodDescFactory.cs (1)
16Add(method, result);
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
129_urlCache.Add(handle, url = _reader.GetString(_reader.GetDocument(handle).Name));
illink (46)
ILLink.RoslynAnalyzer (17)
DataFlowAnalyzerContext.cs (1)
50enabledAnalyzers.Add(analyzer, incompatibleMembers);
DynamicallyAccessedMembersAnalyzer.cs (1)
375DAMArgument.Add(DynamicallyAccessedMembersAnalyzer.attributeArgument, mismatchedArgument.ToString());
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
106dict.Add(key, value is IDeepCopyValue<TValue> copyValue ? copyValue.DeepCopy() : value);
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
90exceptionState.Add(tryOrCatchOrFilterRegion, state); 113finallyInputState.Add(finallyRegion, state); 135exceptionFinallyState.Add(branch, state); 160branchInput.Add(branch, state);
TrimAnalysis\ArrayValue.cs (1)
84newArray.IndexValues.Add(kvp.Key, kvp.Value.DeepCopy());
TrimAnalysis\DiagnosticContext.cs (1)
85DAMArgument.Add("attributeArgument", expectedAnnotationsValue.DynamicallyAccessedMemberTypes.ToString());
TrimAnalysis\TrimAnalysisPatternStore.cs (7)
44BackingFieldAccessPatterns.Add(pattern.Operation, pattern); 63AssignmentPatterns.Add(trimAnalysisPattern.Operation, trimAnalysisPattern); 74FieldAccessPatterns.Add(pattern.Operation, pattern); 85GenericInstantiationPatterns.Add(pattern.Operation, pattern); 96MethodCallPatterns.Add(pattern.Operation, pattern); 107ReflectionAccessPatterns.Add(pattern.Operation, pattern); 118FeatureCheckReturnValuePatterns.Add(pattern.Operation, pattern);
TrimAnalysis\TrimAnalysisVisitor.cs (1)
120array.IndexValues.Add(i, ArrayValue.SanitizeArrayElementValue(elements[i]));
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
216featureSwitchMembers.Add(currentFeatureSwitch.Value, new Dictionary<string, ClassMembers>());
Infrastructure.Common (1)
TestEventListener.cs (1)
26_targetSourceName.Add(targetSourceName, true);
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 (7)
ApiLifecycle\AssemblyAnalysis.cs (2)
171MissingBaseTypes.Add(type, [@base]); 187MissingConstraints.Add(type, [constraint]);
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.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.Components (20)
NavigationManagerExtensions.cs (1)
711parameterSources.Add(parameterSource.EncodedName.AsMemory(), parameterSource);
PersistentState\PersistentServicesRegistry.cs (1)
210_underlyingAccessors.Add(key, (propertySetter, propertyGetter, restoreOptions));
PersistentState\PersistentStateValueProvider.cs (1)
52_subscriptions.Add(new ComponentSubscriptionKey(subscriber, propertyName), componentSubscription);
Reflection\ComponentProperties.cs (1)
338_underlyingWriters.Add(propertyName, propertySetter);
Reflection\MemberAssignment.cs (1)
28dictionary.Add(property.Name, property);
RenderTree\Renderer.cs (5)
415_componentStateById.Add(componentId, componentState); 416_componentStateByComponent.Add(component, componentState); 708_eventBindings.Add(id, (renderedByComponentId, callback, frame.AttributeName)); 716_eventBindings.Add(id, (renderedByComponentId, new EventCallback(@delegate.Target as IHandleEvent, @delegate), frame.AttributeName)); 757_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\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
465updatedDefaults.Add(kvp.Key, kvp.Value); 618parameterPolicyReferences.Add(parameter.Name, parameterConstraints);
src\aspnetcore\src\Http\Routing\src\RouteConstraintBuilder.cs (3)
70constraints.Add(kvp.Key, optionalConstraint); 74constraints.Add(kvp.Key, constraint); 172_constraints.Add(key, list);
src\aspnetcore\src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
275trees.Add(entry.Order, tree);
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
114current.Literals.Add(literalPart.Content, next);
Microsoft.AspNetCore.Components.Endpoints (32)
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\HttpContextFormValueMapper.cs (1)
128dictionary.Add(new FormKey(key.AsMemory()), value);
FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Rendering\EndpointHtmlRenderer.EventDispatch.cs (2)
197_namedSubmitEventsByLocation.Add(location, scopeQualifiedName); 208dictionary.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.Forms (2)
EditContext.cs (1)
572_fieldStates.Add(fieldIdentifier, state);
ValidationMessageStore.cs (1)
112_messages.Add(fieldIdentifier, messagesForField);
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\EventCallbackSubscribable.cs (1)
29=> _callbacks.Add(owner, callback);
Microsoft.AspNetCore.Components.Server (9)
Circuits\CircuitPersistenceManager.cs (2)
170rootComponentDescriptors.Add(marker.Key, descriptor); 223persistedComponents.Add(id, marker);
Circuits\ComponentParameterDeserializer.cs (3)
45parametersDictionary.Add(definition.Name, null); 61parametersDictionary.Add(definition.Name, RenderFragmentSerializer.Deserialize(serialized!.Nodes, ServerComponentSerializationSettings.JsonSerializationOptions, _parametersCache)); 86parametersDictionary.Add(definition.Name, parameterValue);
Circuits\RemoteJSDataStream.cs (1)
76_runtime.RemoteJSDataStreamInstances.Add(_streamId, this);
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
252_deduplicatedStringIndices.Add(value, stringIndex);
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
55_webRootComponents.Add(ssrComponentId, component);
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
256headers.Add(key, value);
Microsoft.AspNetCore.Components.Web (8)
Forms\InputBase.cs (1)
383result.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));
Media\FileDownload.cs (1)
86copy.Add(kvp.Key, kvp.Value!);
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
55_webRootComponents.Add(ssrComponentId, component);
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
252_deduplicatedStringIndices.Add(value, stringIndex);
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 (1)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
402routeParameterDescriptors.Add(completeFieldPath, new RouteParameter(fieldDescriptors, variable, completeJsonPath));
Microsoft.AspNetCore.Grpc.Swagger (1)
src\aspnetcore\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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
123WriteDictionary.Add(key, value);
src\aspnetcore\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)
915names.Add(property.Name, property);
Microsoft.AspNetCore.Http.Extensions (42)
RequestDelegateFactory.cs (18)
731factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.RouteAttribute); 741factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.QueryAttribute); 746factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.HeaderAttribute); 751factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.BodyAttribute); 812factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.ServiceAttribute); 893factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.RouteParameter); 898factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.QueryStringParameter); 903factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.RouteOrQueryStringParameter); 914factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.QueryStringParameter); 923factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.ServiceParameter); 929factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.BodyParameter); 1661factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.PropertyAsParameter); 2131factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.FormCollectionParameter); 2149factoryContext.TrackedParameters.Add(key, RequestDelegateFactoryConstants.FormAttribute); 2309dictionary.Add(new FormKey(key.AsMemory()), value); 2320factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.FormFileParameter); 2340factoryContext.TrackedParameters.Add(key, trackedParameterSource); 2363factoryContext.TrackedParameters.Add(parameterName, "UNKNOWN");
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
328lookupTable.Add(new ParameterLookupKey(properties[i].Name, properties[i].PropertyType), properties[i]);
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.Mvc.Abstractions (2)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
83_inner.Add(key, value);
src\aspnetcore\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)
129responseTypes.Add(defaultKey, new ApiResponseType
DefaultApiDescriptionProvider.cs (1)
247routeParameters.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\aspnetcore\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.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.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)
187htmlAttributes.Add("type", inputType);
TempDataDictionary.cs (1)
190_data.Add(key, value);
Microsoft.AspNetCore.OpenApi (5)
Services\OpenApiDocumentService.cs (1)
261paths.Add(descriptions.Key, new OpenApiPathItem { Operations = operations });
Services\OpenApiGenerator.cs (3)
242eligibleAnnotations.Add(StatusCodes.Status200OK, (responseType, new MediaTypeCollection())); 246eligibleAnnotations.Add(StatusCodes.Status200OK, (responseType, new MediaTypeCollection() { "text/plain" })); 250eligibleAnnotations.Add(StatusCodes.Status200OK, (responseType, new MediaTypeCollection() { "application/json" }));
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
328lookupTable.Add(new ParameterLookupKey(properties[i].Name, properties[i].PropertyType), properties[i]);
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
src\aspnetcore\src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
24map.Add(value, builder);
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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
123WriteDictionary.Add(key, value);
Microsoft.AspNetCore.Razor.Utilities.Shared (7)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\DictionaryExtensions.cs (2)
22dictionary.Add(key, value); 57dictionary.Add(key, value);
Utilities\CleanableWeakCache`2.cs (2)
159_cacheMap.Add(key, new(value)); 241_cacheMap.Add(key, new(value));
Microsoft.AspNetCore.Routing (35)
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)
218edges.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 (4)
269edges.Add(metadata, []); 300edges.Add(DefaultNegotiationValue, anyEndpoints); 303edges.Add(string.Empty, anyEndpoints); 308edges.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.Server.HttpSys (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
775info.Add((int)requestInfo.InfoType, memory);
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
775info.Add((int)requestInfo.InfoType, memory);
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)
824_unidentifiedStreams.Add(stream.StreamId, stream);
Internal\SniOptionsSelector.cs (1)
111_exactNameOptions.Add(name, sniOptions);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
2193_pendingCalls.Add(irq.InvocationId, irq);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocolWorker.cs (1)
256headers.Add(key, value);
Microsoft.Build (63)
BackEnd\BuildManager\BuildManager.cs (3)
1008_buildSubmissions.Add(newSubmission.SubmissionId, newSubmission); 2332buildingNodes.Add(innerBuildSubmission, node); 2349resultsPerNode.Add(finishedNode, finishedBuildSubmission.BuildResult!);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
1215_unresolvedConfigurationsById.Add(request.Config.ConfigurationId, request.Config); 1216_unresolvedConfigurationsByMetadata.Add(configMetadata, request.Config);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
377_outstandingResults.Add(result.NodeRequestId, result); 520_outstandingRequests.Add(newRequest.NodeRequestId, newRequest); 530_unresolvedConfigurations.Add(newRequest.ConfigurationId, value);
BackEnd\Components\Communications\NodeManager.cs (1)
337_nodeIdToProvider.Add(node.NodeId, nodeProvider);
BackEnd\Components\Logging\LoggingService.cs (2)
1164_eventSinkDictionary.Add(sinkId, eventSourceSink); 1205_eventSinkDictionary.Add(sinkId, forwardingLoggerSink);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
188pluginSettings.Add(metadatum.Name, metadatum.EvaluatedValue); 394globalProperties.Add(property.Name, property.EvaluatedValue); 727globalProperties.Add(property.Name, property.EvaluatedValue);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (2)
617combinedTable.Add(entry.Key, entry.Value); 624combinedTable.Add(entry.Key, entry.Value);
BackEnd\Components\RequestBuilder\Lookup.cs (3)
350SecondaryModifyTable.Add(entry.Key, entry.Value); 1034modifiesOfType.Add(modify.Key, modify.Value); 1229_modifications.Add(metadataName, MetadataModification.CreateFromNewValue(metadataValue));
BackEnd\Shared\BuildRequestConfiguration.cs (1)
487globalProperties.Add(property.Name, ((IProperty)property).EvaluatedValueEscaped);
BackEnd\Shared\BuildResult.cs (1)
679additionalEntries.Add(SpecialKeyForVersion, String.Empty);
BuildCheck\Checks\DoubleWritesCheck.cs (1)
125_filesWritten.Add(fileBeingWritten, (context.Data.ProjectFilePath, context.Data.TaskName));
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
626_deferredProjectEvalIdToImportedProjects.Add(checkContext.BuildEventContext.EvaluationId,
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
57static (dict, kvp) => dict.Add(kvp.Key, kvp.Value)); 166_tasksBeingExecuted.Add(new TaskKey(taskStartedEventArgs.BuildEventContext), taskData);
Collections\LookasideStringInterner.cs (1)
88_stringToIdsMap.Add(str, index);
Collections\MultiDictionary.cs (1)
123_backing.Add(key, new SmallList<V>(value));
Construction\Solution\SolutionFile.cs (2)
881projectsByUniqueName.Add(tempUniqueName, project); 890projectsByUniqueName.Add(uniqueName, proj);
Definition\ProjectCollection.cs (2)
1264mergedProperties.Add(name, ((IProperty)globalProperty).EvaluatedValueEscaped); 2033_loadedProjects.Add(project.FullPath, projectList);
Definition\ToolsetConfigurationReader.cs (1)
249pathsTable.Add(property.Name, new ProjectImportPathMatch(property.Name, paths.ToList()));
Definition\ToolsetReader.cs (5)
175toolsets.Add( 202toolsets.Add( 218toolsets.Add( 247toolsets.Add("2.0", synthetic20Toolset); 325toolsets.Add(defaultToolsVersion, defaultToolset);
Evaluation\Evaluator.cs (1)
2370_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);
Evaluation\ToolsetElement.cs (3)
296_previouslySeenOS.Add(os, string.Empty); 466_previouslySeenPropertyNames.Add(propertyName, string.Empty); 637_previouslySeenToolsVersions.Add(toolsVersion, string.Empty);
Graph\GraphBuilder.cs (2)
343globalPropertiesForProjectConfiguration.Add(projectConfiguration.FullName, projectGlobalProperties); 376solutionDependencies.Add(project.AbsolutePath, solutionDependenciesForProject);
Instance\HostServices.cs (1)
328hostObject._hostObjects.Add(targetTaskKey, new MonikerNameOrITaskHost(hostObjectMapPairValueMonikerName));
Instance\ProjectInstance.cs (1)
3424projectItemToInstanceMap?.Add(item, instance);
Instance\TaskFactoryWrapper.cs (1)
280propertyInfoCache.Add(propertyInfo.Name, propertyInfo);
Instance\TaskRegistry.cs (1)
737_overriddenTasks.Add(unqualifiedTaskName, unqualifiedTaskNameMatches);
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
474groupByProjectEntryPoint.Add(key, errorWarningEventListByTarget); 1181_deferredMessages.Add(e.BuildEventContext, messageList); 1732_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));
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Extensions\IEnumerableExtensions.cs (1)
809dictionary.Add(grouping.Key, [.. grouping]);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Extensions\ImmutableArrayExtensions.cs (3)
1171accumulator.Add(key, item); 1183result.Add(entry.Key, createMembers(entry.Value)); 1228dictionary.Add(entry.Key, namedTypes);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (3)
553dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 572accumulator.Add(key, bucket); 583dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\msbuild\src\Shared\TypeLoader.cs (1)
697_publicTypeNameToType.Add(publicType.FullName, publicType);
Microsoft.Build.Framework (16)
BinaryReaderExtensions.cs (2)
116data.ExtendedMetadata.Add(key, value); 134durations.Add(key, value);
BinaryTranslator.cs (1)
806dictionary.Add(key, val);
InterningReadTranslator.cs (1)
67_pathIdsToString.Add(pathIds, str);
InterningWriteTranslator.cs (2)
111_stringToIds.Add(str, index); 153_stringToPathIds.Add(str, new InternPathIds(directoryIndex, fileNameIndex));
SolutionConfiguration.cs (1)
106_cachedDependencyProjectGuidsByDependingProjectGuid.Add(projectGuid, list);
TaskItemData.cs (1)
44dictionary.Add(item.Key, item.Value);
Telemetry\BuildTelemetry.cs (3)
179telemetryItems.Add(TelemetryConstants.BuildDurationPropertyName, (FinishedAt.Value - StartAt.Value).TotalMilliseconds); 184telemetryItems.Add(TelemetryConstants.InnerBuildDurationPropertyName, (FinishedAt.Value - InnerStartAt.Value).TotalMilliseconds); 205telemetryItems.Add(key, value);
Telemetry\CrashTelemetry.cs (3)
502telemetryItems.Add(nameof(ExitType), ExitType.ToString()); 517telemetryItems.Add(nameof(CrashOrigin), CrashOrigin.ToString()); 559telemetryItems.Add(key, value);
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
53tasksExecutionData.Add( 70targetsExecutionData.Add(key, new TargetExecutionStats(wasExecuted, skipReason));
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
121rootByItemSpec.Add(sourceRoot.ItemSpec, sourceRoot); 154topLevelMappedPaths.Add(localPath, mappedPath);
Microsoft.Build.Tasks.Core (41)
AssemblyDependency\GenerateBindingRedirects.cs (1)
388map.Add(assemblyIdentity, maxVerStr);
AssemblyDependency\ReferenceTable.cs (2)
1511dependencyGraph.Add(dependee, dependencies); 2099s_monikerToHighestRedistList.Add(targetFrameworkMoniker.Identifier, redistListAndOtherFrameworkName);
AssemblyDependency\ResolveAssemblyReference.cs (1)
1964_showAssemblyFoldersExLocations.Add(location.SearchPath, importance);
BootstrapperUtil\BootstrapperBuilder.cs (7)
268output.Add(product.ProductCode.ToLowerInvariant(), product); 287builtProducts.Add(builder.Product.ProductCode.ToLowerInvariant(), builder); 575_cultures.Add(culture, resourcesNode); 630availableProducts.Add(p.ProductCode, p); 631buildQueue.Add(p.ProductCode, CreateProduct(productNode)); 1041_validationResults.Add(productCodeAttribute.Value, productValidationResults); 2238includedProducts.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)
3931reader.resourcesHashTable.Add(entry.Name, entry);
ManifestUtil\ApplicationManifest.cs (7)
451clsidList.Add(key, comInfo); 463tlbidList.Add(key, comInfo); 485clsidList.Add(key, new ComInfo(outputFileName, file.TargetPath, comClass.ClsId, null)); 500tlbidList.Add(key, new ComInfo(outputFileName, file.TargetPath, null, typeLib.TlbId)); 587usedExtensions.Add(fileAssociation.Extension, fileAssociation); 665targetPathList.Add(key, false); 711targetPathList.Add(key, false);
ManifestUtil\AssemblyIdentity.cs (1)
416redistDictionary.Add(path, RedistList.GetRedistListFromPath(path));
ManifestUtil\Manifest.cs (1)
639identityList.Add(key, false);
ManifestUtil\Util.cs (1)
433list.Add(key, item);
MSBuild.cs (2)
559combinedTable.Add(entry.Key, entry.Value); 566combinedTable.Add(entry.Key, entry.Value);
RedistList.cs (4)
123simpleNameMap.Add(entry.SimpleName, i); 311s_redistListPathCache.Add(frameworkDirectory, results); 363s_cachedRedistList.Add(key, redistList); 876attributes.Add(reader.Name, reader.Value);
ResolveManifestFiles.cs (4)
891_dictionary.Add(key, entry); 903_simpleNameDictionary.Add(key, entry); 960_dictionary.Add(key, entry); 1002_dictionary.Add(key, entry);
ResolveSDKReference.cs (4)
365productFamilyNameToSDK.Add(reference.ProductFamilyName, new HashSet<SDKReference> { reference }); 380sdkNameToSDK.Add(reference.SimpleName, new HashSet<SDKReference> { reference }); 1048FrameworkIdentitiesFromManifest.Add(kvp.Key, kvp.Value); 1065AppxLocationsFromManifest.Add(kvp.Key, kvp.Value);
system.design\stronglytypedresourcebuilder.cs (1)
156resourceTypes.Add(resource.Key, data);
Microsoft.Build.Tasks.Git (4)
GitDataReader\GitConfig.Reader.cs (1)
257variables.Add(key, values = new List<string>());
GitDataReader\GitIgnore.Matcher.cs (3)
64_patternGroups.Add(directory, group); 132_directoryIgnoreStateCache.Add(normalizedPosixPath, isIgnored); 160_directoryIgnoreStateCache.Add(normalizedPosixPath, isIgnored);
Microsoft.Build.Utilities.Core (12)
MuxLogger.cs (1)
252_submissionRecords.Add(submissionId, record);
ToolLocationHelper.cs (11)
632filteredExtensionSdks.Add(sdk.Key, sdk.Value); 908s_cachedTargetPlatformReferences.Add(cacheKey, targetPlatformReferences); 997s_cachedExtensionSdkReferences.Add(cacheKey, extensionSdkReferences); 2475s_cachedTargetPlatforms.Add(cachedTargetPlatformsKey, collection); 2486s_cachedExtensionSdks.Add(cachedExtensionSdksKey, extensionSdk); 2556targetPlatformSDK.ExtensionSDKs.Add(SDKKey, FileUtilities.EnsureTrailingSlash(sdkVersionDirectory.FullName)); 2636platformSDKs.Add(targetPlatformSDK, targetPlatformSDK); 2756platformMonikers.Add(targetPlatformSDK, targetPlatformSDK); 2829targetPlatformSDK.ExtensionSDKs.Add(sdkKey, FileUtilities.EnsureTrailingSlash(directoryName)); 3059sdk.Platforms.Add(sdkKey, FileUtilities.EnsureTrailingSlash(platformVersion.FullName)); 3690s_cachedHighestFrameworkNameForTargetFrameworkIdentifier.Add(key, highestFrameworkName);
Microsoft.CodeAnalysis (118)
Binding\AbstractLookupSymbolsInfo.cs (1)
251_nameMap.Add(name, pair);
CodeGen\CompilationTestData.cs (1)
78map.Add(name, pair.Value);
CodeGen\LocalSlotManager.cs (1)
145LocalMap.Add(symbol, local);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
209stringHashMap.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\KeyedStack.cs (1)
26_dict.Add(key, store);
Collections\TopologicalSort.cs (2)
119predecessorCounts.Add(n, 0); 134predecessorCounts.Add(succ, 1);
CommandLine\CommonCompiler.cs (1)
439embeddedTreeMap.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)
54_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)
136completedAnalyzersByTree.Add(tree, completedAnalyzers); 140_completedSyntaxAnalyzersByAdditionalFile.Add(additionalFile, completedAnalyzers); 298_analyzerActionCounts.Add(analyzer, getAnalyzerActionCounts(analyzer));
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1171programmaticSuppressionsBuilder.Add(programmaticSuppression.SuppressedDiagnostic, array); 1318GeneratedCodeSymbolsForTreeMap.Add(tree, generatedCodeSymbols);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
248typeNameMap.Add(supportedLanguage, builder);
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
154_lazySymbolScopeTasks.Add(symbol, symbolScopeTask);
DiagnosticAnalyzer\AnalyzerManager.cs (1)
48analyzerExecutionContextMap.Add(analyzer, new AnalyzerExecutionContext(analyzer));
DiagnosticAnalyzer\CompilationAnalysisValueProvider.cs (1)
60_valueMap.Add(key, value);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
62_unresolvedSuppressionsById.Add(info.Id, suppressions); 119resolvedSuppressions.Add(target, info);
Emit\EditAndContinue\DefinitionMap.cs (4)
98mappedMethods.Add(newMethod, new EncMappedMethod(oldMethod, edit.SyntaxMap, edit.RuntimeRudeEdit)); 251declaratorToIndex.Add(declarators[i], i); 569hoistedLocals.Add(slot, slotIndex); 581awaiters.Add(slot, slotIndex);
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
64_typesUsedByDeletedMembers.Add(typeDef, deletedType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (16)
195addedOrChangedMethodsByIndex.Add(MetadataTokens.GetRowNumber(GetMethodDefinitionHandle(pair.Key)), pair.Value); 266result.Add(pair.Key, pair.Value); 535result.Add(typeDef, deletedMemberDefs); 729_deletedTypeMembers.Add(typeDef, newMemberDefs.ToImmutable()); 799_firstParamRowMap.Add(GetMethodDefinitionHandle(methodDef), _parameterDefs.NextRowId); 803_parameterDefList.Add(paramDef, methodDef); 847_existingParameterDefs.Add(paramDef, MetadataTokens.GetRowNumber(param)); 848_parameterDefList.Add(paramDef, methodDef); 861_existingParameterDefs.Add(paramDef, firstRowId++); 862_parameterDefList.Add(paramDef, methodDef); 964_addedOrChangedMethods.Add(body.MethodDefinition, info); 1103_customAttributesAdded.Add(parentHandle, previouslyAddedRowIds.AddRange(CustomAttributeRowIds.Skip(previousCustomAttributeRowIdsCount))); 1644this.added.Add(item, index); 1803this.added.Add(item, index); 1841this.added.Add(item, index); 1877this.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)
391lazyDeletedMembersBuilder.Add(newContainingType, deletedMembersPerType); 404changesBuilder.Add(newContainingType, SymbolChange.ContainsChanges); 435updatedMethodsBuilder.Add(newMember.ContainingType, updatedMethodsPerType); 462changesBuilder.Add(newMember, change); 488changes.Add(containingSymbol, SymbolChange.ContainsChanges);
Emit\EditAndContinue\SymbolMatcher.cs (2)
88result.Add(key, pair.Value); 101result.Add(pair.Key, pair.Value.MapTypes(this));
InternalUtilities\ConcurrentLruCache.cs (1)
111_cache.Add(key, new CacheValue { Node = node, Value = value });
MetadataReader\PEModule.cs (4)
771namespaceHandles.Add(nsHandle, new ArrayBuilder<TypeDefinitionHandle> { typeDef }); 787namespaces.Add(@namespace, kvp.Value); 844namespaces.Add(namespaceName, null); 3920typesToAssemblyIndexMap.Add(name, (FirstIndex: referencedAssemblyIndex, SecondIndex: -1));
NativePdbWriter\PdbWriter.cs (3)
338_qualifiedNameCache.Add(@namespace, result); 358_qualifiedNameCache.Add(typeReference, result); 636_documentIndex.Add(document, documentIndex);
Operations\ControlFlowGraphBuilder.cs (4)
400continueDispatchAfterFinally.Add(@finally, continueDispatch); 1328_regionMap.Add(block, _currentRegion); 3905_labeledBlocks.Add(labelOpt, labeledBlock); 8059explicitProperties.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)
391_fieldDefIndex.Add(typeDef, _fieldDefs.NextRowId); 397_methodDefIndex.Add(typeDef, _methodDefs.NextRowId);
PEWriter\MetadataWriter.cs (13)
685_fileRefIndex.Add(key, _fileRefList.Count); 718_customAttributeSignatureIndex.Add(customAttribute, result); 821_fieldSignatureIndex.Add(fieldReference, result); 848_fileRefIndex.Add(key, index = _fileRefList.Count); 1061_methodInstanceSignatureIndex.Add(methodInstanceReference, result); 1077_marshallingDescriptorIndex.Add(marshallingInformation, result); 1661_typeSpecSignatureIndex.Add(typeReference, result); 3080_smallMethodBodies.Add(smallBodyKey, encodedBody.Offset); 4316_index.Add(item, index); 4343_index.Add(item, index); 4367_instanceIndex.Add(item, index); 4375_instanceIndex.Add(item, index); 4376_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)
268boundReferences.Add(boundReference, boundReference); 522ObservedMetadata.Add(peReference, (MetadataOrDiagnostic?)newMetadata ?? newDiagnostic!); 627lazyAliasMap.Add(primaryReference, mergedAliases); 678referencesBySimpleName.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)
104s_nameToTypeIdMap.Add(name, (ExtendedSpecialType)i);
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
927result.Add(name, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
WellKnownTypes.cs (1)
771s_nameToTypeIdMap.Add(name, typeId);
Microsoft.CodeAnalysis.Analyzers (48)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
152entriesToUpdate.Add(ruleId, entryToUpdate);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
117fixInfoMap.Add(additionalDocument, fixInfos);
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
234releaseTrackingDataByRulesBuilder.Add(ruleId, releaseTrackingDataForRuleBuilder);
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
109result.Add(parsed.Value, existing);
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
70perTreeOptionsBuilder.Add(tree, new Lazy<SyntaxTreeCategorizedAnalyzerConfigOptions>(() => Create(tree, analyzerConfigOptionsProvider)));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (7)
152wildcardNamesBuilder.Add(AllKinds, associatedValues); 155associatedValues.Add(parts.SymbolName[0..^1], parts.AssociatedValue); 175wildcardNamesBuilder.Add(symbolKind.Value, associatedValues); 178associatedValues.Add(parts.SymbolName[2..^1], parts.AssociatedValue); 186namesBuilder.Add(parts.SymbolName, parts.AssociatedValue); 216symbolsBuilder.Add(constituentNamespace, parts.AssociatedValue); 223symbolsBuilder.Add(symbol, parts.AssociatedValue);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
56instance.Add(kvp.Key, kvp.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Microsoft.CodeAnalysis.AnalyzerUtilities (71)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
70perTreeOptionsBuilder.Add(tree, new Lazy<SyntaxTreeCategorizedAnalyzerConfigOptions>(() => Create(tree, analyzerConfigOptionsProvider)));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (7)
152wildcardNamesBuilder.Add(AllKinds, associatedValues); 155associatedValues.Add(parts.SymbolName[0..^1], parts.AssociatedValue); 175wildcardNamesBuilder.Add(symbolKind.Value, associatedValues); 178associatedValues.Add(parts.SymbolName[2..^1], parts.AssociatedValue); 186namesBuilder.Add(parts.SymbolName, parts.AssociatedValue); 216symbolsBuilder.Add(constituentNamespace, parts.AssociatedValue); 223symbolsBuilder.Add(symbol, parts.AssociatedValue);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
56instance.Add(kvp.Key, kvp.Value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (2)
321_trackedInstanceFieldLocations.Add(field, pointsToValue); 419_trackedInstanceFieldLocations.Add(operation.Field, pointsToAbstractValue);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
687escapedLocationsBuilder.Add(key, builder);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
275allResults.Add(kvp.Key, kvp.Value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (1)
250this.TrackedFieldPropertyAssignments.Add(targetAnalysisEntity, trackedAssignmentData);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.TrackedAssignmentData.cs (1)
69this.AbstractLocationsToAssignments.Add(abstractLocation, assignments);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (2)
545this.TaintedSourcesBySink.Add(sink, data); 589this.TaintedSourcesBySink.Add(sourceSink.Sink, data);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataConfig.cs (6)
122sourcesToSymbolMap.Add(sources, lazySourceSymbolMap); 125sourceSymbolMapBuilder.Add(sinkKind, lazySourceSymbolMap); 133sanitizersToSymbolMap.Add(sanitizers, lazySanitizerSymbolMap); 136sanitizerSymbolMapBuilder.Add(sinkKind, lazySanitizerSymbolMap); 142sourceSanitizersToSinks.Add((sources, sanitizers), sinksPair); 157sinkSymbolMapBuilder.Add(sinkKind, lazySinkSymbolMap);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (3)
226_captureIdCopyValueMap.Add(flowCapture.Id, copyValue); 433_captureIdEntityMap.Add(captureId, entity); 547_instanceLocationsForSymbols.Add(symbol, instanceLocation);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (2)
733finallyBlockSuccessorsMap.Add(finallyRegion.LastBlockOrdinal, lastBlockSuccessors); 826loopRangeMap.Add(branch.Destination.Ordinal, maxSuccessorOrdinal);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (2)
36_info.Add(block, null); 68resultBuilder.Add(block, result);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (4)
2176AnalysisDataForUnhandledThrowOperations.Add(exceptionInfo, analysisDataAtException); 2511builder.Add(invokedMethod.Parameters[0], extraArgument); 2541builder.Add(GetMappedParameterForArgument(argument), new ArgumentInfo<TAbstractAnalysisValue>(argument, argumentEntity, instanceLocation, argumentValue)); 3560_interproceduralMethodToCfgMap.Add(method, cfg);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (2)
88_coreAnalysisData.Add(key, value); 94_coreAnalysisData.Add(item.Key, item.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Microsoft.CodeAnalysis.CodeStyle (42)
src\roslyn\src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
44s_cachedProperties.Add((includeInFixAll, equivalenceKey), properties);
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
176enumValues.Add(enumValue, fieldSymbol);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (4)
271idToPragmasMap.Add(id, pragmasForIdInReverseOrder); 289pragmasToIsUsedMap.Add(trivia, false); 816idToSuppressMessageAttributesMap.Add(id, nodesForId); 828suppressMessageAttributesToIsUsedMap.Add(attributeNode, isPartial);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
59builder.Add(method, format);
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
73Substitutions.Add(symbol, namedType); 80Substitutions.Add(symbol, commonDerivedType);
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
54replacements.Add(token, token.WithLeadingTrivia(leadingTrivia));
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (7)
533nodeReplacementMap.Add(node.GetRequiredParent(), syntaxFacts.GetRightHandSideOfAssignment(node.GetRequiredParent())); 561nodeReplacementMap.Add(node.GetRequiredParent(), GetReplacementNodeForCompoundAssignment(node.GetRequiredParent(), newNameNode, editor, syntaxFacts)); 565nodeReplacementMap.Add(node, GetReplacementNodeForVarPattern(node, newNameNode)); 572nodeReplacementMap.Add(node.GetRequiredParent(), newParentNode); 576nodeReplacementMap.Add(node, newNameNode); 640nodeReplacementMap.Add(localDeclarationStatement, localDeclarationStatement.WithAdditionalAnnotations(s_existingLocalDeclarationWithoutInitializerAnnotation)); 790memberDeclReplacementsMap.Add(memberDecl, newMemberDecl);
Microsoft.CodeAnalysis.CSharp (128)
Binder\Binder.CapturedParametersFinder.cs (1)
80result.Add(parameter,
Binder\Binder.QueryTranslationState.cs (3)
57result.Add(vars, ImmutableArray<string>.Empty); 67result.Add(vars, allRangeVariables[vars].ToImmutable()); 96allRangeVariables.Add(result, ArrayBuilder<string>.GetInstance());
Binder\Binder_Constraints.cs (1)
50names.Add(name, names.Count);
Binder\Binder_Lambda.cs (1)
481bindings.Add(syntax, 1);
Binder\DecisionDagBuilder.cs (3)
1337uniqueState.Add(state, state); 1550stateToIndex.Add(state, i); 2814stateIdentifierMap.Add(allStates[i], i);
Binder\PatternExplainer.cs (5)
54dist.Add(n, n switch 311constraints.Add(temp, constraintBuilder = new ArrayBuilder<(BoundDagTest, bool)>()); 322evaluations.Add(temp, evaluationBuilder = new ArrayBuilder<BoundDagEvaluation>()); 699properties.Add(e.Field, subPattern); 714properties.Add(e.Property, subPattern);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
249lookedInInterfaces.Add(operatorSourceOpt, hadUserDefinedCandidateFromInterfaces); 300lookedInInterfaces.Add(@interface, hadUserDefinedCandidate);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
2366dictionary.Add(@interface, @interface); 3411candidates.Add(newCandidate, newCandidate);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
1928resultsByContainingType.Add(containingType, OneOrMany.Create(result));
Binder\SwitchBinder.cs (2)
127map.Add(key, label); 484result.Add(node, label);
BoundTree\BoundDecisionDag.cs (1)
110replacement.Add(node, newNode);
BoundTree\BoundNode_Source.cs (1)
537tempIdentifiers.Add(local, identifier);
CodeGen\CodeGenerator.cs (1)
457_savedSequencePoints.Add(statement.Identifier, span);
CodeGen\EmitStatement.cs (1)
2048labelClones.Add(label, clone);
CodeGen\Optimizer.cs (3)
1828_locals.Add(dummy, LocalDefUseInfo.GetInstance(StackDepth())); 1852_locals.Add(dummy, LocalDefUseInfo.GetInstance(StackDepth())); 2017_locals.Add(local, LocalDefUseInfo.GetInstance(stack));
CommandLine\CSharpCommandLineParser.cs (1)
2154d.Add(id, kind);
Compilation\MemberSemanticModel.cs (1)
1457_lazyGuardedSynthesizedStatementsMap.Add(node, statement);
Compilation\SyntaxAndDeclarationManager.cs (1)
529ordinalMapBuilder.Add(tree, i);
Compiler\ClsComplianceChecker.cs (1)
1081containingTypes.Add(containingType.OriginalDefinition, containingType);
Compiler\TypeCompilationState.cs (1)
159_wrappers.Add(method, wrapper);
Declarations\MergedNamespaceDeclaration.cs (1)
282typeGroups.Add(id, t);
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
169map.Add(local, slotIndex);
Emitter\Model\PEModuleBuilder.cs (2)
784exportedNamesMap.Add(fullEmittedName, type); 1631_fixedImplementationTypes.Add(field, result);
FlowAnalysis\AbstractFlowPass.cs (1)
523_labels.Add(label, result);
FlowAnalysis\AbstractFlowPass.PendingBranchesCollection.cs (1)
122_labeledBranches.Add(label, branches);
FlowAnalysis\DefiniteAssignment.cs (3)
278_variableSlot.Add(identifier, slot); 2514_unsafeAddressTakenVariables.Add(variable, node.Syntax.Location); 2669_unsafeAddressTakenVariables.Add(receiver, node.Syntax.Location);
FlowAnalysis\NullableWalker.cs (3)
596_resultForPlaceholdersOpt.Add(placeholder, (expression, result)); 3448_nestedFunctionVariables.Add(lambdaOrLocalFunction, variables); 5028_placeholderLocalsOpt.Add(identifier, placeholder);
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
196_symbolToSlot.Add(symbol, _currentWalkerSlot);
FlowAnalysis\NullableWalker.Variables.cs (3)
173_variableSlot.Add(identifier, index); 179_variableTypes.Add(pair.Key, pair.Value); 278_variableSlot.Add(identifier, index);
FlowAnalysis\NullableWalker_Patterns.cs (7)
408originalInputMap.Add(originalInputSlot, expression); 414tempMap.Add(rootTemp, (originalInputSlot, expressionTypeWithState.Type)); 417nodeStateMap.Add(decisionDag.RootNode, (state: PossiblyConditionalState.Create(this), believedReachable: true)); 616labelStateMap.Add(d.Label, (this.State, nodeBelievedReachable)); 756originalInputMap.Add(outputSlot, 836reinferredPropertyMap.Add(e, property); 864tempMap.Add(output, (slot, type));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
912labelsInInterestingTry.Add(node, currentLabels); 1063proxyLabels.Add(label, proxy); 1144_hoistedLocals.Add(local, local); 1157_hoistedLocals.Add(local, newLocal);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
126_awaiterFields.Add(awaiterType, result); 358_placeholderMap.Add(awaitablePlaceholder, expression);
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (4)
79rewriter._proxies.Add(thisParameter, new CapturedToExpressionSymbolReplacement<ParameterSymbol>(hoistedThis, hoistedSymbols: [], isReusable: true)); 158_placeholderMap.Add(awaitableInfo.RuntimeAsyncAwaitCallPlaceholder, expr); 184_placeholderMap.Add(awaitablePlaceholder, expr); 208_placeholderMap.Add(awaitableInfo.RuntimeAsyncAwaitCallPlaceholder, tmp);
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (3)
71localMap.Add(local, newLocal); 129_placeholderMap.Add(awaitablePlaceholder, rewrittenPlaceholder); 143_placeholderMap.Add(runtimeAsyncAwaitCallPlaceholder, rewrittenRuntimeAsyncAwaitCallPlaceholder);
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
525_scopesAfterLabel.Add(node.Label, ArrayBuilder<Scope>.GetInstance());
Lowering\ClosureConversion\ClosureConversion.cs (4)
374_frames.Add(scope.BoundNode, env); 408proxies.Add(captured, new CapturedToFrameSymbolReplacement(hoistedField, isReusable: false)); 738_framePointers.Add(frame, framePointer); 1567_parameterMap.Add(parameter, synthesizedMethod.Parameters[parameter.Ordinal]);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
917_placeholderReplacementMap.Add(leftPlaceholder, parameterReference);
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)
88_delegateFields.Add((constrainedToTypeOpt, delegateType, targetMethod), field);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
115containers.Add(owner, container);
Lowering\LocalRewriter\LocalRewriter.cs (1)
550_placeholderReplacementMapDoNotUseDirectly.Add(placeholder, value);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
115_dagNodeLabels.Add(dag, label = dag is BoundLeafDecisionDagNode d ? d.Label : _factory.GenerateLabel("dagNode")); 1030whenExpressionMap.Add(whenExpression, (labelToWhenExpression, list)); 1033whenNodeMap.Add(whenNode, (labelToWhenExpression, nextWhenNodeIdentifier++));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (6)
101_map.Add(dagTemp, result); 119_map.Add(dagTemp, translation); 282placeholderValues.Add(e.ReceiverPlaceholder, input); 283placeholderValues.Add(e.ArgumentPlaceholder, makeUnloweredIndexArgument(e.Index)); 308placeholderValues.Add(e.ReceiverPlaceholder, input); 309placeholderValues.Add(e.ArgumentPlaceholder, makeUnloweredRangeArgument(e));
Lowering\LocalRewriter\LocalRewriter_BasePatternSwitchLocalRewriter.cs (1)
55_switchArms.Add(arm, armBuilder);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
184_lazyUnmatchedLabelCache.Add(node, unmatched);
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
63_sectionLabels.Add(section, result);
Lowering\SpillSequenceSpiller.cs (2)
365_receiverSubstitution.Add(receiverRefLocal, complexReceiver.Update(valueTypeReceiver, referenceTypeReceiver, complexReceiver.Type)); 1512_tempSubstitution.Add(local, longLived);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (5)
137this.proxies.Add(proxy.Key, proxy.Value); 241_dispatches.Add(resumeLabel, new List<StateMachineState> { stateNumber }); 329proxies.Add(local, proxy); 506_lazyAvailableReusableHoistedFields.Add(field.Type, fields = new ArrayBuilder<StateMachineFieldSymbol>()); 747oldDispatches.Add(dispatchLabel, new List<StateMachineState>(from kv in _dispatches.Values from n in kv orderby n select n));
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
92proxies.Add(local, new CapturedToExpressionSymbolReplacement<THoistedSymbol>(replacement, hoistedSymbols.ToImmutableAndFree(), isReusable: true));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
235proxiesBuilder.Add(local, new CapturedToStateMachineFieldReplacement(field, isReusable: false)); 245proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 252initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(initialThis, isReusable: false)); 260proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 265initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(field, isReusable: false));
Lowering\SynthesizedSubmissionFields.cs (1)
89_previousSubmissionFieldMap.Add(previousSubmissionType, previousSubmissionField);
Symbols\AbstractTypeMap.cs (1)
374map.Add(substituted.Type, result.Count);
Symbols\MemberSymbolExtensions.cs (1)
166ordinals.Add(originalTypeParameters[i], i);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2593map.Add(methodHandle, method);
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
267namespaces.Add(c.Name.AsMemory(), c);
Symbols\ReferenceManager.cs (1)
857missingAssemblies.Add(assemblyIdentity, missingAssembly);
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
226_retargetingAssemblyMap.Add(underlyingBoundReferences[j],
Symbols\Source\ExtensionGroupingInfo.cs (1)
49groupingMap.Add(groupingMetadataName, markerMap);
Symbols\Source\SourceMemberContainerSymbol.cs (13)
1470conflictDict.Add(key, t); 1779dictionary.Add(pair.Key, pair.Value is ArrayBuilder<Symbol> arrayBuilder 2288conversionsAsMethods.Add(conversion, conversion); 2324methodsBySignature.Add(method, method); 2624membersByName.Add(pair.Key, concatMembers([], extension, pair.Value, ref membersUnordered)); 3113instanceMap.Add(this, this); 3155instanceMap.Add(tOriginal, t); 3300membersByName.Add(name, typesAsSymbols); 4160membersBySignature.Add(symbol, symbol); 4203membersBySignature.Add(symbol, symbol); 5050fieldsByName.Add(fieldName, member); 5057memberSignatures.Add(member, member); 5076memberSignatures.Add(ctor, ctor);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
363interfaceLocations.Add(t, decl.NameLocation);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
38_map.Add(identifier, list);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (2)
58_trailingTriviaMap.Add(pair.Key.Item1, trailingTrivia); 63_leadingTriviaMap.Add(pair.Key.Item2, leadingTrivia);
Microsoft.CodeAnalysis.CSharp.Features (5)
ChangeSignature\CSharpChangeSignatureService.cs (1)
841dictionary.Add(originalParameters[i].Name.ToString(), paramNode);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
210result.Add(parameter, synthesizedField);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
723replacements.Add(declaration, IdentifierName(designation.Identifier) 750replacements.Add(pattern, pattern.WithDesignation(newDesignation));
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
168deduplicated.Add(directive, directive);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
38_map.Add(identifier, list);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (2)
58_trailingTriviaMap.Add(pair.Key.Item1, trailingTrivia); 63_leadingTriviaMap.Add(pair.Key.Item2, leadingTrivia);
Microsoft.CodeAnalysis.Extensions.Package (8)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Microsoft.CodeAnalysis.Features (166)
CallHierarchy\AbstractCallHierarchyService.cs (1)
254groupedResults.Add(item.ItemId, entry);
ChangeSignature\AbstractChangeSignatureService.cs (2)
343nodesToUpdate.Add(documentId, []); 367nodesToUpdate.Add(documentId2, []);
ChangeSignature\SignatureChange.cs (1)
43_originalIndexToUpdatedIndexMap.Add(i, index);
CodeFixes\Service\CodeFixService.cs (3)
376fixerMap.Add(id, filteredFixers); 711diagnosticAndEquivalenceKeyToFixersMap.Add((diagnostic, equivalenceKey), fixer); 717diagnosticAndEquivalenceKeyToFixersMap.Add((diagnostic, equivalenceKey), fixer);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
53currentDiagnosticSpans.Add(diagnostic, diagnostic.Location.SourceSpan);
CodeRefactorings\CodeRefactoringService.cs (1)
229providerToIndex.Add(provider, providerToIndex.Count);
Completion\CompletionService.ProviderManager.cs (1)
130_rolesToProviders.Add(roles, providers);
Completion\CompletionService_GetCompletions.cs (1)
403_displayNameToItemsMap.Add(entireDisplayText, item);
Completion\PatternMatchHelper.cs (1)
90_patternMatcherMap.Add(key, patternMatcher);
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
385documentIdToIndex.Add(document.Id, 0); 387documentIdToIndex.Add(documentId, documentIdToIndex.Count);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
395documentToEditorMap.Add(document, editor); 565documentToEditorMap.Add(document, editor);
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (1)
185builder.Add(analyzer, diagnostics);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (1)
33builder.Add(analyzer, diagnostics);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (11)
805map.Add(edit.OldNode, edit.Kind); 810map.Add(edit.NewNode, edit.Kind); 821map.Add(editScript.Match.OldRoot, EditKind.Update); 822map.Add(editScript.Match.NewRoot, EditKind.Update); 1202lazyActiveOrMatchedLambdas.Add(oldEnclosingLambdaBody, lambda); 3675constructorEdits.Add(newType, constructorEdit = new MemberInitializationUpdates(oldType)); 3680constructorEdit.ChangedDeclarations.Add(newDeclaration, syntaxMaps); 4070deletedTypes.Add(key, indices = ArrayBuilder<int>.GetInstance()); 6394index.Add(array[i].Key, i); 6558oldParameterCaptures.Add(GetParameterKey(oldParameterCapture, cancellationToken), oldCaptureIndex); 6562oldLocalCaptures.Add(GetSymbolDeclarationSyntax(oldCapture.Symbol, cancellationToken), oldCaptureIndex);
EditAndContinue\ActiveStatementsMap.cs (2)
82updatedSpansByDocumentPath.Add(documentName, documentInfos = ArrayBuilder<(ManagedActiveStatementDebugInfo, SourceFileSpan, ActiveStatementId)>.GetInstance()); 109byInstruction.Add(statement.InstructionId, statement);
EditAndContinue\DebuggingSession.cs (1)
360_initialBaselineModuleReaders.Add(moduleId, (metadataReaderProvider, debugInfoReaderProvider));
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
237s_lazyModuleDiagnosticDescriptors.Add(status, descriptor = new DiagnosticDescriptor(
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
152mappedSpansByDocumentPath.Add(mappedFilePath, newMappedDocumentSpans);
EditAndContinue\EditSession.cs (2)
967mergedUpdateEditSyntaxMaps.Add(partialTypeEdits.Key, (mergedMatchingNodes, mergedRuntimeRudeEdits)); 1512diagnosticBuilders.Add(newProject.Id, projectDiagnostics);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
85_documentsWithChangedLoaderByPath.Add(oldDocument.FilePath, (oldDocument.DocumentState, oldSolutionVersion));
EditAndContinue\SolutionSnapshotRegistry.cs (1)
44_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)
80_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);
FindUsages\IRemoteFindUsagesService.cs (1)
121_idToDefinition.Add(id, rehydrated);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
303methodCallSites.Add(document, []); 323methodCallSites.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 (4)
264_documentationMap.Add( 268_documentationMap.Add( 285_documentationMap.Add(group, 855_groupMap.Add(group, existingParts);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
438nodesToUpdate.Add(identifierNode, qualified);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (2)
95_typeForwardCache.Add(dllPath, cachedTypeForwards); 216result.Add((foundNamespace, foundTypeName), assemblyName);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
227_assemblyToProjectMap.Add(assemblyName, projectId);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
27result.Add(glyph, new QuickInfoGlyphElement(glyph));
Shared\Utilities\AnnotatedSymbolMapping.cs (3)
65documentIdToSymbolsMap.Add(solution.GetRequiredDocument(typeNode.SyntaxTree).Id, []); 77documentIdToSymbolsMap.Add(id, []); 86symbolToDeclarationAnnotationMap.Add(symbol, annotation);
Snippets\AbstractSnippetService.cs (1)
62_identifierToProviderMap.Add(providerData.Identifier, providerData);
Snippets\RoslynLSPSnippetConverter.cs (1)
95dictionary.Add(position - textChangeStart, (placeholder.Text, i + 1));
src\roslyn\src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
44s_cachedProperties.Add((includeInFixAll, equivalenceKey), properties);
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
176enumValues.Add(enumValue, fieldSymbol);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (4)
271idToPragmasMap.Add(id, pragmasForIdInReverseOrder); 289pragmasToIsUsedMap.Add(trivia, false); 816idToSuppressMessageAttributesMap.Add(id, nodesForId); 828suppressMessageAttributesToIsUsedMap.Add(attributeNode, isPartial);
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
59builder.Add(method, format);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
73Substitutions.Add(symbol, namedType); 80Substitutions.Add(symbol, commonDerivedType);
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
54replacements.Add(token, token.WithLeadingTrivia(leadingTrivia));
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (7)
533nodeReplacementMap.Add(node.GetRequiredParent(), syntaxFacts.GetRightHandSideOfAssignment(node.GetRequiredParent())); 561nodeReplacementMap.Add(node.GetRequiredParent(), GetReplacementNodeForCompoundAssignment(node.GetRequiredParent(), newNameNode, editor, syntaxFacts)); 565nodeReplacementMap.Add(node, GetReplacementNodeForVarPattern(node, newNameNode)); 572nodeReplacementMap.Add(node.GetRequiredParent(), newParentNode); 576nodeReplacementMap.Add(node, newNameNode); 640nodeReplacementMap.Add(localDeclarationStatement, localDeclarationStatement.WithAdditionalAnnotations(s_existingLocalDeclarationWithoutInitializerAnnotation)); 790memberDeclReplacementsMap.Add(memberDecl, newMemberDecl);
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
927result.Add(name, value);
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
181builtReferences.Add(reference.ItemSpecification, reference);
Wrapping\AbstractCodeActionComputer.cs (2)
192leftTokenToTrailingTrivia.Add(edit.Left, edit.NewLeftTrailingTrivia); 193rightTokenToLeadingTrivia.Add(edit.Right, edit.NewRightLeadingTrivia);
Microsoft.CodeAnalysis.Razor.Compiler (17)
Language\Components\ComponentBindLoweringPass.cs (2)
82bindEntries.Add(new(parent, node), new BindEntry(reference)); 109bindEntries.Add(key, new BindEntry(parameterReference));
Language\Components\ComponentGenericTypePass.cs (1)
72bindings.Add(attribute.Name, new Binding(attribute));
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (2)
251_tagHelperMap.Add(currentAssemblyName, currentTagHelpers); 461_namespaceToComponentsMap.Add(typeNamespace, components);
Language\Extensions\DefaultTagHelperOptimizationPass.cs (1)
242_tagHelpers.Add(tagHelper, GenerateFieldName(tagHelper));
Language\FeatureCache`1.cs (1)
52_typeToFeaturesMap.Add(key, values);
Language\Intermediate\IntermediateNodeFormatter.cs (1)
95_properties.Add(key, value);
Language\Legacy\CSharpCodeParser.cs (3)
186keywordParserMap.Add(keyword, handler); 197keywordParserMap.Add(CSharpSyntaxKind.AwaitKeyword, ParseAwaitExpression); 238directiveParserMap.Add(directive, (builder, transition) =>
Language\TagHelperBinder.cs (2)
80tagNameToBuilderIndexMap.Add(tagName, builderIndex); 106map.Add(tagNamePrefix + tagName, builders[builderIndex].ToSet());
Language\TagHelperCollection.SegmentCollectionBase.cs (1)
35lookupTable.Add(item.Checksum, index++);
Language\TypeNameObject.cs (2)
70typeNameToIndex.Add(fullName, index); 74typeNameToIndex.Add(alias, index);
Mvc\ViewComponentTagHelperPass.cs (1)
170_tagHelpers.Add(tagHelper, (className, fullyQualifiedName, fieldName));
Microsoft.CodeAnalysis.ResxSourceGenerator (44)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
70perTreeOptionsBuilder.Add(tree, new Lazy<SyntaxTreeCategorizedAnalyzerConfigOptions>(() => Create(tree, analyzerConfigOptionsProvider)));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (7)
152wildcardNamesBuilder.Add(AllKinds, associatedValues); 155associatedValues.Add(parts.SymbolName[0..^1], parts.AssociatedValue); 175wildcardNamesBuilder.Add(symbolKind.Value, associatedValues); 178associatedValues.Add(parts.SymbolName[2..^1], parts.AssociatedValue); 186namesBuilder.Add(parts.SymbolName, parts.AssociatedValue); 216symbolsBuilder.Add(constituentNamespace, parts.AssociatedValue); 223symbolsBuilder.Add(symbol, parts.AssociatedValue);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
56instance.Add(kvp.Key, kvp.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Microsoft.CodeAnalysis.Scripting (5)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (3)
205_loadedAssembliesBySimpleName.Add(identity.Name, new List<LoadedAssemblyInfo> { info }); 218_dependenciesWithLocationBySimpleName.Add(simpleName, new List<AssemblyIdentityAndLocation> { dependency }); 440_assembliesLoadedFromLocation.Add(
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
271_noShadowCopyCache.Add(key, new CacheEntry<Metadata>(publicMetadata, newMetadata)); 337_shadowCopies.Add(key, newCopy);
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)
154variableScope.Add(parameter, _currentBlock) 250blockParent.Add(_currentBlock, previousBlock) 307blockParent.Add(_currentBlock, oldBlock) 314variableScope.Add(parameter, _currentBlock) 533gotoBlock.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.Workspaces (78)
Classification\IRemoteSemanticClassificationService.cs (1)
85classificationTypeToId.Add(type, id);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
217docIdToTextMerger.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]);
Editing\SolutionEditor.cs (1)
33_documentEditors.Add(id, editor);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
472order.Add(projectId, index);
FindSymbols\ReferenceLocationExtensions.cs (1)
66result.Add(containingSymbol, locations);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
91interceptsLocationInfo.Add(
LinkedFileDiffMerging\LinkedFileMergeSessionResult.cs (1)
25MergeConflictCommentSpans.Add(documentId, fileMergeResult.MergeConflictResolutionSpans);
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\ConflictingIdentifierTracker.cs (1)
53_currentIdentifiersInScope.Add(name, [token]);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
273documentIdErrorStateLookup.Add(documentId, await originalDoc.HasAnyErrorsAsync(_cancellationToken).ConfigureAwait(false));
Shared\Utilities\DocumentationComment.cs (4)
155_comment._exceptionTexts.Add(typeAndBuilderPair.Key, typeAndBuilderPair.Value.AsImmutable()); 261_comment._parameterTexts.Add(name, TrimEachLine(paramText)); 272_comment._typeParameterTexts.Add(name, TrimEachLine(typeParamText)); 285(_exceptionTextBuilders ??= []).Add(type, ImmutableArray.CreateBuilder<string>());
Shared\Utilities\ExtensionOrderer.cs (1)
30graph.Nodes.Add(extension, new Node<TExtension, TMetadata>(extension));
Shared\Utilities\SemanticMap.Walker.cs (2)
23map._expressionToInfoMap.Add(childNode, info); 32map._tokenToInfoMap.Add(childToken, info);
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
172_analyzerReferences.Add(checksum, builder.MoveToImmutable());
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
109_documentPathsToDocumentIds.Add(fullPath, documentId); 110_project._documentWatchedFiles.Add(documentId, _project._documentFileChangeContext.EnqueueWatchingFile(fullPath)); 165_documentPathsToDocumentIds.Add(fullPath, documentId);
Workspace\Solution\ProjectDependencyGraph.cs (1)
224reverseReferencesMapBuilders.Add(referencedId, builder);
Workspace\Solution\Solution.cs (2)
1578_documentIdToFrozenSolution.Add(documentId, lazySolution); 1598solution._documentIdToFrozenSolution.Add(documentId, AsyncLazy.Create(solution));
Workspace\Solution\SolutionCompilationState.cs (2)
1437documentStates.Add(newGeneratedState.Id, newGeneratedState); 1454documentStates.Add(newGeneratedState.Id, newGeneratedState);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
650metadataReferenceToProjectId.Add(metadataReference, projectReference.ProjectId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
174documentIdToIndex.Add(documentId, documentsToAddOrUpdate.Count);
Workspace\Solution\SolutionCompilationState.SkeletonReferenceSet.cs (1)
48_referenceMap.Add(properties, value);
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (1)
180documentToIndex.Add(document, documentToIndex.Count);
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
87_lazyProjectChecksums.Add(projectId, checksums);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
106generatorToAnalyzerReference.Add(generator, reference);
Workspace\Solution\SolutionState_Checksum.cs (1)
77_lazyProjectChecksums.Add(projectId, checksums);
Workspace\Workspace_Editor.cs (4)
452_documentToAssociatedBufferMap.Add(documentId, textContainer); 453_openSourceGeneratedDocumentIdentities.Add(documentId, (document.Identity, document.GenerationDateTime)); 498_textTrackers.Add(documentId, tracker); 499_documentToAssociatedBufferMap.Add(documentId, textContainer);
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\BuildHostProcessManager.cs (1)
109_processes.Add(buildHostKind, buildHostProcess);
MSBuild\MSBuildProjectLoader.Worker.cs (2)
166_projectIdToFileInfoMap.Add(projectId, projectFileInfo); 183_pathToDiscoveredProjectInfosMap.Add(projectPath, results);
MSBuild\ProjectMap.cs (3)
90_projectIdToOutputFilePathMap.Add(projectId, outputFilePath); 95_projectIdToOutputRefFilePathMap.Add(projectId, outputRefFilePath); 134_projectPathToProjectIdsMap.Add(projectPath, projectIds);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
MSBuild\ProjectFile\ProjectFile.cs (3)
102metadata.Add(MetadataNames.Aliases, string.Join(",", aliases)); 105metadata.Add(MetadataNames.HintPath, hintPath); 181metadata.Add(MetadataNames.Aliases, string.Join(",", reference.Aliases));
Microsoft.CSharp (20)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeDesc.cs (4)
148names.Add(func.Name, null); 161names.Add(func.Name, null); 172names.Add(func.Name, null); 183names.Add(name, null);
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeLibDesc.cs (3)
81typeLibDesc._enums.Add(enumDesc.TypeName, enumDesc); 98typeLibDesc._enums.Add(aliasName, enumDesc); 107s_cachedTypeLibDesc.Add(typeLibAttr.guid, typeLibDesc);
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (3)
417s_cacheComTypeDesc.Add(typeAttr.guid, _comTypeDesc); 459events.Add(name, eventDesc); 624s_cacheComTypeDesc.Add(typeAttr.guid, _comTypeDesc);
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
82_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)
191typesByName.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.Diagnostics.DataContractReader.Contracts (5)
Contracts\DacStreams_1.cs (1)
118stringToAddress.Add(eeObjectPointer, name);
Contracts\EcmaMetadata_1.cs (1)
59_metadata.Add(handle, provider);
Data\Frames\ArgumentRegisters.cs (1)
22registers.Add(name, value);
Data\Frames\CalleeSavedRegisters.cs (1)
22registers.Add(name, value);
Data\Frames\HijackArgs.cs (1)
22registers.Add(name, value);
Microsoft.Diagnostics.DataContractReader.Legacy (2)
SOSDacImpl.cs (2)
4839expectedElements.Add(default, 0); 4898expectedElements.Add(default, 0);
Microsoft.DotNet.ApiCompat.Task (1)
ValidatePackageTask.cs (1)
195packageAssemblyReferencesDict.Add(nuGetFramework, references);
Microsoft.DotNet.ApiCompatibility (6)
Mapping\AssemblyMapper.cs (2)
90_namespaces.Add(ns, mapper); 115typeForwards.Add(symbol.ContainingNamespace, types);
Mapping\AssemblySetMapper.cs (1)
50_assemblies.Add(assemblyContainer.Element, mapper);
Mapping\NamespaceMapper.cs (1)
97_types.Add(type, mapper);
Mapping\TypeMapper.cs (2)
102_nestedTypes.Add(nestedType, mapper); 145_members.Add(member, mapper);
Microsoft.DotNet.ApiSymbolExtensions (3)
AssemblySymbolLoader.cs (3)
100dictionary.Add(assemblySymbol.Name, assemblySymbol); 144_referencePathFiles.Add(assemblyName, directoryName); 409_loadedAssemblies.Add(assemblyName, metadataReference);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
70runtimeItems.Add(runtimeName, items);
Microsoft.DotNet.Build.Manifest (3)
VersionIdentifier.cs (3)
170majorMinorPatchDictionary.Add(majorMinorPatchIndex, majorMinorPatch); 176majorMinorPatchDictionary.Add(majorMinorPatchIndex, $"{majorMinorPatch}{versionSuffix.ToString()}"); 200majorMinorPatchDictionary.Add(majorMinorPatchIndex, $"{majorMinorPatch}{versionSuffix.ToString()}");
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixBuildWixpack.cs (1)
490dict.Add("BUILDARCH", installerPlatform);
src\RpmBuilder.cs (1)
166_scripts.Add(kind, script);
Microsoft.DotNet.Build.Tasks.Packaging (18)
ApplyMetaPackages.cs (2)
67suppressMetaPackages.Add(metapackage.ItemSpec, value); 91suppressMetaPackages.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); 245_frameworks.Add(inboxFramework, s_noRids); 277_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)
90packageReferences.Add(emptyItem.ItemSpec, emptyItem);
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
46s_targetFrameworkResolverCache.Add(runtimeGraph, targetFrameworkResolver);
Microsoft.DotNet.Cli.Utils (2)
ForwardingAppImplementation.cs (1)
91_environmentVariables.Add(name, value);
MSBuildForwardingAppWithoutLogging.cs (1)
158_msbuildRequiredEnvironmentVariables.Add(name, value);
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
165typeTable.Add(type, assemblyListForTypes);
Microsoft.DotNet.HotReload.Watch (10)
Browser\BrowserRefreshServerFactory.cs (1)
55_servers.Add(key, server);
Build\EvaluationResult.cs (2)
184staticWebAssetManifestsBuilder.Add(projectInstance.GetId(), manifest); 223fileItemsBuilder.Add(filePath, new FileItem
FileWatcher\FileWatcher.cs (2)
145_directoryTreeWatchers.Add(directory, newWatcher); 149_directoryWatchers.Add(directory, newWatcher);
FileWatcher\PollingDirectoryWatcher.cs (2)
91ForeachEntityInDirectory(_watchedDirectory, _currentSnapshot.Add); 110_snapshotBuilder.Add(filePath, currentWriteTime);
HotReload\CompilationHandler.cs (3)
767assets.Add(applicationProjectInstance, applicationAssets); 775applicationAssets.Add(filePath, new StaticWebAsset( 827builder.StaticAssetsToUpdate.Add(runningProject, updatesPerRunningProject = []);
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.PackageValidation (1)
Validators\CompatibleTFMValidator.cs (1)
114packageTfmMapping.Add(forwardTfm, [ reverseTfm ]);
Microsoft.DotNet.ProjectTools (1)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
919_seen.Add(directive, directive);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
68types.Add(type, assembly);
Microsoft.DotNet.TemplateLocator (6)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (4)
234dependsOn.Add(dependencyId, dependencyVersion!); 262workloads.Add(workloadId, workload); 360dictionary.Add(name, val ?? string.Empty); 386dictionary.Add(name, val);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (1)
167(redirects ??= new()).Add(redirect.Id, (redirect, manifest));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
90workloadSet.ManifestVersions.Add(kvp.Key, kvp.Value);
Microsoft.DotNet.XliffTasks (2)
Model\XlfDocument.cs (2)
86nodesById.Add(node.Id, node); 269dictionary.Add(id, target);
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1596(allApprovalRequestsMessages ??= []).Add(farc.Id, message);
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary{TValue}.cs (1)
86public void Add(string key, TValue value) => _dictionary.Add(key, value);
Functions\AIFunctionArguments.cs (1)
123public void Add(string key, object? value) => _arguments.Add(key, value);
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\TelemetryHelper.cs (1)
178combinedProperties.Add(kvp.Key, kvp.Value);
Microsoft.Extensions.AI.Integration.Tests (1)
VerbatimMultiPartHttpHandler.cs (1)
123parameters.Add(name, new List<JsonElement> { ParseContentToJsonElement(rawValue) });
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
122state.Add(type, FieldOnlyResult.Incomplete);
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 (2)
ServiceLookup\CallSiteFactory.cs (1)
403keyedSlotAssignment.Add(key, 0);
ServiceLookup\CallSiteRuntimeResolver.cs (1)
164resolvedServices.Add(callSite.Cache.Key, resolved);
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
661libraries.Add(Pool(libraryName), ReadOneLibrary(ref reader));
Microsoft.Extensions.Diagnostics (2)
Metrics\DefaultMeterFactory.cs (1)
50_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.Diagnostics.ResourceMonitoring (1)
Windows\Disk\WindowsDiskMetrics.cs (1)
123_diskIoRateCounters.Add(counterName, ratePerfCounter);
Microsoft.Extensions.Http.Diagnostics (2)
Http\HttpDependencyMetadataResolver.cs (2)
98dependencyTrieMap.Add(routeMetadata.DependencyName, routeMetadataTrieRoot); 187finalArrayDict.Add(dep.Key, finalArray);
Microsoft.Extensions.Options.SourceGeneration (4)
Emitter.cs (2)
814staticValidationAttributesDict.Add(instantiationStatement, staticValidationAttributeInstance); 920staticValidatorsDict.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.ServiceDiscovery.Dns (1)
Resolver\DnsResolver.cs (1)
268aRecordMap.Add(answer.Name, addressList);
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.MetadataExtractor (3)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (3)
397tagDescriptionDictionary.Add(fieldSymbol.ConstantValue.ToString(), xmlDefinition); 762tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 794tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
153options.Add("build_property.MetadataReportOutputPath", string.Empty);
Microsoft.Gen.Metrics (5)
Emitter.cs (1)
29metricClassesDict.Add(cl.Namespace, list);
MetricFactoryEmitter.cs (1)
25metricClassesDict.Add(cl.Namespace, list);
Parser.cs (3)
397tagDescriptionDictionary.Add(fieldSymbol.ConstantValue.ToString(), xmlDefinition); 762tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 794tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.MetricsReports (3)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (3)
397tagDescriptionDictionary.Add(fieldSymbol.ConstantValue.ToString(), xmlDefinition); 762tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 794tagDescriptionDictionary.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 (15)
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);
ComInterfaceGenerator.cs (1)
84methodSymbols.Add(m.Value.ComMethod, m.Value.Symbol);
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)
423result.Add(identifier, (method, parameterTypes)); 462result.Add(identifier, (method, parameterTypes));
Microsoft.Maui (2)
Extensions\EnumerableExtensions.cs (1)
45 result.Add(group, new List<TSource> { item });
WeakEventManager.cs (1)
110 _eventHandlers.Add(eventName, targets);
Microsoft.Maui.Controls (17)
Application\Application.cs (1)
506 _requestedWindows.Add(id, new WeakReference<Window>(window));
BindableObject.cs (1)
748 _properties.Add(property, context);
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.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); 298 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 (4)
UnitTests\TestEntryPoints.cs (4)
3354inputBindingMap.Add("Data", new List<ParameterBinding>() { parameterBinding }); 3355inputMap.Add(parameterBinding, new SimpleVariableBinding("data")); 3406inputBindingMap.Add("TrainingData", new List<ParameterBinding>() { parameterBinding }); 3407inputMap.Add(parameterBinding, new SimpleVariableBinding("data"));
Microsoft.ML.Data (53)
Commands\DataCommand.cs (3)
178averageMetric.Add(nameOfMetric, metricValue); 189averageMetric.Add(nameOfMetric, Double.NaN); 199newAverageMetric.Add(pair.Key, pair.Value / metricValues.Length);
Data\Conversion.cs (9)
322_delegatesStd.Add(key, fn); 323_delegatesAll.Add(key, fn); 330_delegatesAll.Add(key, fn); 335_isNADelegates.Add(typeof(T), fn); 340_getNADelegates.Add(typeof(T), fn); 345_hasNADelegates.Add(typeof(T), fn); 350_isDefaultDelegates.Add(typeof(T), fn); 355_hasZeroDelegates.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 (71)
CrossValidationMacro.cs (30)
183inputBindingMap.Add(nameof(splitArgs.Data), new List<ParameterBinding>() { paramBinding }); 184inputMap.Add(paramBinding, inputData); 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 }); 243inputMap.Add(trainingData, new ArrayIndexVariableBinding(splitOutputTrainData.VarName, k)); 245inputBindingMap.Add(nameof(args.TestingData), new List<ParameterBinding> { testingData }); 246inputMap.Add(testingData, new ArrayIndexVariableBinding(splitOutputTestData.VarName, k)); 250outputMap.Add(nameof(TrainTestMacro.Output.PredictorModel), predModelVar.VarName); 261inputBindingMap.Add(nameof(combineModelsArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 262inputMap.Add(paramBinding, inputTransformModel); 264inputBindingMap.Add(nameof(combineModelsArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 265inputMap.Add(paramBinding, inputPredictorModel); 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 }); 323combineInputMap.Add(warningsArray, new SimpleVariableBinding(warningsArrayVar.VarName)); 325combineInputBindingMap.Add(nameof(combineArgs.OverallMetrics), new List<ParameterBinding> { overallArray }); 326combineInputMap.Add(overallArray, new SimpleVariableBinding(overallArrayVar.VarName)); 328combineInputBindingMap.Add(nameof(combineArgs.PerInstanceMetrics), new List<ParameterBinding> { combinePerInstArray }); 329combineInputMap.Add(combinePerInstArray, new SimpleVariableBinding(instanceArrayVar.VarName)); 333combineInputBindingMap.Add(nameof(combineArgs.ConfusionMatrix), new List<ParameterBinding> { combineConfArray }); 334combineInputMap.Add(combineConfArray, new SimpleVariableBinding(confusionMatrixArrayVar.VarName)); 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 (8)
63inputBindingMap.Add(nameof(labelIndicatorArgs.Data), new List<ParameterBinding>() { paramBinding }); 64inputMap.Add(paramBinding, node.GetInputVariable(nameof(input.TrainingData))); 68outputMap.Add(nameof(CommonOutputs.TransformOutput.OutputData), remappedLabelVar.VarName); 176inputBindingMap.Add(nameof(combineArgs.ModelArray), new List<ParameterBinding>() { paramBinding }); 177inputMap.Add(paramBinding, combineNodeModelArrayInput); 179inputBindingMap.Add(nameof(combineArgs.TrainingData), new List<ParameterBinding>() { paramBinding }); 180inputMap.Add(paramBinding, node.GetInputVariable(nameof(input.TrainingData))); 183outputMap.Add(nameof(Output.PredictorModel), node.GetOutputVariableName(nameof(Output.PredictorModel)));
TrainTestMacro.cs (29)
174inputBindingMap.Add(nameof(combineArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 175inputMap.Add(paramBinding, inputTransformModel); 177inputBindingMap.Add(nameof(combineArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 178inputMap.Add(paramBinding, inputPredictorModel); 183outputMap.Add(nameof(ModelOperations.PredictorModelOutput.PredictorModel), combineNodeOutputPredictorModel.VarName); 194inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 195inputMap.Add(paramBinding, testingVar); 198inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 199inputMap.Add(paramBinding, scoreNodeInputPredictorModel); 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 }); 229inputMap.Add(paramBinding, trainingVar); 232inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 233inputMap.Add(paramBinding, scoreNodeInputPredictorModel); 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 }); 253inputMap.Add(paramBinding, evalTrainingNodeInputData); 257outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.Warnings), outTrainingVariableName); 259outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.OverallMetrics), outTrainingVariableName); 261outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.PerInstanceMetrics), outTrainingVariableName); 263outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.ConfusionMatrix), outTrainingVariableName); 274inputBindingMap.Add(nameof(evalArgs.Data), new List<ParameterBinding>() { paramBinding }); 275inputMap.Add(paramBinding, evalNodeInputData); 279outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.Warnings), outVariableName); 281outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.OverallMetrics), outVariableName); 283outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.PerInstanceMetrics), outVariableName); 285outputMap.Add(nameof(CommonOutputs.ClassificationEvaluateOutput.ConfusionMatrix), outVariableName);
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 (10)
FastTree.cs (7)
3304keyValues.Add(NodeKeys.LeafValue, _regTree.LeafValue(nodeId)); 3317keyValues.Add(NodeKeys.SplitName, featureList); 3320keyValues.Add(NodeKeys.SplitName, features[_regTree.SplitFeature(nodeId)]); 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 (17)
Model\BPETokenizer.cs (2)
156vocab.Add(new StringSpanOrdinalKey(kvp.Key), kvp.Value); 389Merges.Add(new Pair<int>(aId, bId), (i, newId));
Model\CodeGenTokenizer.cs (1)
1790mergeRanks.Add(new StringSpanOrdinalKeyPair(line.Substring(0, index), line.Substring(index + 1)), rank++);
Model\EnglishRobertaTokenizer.cs (1)
242vocab.Add(item.Key.ToString(), item.Value);
Model\SentencePieceBaseModel.cs (2)
46InternalSpecialTokens.Add(new StringSpanOrdinalKey(item.Key), item.Value); 47SpecialTokensReverse.Add(item.Value, item.Key);
Model\SentencePieceBpeModel.cs (4)
31_vocab.Add(new StringSpanOrdinalKey(piece.Piece), (i, piece.Score, (byte)piece.Type)); 32_vocabReverse.Add(i, piece.Piece); 54vocab.Add(item.Key.ToString(), item.Value.Id); 1211revMerge.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)
1305tiktokenConfiguration.SpecialTokens.Add(extraSpecialToken.Key, extraSpecialToken.Value); 1465tiktokenConfiguration.SpecialTokens.Add(extraSpecialToken.Key, extraSpecialToken.Value); 1505tiktokenConfiguration.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.Tokenizers.Tests (1)
src\Microsoft.ML.Tokenizers\Utils\ByteToUnicodeEncoding.cs (1)
30byteToUnicodeMapping.Add((char)b, (char)(numChars + n));
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 (11)
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);
Dracula\DictCountTable.cs (1)
86Tables[iTable].Add(key, value);
Expression\KeyWordTable.cs (2)
44_mpnstrtidWord.Add(_pool.Add(str), new KeyWordKind(tid, false)); 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.NET.Build.Containers (2)
AuthHandshakeMessageHandler.cs (1)
139keyValues.Add(match.Groups["key"].Value, match.Groups["value"].Value);
ImageConfig.cs (1)
282envVars.Add(val[0], val[1]);
Microsoft.NET.Build.Tasks (18)
ApplyImplicitVersions.cs (1)
74result.Add(implicitPackageReferenceVersion.Name, implicitPackageReferenceVersion);
DependencyContextBuilder.cs (4)
187_compileReferences.Add(group.Key, group.ToList()); 198_resolvedNuGetFiles.Add(group.Key, group.ToList()); 231_dependencyLibraries.Add(dependencyLibrary.Name, dependencyLibrary); 948ReferenceLibraryNames.Add(reference, name);
GenerateDepsFile.cs (1)
130filteredPackages.Add(
ParseTargetManifests.cs (1)
43runtimeStorePackages.Add(pkg, new StringBuilder(targetManifestFileName));
ProjectContext.cs (1)
138filterLookup.Add(pkg.Id, packageinfos);
ReferenceInfo.cs (1)
135directReferences.Add(referenceInfo.FullPath, referenceInfo);
ResolvePackageAssets.cs (1)
1886_stringTable.Add(value, index);
ResolvePackageDependencies.cs (1)
415_fileTypes.Add(fileKey, fileType);
SingleProjectInfo.cs (1)
95projectReferences.Add(
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (4)
234dependsOn.Add(dependencyId, dependencyVersion!); 262workloads.Add(workloadId, workload); 360dictionary.Add(name, val ?? string.Empty); 386dictionary.Add(name, val);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (1)
167(redirects ??= new()).Add(redirect.Id, (redirect, manifest));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
90workloadSet.ManifestVersions.Add(kvp.Key, kvp.Value);
Microsoft.NET.HostModel (3)
Bundle\Bundler.cs (1)
529relativePathToSpec.Add(fileSpec.BundleRelativePath, (fileSpec, type));
ComHost\ClsidMap.cs (1)
58clsidMap.Add(guidString,
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
258dataEntryTable.Add(language.Item1, contentBuilder.CountBytes);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
GenerateBlazorWebAssemblyBootJson50.cs (2)
116resourceData.satelliteResources.Add(resourceCulture, resourceList); 147resourceList.Add(resourceName, $"sha256-{resource.GetMetadata("FileHash")}");
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1670dictionary.Add(candidateAsset.Identity, candidateAsset);
Microsoft.NET.Sdk.Publish.Tasks (12)
MsDeploy\CommonUtility.cs (4)
278s_wellKnownNamesDict.Add(wellKnownName, null); 303s_wellKnownNamesMsdeployDict.Add(wellKnownName, null); 1187nameValueDictionary.Add(item.Name, item.Value); 1231entryIdentityDictionary.Add(identityString, null);
MsDeploy\VsMSDeployObject.cs (3)
278m_NameValueDictionary.Add(name, value); 295m_NameValueDictionary.Add(expressMetadata.ToString(), value); 327m_NameValueDictionary?.Add(name, value);
Tasks\MsDeploy\CreateParameterFile.cs (2)
127dictionaryLookup.Add(name, parameterElement); 256dictionaryLookup.Add(name, parameterElement);
Tasks\MsDeploy\MSDeploy.cs (3)
656lookupDictionary.Add(identity, name); 792nameValueDictionary.Add(name, data); 807lookupDictionary.Add(identity, name);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (18)
ApplyCompressionNegotiation.cs (1)
220compressionHeadersByEncoding.Add(compressedAsset.AssetTraitValue, compressionHeaders);
Compression\ResolveCompressedAssets.cs (2)
134existingCompressionFormatsByAssetItemSpec.Add(itemSpec, existingFormats); 223existingCompressionFormatsByAssetItemSpec.Add(relatedAssetItemSpec, existingFormats);
Data\StaticWebAsset.cs (1)
1670dictionary.Add(candidateAsset.Identity, candidateAsset);
DefineStaticWebAssets.Cache.cs (1)
209remainingCandidates.Add(hash, candidate);
DefineStaticWebAssets.cs (2)
526assetsByRelativePath.Add(candidateRelativePath, (asset, null)); 843groupValues.Add(def.Name, def.Value);
FilterStaticWebAssetEndpoints.cs (1)
53endpointFoundMatchingAsset.Add(asset.Identity, asset);
GenerateStaticWebAssetsDevelopmentManifest.cs (7)
186contentRootIndex.Add(asset.ContentRoot, contentRootIndex.Count); 194currentNode.Children.Add(segment, new StaticWebAssetNode 213currentNode.Children.Add(segment, newNode); 231contentRootIndex.Add(pattern.ContentRoot, contentRootIndex.Count); 255contentRootIndex.Add(pattern.ContentRoot, contentRootIndex.Count); 273currentNode.Children.Add(segment, childNode); 295currentNode.Children.Add(segment, newNode);
GenerateStaticWebAssetsManifest.cs (1)
181result.Add(targetPath, (asset, null, null));
Legacy\ValidateStaticWebAssetsUniquePaths.cs (1)
49assetsByWebRootPaths.Add(webRootPath, contentRootDefinition);
Utils\HashingUtils.cs (1)
63hashSet.Add(Convert.ToBase64String(ComputeHash(memoryStream, candidateAssets.AsSpan(i, 1), properties: metadata)), candidate);
Microsoft.NET.Sdk.WorkloadManifestReader (6)
WorkloadManifestReader.cs (4)
234dependsOn.Add(dependencyId, dependencyVersion!); 262workloads.Add(workloadId, workload); 360dictionary.Add(name, val ?? string.Empty); 386dictionary.Add(name, val);
WorkloadResolver.cs (1)
167(redirects ??= new()).Add(redirect.Id, (redirect, manifest));
WorkloadSet.cs (1)
90workloadSet.ManifestVersions.Add(kvp.Key, kvp.Value);
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
CachingWorkloadResolver.cs (1)
163itemsToAdd.Add("MissingWorkloadPack",
Microsoft.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (1)
42_memberReferences.Add(id, reference);
System\Private\Windows\Ole\TypeBinder.cs (1)
90_cachedTypeNames.Add(fullName, parsed);
Microsoft.TemplateEngine.Cli (3)
Alias\AliasModel.cs (1)
25CommandAliases.Add(aliasName, aliasTokens);
HostSpecificTemplateData.cs (2)
151map.Add(paramInfo.Key, longNameOverride); 169map.Add(paramInfo.Key, shortNameOverride);
Microsoft.TemplateEngine.Edge (6)
Installers\NuGet\NuGetInstaller.cs (1)
383installationDetails.Add(InstallerConstants.NuGetSourcesKey, nuGetManagedSource.NuGetSource!);
Settings\TemplateCache.cs (1)
101mountPointInfo.Add(entry.Key, entry.Value.GetValue<DateTime>());
Settings\TemplateInfo.cs (1)
277localizedChoices.Add(templateChoice.Key, localizedChoice);
Settings\TemplateInfoReader.cs (3)
68baselineInfo.Add(item.Key, baseline); 99tags.Add(item.Key, item.Value?.GetValue<string>() ?? string.Empty); 171choices.Add(
Microsoft.TemplateEngine.Utils (1)
DictionaryExtensions.cs (1)
40cloneDict.Add(entry.Key, entry.Value);
Microsoft.TemplateSearch.Common (4)
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (3)
189baselineInfo.Add(item.Key, baseline); 230tags.Add(item.Key, item.Value?.ToString() ?? string.Empty); 369choices.Add(
TemplateSearchCoordinator.cs (1)
27configuredProviders.Add(factory.DisplayName, factory.CreateProvider(_environmentSettings, additionalDataReaders1));
Microsoft.TestPlatform.CoreUtilities (2)
Helpers\CommandLineArgumentsHelper.cs (2)
33argsDictionary.Add(args[i], args[i + 1]); 38argsDictionary.Add(args[i], null);
Microsoft.TestPlatform.CrossPlatEngine (10)
Client\DiscoveryCriteriaExtensions.cs (1)
38adapterSourceMap.Add(ObjectModel.Constants.UnspecifiedAdapterPath, sources);
Client\TestRunCriteriaExtensions.cs (1)
79adapterSourceMap.Add(ObjectModel.Constants.UnspecifiedAdapterPath, sources);
DataCollection\ProxyOutOfProcDataCollectionManager.cs (1)
67_attachmentsCache.Add(e.TestCaseId, attachmentSets);
Discovery\DiscovererEnumerator.cs (1)
431result.Add(discoverer, matchingSources);
Discovery\DiscoveryManager.cs (1)
118verifiedExtensionSourceMap.Add(kvp.Key, kvp.Value);
Execution\BaseRunTests.cs (1)
390executorCache.Add(executorUriExtensionTuple.Item1.AbsoluteUri, executor);
Execution\RunTestsWithSources.cs (2)
146verifiedExtensionSourceMap.Add(kvp.Key, kvp.Value); 187result.Add(executorUriExtensionTuple, discovererToSourcesMap[discoverer]);
Execution\RunTestsWithTests.cs (1)
135result.Add(executorUriExtensionTuple, testList);
TestSession\TestSessionPool.cs (1)
82_sessionPool.Add(testSessionInfo, proxyManager);
Microsoft.TestPlatform.Filter.Source (1)
FastFilter.cs (1)
258_filterDictionaryBuilder.Add(name, values);
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DefaultTestHostManager.cs (2)
474highestFileVersions.Add(extensionAssemblyName, oldVersion!); 480selectedExtensions.Add(extensionAssemblyName, extensionFullPath);
Microsoft.TestPlatform.Utilities (4)
InferRunSettingsHelper.cs (4)
359legacySettingsTelemetry.Add(LegacyElementsString, string.Join(", ", legacySettingElements)); 366legacySettingsTelemetry.Add(DeploymentAttributesString, string.Join(", ", deploymentAttributes)); 373legacySettingsTelemetry.Add(ExecutionAttributesString, string.Join(", ", executiontAttributes)); 436environmentVariables.Add(childNodes.Current.Name, childNodes.Current?.Value);
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.TestPlatform.Common (13)
DataCollection\DataCollectionManager.cs (2)
210executionEnvironmentVariables.Add(variable.Name, variable.Value); 726dataCollectorEnvironmentVariables.Add(
ExtensionFramework\TestExecutorExtensionManager.cs (1)
72cache.Add(testExtension.TestPluginInfo.IdentifierData, testExtension);
ExtensionFramework\TestExtensionManager.cs (1)
167TestExtensionByUri.Add(uri, extension);
ExtensionFramework\TestPluginDiscoverer.cs (1)
238extensionCollection.Add(pluginInfo.IdentifierData, pluginInfo);
ExtensionFramework\Utilities\TestExtensions.cs (4)
141result.Add(kvp.Key, kvp.Value); 206existingExtensions.Add(extension.Key, extension.Value); 434extensions.Add(extension.Key, extension.Value); 487extensionDict.Add(extensionType, new HashSet<string>(extensions.Select(e => e.IdentifierData!)));
RunSettings.cs (1)
226_settings.Add(provider.Metadata.SettingsName, provider);
SettingsProvider\SettingsProviderExtensionManager.cs (1)
81SettingsProvidersMap.Add(settingsName, settingsProvider);
Utilities\FakesUtilities.cs (1)
150dict.Add(source, framework);
Utilities\SimpleJSON.cs (1)
901_dict.Add(Guid.NewGuid().ToString(), aItem);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
TrxLogger.cs (1)
666orderedTest.TestLinks.Add(testElement.Id.Id, new TestLink(testElement.Id.Id, testElement.Name, testElement.Storage));
XML\XmlPersistence.cs (1)
512TypeToPersistenceInfoCache.Add(type, toReturn);
Microsoft.VisualStudio.TestPlatform.ObjectModel (21)
DataCollector\Common\FileHelper.cs (1)
24InvalidFileNameChars.Add(c, null);
Nuget.Frameworks\FrameworkNameProvider.cs (17)
699_shortNameRewrites.Add(mapping.Key, mapping.Value); 713_fullNameRewrites.Add(mapping.Key, mapping.Value); 728_compatibilityMappings.Add(mapping.TargetFrameworkRange.Min.Framework, entries); 745_subSetFrameworks.Add(mapping.Value, subSets); 770_equivalentProfiles.Add(frameworkIdentifier, profileMappings); 776profileMappings.Add(profile1, innerMappings1); 782profileMappings.Add(profile2, innerMappings2); 818_equivalentFrameworks.Add(next, eqFrameworks); 854_identifierSynonyms.Add(pair.Key, pair.Value); 871_identifierSynonyms.Add(pair.Value, pair.Key); 874_identifierShortToLong.Add(shortName, longName); 876_identifierToShortName.Add(longName, shortName); 887_profilesToShortName.Add(profileMapping.Mapping.Value, profileMapping.Mapping.Key); 888_profileShortToLong.Add(profileMapping.Mapping.Key, profileMapping.Mapping.Value); 903_portableFrameworks.Add(pair.Key, frameworks); 924_portableOptionalFrameworks.Add(pair.Key, frameworks); 944_portableCompatibilityMappings.Add(mapping.Key, entries);
Nuget.Frameworks\FrameworkReducer.cs (2)
404scores.Add(pair.Key, 1); 431result.Add(pcl, frameworks);
TestServiceLocator.cs (1)
21Instances.Add(name, instance);
Microsoft.Web.XmlTransform (2)
XmlAttributePreservationDict.cs (2)
45leadingSpaces.Add(attributeName, whitespaceReader.PrecedingWhitespace); 55leadingSpaces.Add(String.Empty, whitespaceReader.PrecedingWhitespace);
Mono.Cecil (27)
Mono.Cecil.Cil\CodeWriter.cs (2)
148 tiny_method_bodies.Add (body, rva); 634 standalone_signatures.Add (signature, token);
Mono.Cecil.Cil\PortablePdb.cs (2)
614 guid_language.Add (guid, language); 615 language_guid.Add (language, guid);
Mono.Cecil.Cil\Symbols.cs (2)
788 offset_mapping.Add (sequence_points [i].Offset, sequence_points [i]); 796 instruction_mapping.Add (instructions [i], sequence_point);
Mono.Cecil.Metadata\Buffers.cs (4)
323 guids.Add (guid, index); 354 strings.Add (@string, index); 452 blobs.Add (blob, index); 473 strings.Add (@string, index);
Mono.Cecil.Metadata\StringHeap.cs (1)
40 strings.Add (index, @string);
Mono.Cecil\AssemblyReader.cs (8)
1037 class_layouts.Add (parent, new Row<ushort, uint> (packing_size, class_size)); 1410 field_rvas.Add (field, rva); 1440 field_layouts.Add (field, offset); 1884 pinvokes.Add (method.RID, new Row<PInvokeAttributes, uint, uint> (attributes, name, scope)); 1985 ranges.Add (owner, new [] { range }); 2407 constants.Add (owner, new Row<ElementType, uint> (type, signature)); 2599 marshals.Add (token, signature); 3138 metadata.StateMachineMethods.Add (ReadTableIndex (Table.Method), ReadTableIndex (Table.Method));
Mono.Cecil\AssemblyWriter.cs (6)
1379 type_spec_map.Add (row, token); 1442 type_ref_map.Add (row, token); 2057 member_ref_map.Add (row, token); 2077 method_spec_map.Add (row, method_spec.token); 2559 import_scope_map.Add (row, import_token); 2627 document_map.Add (document.Url, token);
Mono.Cecil\MetadataSystem.cs (2)
268 Properties.Add (type_rid, range); 278 Events.Add (type_rid, range);
Mono.Cecil.Mdb (9)
Mono.Cecil.Mdb\MdbReader.cs (1)
131 documents.Add (file_name, document);
Mono.Cecil.Mdb\MdbWriter.cs (1)
67 source_files.Add (url, source_file);
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (6)
179 anonymous_scopes.Add (id, new AnonymousScopeEntry (id)); 453 source_file_hash.Add (index, source); 489 compile_unit_hash.Add (index, unit); 522 method_token_hash.Add (entry.Token, entry); 581 source_name_hash.Add (source.FileName, i); 608 anonymous_scopes.Add (scope.ID, scope);
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (1)
1177 local_names.Add (local.Name, local);
Mono.Cecil.Pdb (10)
Microsoft.Cci.Pdb\PdbFile.cs (3)
89result.Add(name.ToUpperInvariant(), ni); 485tokenToSourceMapping.Add(token, new PdbTokenLine(token, file_id, line, column, endLine, endColumn)); 565sourceCache.Add(name, src);
Mono.Cecil.Pdb\ModuleMetadata.cs (2)
188 types.Add (type.MetadataToken.ToUInt32 (), type); 196 methods.Add (method.MetadataToken.ToUInt32 (), method);
Mono.Cecil.Pdb\NativePdbReader.cs (4)
60 functions.Add (function.token, function); 205 imports.Add (scope, import); 246 imports.Add (scope, import); 354 documents.Add (name, document);
Mono.Cecil.Pdb\NativePdbWriter.cs (1)
169 import_info_to_parent.Add (info.scope.Import, info.method.MetadataToken);
MSBuild (1)
src\msbuild\src\Shared\TypeLoader.cs (1)
697_publicTypeNameToType.Add(publicType.FullName, publicType);
NuGet.Build.Tasks (41)
GetCentralPackageVersionsTask.cs (4)
55properties.Add("ProjectUniqueName", ProjectUniqueName); 56properties.Add("Type", "CentralPackageVersion"); 57properties.Add("Id", packageId); 62properties.Add("TargetFrameworks", TargetFrameworks);
GetRestoreDotnetCliToolsTask.cs (12)
75properties.Add("Type", "ProjectSpec"); 76properties.Add("ProjectPath", ProjectPath); 80properties.Add("ProjectUniqueName", uniqueName); 81properties.Add("ProjectName", uniqueName); 87properties.Add("TargetFrameworks", ToolFramework); 88properties.Add("ProjectStyle", ProjectStyle.DotnetCliTool.ToString()); 94packageProperties.Add("ProjectUniqueName", uniqueName); 95packageProperties.Add("Type", "Dependency"); 96packageProperties.Add("Id", msbuildItem.ItemSpec); 98packageProperties.Add("TargetFrameworks", ToolFramework); 104restoreProperties.Add("ProjectUniqueName", uniqueName); 105restoreProperties.Add("Type", "RestoreSpec");
GetRestoreFrameworkReferencesTask.cs (4)
52properties.Add("ProjectUniqueName", ProjectUniqueName); 53properties.Add("Type", "FrameworkReference"); 54properties.Add("Id", frameworkReference); 58properties.Add("TargetFrameworks", TargetFrameworks);
GetRestoreNuGetAuditSuppressionsTask.cs (4)
54properties.Add("ProjectUniqueName", ProjectUniqueName); 55properties.Add("Type", "NuGetAuditSuppress"); 56properties.Add("Id", packageId); 60properties.Add("TargetFrameworks", TargetFrameworks);
GetRestorePackageDownloadsTask.cs (4)
46properties.Add("ProjectUniqueName", ProjectUniqueName); 47properties.Add("Type", "DownloadDependency"); 48properties.Add("Id", packageId); 59properties.Add("TargetFrameworks", TargetFrameworks);
GetRestorePackageReferencesTask.cs (4)
52properties.Add("ProjectUniqueName", ProjectUniqueName); 53properties.Add("Type", "Dependency"); 54properties.Add("Id", packageId); 60properties.Add("TargetFrameworks", TargetFrameworks);
GetRestoreProjectReferencesTask.cs (5)
72properties.Add("ProjectUniqueName", ProjectUniqueName); 73properties.Add("Type", "ProjectReference"); 74properties.Add("ProjectPath", referencePath); 75properties.Add("ProjectReferenceUniqueName", referencePath); 79properties.Add("TargetFrameworks", TargetFrameworks);
GetRestorePrunedPackageReferencesTask.cs (4)
55properties.Add("ProjectUniqueName", ProjectUniqueName); 56properties.Add("Type", "PrunePackageReference"); 57properties.Add("Id", packageId); 62properties.Add("TargetFrameworks", TargetFrameworks);
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
333result.Add(id, new CentralPackageVersion(id, versionRange)); 407result.Add(id, PrunePackageReference.Create(id, versionString));
NuGet.Build.Tasks.Pack (4)
PackTaskLogic.cs (4)
425tfmSpecificRefs.Add(tfmRef.Identity, new List<string>() { targetFramework }); 459tfmSpecificRefs.Add(frameworkShortFolderName, refNames); 559duplicateTargetPath?.Add(targetPath, targetFrameworkProperty); 684fileModel.Add(sourcePath, existingContentMetadata);
NuGet.CommandLine.XPlat (2)
Commands\PackageSearch\PackageSearchRunner.cs (1)
87searchRequests.Add(searchTask, packageSource);
Commands\Why\DependencyGraphPrinter.cs (1)
163dependencyGraphHashes.Add(hash, [framework]);
NuGet.Commands (47)
RestoreCommand\CompatibilityChecker.cs (1)
172compileAssemblies.Add(name, node.Key);
RestoreCommand\ContentFiles\ContentFileUtils.cs (4)
51groupsByLanguage.Add(codeLanguage, index); 101entryMappings.Add(item.Path, new List<ContentFilesEntry>()); 102languageMappings.Add(item.Path, codeLanguage); 122relativePathToEntries.Add(relativePath, entries);
RestoreCommand\DependencyGraphResolver.cs (12)
241graphsByTargetFramework.Add(frameworkRuntimeDefinition.TargetAlias, restoreTargetGraph); 361nodesById.Add(projectResolvedDependencyGraphItem.LibraryRangeIndex, rootGraphNode); 481downgrades.Add( 500downgrades.Add( 528nodesById.Add(currentRangeIndex, nodeWithConflict); 573downgrades.Add( 618versionConflicts.Add(childResolvedLibraryRangeIndex, conflictingNode); 625nodesById.Add(childResolvedLibraryRangeIndex, newGraphNode); 1005resolvedDependencyGraphItems.Add(currentDependencyGraphItem.LibraryDependencyIndex, chosenResolvedItem); 1149resolvedDependencyGraphItems.Add(currentDependencyGraphItem.LibraryDependencyIndex, chosenResolvedItem); 1206resolvedDependencyGraphItems.Add(currentDependencyGraphItem.LibraryDependencyIndex, chosenResolvedItem); 1240resolvedDependencyGraphItems.Add(currentDependencyGraphItem.LibraryDependencyIndex, chosenResolvedItem);
RestoreCommand\Diagnostics\IndexedRestoreTargetGraph.cs (1)
38_lookup.Add(id, node);
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (5)
201packageNoWarn.Add(nodeId, noWarnCodes); 257frameworkCollection.Add(framework, collection); 275seen.Add(id, nodeProps); 407merged.Add(id, pair.Value); 790packages.Add(pair.Key, intersect);
RestoreCommand\RestoreCommand.cs (3)
965prunedDirectPackages.Add(dependency.Name, [framework.TargetAlias]); 1041aliasToTargetGraphName.Add(framework.TargetAlias, FrameworkRuntimePair.GetTargetGraphName(framework.FrameworkName, runtimeIdentifier: null)); 1885targetFrameworkToAlias.Add(frameworkRuntimeDefinition.Framework, frameworkRuntimeDefinition.TargetAlias);
RestoreCommand\Utility\AuditUtility.cs (5)
86SuppressedAdvisories.Add(advisory, false); 166result.Add(downloadDependency, auditInfo); 172auditInfo.GraphsPerVulnerability.Add(knownVulnerability, affectedGraphs); 416result.Add(packageIdentity, auditInfo); 422auditInfo.GraphsPerVulnerability.Add(knownVulnerability, affectedGraphs);
RestoreCommand\Utility\IncludeFlagUtils.cs (4)
27includeFlagGraphs.Add(graph, flattenedFlags); 59result.Add(dependency.Name, includeType); 96unifiedNodes.Add(item.Key.Name, item); 150result.Add(rootId, node.DependencyType);
RestoreCommand\Utility\LockFileUtils.cs (2)
570fileLookup.Add(path, files[i]); 908primaryGroups.Add(key, index);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (8)
93itemsById.Add(projectUniqueName, idItems); 130projectPathLookup.Add(uniqueName, uniqueName); 136projectPathLookup.Add(projectPath, projectPath); 628aliasGroups.Add(alias, new List<ProjectRestoreReference>()); 729dict.Add(targetFramework.TargetAlias, targetFramework); 794prunePackageReferences.Add(targetFramework.TargetAlias, new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase)); 855frameworkInfo.Add(id, PrunePackageReference.Create(id, version!)); 1281centralPackageVersions.Add(framework, versions);
RestoreCommand\Utility\PackageSpecFactory.cs (2)
688result.Add(id, PrunePackageReference.Create(id, versionString)); 819result.Add(id, new CentralPackageVersion(id, versionRange));
NuGet.Configuration (9)
PackageSourceMapping\PackageSourceMapping.cs (1)
78patterns.Add(packageSourceNamespaceItem.Key, new List<string>(packageSourceNamespaceItem.Patterns.Select(e => e.Pattern)));
Settings\Items\UnknownItem.cs (4)
36_mutableChildren.Add(descendant, descendant); 56_mutableChildren.Add(child, child); 92_mutableChildren.Add(setting, setting); 236_mutableChildren.Add(child, child);
Settings\NuGetConfiguration.cs (1)
136sectionsContainer.Add(section.Key, new VirtualSettingSection(section.Value));
Settings\SettingElement.cs (2)
85MutableAttributes.Add(attribute.Key, attribute.Value); 109MutableAttributes.Add(existingAttribute.Name.LocalName, existingAttribute.Value);
Settings\Settings.cs (1)
138_computedSections.Add(sectionName,
NuGet.DependencyResolver.Core (1)
Remote\RemoteDependencyWalker.cs (1)
636_transitiveCentralPackageVersions.Add(centralPackageVersionDependency.Name, list);
NuGet.Frameworks (20)
CompatibilityTable.cs (1)
85table.Add(framework, compatFrameworks);
FrameworkNameProvider.cs (17)
711_shortNameRewrites.Add(mapping.Key, mapping.Value); 725_fullNameRewrites.Add(mapping.Key, mapping.Value); 740_compatibilityMappings.Add(mapping.TargetFrameworkRange.Min.Framework, entries); 757_subSetFrameworks.Add(mapping.Value, subSets); 782_equivalentProfiles.Add(frameworkIdentifier, profileMappings); 788profileMappings.Add(profile1, innerMappings1); 794profileMappings.Add(profile2, innerMappings2); 830_equivalentFrameworks.Add(next, eqFrameworks); 866_identifierSynonyms.Add(pair.Key, pair.Value); 883_identifierSynonyms.Add(pair.Value, pair.Key); 886_identifierShortToLong.Add(shortName, longName); 888_identifierToShortName.Add(longName, shortName); 899_profilesToShortName.Add(profileMapping.Mapping.Value, profileMapping.Mapping.Key); 900_profileShortToLong.Add(profileMapping.Mapping.Key, profileMapping.Mapping.Value); 915_portableFrameworks.Add(pair.Key, frameworks); 936_portableOptionalFrameworks.Add(pair.Key, frameworks); 956_portableCompatibilityMappings.Add(mapping.Key, entries);
FrameworkReducer.cs (2)
404scores.Add(pair.Key, 1); 431result.Add(pcl, frameworks);
NuGet.PackageManagement (22)
Audit\AuditChecker.cs (3)
59auditSettings.Add(projectPath, new ProjectAuditSettings(isAuditEnabled, minimumAuditSeverity, restoreAuditProperty.SuppressedAdvisories)); 335result.Add(packageIdentity, auditInfo); 441SuppressedAdvisories.Add(advisory, false);
IDE\PackageRestoreManager.cs (1)
170packageReferencesDict.Add(installedPackageReference, projectNames);
PackageDownloader.cs (1)
149tasksLookup.Add(task, source);
PackagePreFetcher.cs (2)
100result.Add(action.PackageIdentity, downloadResult); 146result.Add(action.PackageIdentity, downloadResult);
Projects\FolderNuGetProject.cs (2)
78InternalMetadata.Add(NuGetProjectMetadataKeys.Name, root); 79InternalMetadata.Add(NuGetProjectMetadataKeys.TargetFramework, targetFramework);
Projects\MSBuildNuGetProject.cs (5)
108InternalMetadata.Add(NuGetProjectMetadataKeys.Name, ProjectSystem.ProjectName); 109InternalMetadata.Add(NuGetProjectMetadataKeys.TargetFramework, ProjectSystem.TargetFramework); 110InternalMetadata.Add(NuGetProjectMetadataKeys.FullPath, msbuildNuGetProjectSystem.ProjectFullPath); 111InternalMetadata.Add(NuGetProjectMetadataKeys.UniqueName, msbuildNuGetProjectSystem.ProjectUniqueName); 702context.PackageSpecCache.Add(MSBuildProjectPath, packageSpec);
Projects\ProjectJsonNuGetProject.cs (5)
92InternalMetadata.Add(NuGetProjectMetadataKeys.TargetFramework, targetFramework); 93InternalMetadata.Add(NuGetProjectMetadataKeys.Name, _projectName); 94InternalMetadata.Add(NuGetProjectMetadataKeys.FullPath, msBuildProjectPath); 101InternalMetadata.Add(NuGetProjectMetadataKeys.SupportedFrameworks, supported); 255context?.PackageSpecCache.Add(MSBuildProjectPath, packageSpec);
Resolution\PrunePackageTree.cs (1)
186targets.Add(primaryTarget.Id, primaryTarget.Version);
Resolution\ResolverGather.cs (1)
611depResources.Add(source, task);
Utility\BuildIntegratedProjectUtility.cs (1)
110typeMappings.Add(dependency, libraryIdentity);
NuGet.Packaging (23)
ContentModel\ContentItem.cs (12)
103_properties.Add(key, value); 140Properties.Add(key, value); // A property we can't pack means we should be using the dictionary instead. 156properties.Add(ManagedAssembly, _assembly); 160properties.Add(Locale, _locale); 164properties.Add(Related, _related); 168properties.Add(MSBuild, _msbuild); 172properties.Add(TargetFrameworkMoniker, _tfm); 176properties.Add(RuntimeIdentifier, _rid); 180properties.Add(AnyValue, _any); 184properties.Add(SatelliteAssembly, _satelliteAssembly); 188properties.Add(CodeLanguage, _codeLanguage); 192properties.Add(TfmRaw, _tfmRaw);
ContentModel\ManagedCodeConventions.cs (1)
233_frameworkCache.Add(name, cachedResult);
ContentModel\PatternTable.cs (2)
39_table.Add(entry.PropertyName, byProp); 42byProp.Add(entry.Name.AsMemory(), entry.Value);
Core\NuspecCoreReaderBase.cs (1)
170metadataValues.Add(pair.Key, pair.Value);
NuspecReader.cs (1)
249groups.Add(framework, items);
PackageReaderBase.cs (1)
439groups.Add(framework, items);
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
44nuspecReferences.Add("any", filesWithoutTFM);
Signing\Content\KeyPairFileReader.cs (1)
60entries.Add(property.Key, property.Value);
Signing\TrustedSigners\TrustedSignersProvider.cs (1)
127certificateLookup.Add(GetCertLookupKey(certificate), new CertificateEntryLookupEntry(itemTarget, itemPlacement, certificate, owners));
TopologicalSortUtility.cs (2)
59lookup.Add(id, item); 102lookup.Add(item.Id, item);
NuGet.ProjectModel (6)
PackageSpecOperations.cs (2)
182result.Add(kvp.Key, kvp.Value); 185result.Add(dependency.Id, new CentralPackageVersion(dependency.Id, dependency.VersionRange));
PackageSpecReferenceDependencyProvider.cs (3)
71_externalProjectsByPath.Add(project.UniqueName, project); 80_externalProjectsByUniqueName.Add(project.ProjectName, project); 85_externalProjectsByUniqueName.Add(project.UniqueName, project);
ProjectLockFile\PackagesLockFileUtilities.cs (1)
391actualDependencies.Add(actualDependency, actualDependency);
NuGet.Protocol (9)
LegacyFeed\V2FeedPackageInfo.cs (1)
296results.Add(framework, deps);
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (2)
75index.Add(package.Identity, package); 95index.Add(path, package);
Plugins\PluginPackageReader.cs (1)
1009groups.Add(framework, items);
Resources\ServiceIndexResourceV3.cs (2)
216result.Add(type, entries); 294result.Add(type, entries);
SourceRepository.cs (1)
181cache.Add(group.Key, Sort(group));
Utility\MetadataReferenceCache.cs (2)
39_stringCache.Add(s, s); 60_versionCache.Add(s, version);
NuGet.Resolver (4)
PackageResolver.cs (2)
271dependencyRangesByPackageId.Add(package.Id, new List<VersionRange>()); 293dependencyByPackageId.Add(item.Key, VersionRange.Combine(item.Value));
ResolverComparer.cs (1)
42_installedVersions.Add(package.Id, package.Version);
ResolverInputSort.cs (1)
59parents.Add(groupIds[i], parentsForId);
PresentationBuildTasks (17)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (3)
200MasterBracketCharacterCache.Add(type, map); 883cache.Add(propertyName, bracketCharacters); 886cache.Add(constructorArgumentName, bracketCharacters);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
563_cachedMetadataLoadContextAssemblies.Add(fullPathToAssembly, assembly); 564_cachedMetadataLoadContextAssembliesByNameNoExtension.Add(Path.GetFileNameWithoutExtension(fullPathToAssembly), assembly);
src\wpf\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)); 1852_processContents.Add(namespaceName, processContentSet); 1869_preserveElements.Add(namespaceName, preserveElementSet); 1886_preserveAttributes.Add(namespaceName, preserveAttributeSet); 2053_names.Add(itemName, itemName);
PresentationCore (21)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
601_cmap.Add(codePoint, glyphIndex);
MS\Internal\FontCache\FontResourceCache.cs (1)
84_assemblyCaches.Add(uriAssembly, folderResourceMap);
MS\Internal\FontFace\CompositeFontInfo.cs (3)
56_familyMapRangesByLanguage.Add(familyMap.Language, EmptyFamilyMapRanges); 60_familyMapRangesByLanguage.Add(familyMap.Language, EmptyFamilyMapRanges); 149table.Add(language, EmptyFamilyMapRanges);
MS\Internal\FontFace\FontDifferentiator.cs (1)
32faceNames.Add(XmlLanguage.GetLanguage("en-us"), faceName);
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
50convertedDictionary.Add(language, pair.Value);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1680_strokeLookupTable.Add(_coreStrokes[i], new StrokeLookupEntry());
MS\Internal\Ink\Renderer.cs (3)
253_visuals.Add(stroke, visual); 441_visuals.Add(stroke, visual); 666_highlighters.Add(color, hcVisual);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (5)
42_fileExtensionToMimeType.Add(XamlExtension, XamlMime); 43_fileExtensionToMimeType.Add(BamlExtension, BamlMime); 44_fileExtensionToMimeType.Add(JpgExtension, JpgMime); 45_fileExtensionToMimeType.Add(XbapExtension, XbapMime); 62_fileExtensionToMimeType.Add(completeExt, mimeType);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
152_assemblies.Add(key, result);
System\Windows\Ink\StrokeCollection2.cs (1)
367highLighters.Add(color, strokes);
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
107_stylusDeviceMap.Add(stylus.CursorId, stylus);
System\Windows\Media\HostVisual.cs (1)
323_connectedChannels.Add(channel, channelDispatcher);
System\Windows\Media3D\Visual3DCollection.cs (1)
547duplicates.Add(visual, String.Empty);
PresentationFramework (73)
MS\Internal\Annotations\AnnotationMap.cs (1)
27_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
119s_ZRanges.Add(level, new ZRange(min, max));
MS\Internal\Annotations\ObservableDictionary.cs (1)
66_nameValues.Add(key, val);
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
72_currentAnnotations.Add(annotation.Id, new CachedAnnotation(annotation, dirty)); 150annotations.Add(annotation.Id, annotation); 172annotations.Add(annotKV.Key, annotKV.Value.Annotation);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (3)
437_cachedXmlElements.Add(token, ret); 549s_xmlTokeFullNames.Add(token, $"{AnnotationXmlConstants.Prefixes.BaseSchemaPrefix}:{xmlName}"); 564s_xmlTokeFullNames.Add(token, xmlName);
MS\Internal\Data\CommitManager.cs (1)
171Add(item, null);
MS\Internal\Data\DataBindEngine.cs (1)
365_valueConverterTable.Add(key, result);
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
353_propertyInheritanceTreeStack.Add(propertyName, stackForProperty);
MS\Internal\Globalization\BamlTreeMap.cs (1)
155_keyToBamlNodeIndexMap.Add(key, i);
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
814_contentPropertyTable.Add(fullTypeName, contentProperty);
MS\Internal\Ink\ClipboardProcessor.cs (2)
58_preferredClipboardData.Add(InkCanvasClipboardFormat.InkSerializedFormat, new ISFClipboardData()); 286preferredData.Add(format, clipboardData);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
843_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)
48_predefinedNamespaces.Add(new Uri(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace), null); 49_predefinedNamespaces.Add(new Uri(AnnotationXmlConstants.Namespaces.BaseSchemaNamespace), null); 50_predefinedNamespaces.Add(new Uri(XamlReaderHelper.DefaultNamespaceURI), null);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
155newChildren.Add(key, peer); 280WeakRefElementProxyStorage.Add(key, wr);
System\Windows\Controls\DataGrid.cs (1)
6763_editingCellAutomationValueHolders.Add(cell.Column, new CellAutomationValueHolder(cell));
System\Windows\Controls\DataGridColumnCollection.cs (2)
500assignedDisplayIndexMap.Add(currentColumnDisplayIndex, columnIndex); 529assignedDisplayIndexMap.Add(nextAvailableColumnIndex, columnIndex);
System\Windows\Controls\Primitives\Selector.cs (2)
2694_set?.Add(info, info); 2854_set.Add(_list[i], _list[i]);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (1)
212_dictionariesFromUri.Add(uri, list);
System\Windows\Documents\FixedDSBuilder.cs (1)
48_nameHashTable.Add(Name,
System\Windows\Documents\FixedSchema.cs (1)
243_schemas.Add(mime, schema);
System\Windows\Documents\FixedTextContainer.cs (1)
463highlights.Add(page, lfs);
System\Windows\Documents\Speller.cs (2)
329UriMap.Add(uri, new DictionaryInfo(pathUri, lexicon)); 1562UriMap.Add(item, new DictionaryInfo(tempLocationUri, lexicon));
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (2)
159instanceInfo.CumulativeCallTime100Ns.Add(a, 0); 160instanceInfo.NumCallsMeasured.Add(a, 0);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2739_freezeCache.Add(value, freezable);
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
46_namespaces.Add(prefix, xamlNs);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1794bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 1884bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 2827bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 2973bamlType.Constructors.Add(2, new Baml6ConstructorInfo( 3355bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 4351bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 9166bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 9173bamlType.Constructors.Add(3, new Baml6ConstructorInfo( 10450bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 10471bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 10955bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 11195bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 11827bamlType.Constructors.Add(1, new Baml6ConstructorInfo( 13164bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
136_masterTypeTable.Add(bamlType.UnderlyingType, bamlType); 198_masterTypeTable.Add(type, xamlType); 234_masterTypeTable.Add(type, xamlType);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
34_masterTypeTable.Add(type, xType);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
228_dictionary.Add(key, value);
System\Windows\Markup\ParserContext.cs (4)
200MasterBracketCharacterCache.Add(type, map); 791_freezeCache.Add(value, freezable); 883cache.Add(propertyName, bracketCharacters); 886cache.Add(constructorArgumentName, bracketCharacters);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
89constructorArguments.Add(parameters[i].Name, parameters[i].Name);
System\Windows\Markup\XamlTypeMapper.cs (1)
313newDict.Add(kvp.Key, kvp.Value);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
45_nsDefinitions.Add(mapEntry.XmlNamespace, clrNsList); 60_piNamespaces.Add((string)entry.Key, clrNs); 327_allowedInternalTypes.Add(type, result);
System\Windows\Standard\MessageWindow.cs (1)
151s_windowLookup.Add(hwnd, hwndWrapper);
System\Windows\SystemResources.cs (1)
471_dictionaries.Add(assembly, dictionaries);
System\Windows\TemplateContent.cs (2)
317OwnerTemplate.ChildTypeFromChildIndex.Add(childIndex, type.UnderlyingType); 663TemplateLoadData.NamedTypes.Add(name, stack.CurrentFrame.Type);
PresentationUI (4)
MS\Internal\Documents\Application\TransactionalPackage.cs (3)
225_activeParts.Add(normalizedPartUri, (WriteableOnDemandPackagePart)result); 392_activeParts.Add(normalizedPartUri, (WriteableOnDemandPackagePart)result); 407_activeParts.Add(normalizedPartUri, (WriteableOnDemandPackagePart)result);
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
339certificateStatusTable.Add(
ReachFramework (12)
Packaging\XpsResourcePolicy.cs (1)
87_objDict.Add(serviceType, service);
PrintConfig\PrtTicket_Public_Simple.cs (3)
818_setterCache.Add(CapabilityName.PageMediaSize, value); 1060_setterCache.Add(CapabilityName.PageResolution, value); 1441_setterCache.Add(feature, value);
Serialization\ColorTypeConverter.cs (3)
317currentPageColorContextTable.Add(colorContext.GetHashCode(), profileUri); 344colorContextTable.Add(colorContext.GetHashCode(), profileUri); 345currentPageColorContextTable.Add(colorContext.GetHashCode(), profileUri);
Serialization\ImageSourceTypeConverter.cs (4)
187currentPageImageTable.Add(uriHashCode, imageUri); 496manager.ResourcePolicy.ImageUriHashTable.Add(_uriHashValue,imageUri); 501manager.ResourcePolicy.ImageCrcTable.Add(_crc32HashValue, imageUri); 505manager.ResourcePolicy.CurrentPageImageTable.Add(imageUri.GetHashCode(), imageUri);
Serialization\VisualTreeFlattener.cs (1)
507_nameList.Add(fe.Name, 0);
Roslyn.Diagnostics.Analyzers (44)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (2)
35dictionary.Add(key, value); 57dictionary.Add(key, value);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
771dictionary.Add(grouping.Key, [.. grouping]);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
821accumulator.Add(key, item); 833result.Add(entry.Key, createMembers(entry.Value)); 878dictionary.Add(entry.Key, namedTypes);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
572dictionary1.Add(keySelector(value), ImmutableArray.Create(value)); 591accumulator.Add(key, bucket); 602dictionary.Add(pair.Key, pair.Value.ToImmutableAndFree());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
70perTreeOptionsBuilder.Add(tree, new Lazy<SyntaxTreeCategorizedAnalyzerConfigOptions>(() => Create(tree, analyzerConfigOptionsProvider)));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (7)
152wildcardNamesBuilder.Add(AllKinds, associatedValues); 155associatedValues.Add(parts.SymbolName[0..^1], parts.AssociatedValue); 175wildcardNamesBuilder.Add(symbolKind.Value, associatedValues); 178associatedValues.Add(parts.SymbolName[2..^1], parts.AssociatedValue); 186namesBuilder.Add(parts.SymbolName, parts.AssociatedValue); 216symbolsBuilder.Add(constituentNamespace, parts.AssociatedValue); 223symbolsBuilder.Add(symbol, parts.AssociatedValue);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
56instance.Add(kvp.Key, kvp.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
894directiveMap.Add(directive, previousDirective); 895directiveMap.Add(previousDirective, directive); 907directiveMap.Add(regionStack.Pop(), null); 931conditionalMap.Add(cond, condDirectives); 937directiveMap.Add(directive, ifDirective); 938directiveMap.Add(ifDirective, directive);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
304continueDispatchAfterFinally.Add(@finally, false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (2)
161symbolsWriteMap.Add(key, false); 228SymbolsWriteBuilder.Add((symbol, operation), false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
109_reachingWrites.Add(symbol, values); 232result.Add(symbol, values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
186builder.Add(block, null); 483_lValueFlowCapturesMap.Add(captureId, captures);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
168_pendingWritesMap.Add(assignmentOperation, set); 176_pendingWritesMap.Add(deconstructionAssignment, set);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
105_formattingResults.Do(result => result.GetChanges(cancellationToken).Do(change => map.Add(change.Item1, change.Item2)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
465previousChangesMap.Add(currentToken, triviaInfo.Spaces); 565previousChangesMap.Add(firstTokenOnLine, triviaInfo.Spaces);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
98changes.Do(change => map.Add(change.Item1, change.Item2));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
201_symbolToId.Add(symbol, id);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
50_annotationMap.Add(idString, annotation); 51_realAnnotationMap.Add(annotation, realAnnotation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
251node.SpilloverEdges.Add(editDistance, insertionIndex);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
22dictionary.Add(key, items); 36dictionary.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
402equivalentTypesWithDifferingAssemblies.Add(x, y);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
38_map.Add(identifier, list);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (2)
58_trailingTriviaMap.Add(pair.Key.Item1, trailingTrivia); 63_leadingTriviaMap.Add(pair.Key.Item2, leadingTrivia);
rzc (5)
ConcurrentLruCache.cs (1)
167_cache.Add(key, new CacheValue(value, node));
DefaultExtensionAssemblyLoader.cs (3)
58_wellKnownAssemblies.Add(assemblyName, paths); 155_loadedByIdentity.Add(identity, assembly); 167_identityCache.Add(filePath, identity);
GenerateCommand.cs (1)
320cssScopeAssociations.Add(cssScopeSources[cssScopeSourceIndex], cssScopeSourceIndex);
sdk-tasks (1)
ProcessRuntimeAnalyzerVersions.cs (1)
44metadata.Add(deploymentSubpath, entry);
Shared.Tests (2)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
52dictionary.Add(default!, default!);
Pools\PoolTests.cs (1)
167d.Add("One", 1);
System.Collections.Immutable (2)
System\Linq\ImmutableArrayExtensions.cs (2)
592result.Add(keySelector(v), v); 617result.Add(keySelector(v), elementSelector(v));
System.CommandLine (14)
Parsing\ArgumentResult.cs (1)
116SymbolResultTree.Add(nextArgument, nextArgumentResult);
Parsing\CommandResult.cs (2)
96SymbolResultTree.Add(optionResult.Option, optionResult); 99SymbolResultTree.Add(optionResult.Option.Argument, argumentResult);
Parsing\ParseOperation.cs (7)
41_symbolResultTree.Add(_rootCommand, _rootCommandResult); 87_symbolResultTree.Add(command, _innermostCommandResult); 176_symbolResultTree.Add(argument, argumentResult); 239_symbolResultTree.Add(option, optionResult); 288_symbolResultTree.Add(argument, argumentResult); 311_symbolResultTree.Add(argument, argumentResult); 347_symbolResultTree.Add(directive, result);
Parsing\StringExtensions.cs (4)
447tokens.Add(cmd.Name, new Token(cmd.Name, TokenType.Command, cmd, Token.ImplicitPosition)); 453tokens.Add(childAlias, new Token(childAlias, TokenType.Command, cmd, Token.ImplicitPosition)); 462tokens.Add(option.Name, new Token(option.Name, TokenType.Option, option, Token.ImplicitPosition)); 471tokens.Add(childAlias, new Token(childAlias, TokenType.Option, option, Token.ImplicitPosition));
System.ComponentModel.Composition (18)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
121metadata.Add(CompositionConstants.ExportTypeIdentityMetadataName, typeIdentity);
System\ComponentModel\Composition\ContractNameServices.cs (1)
65TypeIdentityCache.Add(type, typeIdentity);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (2)
489_activatedParts.Add(partDefinition, catalogPart); 735_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)
137CastSingleValueCache.Add(type, _castSingleValue);
System.ComponentModel.Composition.Registration (4)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
125_importBuilders.Add(parameterInfos[index], (Action<ImportBuilder>)importDelegate);
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (3)
154_memberInfos.Add((MemberInfo)element.Item1, element.Item2); 166_memberInfos.Add((MemberInfo)element.Item1, element.Item2); 184_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)
187_memberInfos.Add(mi, element.Item2); 202_parameters.Add(pi, element.Item2);
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
182_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)
418indirectLocationInputs.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)
1507_tableDictionary!.Add(table, new List<DataTable>()); 1632_tableDictionary!.Add(table, new List<DataTable>());
System.Data.Odbc (3)
src\runtime\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.Data.OleDb (4)
System\Data\ProviderBase\DbConnectionFactory.cs (3)
386newConnectionPoolGroups.Add(entry.Key, entry.Value); 390newConnectionPoolGroups.Add(key, newConnectionPoolGroup); 507newConnectionPoolGroups.Add(entry.Key, entry.Value);
System\Data\ProviderBase\DbConnectionPool.cs (1)
187_transactedCxns.Add(transactionClone, newConnections);
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\AggregationManager.cs (1)
168_instruments.Add(instrument, true);
System\Diagnostics\Metrics\Meter.cs (1)
550_nonObservableInstrumentsCache.Add(name, instrumentList);
System\Diagnostics\Metrics\MeterListener.cs (1)
277callbacksArguments?.Add(current.Value, state);
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (1)
100_cache.Add(key, value);
System.Diagnostics.PerformanceCounter (5)
System\Diagnostics\PerformanceData\CounterSet.cs (3)
117_idToCounter.Add(counterId, counterType); 163_stringToId.Add(counterName, counterId); 164_idToCounter.Add(counterId, counterType);
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
137_counters.Add(CounterDef.Key, thisCounterData);
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
102s_counterSetList.Add(counterSetGuid, 0);
System.Diagnostics.Process (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
118s_childProcessWaitStates.Add(processId, pws); 152s_processWaitStates.Add(processId, pws);
System.DirectoryServices.AccountManagement (18)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
45NonPresentAttrDefaultStateMapping.Add(attributeName, (defaultState == "FALSE") ? false : true);
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (5)
327_usersVisited.Add(currentSR.Properties["distinguishedName"][0].ToString(), true); 344_usersVisited.Add(currentSR.Properties["distinguishedName"][0].ToString(), true); 498_usersVisited.Add(memberDE.Properties["distinguishedName"][0].ToString(), true); 516_usersVisited.Add(memberDE.Properties["distinguishedName"][0].ToString(), true); 788_usersVisited.Add(foreignDE.Properties["distinguishedName"][0].ToString(), true);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (7)
150propertyNameToLdapAttr.Add(propertyName, new string[] { ldapAttribute }); 265TypeToLdapDict.Add(typeof(Principal), principalPropList); 266TypeToLdapDict.Add(typeof(GroupPrincipal), groupPrincipalPropList); 267TypeToLdapDict.Add(typeof(AuthenticablePrincipal), authPrincipalPropList); 268TypeToLdapDict.Add(typeof(UserPrincipal), userPrincipalPropList); 269TypeToLdapDict.Add(typeof(ComputerPrincipal), computerPrincipalPropList); 271TypeToLdapPropListMap.Add(mappingIndex, TypeToLdapDict);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (5)
48s_maskMap.Add(typeof(UserPrincipal), ObjectMask.User); 49s_maskMap.Add(typeof(ComputerPrincipal), ObjectMask.Computer); 50s_maskMap.Add(typeof(GroupPrincipal), ObjectMask.Group); 51s_maskMap.Add(typeof(Principal), ObjectMask.Principal); 124s_validPropertyMap.Add(propertyName, BitMask);
System.Formats.Tar (4)
System\Formats\Tar\TarHeader.cs (1)
160_ea.Add(kvp.Key, kvp.Value);
System\Formats\Tar\TarWriter.Unix.cs (3)
39_hardLinkTargets.Add(fileId, entryName); 102_userIdentifiers.Add(status.Uid, uName); 112_groupIdentifiers.Add(status.Gid, gName);
System.IO.Packaging (22)
System\IO\Packaging\ContentType.cs (1)
335(_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)
289s_servers.Add(path, server);
System.Linq (4)
System\Linq\ToCollection.cs (4)
173d.Add(keySelector(element), element); 184d.Add(keySelector(element), element); 231d.Add(keySelector(element), elementSelector(element)); 242d.Add(keySelector(element), elementSelector(element));
System.Linq.AsyncEnumerable (5)
System\Linq\ToDictionaryAsync.cs (5)
40d.Add(element.Key, element.Value); 95d.Add(keySelector(element), element); 135d.Add(await keySelector(element, cancellationToken), element); 180d.Add(keySelector(element), elementSelector(element)); 227d.Add(
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\runtime\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)
1577dictionary.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)
1633_httpStreams.Add(http2Stream.StreamId, http2Stream);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
293_activeRequests.Add(quicStream, requestStream);
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (1)
26_cache.Add(key, cred);
System.Net.Mail (2)
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)
111interfacesByIndex.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 (29)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
293s_assemblyLoadContexts.Add(assemblyPath, alc);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (6)
149Add(oldEntries[i].key, oldEntries[i].value); 171Add(pair.Key, pair.Value); 179Add(pair.Key, pair.Value); 255Add(keyValuePair.Key, keyValuePair.Value); 1234Add(array[i].Key, array[i].Value); 1817Add(tempKey, (TValue)value!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
73_metadata.Add(key, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
480allListeners.Add(cur, true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Unix.cs (1)
117results.Add(key, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
978s_sortNameToSortHandleCache.Add(sortName, result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (1)
787_uidToFileHandleMap.Add(id.Uid, fd);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
297s_loadfile.Add(normalizedPath, result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
49_context.Add(memberInfo, state); 286_publicOnlyModules.Add(module, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
521localResourceSets.Add(cultureName, rs);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (2)
194_table.Add(en.Key, en.Value); 223caseTable.Add(s, item.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
327caseInsensitiveTable.Add(currentKey, resLoc);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
111allContexts.Add(_id, new WeakReference<AssemblyLoadContext>(this, true));
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
109prefixToBucket.Add(prefix, bucketIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
685nameToSlotMap.Add(name, slot);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
642_usedIdToTracksAllValuesMap.Add(availableId, trackAllValues);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (1)
104s_namedObjects.Add(name, result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
1297cachedData._systemTimeZones.Add(id, value!);
System\AppContext.NativeAot.cs (1)
19dataStore.Add(
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.cs (1)
69map.Add(methodBase, action);
System.Private.DataContractSerialization (33)
System\Runtime\Serialization\ClassDataContract.cs (3)
269memberNamesTable.Add(memberContract.Name, memberContract); 1366boundContracts.Add(this, boundClassContract); 1427membersDictionary.Add(Members[i].Name, Members[i]);
System\Runtime\Serialization\CollectionDataContract.cs (1)
1402boundContracts.Add(this, boundCollectionContract);
System\Runtime\Serialization\DataContract.cs (6)
620s_nameToBuiltInContract.Add(qname, dataContract); 674s_typeNameToBuiltInContract.Add(typeName, dataContract); 931s_clrTypeStrings.Add(Globals.TypeOfInt.Assembly.FullName!, s_clrTypeStringsDictionary.Add(Globals.MscorlibAssemblyName)); 943s_clrTypeStrings.Add(key, value); 1974typesChecked.Add(type, type); 2089nameToDataContractTable.Add(dataContract.XmlName, dataContract);
System\Runtime\Serialization\DataContractSet.cs (6)
52ProcessedContracts.Add(pair.Key, pair.Value); 121Contracts.Add(name, dataContract); 320_referencedTypesDictionary.Add(DataContract.GetXmlName(Globals.TypeOfNullable), Globals.TypeOfNullable); 390referencedTypes.Add(xmlName, types); 401referencedTypes.Add(xmlName, type); 640ProcessedContracts.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)
197previousCollectionTypes.Add(dataContract.OriginalUnderlyingType, dataContract.OriginalUnderlyingType); 231knownDataContracts.Add(dataContract.XmlName, dataContract); 245schemaObjects.Add(SchemaExporter.AnytypeQualifiedName, new SchemaObjectInfo(null, null, null, knownTypesForObject)); 266schemaObjects.Add(currentTypeName, new SchemaObjectInfo(schemaType, null, schema, null)); 280schemaObjects.Add(baseTypeName, baseTypeInfo); 299schemaObjects.Add(currentElementName, new SchemaObjectInfo(null, schemaElement, schema, null)); 912knownDataContracts.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)
56_lookup.Add(value, str);
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (1)
42_memberReferences.Add(id, reference);
System\Private\Windows\Ole\TypeBinder.cs (1)
90_cachedTypeNames.Add(fullName, parsed);
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)
360_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 361_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)
659builder._SchemaInfo.TargetNamespaces.Add(builder._TargetNamespace, true); 737builder._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); 1626freeLocals.Add(key, freeLocalQueue);
System\Xml\Serialization\Compilation.cs (2)
123_methods.Add(xmlMappings[i].Key!, method); 549readerCodeGen.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)
1219replaceList.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)
197MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc!.Name)); 261CreatedTypes.Add(readerType.Name, readerType); 933Enums.Add(uniqueName, mapping); 1795_idNames.Add(name, idName); 1796_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)
725pendingKeys.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)
583paramToTemplate!.Add(xslPar, template); 584paramToFunction!.Add(xslPar, paramFunc);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (9)
306table.Add("current", new FunctionInfo(FuncId.Current, 0, 0, null)); 307table.Add("document", new FunctionInfo(FuncId.Document, 1, 2, s_argFnDocument)); 308table.Add("key", new FunctionInfo(FuncId.Key, 2, 2, s_argFnKey)); 309table.Add("format-number", new FunctionInfo(FuncId.FormatNumber, 2, 3, s_argFnFormatNumber)); 310table.Add("unparsed-entity-uri", new FunctionInfo(FuncId.UnparsedEntityUri, 1, 1, XPathBuilder.argString)); 311table.Add("generate-id", new FunctionInfo(FuncId.GenerateId, 0, 1, XPathBuilder.argNodeSet)); 312table.Add("system-property", new FunctionInfo(FuncId.SystemProperty, 1, 1, XPathBuilder.argString)); 313table.Add("element-available", new FunctionInfo(FuncId.ElementAvailable, 1, 1, XPathBuilder.argString)); 314table.Add("function-available", new FunctionInfo(FuncId.FunctionAvailable, 1, 1, XPathBuilder.argString));
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (2)
758_revApplyTemplatesGraph.Add(mode, templates); 1264compiler.NamedTemplates.Add(newtemplate.Name!, newtemplate);
System.Reflection.Emit (9)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
257_labelTable.Add(emitLabel, new LabelInfo(metadataLabel)); 856_documentToSequencePoints.Add(symbolDoc, sequencePoints);
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
597_docHandles.Add(docWriter, handle); 674_moduleReferences.Add(moduleName, handle); 716_typeReferences.Add(type, typeHandle); 776_memberReferences.Add(memberInfo, memberHandle); 791_memberReferences.Add(pair, memberHandle); 854_assemblyReferences.Add(assembly, handle);
System\Reflection\Emit\TypeBuilderImpl.cs (1)
326_methodOverrides.Add(baseType, im);
System.Reflection.Metadata (12)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (3)
402_guids.Add(guid, result); 455_strings.Add(value, handle); 508_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)
1455groupedNestedTypes.Add(enclosingClass, builder); 1471nestedTypesMap.Add(group.Key, group.Value.ToImmutable());
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
48_fileToPaths.Add(file, paths = new List<string>());
System.Resources.Extensions (12)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (7)
90_caseInsensitiveDups.Add(name, null); 114_caseInsensitiveDups.Add(name, null); 142_caseInsensitiveDups.Add(name, null); 152_caseInsensitiveDups.Add(name, null); 170_caseInsensitiveDups.Add(name, null); 180_caseInsensitiveDups.Add(name, null); 183_preserializedData.Add(name, new PrecannedResource(typeName, data));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
327caseInsensitiveTable.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 (3)
238_deserializedObjects.Add(record.Id, value); 252_deserializedObjects.Add(id, deserializer.Object); 300_incompleteDependencies.Add(updater.ObjectId, [updater.ValueId]);
System.Resources.Writer (7)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (7)
90_caseInsensitiveDups.Add(name, null); 114_caseInsensitiveDups.Add(name, null); 142_caseInsensitiveDups.Add(name, null); 152_caseInsensitiveDups.Add(name, null); 170_caseInsensitiveDups.Add(name, null); 180_caseInsensitiveDups.Add(name, null); 183_preserializedData.Add(name, new PrecannedResource(typeName, data));
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
359ThreadJsOwnedHolders.Add(gcHandle, holder);
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); 754_clrNamespaces.Add(typeName, null); 954handledContracts.Add(classDataContract, null); 992classDataContract.KnownDataContracts.Add(pair.Key, pair.Value); 1198_dataContractSet.ProcessedContracts.Add(keyValueContract, contractCodeDomInfo); 1510Namespaces.Add(dataContractNamespace, clrNamespace); 1511ClrNamespaces.Add(clrNamespace, dataContractNamespace); 1628fragments.Add(nsFragment, null); 1645previousCollectionTypes.Add(dataContract.OriginalUnderlyingType, dataContract.OriginalUnderlyingType);
System.Security.Cryptography (133)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System\Security\Cryptography\CryptoConfig.cs (121)
57ht.Add("SHA", OID_OIWSEC_SHA1); 58ht.Add("SHA1", OID_OIWSEC_SHA1); 59ht.Add("System.Security.Cryptography.SHA1", OID_OIWSEC_SHA1); 60ht.Add("System.Security.Cryptography.SHA1CryptoServiceProvider", OID_OIWSEC_SHA1); 61ht.Add("System.Security.Cryptography.SHA1Cng", OID_OIWSEC_SHA1); 62ht.Add("System.Security.Cryptography.SHA1Managed", OID_OIWSEC_SHA1); 64ht.Add("SHA256", OID_OIWSEC_SHA256); 65ht.Add("System.Security.Cryptography.SHA256", OID_OIWSEC_SHA256); 66ht.Add("System.Security.Cryptography.SHA256CryptoServiceProvider", OID_OIWSEC_SHA256); 67ht.Add("System.Security.Cryptography.SHA256Cng", OID_OIWSEC_SHA256); 68ht.Add("System.Security.Cryptography.SHA256Managed", OID_OIWSEC_SHA256); 70ht.Add("SHA384", OID_OIWSEC_SHA384); 71ht.Add("System.Security.Cryptography.SHA384", OID_OIWSEC_SHA384); 72ht.Add("System.Security.Cryptography.SHA384CryptoServiceProvider", OID_OIWSEC_SHA384); 73ht.Add("System.Security.Cryptography.SHA384Cng", OID_OIWSEC_SHA384); 74ht.Add("System.Security.Cryptography.SHA384Managed", OID_OIWSEC_SHA384); 76ht.Add("SHA512", OID_OIWSEC_SHA512); 77ht.Add("System.Security.Cryptography.SHA512", OID_OIWSEC_SHA512); 78ht.Add("System.Security.Cryptography.SHA512CryptoServiceProvider", OID_OIWSEC_SHA512); 79ht.Add("System.Security.Cryptography.SHA512Cng", OID_OIWSEC_SHA512); 80ht.Add("System.Security.Cryptography.SHA512Managed", OID_OIWSEC_SHA512); 82ht.Add("RIPEMD160", OID_OIWSEC_RIPEMD160); 83ht.Add("System.Security.Cryptography.RIPEMD160", OID_OIWSEC_RIPEMD160); 84ht.Add("System.Security.Cryptography.RIPEMD160Managed", OID_OIWSEC_RIPEMD160); 86ht.Add("MD5", OID_RSA_MD5); 87ht.Add("System.Security.Cryptography.MD5", OID_RSA_MD5); 88ht.Add("System.Security.Cryptography.MD5CryptoServiceProvider", OID_RSA_MD5); 89ht.Add("System.Security.Cryptography.MD5Managed", OID_RSA_MD5); 91ht.Add("TripleDESKeyWrap", OID_RSA_SMIMEalgCMS3DESwrap); 93ht.Add("RC2", OID_RSA_RC2CBC); 94ht.Add("System.Security.Cryptography.RC2CryptoServiceProvider", OID_RSA_RC2CBC); 96ht.Add("DES", OID_OIWSEC_desCBC); 97ht.Add("System.Security.Cryptography.DESCryptoServiceProvider", OID_OIWSEC_desCBC); 99ht.Add("TripleDES", OID_RSA_DES_EDE3_CBC); 100ht.Add("System.Security.Cryptography.TripleDESCryptoServiceProvider", OID_RSA_DES_EDE3_CBC); 150ht.Add("RandomNumberGenerator", RNGCryptoServiceProviderType); 151ht.Add("System.Security.Cryptography.RandomNumberGenerator", RNGCryptoServiceProviderType); 154ht.Add("SHA", SHA1CryptoServiceProviderType); 155ht.Add("SHA1", SHA1CryptoServiceProviderType); 156ht.Add("System.Security.Cryptography.SHA1", SHA1CryptoServiceProviderType); 157ht.Add("System.Security.Cryptography.HashAlgorithm", SHA1CryptoServiceProviderType); 159ht.Add("MD5", MD5CryptoServiceProviderType); 160ht.Add("System.Security.Cryptography.MD5", MD5CryptoServiceProviderType); 162ht.Add("SHA256", SHA256DefaultType); 163ht.Add("SHA-256", SHA256DefaultType); 164ht.Add("System.Security.Cryptography.SHA256", SHA256DefaultType); 166ht.Add("SHA384", SHA384DefaultType); 167ht.Add("SHA-384", SHA384DefaultType); 168ht.Add("System.Security.Cryptography.SHA384", SHA384DefaultType); 170ht.Add("SHA512", SHA512DefaultType); 171ht.Add("SHA-512", SHA512DefaultType); 172ht.Add("System.Security.Cryptography.SHA512", SHA512DefaultType); 175ht.Add("System.Security.Cryptography.HMAC", HMACSHA1Type); 176ht.Add("System.Security.Cryptography.KeyedHashAlgorithm", HMACSHA1Type); 177ht.Add("HMACMD5", HMACMD5Type); 178ht.Add("System.Security.Cryptography.HMACMD5", HMACMD5Type); 179ht.Add("HMACSHA1", HMACSHA1Type); 180ht.Add("System.Security.Cryptography.HMACSHA1", HMACSHA1Type); 181ht.Add("HMACSHA256", HMACSHA256Type); 182ht.Add("System.Security.Cryptography.HMACSHA256", HMACSHA256Type); 183ht.Add("HMACSHA384", HMACSHA384Type); 184ht.Add("System.Security.Cryptography.HMACSHA384", HMACSHA384Type); 185ht.Add("HMACSHA512", HMACSHA512Type); 186ht.Add("System.Security.Cryptography.HMACSHA512", HMACSHA512Type); 189ht.Add("RSA", RSACryptoServiceProviderType); 190ht.Add("System.Security.Cryptography.RSA", RSACryptoServiceProviderType); 191ht.Add("System.Security.Cryptography.AsymmetricAlgorithm", RSACryptoServiceProviderType); 195ht.Add("DSA", DSACryptoServiceProviderType); 196ht.Add("System.Security.Cryptography.DSA", DSACryptoServiceProviderType); 202ht.Add(ECDsaIdentifier, ECDsaCngType); 205ht.Add("ECDsaCng", ECDsaCngType); 206ht.Add("System.Security.Cryptography.ECDsaCng", ECDsaCngType); 209ht.Add("DES", DESCryptoServiceProviderType); 210ht.Add("System.Security.Cryptography.DES", DESCryptoServiceProviderType); 212ht.Add("3DES", TripleDESCryptoServiceProviderType); 213ht.Add("TripleDES", TripleDESCryptoServiceProviderType); 214ht.Add("Triple DES", TripleDESCryptoServiceProviderType); 215ht.Add("System.Security.Cryptography.TripleDES", TripleDESCryptoServiceProviderType); 217ht.Add("RC2", RC2CryptoServiceProviderType); 218ht.Add("System.Security.Cryptography.RC2", RC2CryptoServiceProviderType); 220ht.Add("Rijndael", RijndaelManagedType); 221ht.Add("System.Security.Cryptography.Rijndael", RijndaelManagedType); 223ht.Add("System.Security.Cryptography.SymmetricAlgorithm", RijndaelManagedType); 225ht.Add("AES", AesCryptoServiceProviderType); 226ht.Add("AesCryptoServiceProvider", AesCryptoServiceProviderType); 227ht.Add("System.Security.Cryptography.AesCryptoServiceProvider", AesCryptoServiceProviderType); 228ht.Add("AesManaged", AesManagedType); 229ht.Add("System.Security.Cryptography.AesManaged", AesManagedType); 232ht.Add("http://www.w3.org/2000/09/xmldsig#sha1", SHA1CryptoServiceProviderType); 234ht.Add("http://www.w3.org/2001/04/xmlenc#sha256", SHA256DefaultType); 235ht.Add("http://www.w3.org/2001/04/xmlenc#sha512", SHA512DefaultType); 238ht.Add("http://www.w3.org/2001/04/xmlenc#des-cbc", DESCryptoServiceProviderType); 239ht.Add("http://www.w3.org/2001/04/xmlenc#tripledes-cbc", TripleDESCryptoServiceProviderType); 240ht.Add("http://www.w3.org/2001/04/xmlenc#kw-tripledes", TripleDESCryptoServiceProviderType); 242ht.Add("http://www.w3.org/2001/04/xmlenc#aes128-cbc", RijndaelManagedType); 243ht.Add("http://www.w3.org/2001/04/xmlenc#kw-aes128", RijndaelManagedType); 244ht.Add("http://www.w3.org/2001/04/xmlenc#aes192-cbc", RijndaelManagedType); 245ht.Add("http://www.w3.org/2001/04/xmlenc#kw-aes192", RijndaelManagedType); 246ht.Add("http://www.w3.org/2001/04/xmlenc#aes256-cbc", RijndaelManagedType); 247ht.Add("http://www.w3.org/2001/04/xmlenc#kw-aes256", RijndaelManagedType); 250ht.Add("http://www.w3.org/2000/09/xmldsig#hmac-sha1", HMACSHA1Type); 253ht.Add("http://www.w3.org/2001/04/xmldsig-more#md5", MD5CryptoServiceProviderType); 254ht.Add("http://www.w3.org/2001/04/xmldsig-more#sha384", SHA384DefaultType); 255ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-md5", HMACMD5Type); 256ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha256", HMACSHA256Type); 257ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha384", HMACSHA384Type); 258ht.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha512", HMACSHA512Type); 260ht.Add("2.5.29.10", typeof(X509Certificates.X509BasicConstraintsExtension)); 261ht.Add("2.5.29.19", typeof(X509Certificates.X509BasicConstraintsExtension)); 262ht.Add("2.5.29.14", typeof(X509Certificates.X509SubjectKeyIdentifierExtension)); 263ht.Add("2.5.29.15", typeof(X509Certificates.X509KeyUsageExtension)); 264ht.Add("2.5.29.35", typeof(X509Certificates.X509AuthorityKeyIdentifierExtension)); 265ht.Add("2.5.29.37", typeof(X509Certificates.X509EnhancedKeyUsageExtension)); 266ht.Add(Oids.AuthorityInformationAccess, typeof(X509Certificates.X509AuthorityInformationAccessExtension)); 267ht.Add(Oids.SubjectAltName, typeof(X509Certificates.X509SubjectAlternativeNameExtension)); 270ht.Add("X509Chain", typeof(X509Certificates.X509Chain)); 273ht.Add("1.2.840.113549.1.9.3", "System.Security.Cryptography.Pkcs.Pkcs9ContentType, " + AssemblyName_Pkcs); 274ht.Add("1.2.840.113549.1.9.4", "System.Security.Cryptography.Pkcs.Pkcs9MessageDigest, " + AssemblyName_Pkcs); 275ht.Add("1.2.840.113549.1.9.5", "System.Security.Cryptography.Pkcs.Pkcs9SigningTime, " + AssemblyName_Pkcs); 276ht.Add("1.3.6.1.4.1.311.88.2.1", "System.Security.Cryptography.Pkcs.Pkcs9DocumentName, " + AssemblyName_Pkcs); 277ht.Add("1.3.6.1.4.1.311.88.2.2", "System.Security.Cryptography.Pkcs.Pkcs9DocumentDescription, " + AssemblyName_Pkcs);
System\Security\Cryptography\OidLookup.cs (3)
140s_oidToFriendlyName.Add(oid, primaryFriendlyName); 141s_friendlyNameToOid.Add(primaryFriendlyName, oid); 145s_friendlyNameToOid.Add(additionalName, oid);
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
130_headerParameters.Add(key, value);
System.Security.Cryptography.Pkcs (47)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
24usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
25usedTags.Add(tag, fieldName);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (5)
18lookup.Add(Oids.DsaWithSha1, new DSACmsSignature(Oids.DsaWithSha1, HashAlgorithmName.SHA1)); 19lookup.Add(Oids.DsaWithSha256, new DSACmsSignature(Oids.DsaWithSha256, HashAlgorithmName.SHA256)); 20lookup.Add(Oids.DsaWithSha384, new DSACmsSignature(Oids.DsaWithSha384, HashAlgorithmName.SHA384)); 21lookup.Add(Oids.DsaWithSha512, new DSACmsSignature(Oids.DsaWithSha512, HashAlgorithmName.SHA512)); 22lookup.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.MLDsa.cs (3)
14lookup.Add(Oids.MLDsa44, new MLDsaCmsSignature(Oids.MLDsa44)); 15lookup.Add(Oids.MLDsa65, new MLDsaCmsSignature(Oids.MLDsa65)); 16lookup.Add(Oids.MLDsa87, new MLDsaCmsSignature(Oids.MLDsa87));
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\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (12)
16lookup.Add(Oids.SlhDsaSha2_128s, new SlhDsaCmsSignature(Oids.SlhDsaSha2_128s)); 17lookup.Add(Oids.SlhDsaShake128s, new SlhDsaCmsSignature(Oids.SlhDsaShake128s)); 18lookup.Add(Oids.SlhDsaSha2_128f, new SlhDsaCmsSignature(Oids.SlhDsaSha2_128f)); 19lookup.Add(Oids.SlhDsaShake128f, new SlhDsaCmsSignature(Oids.SlhDsaShake128f)); 20lookup.Add(Oids.SlhDsaSha2_192s, new SlhDsaCmsSignature(Oids.SlhDsaSha2_192s)); 21lookup.Add(Oids.SlhDsaShake192s, new SlhDsaCmsSignature(Oids.SlhDsaShake192s)); 22lookup.Add(Oids.SlhDsaSha2_192f, new SlhDsaCmsSignature(Oids.SlhDsaSha2_192f)); 23lookup.Add(Oids.SlhDsaShake192f, new SlhDsaCmsSignature(Oids.SlhDsaShake192f)); 24lookup.Add(Oids.SlhDsaSha2_256s, new SlhDsaCmsSignature(Oids.SlhDsaSha2_256s)); 25lookup.Add(Oids.SlhDsaShake256s, new SlhDsaCmsSignature(Oids.SlhDsaShake256s)); 26lookup.Add(Oids.SlhDsaSha2_256f, new SlhDsaCmsSignature(Oids.SlhDsaSha2_256f)); 27lookup.Add(Oids.SlhDsaShake256f, new SlhDsaCmsSignature(Oids.SlhDsaShake256f));
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.Primitives (35)
Internals\System\Runtime\MruCache.cs (1)
109_items.Add(key, entry);
Internals\System\Xml\XmlMtomReader.cs (3)
454_mimeParts.Add(currentContentID, currentPart); 2318headers.Add(header.Name, header); 2436parameters.Add(paramAttribute.ToLowerInvariant(), paramValue);
System\IdentityModel\IdentityModelDictionary.cs (1)
52dictionary.Add(_strings[i], i);
System\IdentityModel\SecurityUtils.cs (1)
339properties.Add(SecurityUtils.Identities, identities);
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
182headers.Add(key, 1);
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
105items.Add(sequenceNumber, item);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
639_faultList.Add(binder, state);
System\ServiceModel\Channels\ServiceChannelFactory.cs (6)
193supportedChannels.Add(typeof(IOutputChannel), 0); 197supportedChannels.Add(typeof(IRequestChannel), 0); 201supportedChannels.Add(typeof(IDuplexChannel), 0); 205supportedChannels.Add(typeof(IOutputSessionChannel), 0); 209supportedChannels.Add(typeof(IRequestSessionChannel), 0); 213supportedChannels.Add(typeof(IDuplexSessionChannel), 0);
System\ServiceModel\Description\TypeLoader.cs (2)
95_contracts.Add(actualContractType, contractDescription); 1445_messages.Add(typedMessageType, messageDescription.Items);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
797XmlMappings.Add(mappingKey, mapping);
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
42_operations.Add(operation.Name, operationRuntime);
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
980base.Add(new QName(name, ns), message);
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (4)
53_operationMap.Add(operation.SyncMethod.MethodHandle.Value, operation.Name); 61_operationMap.Add(operation.BeginMethod.MethodHandle.Value, operation.Name); 62_operationMap.Add(operation.EndMethod.MethodHandle.Value, operation.Name); 70_operationMap.Add(operation.TaskMethod.MethodHandle.Value, operation.Name);
System\ServiceModel\MessageHeaderT.cs (1)
117s_cache.Add(t, result);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
782SecurityTokenAuthorizationPoliciesMapping.Add(token, authorizationPolicies);
System\ServiceModel\Security\SecurityProtocol.cs (3)
285_mergedSupportingTokenProvidersMap.Add(action, mergedProviders); 309ScopedSupportingTokenProviderSpecification.Add(action, providerSpecList); 323ScopedSupportingTokenProviderSpecification.Add(action, providerSpecList);
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (1)
137_securityTokenMappedToIdentifierClause.Add(securityToken, keyIdentifierClause);
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
40ScopedCertificates.Add(uri, other.ScopedCertificates[uri]);
System\ServiceModel\ServiceModelDictionary.cs (1)
52dictionary.Add(_strings[i], i);
System\ServiceModel\SynchronizedKeyedCollection.cs (3)
101_dictionary.Add(key, item); 106_dictionary.Add(key, item); 210_dictionary.Add(key, item);
System.ServiceModel.Syndication (23)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (8)
148category.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 557attrs.Add(new XmlQualifiedName(name, ns), value); 569result.AttributeExtensions.Add(attr, attrs[attr]); 647result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 707result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 821result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 914link.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 1008result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (5)
187inlineCategories.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 257referencedCategories.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 363result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 441result.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 511result.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)
210link.AttributeExtensions.Add(new XmlQualifiedName(reader.LocalName, reader.NamespaceURI), reader.Value); 258category.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 304result.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 407feed.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 509link.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 554person.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val); 619result.AttributeExtensions.Add(new XmlQualifiedName(name, ns), val);
System\ServiceModel\Syndication\SyndicationContent.cs (1)
112AttributeExtensions.Add(key, source._attributeExtensions[key]);
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
39AttributeExtensions.Add(new XmlQualifiedName(name, ns), value);
System.ServiceProcess.ServiceController (2)
System\ServiceProcess\ServiceController.cs (2)
350dependencyHash.Add(groupMember.serviceName!, new ServiceController(MachineName, groupMember)); 356dependencyHash.Add(dependencyNameStr, new ServiceController(dependencyNameStr, MachineName));
System.Speech (13)
Internal\SrgsCompiler\Arc.cs (1)
407endArcs.Add(tag, newTag);
Internal\SrgsCompiler\BackEnd.cs (5)
317_nameOffsetRules.Add(rule._cfgRule._nameOffset, rule); 476SrcToDestHash.Add(srcFromState, destFromState); 499SrcToDestHash.Add(srcToState, destToState); 1140_nameOffsetRules.Add(rule._cfgRule._nameOffset, rule); 1166srcToDestHash.Add(srcToState, newState);
Internal\StringBlob.cs (2)
35_strings.Add(sWord, ++_cWords); 67_strings.Add(psz, _cWords);
Internal\Synthesis\VoiceSynthesis.cs (1)
1347_voiceDictionary.Add(voiceInfo, voice);
Result\RecognizedPhrase.cs (3)
508semanticValue._dictionary.Add(children._name, childrenSemantics); 632semanticValue._dictionary.Add(key, thisSemanticValue); 651semanticValue._dictionary.Add(key, thisSemanticValue);
Synthesis\VoiceInfo.cs (1)
81attrs.Add(keyName, attributeValue);
System.Text.Encoding.CodePages (1)
System\Text\CodePagesEncodingProvider.cs (1)
70_encodings.Add(codepage, result);
System.Text.Json (5)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
140nodeIndex.Add(childNode, index);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
547(enumMemberAttributes ??= new(StringComparer.Ordinal)).Add(field.Name, attribute.Name);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
95converters.Add(converter.Type!, converter);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (1)
126_entryByCaseType.Add(paramType, entry);
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
53_objectToReferenceIdMap.Add(value, referenceId);
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Emitter.cs (1)
100_typeIndex.Add(spec.TypeRef, spec);
JsonSourceGenerator.Parser.cs (1)
168_generatedTypes.Add(typeToGenerate.Type, spec);
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
140nodeIndex.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 (20)
RegexGenerator.cs (2)
213requiredHelpers.Add(helper.Key, helper.Value); 232emittedExpressions.Add(key, regexMethod);
RegexGenerator.Emitter.cs (18)
272requiredHelpers.Add(DefaultTimeoutHelpers, 347requiredHelpers.Add(WordCharHelpersSupport, 375requiredHelpers.Add(IsWordChar, 399requiredHelpers.Add(IsBoundaryWordChar, 423requiredHelpers.Add(IsECMABoundaryWordChar, 440requiredHelpers.Add(IsBoundary, 462requiredHelpers.Add(IsPreWordCharBoundary, 484requiredHelpers.Add(IsPostWordCharBoundary, 503requiredHelpers.Add(IsECMABoundary, 621requiredHelpers.Add(fieldName, 745requiredHelpers.Add(helperName, lines.ToArray()); 1185requiredHelpers.Add(fieldName, 1242requiredHelpers.Add(fieldName, 4798additionalLocalFunctions.Add(UncaptureUntil, 4857requiredHelpers.Add(key, lines); 4894requiredHelpers.Add(key, lines); 4943requiredHelpers.Add(MethodName, 4971requiredHelpers.Add(MethodName,
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
102_limiters.Add(partition.PartitionKey, entry);
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 (20)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
113_extenderCache.Add(control, extender);
System\Windows\Forms\ActiveX\AxHost.cs (2)
2580_propertyInfos.Add(propInfo.Name, propInfo); 2620_properties.Add(propName, prop);
System\Windows\Forms\Application.ComponentManager.cs (1)
84OleComponents.Add(_cookieCounter, entry);
System\Windows\Forms\Control.cs (1)
1968_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)
6810_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)
4053_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); 931Owner.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)
4520_dpiFormSizes.Add(e.DeviceDpiNew, new Size(e.SuggestedRectangle.Width, e.SuggestedRectangle.Height)); 4526_dpiFormSizes.Add(e.DeviceDpiOld, Size);
System\Windows\Forms\Input\KeysConverter.cs (2)
79CultureToKeyName.Add(cultureInfo, localizedNames); 80CultureToDisplayOrder.Add(cultureInfo, localizedOrder);
System.Windows.Forms.Design (17)
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 (2)
216categories.Add(categoryName, category); 222category.Add(lineInfo.List, categoryList);
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)
248_componentToDesigner.Add(component, controlDesigner);
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (1)
111s_commandStatusHash.Add(statusHandler, state);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1276hash.Add(props[i].Name, props[i]);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1982_imageListCacheByDPI.Add(ScaleHelper.OneHundredPercentLogicalDpi, ImageList); 2004_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.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
238semanticModelCache.Add(syntaxTree, model);
System.Xaml (49)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
152_assemblies.Add(key, result);
src\wpf\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)); 1852_processContents.Add(namespaceName, processContentSet); 1869_preserveElements.Add(namespaceName, preserveElementSet); 1886_preserveAttributes.Add(namespaceName, preserveAttributeSet); 2053_names.Add(itemName, itemName);
System\Xaml\Context\NameFixupGraph.cs (2)
81_dependenciesByChildObject.Add(fixupToken.ReferencedObject, fixupToken); 484dict.Add(key, tokenList);
System\Xaml\Context\XamlCommonFrame.cs (2)
51Namespaces.Add(prefix, xamlNs); 61Namespaces.Add(ns.Key, ns.Value);
System\Xaml\Context\XamlParserContext.cs (1)
33_prescopeNamespaces.Add(prefix, xamlNS);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (3)
1954PendingCollectionAdds.Add(parentCollection, pendingCollection); 1990PendingKeyConversionContexts.Add(parentCollection, new ObjectWriterContext(savedContext, null, null, Runtime)); 2120ctx.ParentPreconstructionPropertyValues.Add(parentProperty, value);
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
352result.Add(oldns, newns);
System\Xaml\Runtime\DynamicMethodRuntime.cs (6)
154ConverterInstances.Add(clrType, result); 188DelegateCreators.Add(targetType, creator); 219FactoryDelegates.Add(ctor, factoryDelegate); 232FactoryDelegates.Add(factory, factoryDelegate); 250PropertyGetDelegates.Add(getter, getterDelegate); 268PropertySetDelegates.Add(setter, setterDelegate);
System\Xaml\Schema\Reflector.cs (2)
155bracketCharacterAttributeList.Add(bracketCharactersAttribute.OpeningBracket, bracketCharactersAttribute.ClosingBracket); 432bracketCharacterList.Add(openingBracket, closingBracket);
System\Xaml\Schema\TypeReflector.cs (4)
524result.Add(currentProp.Name, currentProp); 578result.Add(currentEvent.Name, currentEvent); 904dict.Add(name, list); 1175Add(name, member);
System\Xaml\Schema\XamlTypeInvoker.cs (1)
166addMethods.Add(_xamlType.ItemType, _xamlType.AddMethod);
System\Xaml\XamlObjectReader.cs (8)
2443objectGraphTable.Add(value, info); 2453serviceProviderTable.Add(value, name); 2521namespaceToPrefixMap.Add(ns, string.Empty); 2522prefixToNamespaceMap.Add(string.Empty, ns); 2593namespaceToPrefixMap.Add(namespaceDeclaration.Namespace, namespaceDeclaration.Prefix); 2594prefixToNamespaceMap.Add(namespaceDeclaration.Prefix, namespaceDeclaration.Namespace); 2632namespaceToPrefixMap.Add(ns, prefix); 2633prefixToNamespaceMap.Add(prefix, ns);
System\Xaml\XamlSchemaContext.cs (2)
602map.Add(propertyName, splBracketCharacters); 605map.Add(constructorArgumentName, splBracketCharacters);
System\Xaml\XamlType.cs (2)
1690result.Add(1, GetReadOnly(typeVector)); 1718ctorDict.Add(typeVector.Length, GetReadOnly(typeVector));
System\Xaml\XamlXmlWriter.cs (2)
380prefixAssignmentHistory.Add(prefix, ns); 2198dictionary.Add(member, true);
tlens (9)
TLens.Analyzers\DuplicatedCodeAnalyzer.cs (1)
37strings.Add(str, existing);
TLens.Analyzers\InterfacesAnalyzer.cs (2)
29interfaces.Add(id, types); 65usage.Add(td, new HashSet<MethodDefinition>());
TLens.Analyzers\LimitedMethodCalls.cs (1)
40methods.Add(md, existing);
TLens.Analyzers\RedundantFieldInitializationAnalyzer.cs (1)
92ctors.Add(ctor, existing);
TLens.Analyzers\TypeInstatiationAnalyzer.cs (1)
53types.Add(type, existing);
TLens.Analyzers\UnnecessaryFieldsAssignmentAnalyzer.cs (1)
74writes.Add(field, methods);
TLens.Analyzers\UserOperatorCalledForNullCheckAnalyzer.cs (1)
46operators.Add(md, data);
TLens\AssemlyReferenceResolver.cs (1)
46resolved.Add(name.Name, assembly);
vstest.console (12)
CommandLine\Executor.cs (1)
344commandSeenCount.Add(processor.Metadata.Value.CommandName, 1);
Processors\EnableBlameArgumentProcessor.cs (3)
223dumpParameters.Add("DumpType", "Full"); 239hangDumpParameters.Add("TestTimeout", TimeSpan.FromHours(1).TotalMilliseconds.ToString(CultureInfo.CurrentCulture)); 244hangDumpParameters.Add("HangDumpType", "Full");
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (4)
350traitDictionary.Add(testPropertyKey, testPropertyValueList); 359traitDictionary.Add(testPropertyKey, multiValue); 377traitDictionary.Add(trait.Name, newTraitValueList); 399traitDictionary.Add(TestCategory, categoryValue!);
Processors\Utilities\ArgumentProcessorFactory.cs (4)
238processorsMap.Add(commandName, argumentProcessor); 242processorsMap.Add(commandName, argumentProcessor); 247processorsMap.Add(shortCommandName, argumentProcessor); 251processorsMap.Add(shortCommandName, argumentProcessor);
vstest.console.arm64 (12)
src\vstest\src\vstest.console\CommandLine\Executor.cs (1)
344commandSeenCount.Add(processor.Metadata.Value.CommandName, 1);
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (3)
223dumpParameters.Add("DumpType", "Full"); 239hangDumpParameters.Add("TestTimeout", TimeSpan.FromHours(1).TotalMilliseconds.ToString(CultureInfo.CurrentCulture)); 244hangDumpParameters.Add("HangDumpType", "Full");
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (4)
350traitDictionary.Add(testPropertyKey, testPropertyValueList); 359traitDictionary.Add(testPropertyKey, multiValue); 377traitDictionary.Add(trait.Name, newTraitValueList); 399traitDictionary.Add(TestCategory, categoryValue!);
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (4)
238processorsMap.Add(commandName, argumentProcessor); 242processorsMap.Add(commandName, argumentProcessor); 247processorsMap.Add(shortCommandName, argumentProcessor); 251processorsMap.Add(shortCommandName, argumentProcessor);
WindowsFormsIntegration (74)
System\Windows\Integration\Convert.cs (53)
33_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.AppStarting, SWI.Cursors.AppStarting); 34_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Arrow, SWI.Cursors.Arrow); 35_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Cross, SWI.Cursors.Cross); 36_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Hand, SWI.Cursors.Hand); 37_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.Help, SWI.Cursors.Help); 38_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.HSplit, SWI.Cursors.Arrow); //No equivalent 39_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.IBeam, SWI.Cursors.IBeam); 40_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.No, SWI.Cursors.No); 41_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.NoMove2D, SWI.Cursors.ScrollAll); 42_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.NoMoveHoriz, SWI.Cursors.ScrollWE); 43_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.NoMoveVert, SWI.Cursors.ScrollNS); 44_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanEast, SWI.Cursors.ScrollE); 45_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanNorth, SWI.Cursors.ScrollN); 46_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanNE, SWI.Cursors.ScrollNE); 47_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanNW, SWI.Cursors.ScrollNW); 48_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanSouth, SWI.Cursors.ScrollS); 49_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanSE, SWI.Cursors.ScrollSE); 50_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanSW, SWI.Cursors.ScrollSW); 51_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.PanWest, SWI.Cursors.ScrollW); 52_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeAll, SWI.Cursors.SizeAll); 53_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeNESW, SWI.Cursors.SizeNESW); 54_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeNS, SWI.Cursors.SizeNS); 55_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeNWSE, SWI.Cursors.SizeNWSE); 56_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.SizeWE, SWI.Cursors.SizeWE); 57_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.UpArrow, SWI.Cursors.UpArrow); 58_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.VSplit, SWI.Cursors.Arrow); //No equivalent 59_toSystemWindowsInputCursorDictionary.Add(SWF.Cursors.WaitCursor, SWI.Cursors.Wait); 73_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.AppStarting, SWF.Cursors.AppStarting); 74_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Arrow, SWF.Cursors.Arrow); 75_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Cross, SWF.Cursors.Cross); 76_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Hand, SWF.Cursors.Hand); 77_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Help, SWF.Cursors.Help); 78_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.IBeam, SWF.Cursors.IBeam); 79_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.No, SWF.Cursors.No); 80_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.None, SWF.Cursors.Default); 81_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollAll, SWF.Cursors.NoMove2D); 82_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollWE, SWF.Cursors.NoMoveHoriz); 83_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollNS, SWF.Cursors.NoMoveVert); 84_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollE, SWF.Cursors.PanEast); 85_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollN, SWF.Cursors.PanNorth); 86_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollNE, SWF.Cursors.PanNE); 87_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollNW, SWF.Cursors.PanNW); 88_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollS, SWF.Cursors.PanSouth); 89_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollSE, SWF.Cursors.PanSE); 90_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollSW, SWF.Cursors.PanSW); 91_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.ScrollW, SWF.Cursors.PanWest); 92_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeAll, SWF.Cursors.SizeAll); 93_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeNESW, SWF.Cursors.SizeNESW); 94_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeNS, SWF.Cursors.SizeNS); 95_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeNWSE, SWF.Cursors.SizeNWSE); 96_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.SizeWE, SWF.Cursors.SizeWE); 97_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.UpArrow, SWF.Cursors.UpArrow); 98_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.Wait, SWF.Cursors.WaitCursor);
System\Windows\Integration\ElementHostPropertyMap.cs (9)
34DefaultTranslators.Add("BackColor", BackgroundPropertyTranslator); 35DefaultTranslators.Add("BackgroundImage", BackgroundPropertyTranslator); 36DefaultTranslators.Add("BackgroundImageLayout", BackgroundPropertyTranslator); 37DefaultTranslators.Add("Cursor", CursorPropertyTranslator); 38DefaultTranslators.Add("Enabled", EnabledPropertyTranslator); 39DefaultTranslators.Add("Font", FontPropertyTranslator); 40DefaultTranslators.Add("RightToLeft", RightToLeftPropertyTranslator); 41DefaultTranslators.Add("Visible", VisiblePropertyTranslator); 42DefaultTranslators.Add("ImeMode", ImeModePropertyTranslator);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (12)
31DefaultTranslators.Add("Background", BackgroundPropertyTranslator); 32DefaultTranslators.Add("FlowDirection", FlowDirectionPropertyTranslator); 33DefaultTranslators.Add("FontStyle", FontStylePropertyTranslator); 34DefaultTranslators.Add("FontWeight", FontWeightPropertyTranslator); 35DefaultTranslators.Add("FontFamily", FontFamilyPropertyTranslator); 36DefaultTranslators.Add("FontSize", FontSizePropertyTranslator); 37DefaultTranslators.Add("Foreground", ForegroundPropertyTranslator); 38DefaultTranslators.Add("IsEnabled", IsEnabledPropertyTranslator); 39DefaultTranslators.Add("Padding", PaddingPropertyTranslator); 40DefaultTranslators.Add("Visibility", VisibilityPropertyTranslator); 45DefaultTranslators.Add("Cursor", EmptyPropertyTranslator); 46DefaultTranslators.Add("ForceCursor", EmptyPropertyTranslator);