コード例 #1
0
 /// <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));
 }
コード例 #2
0
ファイル: GlowContainer.cs プロジェクト: scy/ember-plus
 /// <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);