Comment Class

Represents a code comment that can be added to code objects.

public class Comment : CodeObject
Inheritance
CodeObject Comment

Constructors

NameDescription
Comment()
Comment(string?, CommentType)Initializes a new instance of the Comment class with the specified text and type.

Comment overloads

Comment()

Comment.cs
public Comment()

No documentation is available.

Comment(string?, CommentType)

Comment.cs

Initializes a new instance of the Comment class with the specified text and type.

public Comment(string? text, CommentType type)
Parameters
text string?
The comment text.
type CommentType
The comment type (line or inline).

Properties

NameDescription
Text
Type
public string? Text { get; set; }

Property value

string?

No documentation is available.

public CommentType Type { get; set; }

Property value

CommentType

No documentation is available.