Method Compile
Compile(String)
Compiles the given expression.
Declaration
public static Expression Compile(string sourceText)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceText | The expression to compile |
Returns
Type | Description |
---|---|
Expression | A new compiled expression |
Exceptions
Type | Condition |
---|---|
ParseException | on failure to compile |
Compile(String, IDictionary<String, MethodInfo>)
Compiles the given expression with the supplied custom functions.
Declaration
public static Expression Compile(string sourceText, IDictionary<string, MethodInfo> functions)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceText | The expression to compile |
IDictionary<System.String, MethodInfo> | functions | map of |
Returns
Type | Description |
---|---|
Expression | A new compiled expression |
Remarks
Compiles the given expression with the supplied custom functions.
Functions must be public static
, return
Exceptions
Type | Condition |
---|---|
ParseException | on failure to compile |