add ISafeSerializationData
[mcs.git] / tests / test-388.cs
blob7110eb4ab3438fc574a493b4555a40b143a7fc6d
1 // This is used to debug an ordering dependent bug.
2 //
3 // Compiler options: support-388.cs -out:test-388.exe
5 namespace Schemas {
6 [System.Xml.Serialization.XmlType("base-field-type"),
7 System.Xml.Serialization.XmlInclude(typeof(compoundfield)),
8 System.Xml.Serialization.XmlInclude(typeof(fieldtype))]
9 public partial class basefieldtype {
11 [System.Xml.Serialization.XmlAttribute(DataType="ID")]
12 public string id;
14 [System.Xml.Serialization.XmlAttribute()]
15 public string datatype;
18 [System.Xml.Serialization.XmlType("field-type")]
19 public partial class fieldtype: basefieldtype {}
21 [System.Xml.Serialization.XmlType("compound-field")]
22 public partial class compoundfield: basefieldtype {}
24 public partial class field {
26 [System.Xml.Serialization.XmlAttribute()]
27 public string id;
29 [System.Xml.Serialization.XmlAttribute()]
30 public string type;
33 [System.Xml.Serialization.XmlType("form-data")]
34 public partial class formdata {
36 [System.Xml.Serialization.XmlArray(ElementName="form-fields"),
37 System.Xml.Serialization.XmlArrayItem(Type=typeof(field),IsNullable=false)]
38 public field[] formfields;
40 [System.Xml.Serialization.XmlElement("field-type",Type=typeof(fieldtype)),
41 System.Xml.Serialization.XmlElement("compound-field",Type=typeof(compoundfield))]
42 public basefieldtype[] Items;
45 public class M {
46 public static void Main () {}