MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Syntax­BuildersStatement­FactoryParse
Open sandboxFocus

StatementFactory.Parse Method

Parse(String)

Parses a string containing a C# statement and returns an IStatement, which can be inserted into the run-time code using InsertStatement(IStatement). The string must contain a single statement, and must be finished by a semicolon or a closing bracket. An alternative to this method is the StatementBuilder class.

Declaration
public static IStatement Parse(string code)
Parameters
Type Name Description
System.String code
Returns
Type Description
IStatement
See Also