138 implementations of Add
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
281public void Add(string name, object property)
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
364public void Add(string key, object? value)
Microsoft.AspNetCore.Components.Endpoints (1)
TempData\TempData.cs (1)
122void IDictionary<string, object?>.Add(string key, object? value)
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
54void IDictionary<object, object?>.Add(object key, object? value)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
210public void Add(string key, StringValues value)
Internal\ItemsDictionary.cs (1)
45void IDictionary<object, object?>.Add(object key, object? value)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
104public void Add(TKey key, TValue value)
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
215public void Add(TKey key, TValue value)
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
364public void Add(string key, object? value)
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
81public void Add(object key, ValidationStateEntry value)
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
104public void Add(TKey key, TValue value)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
AttributeDictionary.cs (1)
181public void Add(string key, string? value)
TempDataDictionary.cs (1)
187public void Add(string key, object? value)
ViewDataDictionary.cs (1)
522public void Add(string key, object? value)
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
42void IDictionary<string, string[]>.Add(string key, string[] value) => Inner.Add(key, value);
DictionaryStringValuesWrapper.cs (1)
87void IDictionary<string, StringValues>.Add(string key, StringValues value) => Inner.Add(key, value);
OwinEnvironment.cs (1)
73void IDictionary<string, object>.Add(string key, object value)
Microsoft.AspNetCore.Razor.Runtime (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
104public void Add(TKey key, TValue value)
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
174public void Add(string key, StringValues value)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
71void IDictionary<string, StringValues>.Add(string key, StringValues value)
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
174public void Add(string key, StringValues value)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
71void IDictionary<string, StringValues>.Add(string key, StringValues value)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
189void IDictionary<string, StringValues>.Add(string key, StringValues value)
Microsoft.Build (12)
Collections\ArrayDictionary.cs (1)
94public void Add(TKey key, TValue value)
Collections\CopyOnWritePropertyDictionary.cs (1)
254void IDictionary<string, T>.Add(string key, T value)
Collections\PropertyDictionary.cs (1)
368void IDictionary<string, T>.Add(string key, T value)
Collections\ReadOnlyConvertingDictionary.cs (1)
79public void Add(K key, N value)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (1)
592void IDictionary<string, T>.Add(string key, T item)
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (1)
49public void Add(string key, T value) => throw new NotSupportedException();
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (1)
68public void Add(string key, ProjectPropertyInstance value) => throw new NotSupportedException();
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\8b3a4ac2431f87ea\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.Build.Framework (2)
Collections\CopyOnWriteDictionary.cs (1)
206public void Add(string key, V value)
Collections\ReadOnlyEmptyDictionary.cs (1)
172public void Add(K key, V value)
Microsoft.CodeAnalysis (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
85public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.Extensions.Package (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
84public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Microsoft.Extensions.AI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Extensions.AI.Abstractions (3)
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);
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
291public void Add(string key, object value)
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
59public void Add(T key, U value) => ((IDictionary<T, U>)Map).Add(key, value);
Microsoft.Maui.Controls (3)
OrderedDictionary.cs (1)
165 public void Add(TKey key, TValue value)
ResourceDictionary.cs (1)
194 public void Add(string key, object value)
Shell\ShellNavigationQueryParameters.cs (1)
59 public void Add(string key, object value)
Microsoft.ML.Core (1)
Utilities\Tree.cs (1)
138public void Add(TKey key, Tree<TKey, TValue> newChild)
Microsoft.ML.SearchSpace (3)
Option\NestOption.cs (1)
92public void Add(string key, OptionBase value)
Parameter.cs (1)
310public void Add(string key, Parameter value)
SearchSpace.cs (1)
311public void Add(string key, OptionBase value)
Microsoft.ML.TorchSharp (1)
Utils\DefaultDictionary.cs (1)
84public void Add(TKey key, TValue value)
Microsoft.TemplateEngine.Core (1)
VariableCollection.cs (1)
118public void Add(string key, object value)
PresentationCore (4)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
611public void Add(int key, ushort value)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
217public void Add(int key, CharacterMetrics value)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
186public void Add(XmlLanguage key, string value)
System\Windows\Media\GlyphTypeface.cs (1)
1735public void Add(ushort key, double value)
PresentationFramework (2)
MS\Internal\Annotations\ObservableDictionary.cs (1)
61public void Add(string key, string val)
MS\Internal\WeakDictionary.cs (1)
190public void Add(TKey key, TValue value)
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
350void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
75public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
264public void Add(TKey key, TValue value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
31public void Add(TKey key, TValue value)
Shared (1)
EmptyCollections\EmptyReadonlyDictionary.cs (1)
58void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
479public void Add(TKey key, TValue value)
System\Collections\Generic\SortedDictionary.cs (1)
189public void Add(TKey key, TValue value)
System\Collections\Generic\SortedList.cs (1)
179public void Add(TKey key, TValue value)
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
649void IDictionary<TKey, TValue>.Add(TKey key, TValue value) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
509public void Add(TKey key, TValue value)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
575void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
416public void Add(TKey key, TValue value)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
480void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
33public void Add(string key, object value)
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\ActivityTagsCollection.cs (1)
139public void Add(string key, object? value)
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
42public void Add(string key, string? value) => this[key] = value;
System.Linq.Expressions (1)
System\Dynamic\ExpandoObject.cs (1)
639void IDictionary<string, object?>.Add(string key, object? value)
System.Net.Http (1)
System\Net\Http\HttpRequestOptions.cs (1)
37void IDictionary<string, object?>.Add(string key, object? value) => Options.Add(key, value);
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1545void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
248public void Add(TKey key, TValue value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
55void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
49public void Add(string key, object? value)
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
126public void Add(CoseHeaderLabel key, CoseHeaderValue value)
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\MessageProperties.cs (1)
329public void Add(string name, object property)
System.Speech (1)
Result\SemanticValue.cs (1)
117void IDictionary<string, SemanticValue>.Add(string key, SemanticValue value)
System.Text.Json (1)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
26public void Add(string propertyName, JsonNode? value)
System.Xaml (2)
System\Xaml\NameScope.cs (1)
182public void Add(string key, object value)
System\Xaml\NameScopeDictionary.cs (1)
300void IDictionary<string, object>.Add(string key, object value)
351 references to Add
Aspire.Hosting (4)
Dcp\DcpHost.cs (4)
217dcpProcessSpec.EnvironmentVariables.Add("DCP_LOG_SOCKET", _locations.DcpLogSocket); 220dcpProcessSpec.EnvironmentVariables.Add("DCP_LOG_FILE_NAME_SUFFIX", _dcpOptions.LogFileNameSuffix); 270dcpProcessSpec.EnvironmentVariables.Add("DCP_EXTENSIONS_PATH", _dcpOptions.ExtensionsPath); 275dcpProcessSpec.EnvironmentVariables.Add("DCP_SESSION_FOLDER", locations.DcpSessionDir);
Aspire.Hosting.Azure (1)
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
154rgData.Tags.Add("aspire", "true");
CSharpSyntaxGenerator (1)
AbstractFileWriter.cs (1)
36_parentMap.Add(tree.Root, null);
dotnet (3)
CommandFactory\CommandFactoryUsingResolver.cs (1)
114psi.Environment.Add(environmentVariable.Key, environmentVariable.Value);
CommandFactory\CommandSpec.cs (1)
23EnvironmentVariables.Add(environmentVariable.Key, environmentVariable.Value);
Telemetry\TelemetryClient.cs (1)
304properties.Add("event id", Guid.NewGuid().ToString());
dotnet-aot (2)
src\sdk\src\Cli\dotnet\CommandFactory\CommandFactoryUsingResolver.cs (1)
114psi.Environment.Add(environmentVariable.Key, environmentVariable.Value);
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (1)
304properties.Add("event id", Guid.NewGuid().ToString());
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (2)
202dictionary.Add(string.Empty, attr.Value); 210dictionary.Add(attr.LocalName, attr.Value);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
236evaluationContext.Properties.Add(SecurityUtils.Identities, identities);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (2)
68OperationAssertions.Add(operation, assertions); 82MessageAssertions.Add(message, assertions);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\InitiatorServiceModelSecurityTokenRequirement.cs (1)
16Properties.Add(IsInitiatorProperty, (object)true);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (1)
12Properties.Add(IsInitiatorProperty, (object)false);
dotnet-user-jwts (1)
Commands\CreateCommand.cs (1)
264jwtStore.Jwts.Add(jwtToken.Id, jwt);
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
illink (1)
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonObject.cs (1)
66_properties.Add(key, value);
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
436app.Properties.Add(WebApplication.GlobalEndpointRouteBuilderKey, _builtApplication);
Microsoft.AspNetCore.Authentication (1)
TicketSerializer.cs (1)
258claim.Properties.Add(key, propertyValue);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
86properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
320properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier);
Microsoft.AspNetCore.Authentication.OpenIdConnect (9)
OpenIdConnectHandler.cs (9)
423properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier); 428message.Parameters.Add(OAuthConstants.CodeChallengeKey, codeChallenge); 429message.Parameters.Add(OAuthConstants.CodeChallengeMethodKey, OAuthConstants.CodeChallengeMethodS256); 460message.Parameters.Add(additionalParameter.Key, additionalParameter.Value); 483properties.Items.Add(OpenIdConnectDefaults.RedirectUriForCodePropertiesKey, message.RedirectUri); 576parRequest.Parameters.Add(OpenIdConnectParameterNames.ClientSecret, Options.ClientSecret); 605authorizeRequest.Parameters.Add("client_id", Options.ClientId); 606authorizeRequest.Parameters.Add("request_uri", requestUri); 1278tokenEndpointRequest.Parameters.Add(OAuthConstants.CodeVerifierKey, codeVerifier);
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Converters\DictionaryAdapters\DictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
84context.Response.Headers.Add("blazor-enhanced-nav", "allow"); 253httpContext.Response.Headers.Add("blazor-enhanced-nav-redirect-location",
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
36httpContext.Response.Headers.Add(_streamingRenderingFramingHeaderName, id);
TempData\TempData.cs (1)
139((IDictionary<string, object?>)this).Add(item.Key, item.Value);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
135provider.Mappings.Add(name, mimeType);
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
392existing.Add(key, value);
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
56Items.Add(key, value);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
MigrationsEndPointMiddleware.cs (4)
79context.Response.Headers.Add("Pragma", new[] { "no-cache" }); 80context.Response.Headers.Add("Cache-Control", new[] { "no-cache,no-store" }); 134response.Headers.Add("Pragma", new[] { "no-cache" }); 135response.Headers.Add("Cache-Control", new[] { "no-cache,no-store" });
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Logging\AcceptanceTests.cs (4)
363x.RequestHeadersDataClasses.Add(HeaderNames.Accept, DataClassification.None); 364x.ResponseHeadersDataClasses.Add(HeaderNames.TransferEncoding, DataClassification.None); 434x.RequestHeadersDataClasses.Add(HeaderNames.Accept, DataClassification.None); 435x.ResponseHeadersDataClasses.Add(HeaderNames.TransferEncoding, DataClassification.None);
Logging\RequestHeadersEnricherExtensionsTests.cs (2)
32.AddRequestHeadersLogEnricher(e => e.HeadersDataClasses.Add("TestKey", DataClassification.None)) 58e.HeadersDataClasses.Add("TestKey", DataClassification.None);
Microsoft.AspNetCore.HeaderParsing.Tests (4)
HeaderParsingExtensionsTests.cs (1)
22.AddHeaderParsing(options => options.DefaultValues.Add("Test", "9"))
HeaderParsingFeatureTests.cs (1)
118_options.Value.DefaultValues.Add("Date", date);
HeaderRegistryTests.cs (2)
42_options.Value.DefaultValues.Add("Date", date); 57_options.Value.DefaultValues.Add("Date", date);
Microsoft.AspNetCore.HeaderPropagation (1)
HeaderPropagationMiddleware.cs (1)
61headers.Add(entry.CapturedHeaderName, value);
Microsoft.AspNetCore.Hosting (1)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
392existing.Add(key, value);
Microsoft.AspNetCore.Http (2)
Internal\ItemsDictionary.cs (1)
48_items.Add(key, value);
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
106WriteDictionary.Add(key, value);
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\DictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
77Response.Headers.Add("Content-Disposition", "attachment; filename=PersonalData.json");
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
77Response.Headers.Add("Content-Disposition", "attachment; filename=PersonalData.json");
Microsoft.AspNetCore.Mvc.Core (12)
ApplicationModels\ApplicationModelFactory.cs (1)
286routingConfigurationErrors.Add(method, message);
ApplicationModels\ControllerActionDescriptorBuilder.cs (4)
227actionDescriptor.RouteValues.Add(kvp.Key, kvp.Value); 236actionDescriptor.RouteValues.Add(kvp.Key, kvp.Value); 243actionDescriptor.RouteValues.Add("action", action.ActionName ?? string.Empty); 248actionDescriptor.RouteValues.Add("controller", controller.ControllerName);
ApplicationModels\ControllerActionDescriptorProvider.cs (1)
69action.RouteValues.Add(key, null);
ApplicationModels\DefaultApplicationModelProvider.cs (2)
173controllerModel.RouteValues.Add(routeValueProvider.RouteKey, routeValueProvider.RouteValue); 298actionModel.RouteValues.Add(routeValueProvider.RouteKey, routeValueProvider.RouteValue);
DependencyInjection\MvcCoreRouteOptionsSetup.cs (1)
23options.ConstraintMap.Add("exists", typeof(KnownRouteValueConstraint));
ModelBinding\PrefixContainer.cs (2)
131results.Add(key, fullName); 179results.Add(key, fullName);
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
106WriteDictionary.Add(key, value);
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
NumericClientModelValidator.cs (1)
28attributes.Add(key, value);
ValidationAttributeAdapterOfTAttribute.cs (1)
54attributes.Add(key, value);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
ProblemDetailsWrapper.cs (1)
109ProblemDetails.Extensions.Add(name, value);
ValidationProblemDetailsWrapper.cs (1)
70ProblemDetails.Errors.Add(key, new[] { value });
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\aspnetcore\src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
58model.RouteValues.Add("page", model.ViewEnginePath);
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\PageRouteModelFactory.cs (1)
58model.RouteValues.Add("page", model.ViewEnginePath);
Infrastructure\PageActionDescriptorProvider.cs (2)
114descriptor.RouteValues.Add(kvp.Key, kvp.Value); 120descriptor.RouteValues.Add("page", model.ViewEnginePath);
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
DefaultEditorTemplates.cs (2)
207htmlAttributes.Add("class", className); 213htmlAttributes.Add("type", inputType);
Filters\SaveTempDataFilter.cs (1)
39context.HttpContext.Items.Add(SaveTempDataFilterContextKey, tempDataContext);
RemoteAttributeBase.cs (1)
166attributes.Add(key, value);
TempDataDictionaryFactory.cs (1)
42context.Items.Add(Key, result);
ViewDataDictionary.cs (1)
526_data.Add(key, value);
Microsoft.AspNetCore.OpenApi (4)
Schemas\OpenApiJsonSchema.Helpers.cs (3)
351schema.Metadata.Add(OpenApiConstants.SchemaId, reader.GetString() ?? string.Empty); 356schema.Metadata.Add(OpenApiConstants.SchemaIsUnion, reader.GetBoolean()); 361schema.Metadata.Add(OpenApiConstants.NullableProperty, reader.GetBoolean());
Services\OpenApiDocumentService.cs (1)
285operation.Metadata.Add(OpenApiConstants.DescriptionId, description.ActionDescriptor.Id);
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
42void IDictionary<string, string[]>.Add(string key, string[] value) => Inner.Add(key, value);
DictionaryStringValuesWrapper.cs (1)
87void IDictionary<string, StringValues>.Add(string key, StringValues value) => Inner.Add(key, value);
OwinEnvironment.cs (1)
79_context.Items.Add(key, value);
Microsoft.AspNetCore.Razor.Runtime (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
106WriteDictionary.Add(key, value);
Microsoft.AspNetCore.Routing (1)
Tree\TreeRouter.cs (1)
119_namedEntries.Add(entry.RouteName, outboundMatch);
Microsoft.AspNetCore.Server.HttpSys (4)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
180Store.Add(key, value);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
80Extra.Add(key, value); 147((IDictionary<string, StringValues>)this).Add(item.Key, item.Value);
UrlPrefixCollection.cs (1)
70_prefixes.Add(id, item);
Microsoft.AspNetCore.Server.IIS (3)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
180Store.Add(key, value);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
80Extra.Add(key, value); 147((IDictionary<string, StringValues>)this).Add(item.Key, item.Value);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
186((IDictionary<string, StringValues>)this).Add(item.Key, item.Value);
Microsoft.AspNetCore.TestHost (5)
WebSocketClient.cs (5)
79request.Headers.Add(HeaderNames.Connection, new string[] { "Upgrade" }); 80request.Headers.Add(HeaderNames.Upgrade, new string[] { "websocket" }); 81request.Headers.Add(HeaderNames.SecWebSocketVersion, new string[] { "13" }); 82request.Headers.Add(HeaderNames.SecWebSocketKey, new string[] { CreateRequestKey() }); 85request.Headers.Add(HeaderNames.SecWebSocketProtocol, SubProtocols.ToArray());
Microsoft.Build (10)
BackEnd\Components\Communications\LogMessagePacket.cs (1)
394list.Add(key, value);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (4)
1099_uniqueTargetInputs.Add(input.ToString(), null); 1107_uniqueTargetOutputs.Add(output.ToString(), null); 1139_uniqueTargetInputs.Add(input, null); 1145_uniqueTargetOutputs.Add(output, null);
Collections\CopyOnWritePropertyDictionary.cs (1)
280((IDictionary<string, T>)this).Add(item.Key, item.Value);
Collections\PropertyDictionary.cs (1)
414((IDictionary<string, T>)this).Add(item.Key, item.Value);
Instance\TaskRegistry.cs (1)
1851UsingTaskParameters.Add(parameter.Name, new TaskPropertyInfo(parameter.Name, paramType, output, required));
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
503dictionary.Add(key, value);
src\msbuild\src\Shared\TaskParameter.cs (1)
848clonedMetadata.Add(metadatum.Key, EscapingUtilities.UnescapeAll(metadatum.Value));
Microsoft.Build.Framework (3)
Collections\ReadOnlyEmptyDictionary.cs (1)
262((IDictionary<K, V>)this).Add((K)key, (V)value);
TaskParameterEventArgs.cs (1)
170metadata.Add(key, value);
TelemetryEventArgs.cs (1)
57Properties.Add(key, value);
Microsoft.Build.Tasks.Core (4)
AssignProjectConfiguration.cs (1)
405map.Add(platforms[0], platforms[1]);
ResGenDependencies.cs (2)
153resXFiles.Add(file, resxFile); 180portableLibraries.Add(library.FileName, library);
src\msbuild\src\Shared\TaskParameter.cs (1)
848clonedMetadata.Add(metadatum.Key, EscapingUtilities.UnescapeAll(metadatum.Value));
Microsoft.Build.Utilities.Core (2)
SDKManifest.cs (2)
382_frameworkIdentities.Add(attribute.Name, value); 393_appxLocations.Add(attribute.Name, value);
Microsoft.CodeAnalysis (3)
Collections\CachingDictionary.cs (2)
228fullyPopulatedMap.Add(key, _getElementsOfKey(key)); 238fullyPopulatedMap.Add(key, elements);
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
835localBoundReferenceDirectives.Add((referenceDirective.Location.SourceTree.FilePath, referenceDirective.File), boundReference);
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
Microsoft.CodeAnalysis.CSharp (6)
Compilation\SyntaxAndDeclarationManager.cs (6)
182ordinalMapBuilder.Add(tree, ordinalMapBuilder.Count); 185lastComputedMemberNamesMap.Add(tree, OneOrMany<WeakReference<StrongBox<ImmutableSegmentedHashSet<string>>>>.Empty); 247loadedSyntaxTreeMapBuilder.Add(loadedTree.FilePath, loadedTree); 287loadDirectiveMapBuilder.Add(tree, loadDirectives.ToImmutableAndFree()); 300declMapBuilder.Add(tree, lazyRoot); // Callers are responsible for checking for existing entries. 713ordinalMapBuilder.Add(tree, ordinalMapBuilder.Count);
Microsoft.CodeAnalysis.Features (1)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
586=> variableInfoMap.Add(localOrParameter, variableInfo);
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (1)
20dictionary.Add(key, value);
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
Microsoft.CodeAnalysis.Workspaces (11)
Log\StatisticResult.cs (6)
81properties.Add(prefix + nameof(Maximum), Maximum); 82properties.Add(prefix + nameof(Minimum), Minimum); 83properties.Add(prefix + nameof(Mean), Mean); 84properties.Add(prefix + nameof(Range), Range); 85properties.Add(prefix + nameof(Count), Count); 88properties.Add(prefix + nameof(Mode), Mode.Value);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
Microsoft.DotNet.Build.Tasks.Packaging (2)
GetPackageFromModule.cs (1)
54modulesToPackages.Add(modulePackage.ItemSpec, modulePackage.GetMetadata("Package"));
NuGetAssetResolver.cs (1)
90criterium.Properties.Add(ManagedCodeConventions.PropertyNames.RuntimeIdentifier, null);
Microsoft.DotNet.HotReload.Watch (1)
Process\ProcessRunner.cs (1)
171process.StartInfo.Environment.Add(env.Key, env.Value);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Functions\AIFunctionArgumentsTests.cs (1)
138args.Add("key3", "value3");
Microsoft.Extensions.AI.Evaluation (1)
CompositeEvaluator.cs (1)
158result.Metrics.Add(metric.Name, metric);
Microsoft.Extensions.AI.Evaluation.Console (3)
Telemetry\TelemetryExtensions.cs (3)
169properties.Add(TelemetryConstants.PropertyNames.Success, TelemetryConstants.PropertyValues.True); 170properties.Add(TelemetryConstants.PropertyNames.DurationInMilliseconds, durationInMilliseconds); 204properties.Add(TelemetryConstants.PropertyNames.Success, TelemetryConstants.PropertyValues.False);
Microsoft.Extensions.AI.Evaluation.Safety (3)
ContentSafetyEvaluator.cs (1)
182updatedResult.Metrics.Add(metric.Name, metric);
ContentSafetyService.cs (1)
116result.Metrics.Add(metric.Name, metric);
ProtectedMaterialEvaluator.cs (1)
104result.Metrics.Add(imageMetric.Name, imageMetric);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
741openAIOptions.Metadata.Add("something", "else"); 742openAIOptions.LogitBiases.Add(12, 34);
Microsoft.Extensions.Configuration (2)
MemoryConfigurationProvider.cs (2)
31Data.Add(pair.Key, pair.Value); 43Data.Add(key, value);
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationProvider.cs (1)
80parent.ChildrenBySiblingName.Add(element.SiblingName, siblings);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (9)
Benchmarks\HeadersReaderBenchmark.cs (1)
44options.RequestHeadersDataClasses.Add($"Header{i}", FakeTaxonomy.PublicData);
HttpClientFactory.cs (8)
29options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 52options.ResponseHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 76options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 79options.ResponseHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 102options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 125options.ResponseHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 149options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 152options.ResponseHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData);
Microsoft.Extensions.Http.Diagnostics.Tests (35)
Logging\AcceptanceTests.cs (18)
139o.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData); 140o.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 141o.RequestHeadersDataClasses.Add("RequestHeaderFirst", FakeTaxonomy.PrivateData); 149o.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData); 150o.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 151o.RequestHeadersDataClasses.Add("RequestHeaderSecond", FakeTaxonomy.PrivateData); 218x.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData); 219x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 220x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData); 229x.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData); 230x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 231x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData); 301o.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 347o.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 412o.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 665x.ResponseHeadersDataClasses.Add("ResponseHeader", FakeTaxonomy.PrivateData); 666x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 667x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData);
Logging\HttpClientLoggingExtensionsTest.cs (8)
133.AddExtendedHttpClientLogging(o => o.RequestHeadersDataClasses.Add("test1", FakeTaxonomy.PrivateData)) 136.AddExtendedHttpClientLogging(o => o.RequestHeadersDataClasses.Add("test2", FakeTaxonomy.PrivateData)) 172options.RequestHeadersDataClasses.Add(requestHeader, FakeTaxonomy.PrivateData); 173options.ResponseHeadersDataClasses.Add(responseHeader, FakeTaxonomy.PrivateData); 282options.RequestHeadersDataClasses.Add(requestHeader, FakeTaxonomy.PrivateData); 283options.ResponseHeadersDataClasses.Add(responseHeader, FakeTaxonomy.PrivateData); 343x.RequestHeadersDataClasses.Add(ClientName, FakeTaxonomy.PublicData); 348x.RequestHeadersDataClasses.Add("default", FakeTaxonomy.PrivateData);
Logging\HttpRequestReaderTest.cs (7)
202opts.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 277opts.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 350opts.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 411opts.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 484opts.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 553opts.RouteParameterDataClasses.Add("userId", FakeTaxonomy.PrivateData); 841options.RouteParameterDataClasses.Add("routeId", FakeTaxonomy.PrivateData);
Logging\LoggingOptionsTest.cs (2)
128_sut.RouteParameterDataClasses.Add("foo", FakeTaxonomy.PrivateData); 129_sut.RouteParameterDataClasses.Add("bar", FakeTaxonomy.PrivateData);
Microsoft.Extensions.Http.Resilience.Tests (2)
Resilience\RequestMessageSnapshotTests.cs (2)
64initialRequest.Properties.Add("A", "A"); 65initialRequest.Properties.Add("B", "B");
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
59public void Add(T key, U value) => ((IDictionary<T, U>)Map).Add(key, value);
Microsoft.Maui.Controls (2)
StyleSheets\Style.cs (1)
40 style.Declarations.Add(propertyName, propertyValue);
StyleSheets\StyleSheet.cs (1)
84 sheet.Styles.Add(selector, style);
Microsoft.ML.CodeGenerator (2)
CodeGenerator\CSharp\TrainerGeneratorBase.cs (2)
49node.Properties.Add("LabelColumnName", "Label"); 53node.Properties.Add("FeatureColumnName", "Features");
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
994options.StartInfo.Environment.Add(item.Key, item.Value);
Microsoft.ML.OnnxTransformerTest (1)
OnnxTransformTests.cs (1)
856output.Output.Add(pair.Key + 1, pair.Value);
Microsoft.ML.SearchSpace (2)
Option\NestOption.cs (1)
94((IDictionary<string, OptionBase>)_options).Add(key, value);
SearchSpace.cs (1)
313((IDictionary<string, OptionBase>)_options).Add(key, value);
Microsoft.NET.Build.Containers (10)
Telemetry.cs (10)
80props.Add("error", "unknown_repository"); 87props.Add("error", "credential_failure"); 88props.Add("direction", "pull"); 95props.Add("error", "credential_failure"); 96props.Add("direction", "push"); 103props.Add("error", "rid_mismatch"); 104props.Add("target_rid", desiredRid); 105props.Add("available_rids", string.Join(",", availableRids)); 112props.Add("error", "missing_binary"); 119props.Add("error", "local_load");
Microsoft.NET.Build.Tasks (2)
GenerateRuntimeConfigurationFiles.cs (1)
301runtimeOptions.RawOptions.Add(runtimeOption.Key, runtimeOption.Value);
ResolveAppHosts.cs (1)
326packagesToDownload.Add(hostPackName, appHostPackVersion);
Microsoft.TemplateEngine.Cli (1)
NuGet\NugetApiManager.cs (1)
110_sourceRepositories.Add(source, Repository.Factory.GetCoreV3(source));
Microsoft.TemplateEngine.Core (1)
VariableCollection.cs (1)
130_values.Add(key, value);
Microsoft.TestPlatform.CrossPlatEngine (3)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (2)
124datacollectorsAttachmentsProcessors.Add(attachmentQualifiedName, new Tuple<string, IDataCollectorAttachmentProcessor>(dataCollectorExtension.Metadata.FriendlyName, dataCollectorAttachmentProcessorInstance)); 135datacollectorsAttachmentsProcessors.Add(typeof(CodeCoverageDataAttachmentsHandler).AssemblyQualifiedName!, new Tuple<string, IDataCollectorAttachmentProcessor>(CoverageFriendlyName, new CodeCoverageDataAttachmentsHandler()));
Client\ProxyExecutionManagerWithDataCollection.cs (1)
173testProcessStartInfo.EnvironmentVariables.Add(envVariable.Key, envVariable.Value);
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DotnetTestHostManager.cs (2)
620startInfo.EnvironmentVariables.Add(dotnetRootX86, dotnetRootPath); 832startInfo.EnvironmentVariables.Add(environmentVariableName, dotnetRootPath);
Microsoft.VisualStudio.TestPlatform.Common (1)
ExtensionFramework\Utilities\TestExtensions.cs (1)
164metrics.Add(
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\FrameworkNameProvider.cs (1)
961destination.Add(framework, destination.Count);
MSBuild (1)
src\msbuild\src\Shared\TaskParameter.cs (1)
848clonedMetadata.Add(metadatum.Key, EscapingUtilities.UnescapeAll(metadatum.Value));
NuGet.Build.Tasks (3)
BuildTasksUtility.cs (3)
66properties.Add(toKey, propertyValue); 99properties.Add(key, value); 107properties.Add(key, string.Concat(value.Select(e => e + ";")));
NuGet.Commands (6)
PackCommand\Logging\PackageSpecificWarningProperties.cs (2)
65Properties.Add(code, frameworksByLibraryId); 71frameworksByLibraryId.Add(libraryId, frameworks);
RestoreCommand\Logging\PackageSpecificWarningProperties.cs (1)
86Properties.Add(code, frameworksByLibraryId);
RestoreCommand\RestoreCommand.cs (1)
1641contextForProject.LockFileLibraries.Add(new LockFileCacheKey(
RestoreCommand\Utility\LockFileUtils.cs (2)
186item.Properties.Add(LockFileItem.AliasesProperty, aliases); 1001emptyItem.Properties.Add(pair.Key, pair.Value);
NuGet.Frameworks (1)
FrameworkNameProvider.cs (1)
973destination.Add(framework, destination.Count);
NuGet.PackageManagement (1)
Resolution\PrunePackageTree.cs (1)
110installed.Add(packageReference.PackageIdentity.Id, packageReference.PackageIdentity.Version);
NuGet.Packaging (1)
Signing\Signatures\Signature.cs (1)
376_signingCertificateFingerprintLookup.Add(algorithm, fingerprint);
NuGet.Protocol (1)
HttpSource\HttpRequestMessageExtensions.cs (1)
44clonedOptions.Add(option.Key, option.Value);
PresentationCore (3)
MS\Internal\Shaping\TypefaceMap.cs (1)
375_intMaps.Add(culture, map);
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
188_innerDictionary.Add(key, ValidateValue(value)); 274_innerDictionary.Add(ConvertKey(key), ConvertValue(value));
PresentationFramework (14)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
394part.NameValuePairs.Add(ValueAttributeName, nodeId);
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
322part.NameValuePairs.Add(ValueAttributeName, page.ToString(NumberFormatInfo.InvariantInfo));
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (4)
198part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 199part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,"); 203part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo)); 226part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
158part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 161part.NameValuePairs.Add(CountAttribute, textSegments.Count.ToString(NumberFormatInfo.InvariantInfo));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (3)
146part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 147part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 148part.NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationHelper.cs (1)
697locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\LocatorPart.cs (1)
142newPart.NameValuePairs.Add(k_v.Key, k_v.Value);
System\Windows\Annotations\LocatorPartList.cs (1)
256part.NameValuePairs.Add(name, value);
PresentationUI (4)
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
417signatureDefinitionMap.Add(signatureDefinition.SpotId.Value, signatureDefinition);
MS\Internal\Documents\DocumentSignatureManager.cs (2)
545_digSigSigResources.Add(sigResources, digSig); 566_certificateStatusTable.Add(digSig.Certificate, CertificatePriorityStatus.Ok);
MS\Internal\Documents\RightsManagementManager.cs (1)
662_userMap.Add(accountName, user);
ReachFramework (3)
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
34this._dictionary.Add(key, entry);
Serialization\TreeWalkProgress.cs (1)
26this._cyclicBrushes.Add(brush, EmptyStruct.Default);
Serialization\XpsFontSubsetter.cs (1)
402_fontEmbeddingManagerCache.Add(fontUri, manager);
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (5)
22dictionary.Add(key, value); 34dictionary.Add(key, value); 70dictionary.Add(key, collection); 82dictionary.Add(key, builder); 94dictionary.Add(key, builder);
Shared.Tests (2)
EmptyCollections\EmptyReadonlyDictionaryTests.cs (2)
37Assert.Throws<NotSupportedException>(() => dict.Add(1, "One")); 48Assert.Throws<NotSupportedException>(() => dict.Add(1, "One"));
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\AttributedModel\AttributedExportDefinition.cs (3)
46metadata.Add(CompositionConstants.ExportTypeIdentityMetadataName, typeIdentity); 51metadata.Add(CompositionConstants.PartCreationPolicyMetadataName, value); 56metadata.Add(CompositionConstants.GenericExportParametersOrderMetadataName, GenericServices.GetGenericParametersOrder(_typeIdentityType));
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
346dictionary.Add(name, value);
System.Composition.Hosting (2)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
35ActualMetadata.Add(key, value);
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
50_partDefinitions.Add(resultContract, descriptors);
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
127metadata.Add(name, value);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (2)
1602void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) => ((IDictionary<TKey, TValue>)this).Add(keyValuePair.Key, keyValuePair.Value); 1690((IDictionary<TKey, TValue>)this).Add((TKey)key, (TValue)value!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
33dictionary.Add(key, value);
System.Private.Xml (2)
System\Xml\Dom\DocumentSchemaValidator.cs (2)
194dictionary.Add(string.Empty, attr.Value); 202dictionary.Add(attr.LocalName, attr.Value);
System.Security.Claims (1)
System\Security\Claims\Claim.cs (1)
124Properties.Add(reader.ReadString(), reader.ReadString());
System.Security.Principal.Windows (14)
System\Security\Principal\WindowsIdentity.cs (14)
1118claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1124claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1132claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1138claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1171claim.Properties.Add(ClaimTypes.WindowsSubAuthority, sid.IdentifierAuthority.ToString()); 1177claim.Properties.Add(ClaimTypes.WindowsSubAuthority, sid.IdentifierAuthority.ToString()); 1219claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1220claim.Properties.Add(claimType, ""); 1227claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1228claim.Properties.Add(claimType, ""); 1271c.Properties.Add(propertyValue, string.Empty); 1283c.Properties.Add(propertyValue, string.Empty); 1296c.Properties.Add(propertyValue, string.Empty); 1315c.Properties.Add(propertyValue, string.Empty);
System.ServiceModel.Primitives (3)
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
218evaluationContext.Properties.Add(SecurityUtils.Identities, identities);
System\ServiceModel\Security\Tokens\InitiatorServiceModelSecurityTokenRequirement.cs (1)
15Properties.Add(IsInitiatorProperty, (object)true);
System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (1)
13Properties.Add(IsInitiatorProperty, (object)false);
System.Windows.Forms (1)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
516properties.Add(name, info);
vstest.console (3)
CommandLine\InferHelper.cs (3)
40sourceToPlatformMap.Add(source, defaultArchitecture); 194sourceToFrameworkMap.Add(source, Framework.FromString(fx.FullName)!); 218sourceToFrameworkMap.Add(source, defaultFramework);
vstest.console.arm64 (3)
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (3)
40sourceToPlatformMap.Add(source, defaultArchitecture); 194sourceToFrameworkMap.Add(source, Framework.FromString(fx.FullName)!); 218sourceToFrameworkMap.Add(source, defaultFramework);