1 //------------------------------------------------------------------------------
2 // <copyright file="XmlArrayItemAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
8 namespace System.Xml.Serialization {
11 using System.Xml.Schema;
13 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute"]/*' />
15 /// <para>[To be supplied.]</para>
17 [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)]
18 public class XmlArrayItemAttribute : System.Attribute {
24 bool nullableSpecified = false;
25 XmlSchemaForm form = XmlSchemaForm.None;
28 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.XmlArrayItemAttribute"]/*' />
30 /// <para>[To be supplied.]</para>
32 public XmlArrayItemAttribute() {
35 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.XmlArrayItemAttribute1"]/*' />
37 /// <para>[To be supplied.]</para>
39 public XmlArrayItemAttribute(string elementName) {
40 this.elementName = elementName;
43 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.XmlArrayItemAttribute2"]/*' />
45 /// <para>[To be supplied.]</para>
47 public XmlArrayItemAttribute(Type type) {
51 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.XmlArrayItemAttribute3"]/*' />
53 /// <para>[To be supplied.]</para>
55 public XmlArrayItemAttribute(string elementName, Type type) {
56 this.elementName = elementName;
60 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.Type"]/*' />
62 /// <para>[To be supplied.]</para>
69 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.ElementName"]/*' />
71 /// <para>[To be supplied.]</para>
73 public string ElementName {
74 get { return elementName == null ? string.Empty : elementName; }
75 set { elementName = value; }
78 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.Namespace"]/*' />
80 /// <para>[To be supplied.]</para>
82 public string Namespace {
87 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.NestingLevel"]/*' />
88 public int NestingLevel {
89 get { return nestingLevel; }
90 set { nestingLevel = value; }
93 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.DataType"]/*' />
95 /// <para>[To be supplied.]</para>
97 public string DataType {
98 get { return dataType == null ? string.Empty : dataType; }
99 set { dataType = value; }
102 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.IsNullable"]/*' />
104 /// <para>[To be supplied.]</para>
106 public bool IsNullable {
107 get { return nullable; }
108 set { nullable = value; nullableSpecified = true; }
111 internal bool IsNullableSpecified {
112 get { return nullableSpecified; }
115 /// <include file='doc\XmlArrayItemAttribute.uex' path='docs/doc[@for="XmlArrayItemAttribute.Form"]/*' />
117 /// <para>[To be supplied.]</para>
119 public XmlSchemaForm Form {
121 set { form = value; }