Beispiel #1
0
        public void Accept(IFigureVisitor visitor)
        {
            if (ReferenceEquals(visitor, null))
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.Visit((dynamic)this);
        }
Beispiel #2
0
 public override void Accept(IFigureVisitor visitor)
 {
     visitor?.Visit(this);
 }
Beispiel #3
0
 /// <summary>
 /// Accepts visitor instance
 /// </summary>
 /// <param name="visitor">Visitor instance for accepting</param>
 public void Accept(IFigureVisitor visitor)
 {
     visitor.Visit((dynamic)this);
 }