Skip to content

DynamicExpressionParser does not allow empty parameter lists. #79

@groogiam

Description

@groogiam

The DynamicExpressionParser does not allow empty parameters. The MS version allowed this so it seems like this library should allow this as well. Code snippet below reproduces the issue. Thanks.

var pEmpty = new ParameterExpression[] { };

var core = System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(pEmpty, null, "1+1").Compile(); //throws The collection argument 'parameters' must contain at least one element

var ms = System.Linq.Dynamic.DynamicExpression.ParseLambda(pEmpty, null, "1+1").Compile(); //this compiles and executes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions