I have dictionary, like
Dictionary<string, bool> accValues = new Dictionary<string, bool>()
And I want to get bool value for specific key. I can do it via foreach, like
foreach (KeyValuePair<string, bool> keypair in accValues)
{
if (keypair.Key == "SomeString")
{
return keypair.Value;
}
}
But how is it possible to realize using Where function?