CodeCommentStatement.cs 955 B

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