コード例 #1
0
 static bool Helper(ReadOnlySpan <char> span, int depth,
                    ref EvaluateAction callback)
 {
     return(callback(span, depth));
 }
コード例 #2
0
 /// <summary>
 /// Evaluates the JSON Pointer.
 /// </summary>
 /// <param name="action">
 /// The <see cref="EvaluateAction"/> to use during evaluation.
 /// </param>
 /// <returns>
 /// <c>true</c> if evaluation completed successfully, or <c>false</c>
 /// if <paramref name="action"/> returned <c>false</c> during
 /// evaluation.
 /// </returns>
 public bool Evaluate(EvaluateAction action)
 {
     return(Evaluate(Helper, ref action));