XmlFormatExtensionPrefixAttribute.cs 913 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // System.Web.Services.Configuration.XmlFormatExtensionPrefixAttribute.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. namespace System.Web.Services.Configuration {
  10. [AttributeUsage (AttributeTargets.Class)]
  11. public sealed class XmlFormatExtensionPrefixAttribute : Attribute {
  12. #region Fields
  13. string prefix;
  14. string ns;
  15. #endregion // Fields
  16. #region Constructors
  17. public XmlFormatExtensionPrefixAttribute ()
  18. {
  19. }
  20. public XmlFormatExtensionPrefixAttribute (string prefix, string ns)
  21. : this ()
  22. {
  23. this.prefix = prefix;
  24. this.ns = ns;
  25. }
  26. #endregion // Constructors
  27. #region Properties
  28. public string Prefix {
  29. get { return prefix; }
  30. set { prefix = value; }
  31. }
  32. public string Namespace {
  33. get { return ns; }
  34. set { ns = value; }
  35. }
  36. #endregion // Properties
  37. }
  38. }