Skip to content

Commit

Permalink
ExpressionParser: add 2nd ctor with an extra non-optional parameter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH authored Jan 24, 2025
1 parent 233881c commit 1ed7a23
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/System.Linq.Dynamic.Core/Parser/ExpressionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ public class ExpressionParser
/// </summary>
public string LastLambdaItName { get; private set; } = KeywordsHelper.KEYWORD_IT;

/// <summary>
/// Initializes a new instance of the <see cref="ExpressionParser"/> class.
/// </summary>
/// <param name="parameters">The parameters.</param>
/// <param name="expression">The expression.</param>
/// <param name="values">The values.</param>
/// <param name="parsingConfig">The parsing configuration.</param>
public ExpressionParser(ParameterExpression[]? parameters, string expression, object?[]? values, ParsingConfig? parsingConfig) :
this(parameters, expression, values, parsingConfig, false)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ExpressionParser"/> class.
/// </summary>
Expand All @@ -71,7 +83,7 @@ public class ExpressionParser
/// <param name="values">The values.</param>
/// <param name="parsingConfig">The parsing configuration.</param>
/// <param name="usedForOrderBy">Indicate that this instance will be used for parsing orderBy. Default value is <c>false</c>.</param>
public ExpressionParser(ParameterExpression[]? parameters, string expression, object?[]? values, ParsingConfig? parsingConfig, bool usedForOrderBy = false)
public ExpressionParser(ParameterExpression[]? parameters, string expression, object?[]? values, ParsingConfig? parsingConfig, bool usedForOrderBy)
{
Check.NotEmpty(expression);

Expand Down

0 comments on commit 1ed7a23

Please sign in to comment.