示例#1
0
 static bool EvaluateSuccessAndPrint(IADTreeNode node, ADTreeContext context)
 {
     EvaluateSuccessVisitor v = new EvaluateSuccessVisitor();
     var value = v.GetValue(node, v, context);
     if (value)
         Console.WriteLine("Evaluated: true");
     else
         Console.WriteLine("Evaluated: false");
     return value;
 }