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

meta.InsertStatement Method

InsertStatement(IStatement)

Inserts a statement into the target code, where the statement is given as an IStatement.

Declaration
public static void InsertStatement(IStatement statement)
Parameters
Type Name Description
IStatement statement
See Also

InsertStatement(IExpression)

Inserts a statement into the target code, where the statement is given as an IExpression. Note that not all expressions can be used as statements.

Declaration
public static void InsertStatement(IExpression statement)
Parameters
Type Name Description
IExpression statement
See Also

InsertStatement(String)

Inserts a statement into the target code, where the statement is given as a System.String. Calling this overload is equivalent to calling the InsertStatement(IStatement) overload with the result of the Parse(String) method.

Declaration
public static void InsertStatement(string statement)
Parameters
Type Name Description
System.String statement
See Also