1cbbc8081bb2e2f3c3a85f6dcb2506285e2df7e6
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlTextAttribute.cs
1 //
2 // XmlTextAttribute.cs: 
3 //
4 // Author:
5 //   John Donagher (john@webmeta.com)
6 //
7 // (C) 2002 John Donagher
8 //
9
10 using System;\r
11 \r
12 namespace System.Xml.Serialization\r
13 {\r
14         /// <summary>\r
15         /// Summary description for XmlTextAttribute.\r
16         /// </summary>\r
17         [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field\r
18                  | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]\r
19         public class XmlTextAttribute : Attribute\r
20         {\r
21                 private string dataType;\r
22                 private Type type;\r
23                 private int order;\r
24 \r
25                 public XmlTextAttribute ()\r
26                 {\r
27                 }\r
28 \r
29                 public XmlTextAttribute (Type type)\r
30                 {\r
31                         Type = type;\r
32                 }\r
33                 \r
34                 public string DataType {\r
35                         get { \r
36                                 return dataType; \r
37                         }\r
38                         set { \r
39                                 dataType = value; \r
40                         }\r
41                 }\r
42                 public Type Type \r
43                 {\r
44                         get { \r
45                                 return type; \r
46                         }\r
47                         set { \r
48                                 type = value; \r
49                         }\r
50                 }\r
51                 /// <summary>\r
52                 /// Specifies Order in which Memberswill be serialized as Elements.\r
53                 /// </summary>\r
54                 public int Order\r
55                 {\r
56                         get{ return  order; }\r
57                         set{ order = value; }\r
58                 }\r
59 \r
60         }\r
61 }\r