public override bool Equals(Object obj) { return (obj is GrayColor) && ((GrayColor)obj).cgray == this.cgray; }