In C#, the key and value of a dictionary can have the same type. For example, to create a string-to-string mapping, we can use a Dictionary.