67 implementations of Add
Microsoft.Build (3)
Collections\ArrayDictionary.cs (1)
208void IDictionary.Add(object key, object value)
CopyOnWriteDictionary.cs (1)
317void IDictionary.Add(object key, object value)
ReadOnlyEmptyDictionary.cs (1)
273public void Add(object key, object value)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
112public void Add(object key, object value)
Microsoft.Build.Framework (3)
ImmutableSegmentedDictionary`2.cs (1)
372void IDictionary.Add(object key, object? value)
ImmutableSegmentedDictionary`2+Builder.cs (1)
234void IDictionary.Add(object key, object? value)
SegmentedDictionary`2.cs (1)
1068void IDictionary.Add(object key, object? value)
Microsoft.Build.Tasks.Core (2)
CopyOnWriteDictionary.cs (1)
317void IDictionary.Add(object key, object value)
ReadOnlyEmptyDictionary.cs (1)
273public void Add(object key, object value)
Microsoft.Build.Utilities.Core (2)
CopyOnWriteDictionary.cs (1)
317void IDictionary.Add(object key, object value)
ReadOnlyEmptyDictionary.cs (1)
273public void Add(object key, object value)
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
363void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
135void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1102void IDictionary.Add(object key, object? value)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
363void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
135void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1102void IDictionary.Add(object key, object? value)
Microsoft.CodeAnalysis.Collections.Package (4)
ImmutableSegmentedDictionary`2.cs (1)
363void IDictionary.Add(object key, object? value)
ImmutableSegmentedDictionary`2+Builder.cs (1)
135void IDictionary.Add(object key, object? value)
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246void IDictionary.Add(object key, object? value)
SegmentedDictionary`2.cs (1)
1102void IDictionary.Add(object key, object? value)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
365public void Add(object key, object value)
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
363void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
135void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1102void IDictionary.Add(object key, object? value)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
363void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
135void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246void IDictionary.Add(object key, object? value)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1102void IDictionary.Add(object key, object? value)
MSBuild (2)
CopyOnWriteDictionary.cs (1)
317void IDictionary.Add(object key, object value)
ReadOnlyEmptyDictionary.cs (1)
273public void Add(object key, object value)
MSBuildTaskHost (3)
CopyOnWriteDictionary.cs (1)
317void IDictionary.Add(object key, object value)
Immutable\ImmutableDictionary.cs (1)
236void IDictionary.Add(object key, object value)
ReadOnlyEmptyDictionary.cs (1)
273public void Add(object key, object value)
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
138public void Add(object prefix, object xmlNamespace)
PresentationCore (2)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
294void SC.IDictionary.Add(object key, object value)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
273void SC.IDictionary.Add(object key, object value)
PresentationFramework (3)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
327void IDictionary.Add(object key, object value)
System\Windows\Markup\XmlnsDictionary.cs (1)
138public void Add(object prefix, object xmlNamespace)
System\Windows\ResourceDictionary.cs (1)
604public void Add(object key, object value)
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
1224void IDictionary.Add(object key, object? value)
System\Collections\Generic\SortedDictionary.cs (1)
338void IDictionary.Add(object key, object? value)
System\Collections\Generic\SortedList.cs (1)
265void IDictionary.Add(object key, object? value)
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1701void IDictionary.Add(object key, object? value)
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
609void IDictionary.Add(object key, object? value) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
286void IDictionary.Add(object key, object? value)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
683void IDictionary.Add(object key, object? value)
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
361void IDictionary.Add(object key, object? value)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
587void IDictionary.Add(object key, object? value)
System.Collections.NonGeneric (2)
System\Collections\DictionaryBase.cs (1)
113void IDictionary.Add(object key, object? value)
System\Collections\SortedList.cs (1)
173public virtual void Add(object key, object? value)
System.Collections.Specialized (3)
System\Collections\Specialized\HybridDictionary.cs (1)
226public void Add(object key, object? value)
System\Collections\Specialized\ListDictionary.cs (1)
151public void Add(object key, object? value)
System\Collections\Specialized\OrderedDictionary.cs (1)
224public void Add(object key, object? value)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
416void IDictionary.Add(object key, object? value)
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
262void IDictionary.Add(object keyword, object? value)
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
46public void Add(object key, object? value) => Add((string)key, (string?)value);
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
382void System.Collections.IDictionary.Add(object key, object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); }
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1694void IDictionary.Add(object key, object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
416public virtual void Add(object key, object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
97public void Add(object key, object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
117void IDictionary.Add(object key, object? value)
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
84public void Add(object key, object? value)
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3271public void Add(object key, object? value) => throw new NotImplementedException();
71 references to Add
dotnet-svcutil-lib (9)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
255Dictionary.Add(key, value);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (5)
454type.UserData.Add(s_surrogateDataKey, _dataContractSet.GetSurrogateData(dataContract)); 566typeReference.UserData.Add(s_codeUserDataActualTypeKey, type); 684typeReference.UserData.Add(s_codeUserDataActualTypeKey, type); 713typeReference.UserData.Add(s_codeUserDataActualTypeKey, type); 878property.UserData.Add(s_surrogateDataKey, _dataContractSet.GetSurrogateData(dataMember));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
182exception.Data.Add(HttpChannelUtilities.HttpStatusCodeExceptionKey, statusCode); 185exception.Data.Add(HttpChannelUtilities.HttpStatusDescriptionExceptionKey, statusDescription);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (1)
3183Table.Add(key, value);
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
307targetOutputsPerProject[i].Add(output.Key, output.Value);
Microsoft.Build.Engine.UnitTests (6)
TaskParameter_Tests.cs (6)
366metadata.Add("a", "a1%25b1"); 367metadata.Add("b", "c1%28d1"); 399metadata.Add("a", "a1%2525b1"); 400metadata.Add("b", "c1%2528d1"); 446metadata.Add("a", "a1(b1"); 447metadata.Add("b", "c1)d1");
Microsoft.Build.Framework (1)
ImmutableSegmentedDictionary`2+Builder.cs (1)
235=> ((IDictionary)GetOrCreateMutableDictionary()).Add(key, value);
Microsoft.Build.Tasks.Core (2)
system.design\stronglytypedresourcebuilder.cs (2)
195ccu.UserData.Add("AllowLateBound", false); 196ccu.UserData.Add("RequireVariableDeclaration", true);
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
275targetOutputsPerProject[i].Add(output.Key, output.Value);
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
247=> ((IDictionary)GetOrCreateMutableDictionary()).Add(key, value);
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
39=> dictionary.Add(key, value);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
247=> ((IDictionary)GetOrCreateMutableDictionary()).Add(key, value);
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
39=> dictionary.Add(key, value);
Microsoft.CodeAnalysis.Collections.Package (2)
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
247=> ((IDictionary)GetOrCreateMutableDictionary()).Add(key, value);
Internal\IDictionaryCalls.cs (1)
39=> dictionary.Add(key, value);
Microsoft.CodeAnalysis.UnitTests (3)
Collections\ImmutableDictionaryBuilderTestBase.cs (2)
179dictionary.Add("a", 1); 197dictionary.Add("a", 1);
Collections\ImmutableDictionaryTestBase.cs (1)
168Assert.Throws<NotSupportedException>(() => dictionary.Add("a", 1));
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
247=> ((IDictionary)GetOrCreateMutableDictionary()).Add(key, value);
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
39=> dictionary.Add(key, value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
247=> ((IDictionary)GetOrCreateMutableDictionary()).Add(key, value);
src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
39=> dictionary.Add(key, value);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
997IOException.Data.Add(Entry.Key, Entry.Value)
PresentationCore (4)
System\Windows\Ink\StrokeCollection.cs (3)
389ae.Data.Add("System.Windows.Ink.StrokeCollection", ""); 481ae.Data.Add("System.Windows.Ink.StrokeCollection", ""); 494ae.Data.Add("System.Windows.Ink.StrokeCollection", "");
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
3029ioe.Data.Add("System.Windows.Input.StylusLogic", "");
PresentationFramework (8)
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (6)
267dict.Add("Description", description); 268dict.Add("RestrictedDescription", restrictedError); 269dict.Add("RestrictedErrorReference", restrictedErrorReference); 270dict.Add("RestrictedCapabilitySid", restrictedCapabilitySid); 274dict.Add("__RestrictedErrorObjectReference", restrictedErrorObject == null ? null : new __RestrictedErrorObject(restrictedErrorObject)); 275dict.Add("__HasRestrictedLanguageErrorObject", hasRestrictedLanguageErrorObject);
System\Windows\Markup\BamlRecordReader.cs (1)
4642dictionary.Add(currentContext.Key, currentObject);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
330((IDictionary)_dictionary).Add(key, value);
ReachFramework (1)
Serialization\Manager\ReachNamespaceInfo.cs (1)
136_innerDictionary.Add(type, namespaceInfo);
System.Drawing.Common.Tests (1)
System\Drawing\Printing\MarginsConverterTests.cs (1)
57values.Add("Bottom", 4);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (1)
241((IDictionary)dictionary).Add(pairKey, pairValue);
System\Runtime\Serialization\ReflectionReader.cs (1)
577dict.Add(key!, value);
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
460type.UserData.Add(s_surrogateDataKey, _dataContractSet.SurrogateData[dataContract]); 566typeReference.UserData.Add(s_codeUserDataActualTypeKey, type); 704typeReference.UserData.Add(s_codeUserDataActualTypeKey, type); 861property.UserData.Add(s_surrogateDataKey, surrogateData);
System.Windows.Forms.Design (2)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
361codeCompileUnit.UserData.Add("AllowLateBound", value: false); 362codeCompileUnit.UserData.Add("RequireVariableDeclaration", value: true);
System.Windows.Forms.Design.Tests (11)
System\Drawing\Design\ToolboxItemTests.cs (11)
95Assert.Throws<ArgumentException>("value", () => item.Properties.Add("AssemblyName", new object())); 125Assert.Throws<ArgumentException>("value", () => item.Properties.Add("Bitmap", new object())); 149Assert.Throws<ArgumentException>("value", () => item.Properties.Add("Company", new object())); 201Assert.Throws<ArgumentException>("value", () => item.Properties.Add("DependentAssemblies", new object())); 225Assert.Throws<ArgumentException>("value", () => item.Properties.Add("Description", new object())); 249Assert.Throws<ArgumentException>("value", () => item.Properties.Add("DisplayName", new object())); 281Assert.Throws<ArgumentException>("value", () => item.Properties.Add("Filter", new object())); 305Assert.Throws<ArgumentNullException>("value", () => item.Properties.Add("IsTransient", null)); 312Assert.Throws<ArgumentException>("value", () => item.Properties.Add("IsTransient", new object())); 336Assert.Throws<ArgumentException>("value", () => item.Properties.Add("OriginalBitmap", new object())); 360Assert.Throws<ArgumentException>("value", () => item.Properties.Add("TypeName", new object()));
System.Windows.Forms.Tests (3)
System\Resources\ResXResourceReaderTests.cs (3)
116actualData.Add(enumerator.Key, enumerator.Value); 143actualData.Add(enumerator.Key, enumerator.Value); 170actualMetadata.Add(metadataEnumerator.Key, metadataEnumerator.Value);
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
97dictionary.Add(key, item);