public void Accept(IFigureVisitor visitor) { if (ReferenceEquals(visitor, null)) { throw new ArgumentNullException(nameof(visitor)); } visitor.Visit((dynamic)this); }
public override void Accept(IFigureVisitor visitor) { visitor?.Visit(this); }
/// <summary> /// Accepts visitor instance /// </summary> /// <param name="visitor">Visitor instance for accepting</param> public void Accept(IFigureVisitor visitor) { visitor.Visit((dynamic)this); }