how to add key and value in dictionary c# code example Example: c sharp add item to dictionary // To add an item to a dictionary use 'Add()' dict.Add(1,"One");