public override IColor GetColor(ColorType colorType) { IColor color = new NullColor(); switch (colorType) { case ColorType.Red: color = new Red(); break; case ColorType.Green: color = new Green(); break; case ColorType.Blue: color = new Blue(); break; } return(color); }
public bool Equals(NullColor other) { return(other != null); }