/// <summary> /// <inheritdoc /> /// </summary> /// <typeparam name="T"></typeparam> /// <param name="visitor"></param> /// <returns></returns> public override T Accept <T>(IBBTreeVisitor <T> visitor) { if (visitor is null) { throw new ArgumentNullException(nameof(visitor)); } return(visitor.Visit(this)); }
/// <summary> /// <inheritdoc /> /// </summary> /// <param name="visitor"></param> public override void Accept(IBBTreeVisitor visitor) { if (visitor is null) { throw new ArgumentNullException(nameof(visitor)); } visitor.Visit(this); }
/// <summary> /// Accepts a visitor /// </summary> /// <param name="visitor"></param> public abstract T Accept <T>(IBBTreeVisitor <T> visitor);
/// <summary> /// Accepts a visitor /// </summary> /// <param name="visitor"></param> public abstract void Accept(IBBTreeVisitor visitor);