MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsmetaInsert­Comment
Open sandboxFocus

meta.InsertComment Method

InsertComment(String[])

Injects a comment to the target code.

Declaration
public static void InsertComment(params string[] lines)
Parameters
Type Name Description
System.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