dictionary keys.where add value c# code example
Example 1: dictionary c# get key by value
var myKey = types.FirstOrDefault(x => x.Value == "one").Key;
Example 2: c# dictionary add
Dictionary<char, string> alphabetCode = new Dictionary<char, string>();
alphabetCode.Add('A', "Alpha");
Example 3: find the values of dictionaries in C sharp
//sets the dictionary item, "dictionary item" to 20
dictionary["dictionary item"] = 20;