Help me to understand Equals() in c#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/144530/or-equals">== or .Equals()</a>  </p>
</blockquote>



<p>why use <code>Equals()</code>  and not use <code>==</code> </p>

<pre><code>    for (i = 0; i &lt; names.Length; i++)
{
   if (names[i].Equals(targetName))
   {
      index = i;
      break;
   }
}
</code></pre>
