public void RemoveAll() { int n = Count; while (n > 0) { n--; RemoveAt( n ); } }
// Removes all attributes from the element. public virtual void RemoveAllAttributes() { if (HasAttributes) { _attributes.RemoveAll(); } }