2 // XmlArrayAttribute.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 XmlArrayAttribute.
\r
18 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
\r
19 | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
\r
20 public class XmlArrayAttribute : Attribute
\r
22 private string elementName;
\r
23 private XmlSchemaForm form;
\r
24 private bool isNullable;
\r
27 public XmlArrayAttribute()
\r
31 public XmlArrayAttribute(string elementName)
\r
33 ElementName = elementName;
\r
36 public string ElementName
\r
44 elementName = value;
\r
47 public XmlSchemaForm Form
\r
58 public bool IsNullable
\r
69 public string Namespace
\r
81 internal void AddKeyHash (System.Text.StringBuilder sb)
\r
83 sb.Append ("XAAT ");
\r
84 KeyHelper.AddField (sb, 1, ns);
\r
85 KeyHelper.AddField (sb, 2, elementName);
\r
86 KeyHelper.AddField (sb, 3, form.ToString(), XmlSchemaForm.None.ToString());
\r
87 KeyHelper.AddField (sb, 4, isNullable);
\r