Open sandboxFocus

Method InsertStatement

InsertStatement(IStatement)

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

Declaration
[CompileTime(true, null)]
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
[CompileTime(true, null)]
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 string. Calling this overload is equivalent to calling the InsertStatement(IStatement) overload with the result of the Parse(string) method.

Declaration
[CompileTime(true, null)]
public static void InsertStatement(string statement)
Parameters
Type Name Description
string statement
See Also