Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Serialization / XmlTextAttribute.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlTextAttribute.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner>                                                                
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml.Serialization {
9
10     using System;
11     
12     /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute"]/*' />
13     /// <devdoc>
14     ///    <para>[To be supplied.]</para>
15     /// </devdoc>
16     [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
17     public class XmlTextAttribute : System.Attribute {
18         Type type;
19         string dataType;
20
21         /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.XmlTextAttribute"]/*' />
22         /// <devdoc>
23         ///    <para>[To be supplied.]</para>
24         /// </devdoc>
25         public XmlTextAttribute() {
26         }
27         
28         /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.XmlTextAttribute1"]/*' />
29         /// <devdoc>
30         ///    <para>[To be supplied.]</para>
31         /// </devdoc>
32         public XmlTextAttribute(Type type) {
33             this.type = type;
34         }
35         
36         /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.Type"]/*' />
37         /// <devdoc>
38         ///    <para>[To be supplied.]</para>
39         /// </devdoc>
40         public Type Type {
41             get { return type; }
42             set { type = value; }
43         }
44
45         /// <include file='doc\XmlTextAttribute.uex' path='docs/doc[@for="XmlTextAttribute.DataType"]/*' />
46         /// <devdoc>
47         ///    <para>[To be supplied.]</para>
48         /// </devdoc>
49         public string DataType {
50             get { return dataType == null ? string.Empty : dataType; }
51             set { dataType = value; }
52         }
53     }
54 }