2
0

XmlTextAttribute.cs 1.0 KB

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