[Solved] Array with Dictionary in c# using Linq [closed]
I would use join to find the matches: Dictionary<int, string> dict = new Dictionary<int, string> { {1, “A”}, {2, “B”}, {3, “c”}, {4, “D”}, {5, “E”}, }; string[] values = new [] {“A”,”D”,”E”}; var query = from kvp in dict join s in values on kvp.Value equals s select new {kvp.Key, Found = true}; You … Read more