Open sandboxFocus

Method InsertComment

InsertComment(params string?[])

Injects a comment to the target code.

Declaration
[CompileTime(true, null)]
public static void InsertComment(params string?[] lines)
Parameters
Type Name Description
string[] lines

A list of comment lines, without the // prefix. Null strings are processed as blank ones and will inject a blank comment line.

Remarks

This method is not able to add a comment to an empty block. The block must contain at least one statement.

See Also