public override bool Equals(object obj) { if (!(obj is Color)) return false; Color b = (Color)obj; return this.Red == b.Red && this.Blue == b.Blue && this.Green == b.Green; }