{
if(obj is XmlAnyAttributeAttribute)
xmlAnyAttribute = (XmlAnyAttributeAttribute) obj;
- else if(obj is XmlAnyElementAttribute)
+ else
+ if(obj is XmlAnyElementAttribute)
xmlAnyElements.Add((XmlAnyElementAttribute) obj);
else if(obj is XmlArrayAttribute)
xmlArray = (XmlArrayAttribute) obj;
else if(obj is XmlTypeAttribute)
xmlType = (XmlTypeAttribute) obj;
}
+
+ if (xmlIgnore) {
+ xmlAnyAttribute = null;
+ xmlAnyElements.Clear ();
+ xmlArray = null;
+ xmlArrayItems.Clear ();
+ xmlAttribute = null;
+ xmlChoiceIdentifier = null;
+ xmlDefaultValue = null;
+ xmlElements.Clear ();
+ xmlEnum = null;
+ xmlns = false;
+ xmlRoot = null;
+ xmlText = null;
+ xmlType = null;
+ }
}
#region public properties
xmlAnyAttribute = value;
}
}
+
public XmlAnyElementAttributes XmlAnyElements
{
get
sb.Append ("|");
}
+
+ internal int? Order {
+ get {
+ int? order = null;
+ if (XmlElements.Count > 0)
+ order = XmlElements.Order;
+ else if (XmlArray != null)
+ order = XmlArray.Order;
+ else if (XmlAnyElements.Count > 0)
+ order = XmlAnyElements.Order;
+ return order;
+ }
+ }
+
+ internal int SortableOrder {
+ get { return Order != null ? (int) Order : int.MinValue; }
+ }
}
}