protected void AddAttributes(AttributeCollection target) { if (target != null) target.Extend(_attributes); _attributes.Clear(); }