c# get key and value from dictionary code example
Example 1: dictionary c# get key by value
var myKey = types.FirstOrDefault(x => x.Value == "one").Key;
Example 2: find the values of dictionaries in C sharp
//sets the dictionary item, "dictionary item" to 20
dictionary["dictionary item"] = 20;