mscorlib(4.0.0.0) API with additions
XmlTextAttribute.cs
2 {
4  [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
5  [global::__DynamicallyInvokable]
6  public class XmlTextAttribute : Attribute
7  {
8  private Type type;
9 
10  private string dataType;
11 
14  [global::__DynamicallyInvokable]
15  public Type Type
16  {
17  [global::__DynamicallyInvokable]
18  get
19  {
20  return type;
21  }
22  [global::__DynamicallyInvokable]
23  set
24  {
25  type = value;
26  }
27  }
28 
33  [global::__DynamicallyInvokable]
34  public string DataType
35  {
36  [global::__DynamicallyInvokable]
37  get
38  {
39  if (dataType != null)
40  {
41  return dataType;
42  }
43  return string.Empty;
44  }
45  [global::__DynamicallyInvokable]
46  set
47  {
48  dataType = value;
49  }
50  }
51 
53  [global::__DynamicallyInvokable]
55  {
56  }
57 
60  [global::__DynamicallyInvokable]
61  public XmlTextAttribute(Type type)
62  {
63  this.type = type;
64  }
65  }
66 }
XmlTextAttribute(Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlTextAttribute class.
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
string DataType
Gets or sets the XML Schema definition language (XSD) data type of the text generated by the T:System...
XmlTextAttribute()
Initializes a new instance of the T:System.Xml.Serialization.XmlTextAttribute class.
Indicates to the T:System.Xml.Serialization.XmlSerializer that the member must be treated as XML text...