Compare two Color objects
问题 This is VS2010 and .NET 4.0. I'm trying to compare two System.Drawing.Color objects. The value of mStartColor.ToArgb() is 16777215 . The value of Color.Transparent.ToArgb() is 16777215 . The value of mStartColor <> Color.Transparent is True . How is equality implemented for Color objects? EDIT 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