2 // XmlArrayItemAttribute.cs:
5 // John Donagher (john@webmeta.com)
7 // (C) 2002 John Donagher
10 using System.Xml.Schema;
\r
13 namespace System.Xml.Serialization
\r
16 /// Summary description for XmlArrayItemAttribute.
\r
18 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
\r
19 | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
\r
20 public class XmlArrayItemAttribute : Attribute
\r
22 private string dataType;
\r
23 private string elementName;
\r
24 private XmlSchemaForm form;
\r
26 private bool isNullable;
\r
27 private int nestingLevel;
\r
31 public XmlArrayItemAttribute ()
\r
34 public XmlArrayItemAttribute (string elementName)
\r
36 ElementName = elementName;
\r
38 public XmlArrayItemAttribute (Type type)
\r
42 public XmlArrayItemAttribute (string elementName, Type type)
\r
44 ElementName = elementName;
\r
48 public string DataType {
\r
49 get { return dataType; }
\r
50 set { dataType = value; }
\r
52 public string ElementName {
\r
53 get { return elementName; }
\r
54 set { elementName = value; }
\r
56 public XmlSchemaForm Form {
\r
57 get { return form; }
\r
58 set { form = value; }
\r
60 public string Namespace {
\r
64 public bool IsNullable {
\r
65 get { return isNullable; }
\r
66 set { isNullable = value; }
\r
69 get { return type; }
\r
70 set { type = value; }
\r
72 public int NestingLevel {
\r
73 get { return nestingLevel; }
\r
74 set { nestingLevel = value; }
\r
77 /// Specifies Order in which Memberswill be serialized as Elements.
\r
81 get{ return order; }
\r
82 set{ order = value; }
\r