//------------------------------------------------------------------------------ // // // Microsoft // 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; } } } }