CodeComment.cs 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // System.CodeDom CodeComment Class implementation
  3. //
  4. // Author:
  5. // Daniel Stodden ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc.
  8. //
  9. using System.Runtime.InteropServices;
  10. namespace System.CodeDom
  11. {
  12. [Serializable]
  13. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  14. [ComVisible(true)]
  15. public class CodeComment
  16. : CodeObject
  17. {
  18. private bool docComment;
  19. private string text;
  20. //
  21. // Constructors
  22. //
  23. public CodeComment()
  24. {
  25. }
  26. public CodeComment( string text )
  27. {
  28. this.text = text;
  29. }
  30. public CodeComment( string text, bool docComment )
  31. {
  32. this.text = text;
  33. this.docComment = docComment;
  34. }
  35. //
  36. // Properties
  37. //
  38. public bool DocComment {
  39. get {
  40. return docComment;
  41. }
  42. set {
  43. docComment = value;
  44. }
  45. }
  46. public string Text {
  47. get {
  48. return text;
  49. }
  50. set {
  51. text = value;
  52. }
  53. }
  54. }
  55. }