linux-packaging-mono/mcs/tests/support-389.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

44 lines
1.4 KiB
C#

// This is used to debug an ordering dependent bug.
//
namespace Schemas {
[System.Xml.Serialization.XmlType("base-field-type"),
System.Xml.Serialization.XmlInclude(typeof(compoundfield)),
System.Xml.Serialization.XmlInclude(typeof(fieldtype))]
public partial class basefieldtype {
[System.Xml.Serialization.XmlAttribute(DataType="ID")]
public string id;
[System.Xml.Serialization.XmlAttribute()]
public string datatype;
}
[System.Xml.Serialization.XmlType("field-type")]
public partial class fieldtype: basefieldtype {}
[System.Xml.Serialization.XmlType("compound-field")]
public partial class compoundfield: basefieldtype {}
public partial class field {
[System.Xml.Serialization.XmlAttribute()]
public string id;
[System.Xml.Serialization.XmlAttribute()]
public string type;
}
[System.Xml.Serialization.XmlType("form-data")]
public partial class formdata {
[System.Xml.Serialization.XmlArray(ElementName="form-fields"),
System.Xml.Serialization.XmlArrayItem(Type=typeof(field),IsNullable=false)]
public field[] formfields;
[System.Xml.Serialization.XmlElement("field-type",Type=typeof(fieldtype)),
System.Xml.Serialization.XmlElement("compound-field",Type=typeof(compoundfield))]
public basefieldtype[] Items;
}
}