Пример #1
0
 public override object Accept(ISpotterVisitor visitor)
 {
     return(visitor.applyOn(this));
 }
Пример #2
0
 /// <summary>
 /// Every spotter have to define this method the same way.
 /// Purpose of this method is to extend functionality of content spotter so that it can do some specific work.
 /// This specific work is implemented by Spotter Visitors.
 /// </summary>
 /// <param name="visitor">SpotterVisitor that implements some speccific job that should be done.</param>
 /// <returns>object - whatever spotter visitor returns</returns>
 public abstract object Accept(ISpotterVisitor visitor);