Exemple #1
0
 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;
     }
 }
Exemple #2
0
		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;
			}
		}