Beispiel #1
0
 /// <summary>
 /// Accepts the specified visitor.
 /// </summary>
 /// <typeparam name="T">Type of object being visited</typeparam>
 /// <typeparam name="TContext">The type of the context.</typeparam>
 /// <param name="self">The self.</param>
 /// <param name="visitor">The visitor.</param>
 /// <param name="context">The context.</param>
 /// <returns>This JToken</returns>
 public static T Accept <T, TContext>(this T self, IJsonVisitor <TContext> visitor, TContext context)
     where T : JToken where TContext : IJsonVisitorContext <TContext>
 {
     visitor.DoAccept(self, context);
     return(self);
 }