SoapEnumAttribute.cs 715 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // SoapEnumAttribute.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 SoapEnumAttribute.
  14. /// </summary>
  15. [AttributeUsage(AttributeTargets.Field)]
  16. public class SoapEnumAttribute : Attribute
  17. {
  18. private string name;
  19. public SoapEnumAttribute ()
  20. {
  21. }
  22. public SoapEnumAttribute (string name)
  23. {
  24. Name = name;
  25. }
  26. public string Name {
  27. get {
  28. return name;
  29. }
  30. set {
  31. name = value;
  32. }
  33. }
  34. internal bool InternalEquals (SoapEnumAttribute other)
  35. {
  36. return (other == null && name == other.name);
  37. }
  38. }
  39. }