Comment Class
Represents a code comment that can be added to code objects.
public class Comment : CodeObject- Inheritance
CodeObjectComment
Constructors
| Name | Description |
|---|---|
| Comment() | |
| Comment(string?, CommentType) | Initializes a new instance of the Comment class with the specified text and type. |
Comment overloads
Comment()
Comment.cspublic Comment()No documentation is available.
Comment(string?, CommentType)
Comment.csInitializes a new instance of the Comment class with the specified text and type.
public Comment(string? text, CommentType type)Parameters
textstring?- The comment text.
typeCommentType- The comment type (line or inline).
Properties
| Name | Description |
|---|---|
| Text | |
| Type |