The `Dictionary.Add` method in C# is used to add a key-value pair to a `Dictionary` in the `System.Collections.Generic` namespace. The method takes two parameters: the key and the value to be added. If the specified key already exists in the dictionary, an exception will be thrown. Otherwise, the key-value pair will be added to the dictionary.
C# (CSharp) System.Collections.Generic System.Collections.Generic.Dictionary.Add - 60 examples found. These are the top rated real world C# (CSharp) examples of System.Collections.Generic.System.Collections.Generic.Dictionary.Add extracted from open source projects. You can rate examples to help us improve the quality of examples.