void SetAttributeObject(XAttribute a) { a = (XAttribute)XUtil.GetDetachedObject(a); a.SetOwner(this); if (attr_first == null) { attr_first = a; attr_last = a; } else { attr_last.NextAttribute = a; a.PreviousAttribute = attr_last; attr_last = a; } }
void SetAttributeObject (XAttribute a) { a = (XAttribute) XUtil.GetDetachedObject (a); a.SetOwner (this); if (attr_first == null) { attr_first = a; attr_last = a; } else { attr_last.NextAttribute = a; a.PreviousAttribute = attr_last; attr_last = a; } }