List.Exists returns wrong values
<p>I was using a List to store all the devices retrieved using a third party library. I am using the Exist method  to determine whether a device existing inside a list.</p>

<pre><code>bool bDeviceFound = _devicesFound.Exists(delegate(RCDevice device)
    {
        bool retVal = false;
        if (device != null)
        {
            Regex regex = new Regex(@"Floor[\d]+\/mycamera[\d]+");
            if (regex.IsMatch(device.FullName))
                retVal = true;
        }
        return retVal;
    });
</code></pre>

<p>The problem is that delegate never returns true or the execution will never reaches to the code inside the delegate.  Am I doing anything wrong here? I have verified the code inside the delegate and Regular expression returns true whenever a match is found.</p>

<p>device.FullName assumes the value "Floor1/mycamera1" to IsMatch to return true.</p>

<p>As suggested by LasseV.Karlsen in one of the comment below , I tried moving the delegate method into a seperate private static bool method and put a break point there. but execution never hit there. Thanks</p>
