private void AddAttribute(ILinkedAnnotation attr) { var elem = _stack.Peek() as Element; if (elem == null) { _stack.Peek().Add(attr); } else { elem.QuickAddAttribute(attr); } }
/// <summary>Remove attributes from the element</summary> public void RemoveAttributes() { AssertModifiable(); _lastAttr = null; }
internal void QuickAddAttribute(ILinkedAnnotation attr) { LinkedListOps.Add(ref _lastAttr, attr); }