public bool Equals(ColorEntity color) { if (_r == color._r && _g == color._g && _b == color._b) { return(true); } return(false); }
public override bool Equals(object obj) { if (obj.GetType() != this.GetType()) { return(false); } ColorEntity color = (ColorEntity)obj; return(Equals(color)); }