Example #1
0
File: Node.cs Project: Niels-R/core
        public virtual Node Add(Node n)
        {
            if (Children == null)
                Children = new List<Node>();

            Children.Add(n);

            return n;
        }
Example #2
0
 internal CompiledTemplate(Node tree)
 {
     Macros = new Dictionary<string, Node>(StringComparer.InvariantCultureIgnoreCase);
     Tree = tree;
 }