How to get all keys of a dictionary with C#
The Keys property gets a collection containing the keys in the Dictionary. It returns an object of KeyCollection type.
The following code snippet reads all keys in a Dictionary.