Check if list object is contained within another list
<p>I hope I'm phrased the title right- Overview: I'm trying to create a input check box.  I want to display all items &amp; check the ones that are supposed to be checked by a list compare.  Here is my 'broken' code &amp; where I'm going with this:</p>

<pre><code>List&lt;ConsolStand&gt; csr = ConsolStand.GetConsolStands();
List&lt;PackUserSecurityGroup&gt; sg = PackUserSecurityGroup.GetPackUserSecurityGroup(0, iGroupID);

foreach (ConsolStand a in csr)
{
    if (sg.Contains(a.CsrID))
    {
        &lt;input type="checkbox" id="@("routeDesc_" + a.CsrDesc)" checked="checked" /&gt; @a.CsrDesc &lt;br /&gt;
    }
    else
    {
        &lt;input type="checkbox" id="@("routeDesc_" + a.CsrDesc)" /&gt; @a.CsrDesc &lt;br /&gt;
    }
}
</code></pre>

<p>PackSecurityGroup is just one list object (it will return one column of ints), I'm trying to compare that list with the CsrID column in the ConsolStand list.</p>