Dictionary<string, string> dict = new Dictionary<string, string>()
{
{"1", "one"},
{"2", "two"},
{"3", "three"}
};
foreach (var item in dict)
{
if(item.Value == "One")
{
var firstElementKey = item.Key;
Console.WriteLine(firstElementKey);
}
}