SoapAttributeAttribute.cs 1011 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // SoapAttributeAttribute.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 SoapAttributeAttribute.
  14. /// </summary>
  15. [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
  16. | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
  17. public class SoapAttributeAttribute : Attribute
  18. {
  19. private string attrName;
  20. private string dataType;
  21. private string ns;
  22. public SoapAttributeAttribute ()
  23. {
  24. }
  25. public SoapAttributeAttribute (string attrName)
  26. {
  27. AttributeName = attrName;
  28. }
  29. public string AttributeName {
  30. get {
  31. return attrName;
  32. }
  33. set {
  34. attrName = value;
  35. }
  36. }
  37. public string DataType {
  38. get {
  39. return dataType;
  40. }
  41. set {
  42. dataType = value;
  43. }
  44. }
  45. public string Namespace {
  46. get {
  47. return ns;
  48. }
  49. set {
  50. ns = value;
  51. }
  52. }
  53. }
  54. }