DocumentableItem.cs 835 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // System.Web.Services.Description.DocumentableItem.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.ComponentModel;
  10. using System.Xml.Serialization;
  11. namespace System.Web.Services.Description {
  12. public abstract class DocumentableItem {
  13. #region Fields
  14. string documentation;
  15. #endregion // Fields
  16. #region Constructors
  17. protected DocumentableItem ()
  18. {
  19. documentation = String.Empty;
  20. }
  21. #endregion // Constructors
  22. #region Properties
  23. [XmlElement ("documentation")]
  24. [DefaultValue ("")]
  25. public string Documentation {
  26. get { return documentation; }
  27. set {
  28. if (value == null)
  29. documentation = String.Empty;
  30. else
  31. documentation = value;
  32. }
  33. }
  34. #endregion // Properties
  35. }
  36. }