The Labs \ Source Viewer \ SSCLI \ System.CodeDom \ CodeCommentStatement

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeCommentStatement.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.CodeDom
  16. {
  17.    
  18.     using System.Diagnostics;
  19.     using System;
  20.     using Microsoft.Win32;
  21.     using System.Collections;
  22.     using System.Runtime.InteropServices;
  23.    
  24.     /// <devdoc>
  25.     /// <para> Represents a comment.</para>
  26.     /// </devdoc>
  27.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  28.     public class CodeCommentStatement : CodeStatement
  29.     {
  30.         private CodeComment comment;
  31.        
  32.         /// <devdoc>
  33.         /// <para>
  34.         /// Initializes a new instance of <see cref='System.CodeDom.CodeCommentStatement'/>.
  35.         /// </para>
  36.         /// </devdoc>
  37.         public CodeCommentStatement()
  38.         {
  39.         }
  40.        
  41.         /// <devdoc>
  42.         /// <para>[To be supplied.]</para>
  43.         /// </devdoc>
  44.         public CodeCommentStatement(CodeComment comment)
  45.         {
  46.             this.comment = comment;
  47.         }
  48.        
  49.         /// <devdoc>
  50.         /// <para>
  51.         /// Initializes a new instance of <see cref='System.CodeDom.CodeCommentStatement'/> with the specified text as
  52.         /// contents.
  53.         /// </para>
  54.         /// </devdoc>
  55.         public CodeCommentStatement(string text)
  56.         {
  57.             comment = new CodeComment(text);
  58.         }
  59.        
  60.         /// <devdoc>
  61.         /// <para>[To be supplied.]</para>
  62.         /// </devdoc>
  63.         public CodeCommentStatement(string text, bool docComment)
  64.         {
  65.             comment = new CodeComment(text, docComment);
  66.         }
  67.        
  68.         /// <devdoc>
  69.         /// <para>[To be supplied.]</para>
  70.         /// </devdoc>
  71.         public CodeComment Comment {
  72.             get { return comment; }
  73.             set { comment = value; }
  74.         }
  75.     }
  76. }

Developer Fusion