Check for value in list
<p>I've got a generic list of values.  I want to check to see if an Id exists in that generic list.</p>

<p>What's the easiest way to go about this?</p>

<p>example</p>

<pre><code>List&lt;someCustomObject&gt; mylist = GetCustomObjectList();

int idToCheckFor = 12;
</code></pre>

<p>I want to see if 12 exists in any of the custom objects in the list by checking each someCustomObject.Id = idToCheckFor</p>

<p>If a match is found, I'm good to go and my method will return a bool true.  I'm just trying to figure out if there's an easy way instead of looping through each item in the list to see if idToCheckFor == someCustomObject.id and setting a variable to true if a match is found.  I'm sure there's got to be a better way to go about this.</p>
