Example #1
0
            private void AddAttribute(ILinkedAnnotation attr)
            {
                var elem = _stack.Peek() as Element;

                if (elem == null)
                {
                    _stack.Peek().Add(attr);
                }
                else
                {
                    elem.QuickAddAttribute(attr);
                }
            }
Example #2
0
 /// <summary>Remove attributes from the element</summary>
 public void RemoveAttributes()
 {
     AssertModifiable();
     _lastAttr = null;
 }
Example #3
0
 internal void QuickAddAttribute(ILinkedAnnotation attr)
 {
     LinkedListOps.Add(ref _lastAttr, attr);
 }