title: Linq Contains value in list
body: <p>its hard for me to explain this one, but i hope some code will help:</p>
  
  <pre><code>        var softChannels = channels.ByPath("/software/").Children.Where(c =&gt; c.StateProperties.IsActive);
  
          var tmpGames = new List&lt;MyCms.Content.Games.Game&gt;();
          // Get games only from active game channels
          foreach (var channel in channels.ByPath("/gameslivecasinodirectcom/game-channels/").Children.Where(c =&gt; c.StateProperties.IsActive))
          {
              // QUESTION IS ABOUT THIS LINE
              tmpGames.AddRange(oGames.AllActive.Where(g =&gt; g.StateProperties.Channels.Contains(channel.Guid) &amp;&amp; g.GamingProperties.Software.Contains(softChannels)));
          }
  </code></pre>
  
  <p>what i want to do is, if <code>g.GamingProperties.Software</code> contains one of the Guids of softChannels, then add it. maybe a diffrent approace will be better... any suggestions ?</p>
  
  <p>p.s i know that line is not working, i have put the code there only for easy understanding what i need.</p>
  
  <p>EDIT:
  i think i have resolved it:</p>
  
  <pre><code>var softChannels = channels.ByPath("/software/").Children.Where(c =&gt; c.StateProperties.IsActive).Select(c =&gt; c.Guid);
  
  var tmpGames = new List&lt;MyCms.Content.Games.Game&gt;();
  // Get games only from active game channels
  foreach (var channel in channels.ByPath("/gameslivecasinodirectcom/game-channels/").Children.Where(c =&gt; c.StateProperties.IsActive))
  {
      tmpGames.AddRange(oGames.AllActive.Where(g =&gt; g.StateProperties.Channels.Contains(channel.Guid) &amp;&amp; softChannels.Contains(g.GamingProperties.Software.Trim())));
  }
  </code></pre>
  
  <p>if anyone sees something wrong with that, please let me know.</p>