/// <summary> /// Accepts a visitor of type IGlowVisitor /// </summary> /// <typeparam name="TState">Visitor state type</typeparam> /// <typeparam name="TResult">Visitor result type</typeparam> /// <param name="visitor">The visitor instance to accept</param> /// <param name="state">State object to pass to the visitor</param> /// <returns>The result of the visiting method</returns> public override sealed TResult Accept <TState, TResult>(IGlowVisitor <TState, TResult> visitor, TState state) { return(visitor.Visit(this, state)); }
/// <summary> /// Accepts a visitor of type IGlowVisitor /// </summary> /// <typeparam name="TState">Visitor state type</typeparam> /// <typeparam name="TResult">Visitor result type</typeparam> /// <param name="visitor">The visitor instance to accept</param> /// <param name="state">State object to pass to the visitor</param> /// <returns>The result of the visiting method</returns> public abstract TResult Accept <TState, TResult>(IGlowVisitor <TState, TResult> visitor, TState state);