mscorlib(4.0.0.0) API with additions
XmlArrayItemAttribute.cs
1 using System.Xml.Schema;
2 
4 {
6  [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true)]
7  [global::__DynamicallyInvokable]
9  {
10  private string elementName;
11 
12  private Type type;
13 
14  private string ns;
15 
16  private string dataType;
17 
18  private bool nullable;
19 
20  private bool nullableSpecified;
21 
22  private XmlSchemaForm form;
23 
24  private int nestingLevel;
25 
28  [global::__DynamicallyInvokable]
29  public Type Type
30  {
31  [global::__DynamicallyInvokable]
32  get
33  {
34  return type;
35  }
36  [global::__DynamicallyInvokable]
37  set
38  {
39  type = value;
40  }
41  }
42 
45  [global::__DynamicallyInvokable]
46  public string ElementName
47  {
48  [global::__DynamicallyInvokable]
49  get
50  {
51  if (elementName != null)
52  {
53  return elementName;
54  }
55  return string.Empty;
56  }
57  [global::__DynamicallyInvokable]
58  set
59  {
60  elementName = value;
61  }
62  }
63 
66  [global::__DynamicallyInvokable]
67  public string Namespace
68  {
69  [global::__DynamicallyInvokable]
70  get
71  {
72  return ns;
73  }
74  [global::__DynamicallyInvokable]
75  set
76  {
77  ns = value;
78  }
79  }
80 
83  [global::__DynamicallyInvokable]
84  public int NestingLevel
85  {
86  [global::__DynamicallyInvokable]
87  get
88  {
89  return nestingLevel;
90  }
91  [global::__DynamicallyInvokable]
92  set
93  {
94  nestingLevel = value;
95  }
96  }
97 
100  [global::__DynamicallyInvokable]
101  public string DataType
102  {
103  [global::__DynamicallyInvokable]
104  get
105  {
106  if (dataType != null)
107  {
108  return dataType;
109  }
110  return string.Empty;
111  }
112  [global::__DynamicallyInvokable]
113  set
114  {
115  dataType = value;
116  }
117  }
118 
122  [global::__DynamicallyInvokable]
123  public bool IsNullable
124  {
125  [global::__DynamicallyInvokable]
126  get
127  {
128  return nullable;
129  }
130  [global::__DynamicallyInvokable]
131  set
132  {
133  nullable = value;
134  nullableSpecified = true;
135  }
136  }
137 
138  internal bool IsNullableSpecified => nullableSpecified;
139 
143  [global::__DynamicallyInvokable]
144  public XmlSchemaForm Form
145  {
146  [global::__DynamicallyInvokable]
147  get
148  {
149  return form;
150  }
151  [global::__DynamicallyInvokable]
152  set
153  {
154  form = value;
155  }
156  }
157 
159  [global::__DynamicallyInvokable]
161  {
162  }
163 
166  [global::__DynamicallyInvokable]
167  public XmlArrayItemAttribute(string elementName)
168  {
169  this.elementName = elementName;
170  }
171 
174  [global::__DynamicallyInvokable]
176  {
177  this.type = type;
178  }
179 
183  [global::__DynamicallyInvokable]
184  public XmlArrayItemAttribute(string elementName, Type type)
185  {
186  this.elementName = elementName;
187  this.type = type;
188  }
189  }
190 }
XmlArrayItemAttribute(string elementName)
Initializes a new instance of the T:System.Xml.Serialization.XmlArrayItemAttribute class and specifie...
string Namespace
Gets or sets the namespace of the generated XML element.
XmlSchemaForm
Indicates if attributes or elements need to be qualified with a namespace prefix.
Definition: XmlSchemaForm.cs:7
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Definition: __Canon.cs:3
string DataType
Gets or sets the XML data type of the generated XML element.
string ElementName
Gets or sets the name of the generated XML element.
bool IsNullable
Gets or sets a value that indicates whether the T:System.Xml.Serialization.XmlSerializer must seriali...
XmlSchemaForm Form
Gets or sets a value that indicates whether the name of the generated XML element is qualified.
XmlArrayItemAttribute(Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlArrayItemAttribute class and specifie...
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
XmlArrayItemAttribute()
Initializes a new instance of the T:System.Xml.Serialization.XmlArrayItemAttribute class.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
int NestingLevel
Gets or sets the level in a hierarchy of XML elements that the T:System.Xml.Serialization....
Represents an attribute that specifies the derived types that the T:System.Xml.Serialization....
XmlArrayItemAttribute(string elementName, Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlArrayItemAttribute class and specifie...