title: Compare two Color objects
body: <p>This is VS2010 and .NET 4.0. I'm trying to compare two <code>System.Drawing.Color</code> objects.</p>
  
  <p>The value of <code>mStartColor.ToArgb()</code> is <code>16777215</code>.</p>
  
  <p>The value of <code>Color.Transparent.ToArgb()</code> is <code>16777215</code>.</p>
  
  <p>The value of <code>mStartColor &lt;&gt; Color.Transparent</code> is <code>True</code>.</p>
  
  <p>How is equality implemented for <code>Color</code> objects?</p>
  
  <h2>EDIT</h2>
  
  <p>Thanks everyone. I got my answer, though it doesn't make much sense to me (see my comments to Tim's and Dave's answers below). I'll mark Tim's post as the answer and he was the first to reply, but Dave's answer is equally informative.</p>