mscorlib(4.0.0.0) API with additions
CodeComment.cs
2 
3 namespace System.CodeDom
4 {
7  [ClassInterface(ClassInterfaceType.AutoDispatch)]
8  [ComVisible(true)]
9  public class CodeComment : CodeObject
10  {
11  private string text;
12 
13  private bool docComment;
14 
18  public bool DocComment
19  {
20  get
21  {
22  return docComment;
23  }
24  set
25  {
26  docComment = value;
27  }
28  }
29 
32  public string Text
33  {
34  get
35  {
36  if (text != null)
37  {
38  return text;
39  }
40  return string.Empty;
41  }
42  set
43  {
44  text = value;
45  }
46  }
47 
49  public CodeComment()
50  {
51  }
52 
55  public CodeComment(string text)
56  {
57  Text = text;
58  }
59 
64  public CodeComment(string text, bool docComment)
65  {
66  Text = text;
67  this.docComment = docComment;
68  }
69  }
70 }
CodeComment(string text, bool docComment)
Initializes a new instance of the T:System.CodeDom.CodeComment class using the specified text and doc...
Definition: CodeComment.cs:64
string Text
Gets or sets the text of the comment.
Definition: CodeComment.cs:33
CodeComment()
Initializes a new instance of the T:System.CodeDom.CodeComment class.
Definition: CodeComment.cs:49
Definition: __Canon.cs:3
bool DocComment
Gets or sets a value that indicates whether the comment is a documentation comment.
Definition: CodeComment.cs:19
Represents a comment.
Definition: CodeComment.cs:9
Specifies that the class can be serialized.
CodeComment(string text)
Initializes a new instance of the T:System.CodeDom.CodeComment class with the specified text as conte...
Definition: CodeComment.cs:55
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
Provides a common base class for most Code Document Object Model (CodeDOM) objects.
Definition: CodeObject.cs:11