Is this the best way to determine that a List of ints contains a 0?
<p>Is this the best way to determine that the <code>List&lt;int&gt; ALogMsgTypeIntArray</code> contains a 0?</p>

<pre><code>if (ALogMsgTypeIntArray.Exists(delegate(int i) { return i == 0; }))
{
    MessageBox.Show("0 exists");
}
</code></pre>

<p>==========
Updated:</p>

<p>I ended up doing it this-a-way:</p>

<pre><code>bGetDebug = ALogMsgTypeIntList.Contains(LogParsePumpViewerConsts.LOG_MSG_TYPE_DEBUG);
bGetInfo = ALogMsgTypeIntList.Contains(LogParsePumpViewerConsts.LOG_MSG_TYPE_INFORMATION);
bGetWarning = ALogMsgTypeIntList.Contains(LogParsePumpViewerConsts.LOG_MSG_TYPE_WARNING);
bGetError = ALogMsgTypeIntList.Contains(LogParsePumpViewerConsts.LOG_MSG_TYPE_ERROR);
</code></pre>
