Parse(string, IType?, bool?)
Parses a string containing a C# expression and returns an IExpression. The Value property allows to use this expression in a template. An alternative to this method is the ExpressionBuilder class.
Declaration
public static IExpression Parse(string code, IType? type = null, bool? isReferenceable = null)
Parameters
Type | Name | Description |
---|---|---|
string | code | A valid C# expression. |
IType | type | The resulting type of the expression, if known. This value allows to generate simpler code. |
bool? | isReferenceable | Indicates whether the expression can be used in |
Returns
Type | Description |
---|---|
IExpression |