Search in list of objects
<p>I have a list with Customer objects and I'm trying to search for a name in each object. In the Customer object there is a properties, ContactData, that return a Contact object. And inside the Contact object I have a method that  returns a string of a name. It is that name I'm trying to compare with, but it's not working properly, because I get a hit every time, despite I search for a name that don't exist in any of the Customer object. The code I'm using:</p>

<pre><code>foreach (Customer name in m_customers)
{
      if (name.ContactData.FullName == "Anna") 
      {
          MessageBox.Show(string.Format("Yes"), "Test!", MessageBoxButtons.OK, MessageBoxIcon.Information); // Just for testing  
      }
}
</code></pre>

<p>I have also tested to use a simple for loop, but I get the same result. I'm not sure I'm doing the right thing and would preciate some help! Thanks!</p>
