/// </summary>
public class XmlAttributes
{
-#if !MOONLIGHT
private XmlAnyAttributeAttribute xmlAnyAttribute;
-#endif
private XmlAnyElementAttributes xmlAnyElements = new XmlAnyElementAttributes();
private XmlArrayAttribute xmlArray;
private XmlArrayItemAttributes xmlArrayItems = new XmlArrayItemAttributes();
object[] attributes = provider.GetCustomAttributes(false);
foreach(object obj in attributes)
{
-#if !MOONLIGHT
if(obj is XmlAnyAttributeAttribute)
xmlAnyAttribute = (XmlAnyAttributeAttribute) obj;
else
-#endif
if(obj is XmlAnyElementAttribute)
xmlAnyElements.Add((XmlAnyElementAttribute) obj);
else if(obj is XmlArrayAttribute)
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
-#if !MOONLIGHT
public XmlAnyAttributeAttribute XmlAnyAttribute
{
get
xmlAnyAttribute = value;
}
}
-#endif
+
public XmlAnyElementAttributes XmlAnyElements
{
get
KeyHelper.AddField (sb, 1, xmlIgnore);
KeyHelper.AddField (sb, 2, xmlns);
-#if !MOONLIGHT
KeyHelper.AddField (sb, 3, xmlAnyAttribute!=null);
-#endif
xmlAnyElements.AddKeyHash (sb);
xmlArrayItems.AddKeyHash (sb);