Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / support-389.cs
1 // This is used to debug an ordering dependent bug.
2 //
3
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 {
9
10         [System.Xml.Serialization.XmlAttribute(DataType="ID")]
11         public string id;
12
13         [System.Xml.Serialization.XmlAttribute()]
14         public string datatype;
15     }
16
17     [System.Xml.Serialization.XmlType("field-type")]
18     public partial class fieldtype: basefieldtype {}
19
20     [System.Xml.Serialization.XmlType("compound-field")]
21     public partial class compoundfield: basefieldtype {}
22
23     public partial class field {
24
25         [System.Xml.Serialization.XmlAttribute()]
26         public string id;
27
28         [System.Xml.Serialization.XmlAttribute()]
29         public string type;
30     }
31
32     [System.Xml.Serialization.XmlType("form-data")]
33     public partial class formdata {
34
35         [System.Xml.Serialization.XmlArray(ElementName="form-fields"),
36         System.Xml.Serialization.XmlArrayItem(Type=typeof(field),IsNullable=false)]
37         public field[] formfields;
38         
39                 [System.Xml.Serialization.XmlElement("field-type",Type=typeof(fieldtype)),
40         System.Xml.Serialization.XmlElement("compound-field",Type=typeof(compoundfield))]
41         public basefieldtype[] Items;
42     }
43 }