Hello, I have two dictionaries and want to search one against another. I tried:
but this doesn't work. It doesn't output anything.Code:foreach (KeyValuePair<int, string> entry in requestedNames) { // do something with entry.Value or entry.Key if (allNames.ContainsValue(entry.Value)) { Console.WriteLine(entry.Value); } }




Reply With Quote
