示例#1
0
 public static void TraverseAllLeaves(UQtNode node, UQtForeachLeaf func)
 {
     if (node is UQtLeaf)
     {
         func(node as UQtLeaf);
     }
     else
     {
         foreach (var sub in node.SubNodes)
         {
             TraverseAllLeaves(sub, func);
         }
     }
 }
示例#2
0
 public static void TraverseAllLeaves(UQtNode node, UQtForeachLeaf func)
 {
     if (node is UQtLeaf)
         func(node as UQtLeaf);
     else
         foreach (var sub in node.SubNodes)
             TraverseAllLeaves(sub, func);
 }