- Initial commit of System.Xml.Serialization namespace (don't get too excited, the...
[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 \r
24                 public XmlTextAttribute ()\r
25                 {\r
26                 }\r
27 \r
28                 public XmlTextAttribute (Type type)\r
29                 {\r
30                         Type = type;\r
31                 }\r
32                 \r
33                 public string DataType {\r
34                         get { \r
35                                 return dataType; \r
36                         }\r
37                         set { \r
38                                 dataType = value; \r
39                         }\r
40                 }\r
41                 public Type Type \r
42                 {\r
43                         get { \r
44                                 return type; \r
45                         }\r
46                         set { \r
47                                 type = value; \r
48                         }\r
49                 }\r
50 \r
51         }\r
52 }\r