Search Results for

    Show / Hide Table of Contents

    Class ExpressionParser

    ExpressionParser

    Inheritance
    System.Object
    ExpressionParser
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: System.Linq.Dynamic.Core.Parser
    Assembly: System.Linq.Dynamic.Core.dll
    Syntax
    public class ExpressionParser

    Constructors

    | Improve this Doc View Source

    ExpressionParser(ParameterExpression[], String, Object[], ParsingConfig)

    Initializes a new instance of the ExpressionParser class.

    Declaration
    public ExpressionParser(ParameterExpression[] parameters, string expression, object[] values, ParsingConfig parsingConfig)
    Parameters
    Type Name Description
    System.Linq.Expressions.ParameterExpression[] parameters

    The parameters.

    System.String expression

    The expression.

    System.Object[] values

    The values.

    ParsingConfig parsingConfig

    The parsing configuration.

    Properties

    | Improve this Doc View Source

    ItName

    Gets name for the it field. By default this is set to the KeyWord value "it".

    Declaration
    public string ItName { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    LastLambdaItName

    There was a problem when an expression contained multiple lambdas where the ItName was not cleared and freed for the next lambda. This variable stores the ItName of the last parsed lambda. Not used internally by ExpressionParser, but used to preserve compatibility of parsingConfig.RenameParameterExpression which was designed to only work with mono-lambda expressions.

    Declaration
    public string LastLambdaItName { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Parse(Type, Boolean)

    Uses the TextParser to parse the string into the specified result type.

    Declaration
    public Expression Parse(Type resultType, bool createParameterCtor = true)
    Parameters
    Type Name Description
    System.Type resultType

    Type of the result.

    System.Boolean createParameterCtor

    if set to true [create parameter ctor].

    Returns
    Type Description
    System.Linq.Expressions.Expression

    Expression

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX