CodeComment.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeComment.cs / 1305376 / CodeComment.cs

                            //------------------------------------------------------------------------------ 
// 
//
// [....]
//     Copyright (c) Microsoft Corporation.  All rights reserved. 
// 
//----------------------------------------------------------------------------- 
 
namespace System.CodeDom {
 
    using System.Diagnostics;
    using System;
    using Microsoft.Win32;
    using System.Collections; 
    using System.Runtime.InteropServices;
 
    ///  
    ///     Represents a comment.
    ///  
    [
        ClassInterface(ClassInterfaceType.AutoDispatch),
        ComVisible(true),
        Serializable, 
    ]
    public class CodeComment : CodeObject { 
        private string text; 
        private bool docComment = false;
 
        /// 
        ///    
        ///       Initializes a new instance of .
        ///     
        /// 
        public CodeComment() { 
        } 

        ///  
        ///    
        ///       Initializes a new instance of  with the specified text as
        ///       contents.
        ///     
        /// 
        public CodeComment(string text) { 
            Text = text; 
        }
 
        /// 
        ///    [To be supplied.]
        /// 
        public CodeComment(string text, bool docComment) { 
            Text = text;
            this.docComment = docComment; 
        } 

        ///  
        ///    [To be supplied.]
        /// 
        public bool DocComment {
            get { 
                return docComment;
            } 
            set { 
                docComment = value;
            } 
        }

        /// 
        ///     
        ///       Gets or setes
        ///       the text of the comment. 
        ///     
        /// 
        public string Text { 
            get {
                return (text == null) ? string.Empty : text;
            }
            set { 
                text = value;
            } 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK