Show / Hide Table of Contents

    Class ExpressionParser

    ExpressionParser

    Inheritance
    Object
    ExpressionParser
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    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([CanBeNull] ParameterExpression[] parameters, [NotNull] string expression, [CanBeNull] object[] values, [CanBeNull] ParsingConfig parsingConfig)
    Parameters
    Type Name Description
    ParameterExpression[] parameters

    The parameters.

    String expression

    The expression.

    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
    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 compatiblity of parsingConfig.RenameParameterExpression which was designed to only work with mono-lambda expressions.

    Declaration
    public string LastLambdaItName { get; }
    Property Value
    Type Description
    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([CanBeNull] Type resultType, bool createParameterCtor = true)
    Parameters
    Type Name Description
    Type resultType

    Type of the result.

    Boolean createParameterCtor

    if set to true [create parameter ctor].

    Returns
    Type Description
    Expression

    Expression

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