Parse lambda expressions from strings.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class ExpressionParserParses a lambda expression that returns a typed result.
public static Expressions.Expression<Func<T, TResult>> ParseLambda(string expression, Func<string, Type> typeResolver)
| Type | Name | Description |
|---|---|---|
| string | expression | |
| Func<string, Type> | typeResolver |
| Type | Description |
|---|---|
| Expressions.Expression<Func<T, TResult>> |
Parses a lambda expression that returns a typed result.
public static Expressions.LambdaExpression ParseLambda(string expression, Func<string, Type> typeLocator)
| Type | Name | Description |
|---|---|---|
| string | expression | |
| Func<string, Type> | typeLocator |
| Type | Description |
|---|---|
| Expressions.LambdaExpression |
Parses a lambda expression that returns a typed result.
public static Expressions.LambdaExpression ParseLambda(string expression, Type type, Func<string, Type> typeResolver)
| Type | Name | Description |
|---|---|---|
| string | expression | |
| Type | type | |
| Func<string, Type> | typeResolver |
| Type | Description |
|---|---|
| Expressions.LambdaExpression |
Parses a lambda expression that returns a boolean value.
public static Expressions.Expression<Func<T, bool>> ParsePredicate(string expression, Func<string, Type> typeResolver)
| Type | Name | Description |
|---|---|---|
| string | expression | |
| Func<string, Type> | typeResolver |
| Type | Description |
|---|---|
| Expressions.Expression<Func<T, bool>> |