Class ExpressionParser
Parse lambda expressions from strings.
Inheritance
System.Object
ExpressionParser
Assembly: Radzen.Blazor.dll
Syntax
public static class ExpressionParser : object
Methods
ParseLambda<T>(String, Func<String, Type>)
Parses a lambda expression that returns untyped result.
Declaration
public static LambdaExpression ParseLambda<T>(string expression, Func<string, Type> typeLocator = null)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Func<System.String, Type> |
typeLocator |
|
Returns
Type |
Description |
LambdaExpression |
|
Type Parameters
ParseLambda<T, TResult>(String, Func<String, Type>)
Parses a lambda expression that returns a typed result.
Declaration
public static Expression<Func<T, TResult>> ParseLambda<T, TResult>(string expression, Func<string, Type> typeLocator = null)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Func<System.String, Type> |
typeLocator |
|
Returns
Type |
Description |
Expression<Func<T, TResult>> |
|
Type Parameters
Name |
Description |
T |
|
TResult |
|
ParsePredicate<T>(String, Func<String, Type>)
Parses a lambda expression that returns a boolean value.
Declaration
public static Expression<Func<T, bool>> ParsePredicate<T>(string expression, Func<string, Type> typeLocator = null)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Func<System.String, Type> |
typeLocator |
|
Returns
Type |
Description |
Expression<Func<T, System.Boolean>> |
|
Type Parameters