diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2006-02-01 12:42:39 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2006-02-01 12:42:39 +0300 |
commit | 9a9d0e121633094532e8231520d36a2d4fb0e6c9 (patch) | |
tree | a13700121e07e14f8f73f623f58d58f29770fecc /mcs/tests/support-389.cs | |
parent | c4aef31eeea309e6a795c84c098ac8e1a2490340 (diff) |
fix naming convention.
svn path=/trunk/mcs/; revision=56376
Diffstat (limited to 'mcs/tests/support-389.cs')
-rw-r--r-- | mcs/tests/support-389.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/mcs/tests/support-389.cs b/mcs/tests/support-389.cs new file mode 100644 index 00000000000..a4e89a1c7a7 --- /dev/null +++ b/mcs/tests/support-389.cs @@ -0,0 +1,43 @@ +// 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; + } +} |