public void RemoveChildren(string selector) { if (_children == null) { return; } if (string.IsNullOrEmpty(selector)) { _children.Clear(); } else { _children.RemoveAll(selector); } }
void Cleanup() { this.name = null; if (_attributes != null) { _attributes.Clear(); } if (_children != null) { _children.Clear(); } this.text = null; }