| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // XmlTextAttribute.cs:
- //
- // Author:
- // John Donagher ([email protected])
- //
- // (C) 2002 John Donagher
- //
- using System;
- namespace System.Xml.Serialization
- {
- /// <summary>
- /// Summary description for XmlTextAttribute.
- /// </summary>
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
- | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
- public class XmlTextAttribute : Attribute
- {
- private string dataType;
- private Type type;
- private int order;
- public XmlTextAttribute ()
- {
- }
- public XmlTextAttribute (Type type)
- {
- Type = type;
- }
-
- public string DataType {
- get {
- return dataType;
- }
- set {
- dataType = value;
- }
- }
- public Type Type
- {
- get {
- return type;
- }
- set {
- type = value;
- }
- }
- /// <summary>
- /// Specifies Order in which Memberswill be serialized as Elements.
- /// </summary>
- public int Order
- {
- get{ return order; }
- set{ order = value; }
- }
- }
- }
|