GenerateComment(string) Method
Generates a comment string in either single-line or multi-line format.

Syntax

public string GenerateComment(string comment)

Parameters

Name Type Description
comment string The content of the comment. If the comment contains line breaks, it will be treated as a multi-line comment; otherwise, it will be treated as a single-line comment.

Return Value

Type Description
string The generated comment string.