// can be virtual? public override void Accept(IPixelVisitor visitor) { foreach (var pixel in pixels) { pixel.Accept(visitor); } visitor.Visit(this); }
public virtual void Accept(IPixelVisitor visitor) { foreach (var pixel in pixels) { pixel.Accept(visitor); } visitor.Visit(this); }
public virtual void Accept(IPixelVisitor visitor) { visitor.Visit(this); }