public override bool Equals( object obj ) { if (obj is ColorEx) return this == (ColorEx)obj; //else return false; }