title: My question is about comparing List<string> with Dictionary <string, List<string>> using C# linq
body: <p>I have referred the below link in stack-overflow for my requirement which provide the matching key and Boolean results.I need the result of keys and values from the dictionary which matches with list of string.</p>
  
  <p>Referred Link below:
  <a href="https://stackoverflow.com/questions/24167347/array-with-dictionary-in-c-sharp-using-linq">Array with Dictionary in c# using Linq</a></p>
  
  <p>The example is provided in the same link above. Any how I will provide the same below</p>
  
  <pre><code>Dictionary&lt;int, List&lt;string&gt;&gt; dict = new Dictionary&lt;int, &lt;string&gt;&gt;
  { 
      {1, new List&lt;string&gt;(){"A","B"}},
      {2, new List&lt;string&gt;(){"C","D"}},
      {3, new List&lt;string&gt;(){"G","H"}},
      {4, new List&lt;string&gt;(){"E","F"}},
      {5, new List&lt;string&gt;(){"I","J"}},
  };
  
  string[] values = new [] 
  {
      "A", "D", "E"
  };
  
  var result = 
    from kvp in dict
    join s in values on kvp.Value equals s
  select new {kvp.Key, Found = true};
  </code></pre>
  
  <p>What I tried is below:</p>
  
  <pre><code>var result = dict
    .Select(x =&gt; new { 
       keys = x.Key, 
       values = values
         .ToList()
         .Any(x.Value.Contains) 
     });
  </code></pre>
  
  <p>I Expect the output be like <code>{1,A},{2,D},{4,E}</code> but actually coming <code>{1,True},{4,True},{5,True}</code></p>
  
  <p>Could some one help me on this.</p>