A dictionary type represents a collection of keys and values pair of data.
The Dictionary class defined in the System.Collections.Generic namespace is a generic class and can store any data types in a form of keys and values. Each key must be unique in the collection. Before you use the Dictionary class in your code, you must import the System.Collections.Generic namespace.
Topics covered in this book
C# Corner. All contents are copyright of their authors.