Comments (1)
NReco.LambdaParser is about simple expressions (math operations, method calls, accessing properties/fields). It doesn't support delegates definition that "Sum" expects.
Also, "Sum" is an extension method for IEnumerable -- in other words, this is a static method -- and LambdaParser doesn't support static method calls. This is by design; usually expressions are composed by the app end-users and should be evaluated in a 'safe' way, and everything that can be used in the expression (variables, methods) should be passed with a context.
I'm not sure that this capability (delegates definition) can be added easily. In my projects where I use LambdaParser delegates are not needed, so if you need them you may develop this functionality by yourself. We can discuss the details if you want to contribute this with PR.
from lambdaparser.
Related Issues (20)
- System.PlatformNotSupportedException: Operation is not supported on this platform. HOT 5
- Failed DateTime.Now HOT 3
- escaping quotes in nested strings HOT 2
- LambdaParser.Parse HOT 1
- Linq Functions Suppport HOT 2
- SL5 MacOs support HOT 3
- nested expression in dictionary indexer
- Security? HOT 7
- Allow recursivity HOT 5
- Math Operations like power (exponentiate) and to extract a root -possible? HOT 2
- Error - Filter Datatable with LINQ inside the .Eval function HOT 4
- Changing order of parameters in simple expression produces different evaluation result. HOT 5
- Expressions using "not" not always work HOT 4
- Support for dynamic types like expando object
- Parser Context Security HOT 1
- "Expected value" error in simple expression HOT 2
- Non-convertible types support
- Variables in expressions HOT 1
- Sequence of ternary operators HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lambdaparser.