sklose / NCalc2

expression evaluator for .NET with built-in compiler
MIT License
170 stars 58 forks source link

ToLambda: ArgumentNullException if method not found in context #7

Closed cd21h closed 6 years ago

cd21h commented 7 years ago

Update LambdaExpressionVistor to throw more specific exception if method was not found in context class.

Example: class ExpressionContext { } expression Get([Param]) == 0'.

'ToLambda<ExpressionContext,bool>()' throws System.ArgumentNullException : Value cannot be null. Parameter name: method - no method name (Get) provided in exception

sklose commented 6 years ago

fixed in version 2.2.40 by @dgeller-OUHSC