System.Collection.Generic.IEnummerable<string> == string
<p>I get a user from the DB and the user has a list of accounts.
And I need to check if the name of one account is equal to a string.
so I selected all accounts and then the names:</p>

<pre><code>var accounts = user.Select(u=&gt; u.Accounts.Select(a =&gt; a.Name)).ToList();
</code></pre>

<p>And then I check one name after an other:</p>

<pre><code>for (int i = 0; i &lt;= accounts.Count(); i++)
{
     if (accounts[i] == mandant)
         return true;
}
</code></pre>

<p>but type of <code>mandant</code> = <code>string</code><br/>
and type of <code>accounts[i]</code> = <code>System.Collections.Generic.IEnummerable&lt;string&gt;</code></p>

<p>How to check if that is equal? </p>
