Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class ExpressionParser

    Parse lambda expressions from strings.

    Inheritance
    System.Object
    ExpressionParser
    Namespace: Radzen
    Assembly: Radzen.Blazor.dll
    Syntax
    public class ExpressionParser : object

    Methods

    ParseLambda(String, Type, Nullable<Func<String, Nullable<Type>>>)

    Parses a lambda expression that returns untyped result.

    Declaration
    public static LambdaExpression ParseLambda(string expression, Type type, Func<string, Type?>? typeResolver = null)
    Parameters
    Type Name Description
    System.String expression
    Type type
    System.Nullable<Func<System.String, System.Nullable<Type>>> typeResolver
    Returns
    Type Description
    LambdaExpression

    ParseLambda<T>(String, Nullable<Func<String, Nullable<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
    System.Nullable<Func<System.String, System.Nullable<Type>>> typeLocator
    Returns
    Type Description
    LambdaExpression
    Type Parameters
    Name Description
    T

    ParseLambda<T, TResult>(String, Nullable<Func<String, Nullable<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?>? typeResolver = null)
    Parameters
    Type Name Description
    System.String expression
    System.Nullable<Func<System.String, System.Nullable<Type>>> typeResolver
    Returns
    Type Description
    Expression<Func<T, TResult>>
    Type Parameters
    Name Description
    T
    TResult

    ParsePredicate<T>(String, Nullable<Func<String, Nullable<Type>>>)

    Parses a lambda expression that returns a boolean value.

    Declaration
    public static Expression<Func<T, bool>> ParsePredicate<T>(string expression, Func<string, Type?>? typeResolver = null)
    Parameters
    Type Name Description
    System.String expression
    System.Nullable<Func<System.String, System.Nullable<Type>>> typeResolver
    Returns
    Type Description
    Expression<Func<T, System.Boolean>>
    Type Parameters
    Name Description
    T

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT