blob: 7110eb4ab3438fc574a493b4555a40b143a7fc6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// This is used to debug an ordering dependent bug.
//
// Compiler options: support-388.cs -out:test-388.exe
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;
}
public class M {
public static void Main () {}
}
}
|