XmlAttributeAttribute.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //
  2. // XmlAttributeAttribute.cs:
  3. //
  4. // Author:
  5. // John Donagher ([email protected])
  6. //
  7. // (C) 2002 John Donagher
  8. //
  9. using System.Xml.Schema;
  10. using System;
  11. namespace System.Xml.Serialization
  12. {
  13. /// <summary>
  14. /// Summary description for XmlAttributeAttribute.
  15. /// </summary>
  16. [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
  17. | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
  18. public class XmlAttributeAttribute : Attribute
  19. {
  20. private string attributeName;
  21. private string dataType;
  22. private XmlSchemaForm form;
  23. private string ns;
  24. public XmlAttributeAttribute ()
  25. {
  26. }
  27. public XmlAttributeAttribute (string attributeName)
  28. {
  29. AttributeName = attributeName;
  30. }
  31. [MonoTODO]
  32. public XmlAttributeAttribute (Type type)
  33. {
  34. }
  35. [MonoTODO]
  36. public XmlAttributeAttribute (string attributeName, Type type)
  37. {
  38. AttributeName = attributeName;
  39. }
  40. public string AttributeName {
  41. get {
  42. return attributeName;
  43. }
  44. set {
  45. attributeName = value;
  46. }
  47. }
  48. public string DataType {
  49. get {
  50. return dataType;
  51. }
  52. set {
  53. dataType = value;
  54. }
  55. }
  56. public XmlSchemaForm Form {
  57. get {
  58. return form;
  59. }
  60. set {
  61. form = value;
  62. }
  63. }
  64. public string Namespace {
  65. get {
  66. return ns;
  67. }
  68. set {
  69. ns = value;
  70. }
  71. }
  72. }
  73. }