public override StmlNode Add(StmlNode node) { if (!(node is ListItemElement)) { return(null); } return(base.Add(node)); }
public virtual StmlNode Add(StmlNode node) { node.Parent = this; if (this.ChildNodes.Count > 0) { node.PrevNode = this.ChildNodes[this.ChildNodes.Count - 1]; this.ChildNodes[this.ChildNodes.Count - 1].NextNode = node; } this.ChildNodes.Add(node); return(node); }