how to get the value of a key by using key in c# code example
Example 1: c# dictionary get value by key
Dictionary<string, string> dict = new Dictionary<string, string>();
dict.Add("UserID", "test");
string userIDFromDictionaryByKey = dict["UserID"];
Example 2: dictionary c# get key by value
var myKey = types.FirstOrDefault(x => x.Value == "one").Key;