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