Ejemplo n.º 1
0
        /// <summary>Print in readable format the execution strategy. </summary>
        /// <param name="execNode">execution node to print</param>
        /// <returns>readable text with execution nodes constructed for actual streams</returns>
        public static String Print(ExecNode execNode)
        {
            var stringWriter = new StringWriter();
            var indentWriter = new IndentWriter(stringWriter, 4, 2);

            execNode.Print(indentWriter);

            return(stringWriter.ToString());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Add a child node.
 /// </summary>
 /// <param name="childNode">to add</param>
 public void AddChildNode(ExecNode childNode)
 {
     _childNodes.Add(childNode);
 }