c# dictionary how to search by value code example Example: dictionary c# get key by value var myKey = types.FirstOrDefault(x => x.Value == "one").Key;