Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XmlArrayItemAttribute.cs « System.Xml.Serialization « System.XML « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d72c06322cbab3a453c5414c19227889bed6ca9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// XmlArrayItemAttribute.cs: 
//
// Author:
//   John Donagher (john@webmeta.com)
//
// (C) 2002 John Donagher
//

using System.Xml.Schema;
using System;

namespace System.Xml.Serialization
{
	/// <summary>
	/// Summary description for XmlArrayItemAttribute.
	/// </summary>
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
		 | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
	public class XmlArrayItemAttribute : Attribute
	{
		private string dataType;
		private string elementName;
		private XmlSchemaForm form;
		private string ns;
		private bool isNullable;
		private int nestingLevel;
		private Type type;

		public XmlArrayItemAttribute ()
		{
		}
		public XmlArrayItemAttribute (string elementName)
		{
			ElementName = elementName;
		}
		public XmlArrayItemAttribute (Type type)
		{
			Type = type;
		}
		public XmlArrayItemAttribute (string elementName, Type type)
		{
			ElementName = elementName;
			Type = type;
		}

		public string DataType {
			get { return dataType; }
			set { dataType = value; }
		}
		public string ElementName {
			get { return elementName; }
			set { elementName = value; }
		}
		public XmlSchemaForm Form {
			get { return form; }
			set { form = value; }
		}
		public string Namespace {
			get { return ns; }
			set { ns = value; }
		}
		public bool IsNullable {
			get { return isNullable; } 
			set { isNullable = value; }
		}
		public Type Type {
			get { return type; }
			set { type = value; }
		}
		public int NestingLevel {
			get { return nestingLevel; }
			set { nestingLevel = value; }
		}
	}
}