Ejemplo n.º 1
0
 protected virtual WikiElement AppendChild(WikiNode node)
 {
     node.SetParent (this);
     _children.Add (node);
     if (node as WikiElement == null)
         return this;
     return node as WikiElement;
 }
Ejemplo n.º 2
0
        protected override WikiElement AppendChild(WikiNode node)
        {
            if (!(node is WikiListItemElement))
                throw new Exception ();

            node.SetParent (this);
            _children.Add (node);
            return this;
        }