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