2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / support-389.cs
bloba4e89a1c7a774fa6f286dd4af8c629ab6b859ab7
1 // This is used to debug an ordering dependent bug.
2 //
4 namespace Schemas {
5 [System.Xml.Serialization.XmlType("base-field-type"),
6 System.Xml.Serialization.XmlInclude(typeof(compoundfield)),
7 System.Xml.Serialization.XmlInclude(typeof(fieldtype))]
8 public partial class basefieldtype {
10 [System.Xml.Serialization.XmlAttribute(DataType="ID")]
11 public string id;
13 [System.Xml.Serialization.XmlAttribute()]
14 public string datatype;
17 [System.Xml.Serialization.XmlType("field-type")]
18 public partial class fieldtype: basefieldtype {}
20 [System.Xml.Serialization.XmlType("compound-field")]
21 public partial class compoundfield: basefieldtype {}
23 public partial class field {
25 [System.Xml.Serialization.XmlAttribute()]
26 public string id;
28 [System.Xml.Serialization.XmlAttribute()]
29 public string type;
32 [System.Xml.Serialization.XmlType("form-data")]
33 public partial class formdata {
35 [System.Xml.Serialization.XmlArray(ElementName="form-fields"),
36 System.Xml.Serialization.XmlArrayItem(Type=typeof(field),IsNullable=false)]
37 public field[] formfields;
39 [System.Xml.Serialization.XmlElement("field-type",Type=typeof(fieldtype)),
40 System.Xml.Serialization.XmlElement("compound-field",Type=typeof(compoundfield))]
41 public basefieldtype[] Items;