Hi,
I've presented Microsoft work with dynamic expression parsing on previous post.
Now I'll like to present my upgrades to it: I've add both Select and SelectMany enumerable operations as well as some more Enumerable "simple" methods like First, Last and Distinct.
The Select and SelectMany are more tricky because they have dynamic nature - they do not have static parameter types and return value type so they need to be handle little different.
My addition are to the dynamic string parsing language - the library already had strong type Select method but did not support putting Select inside a string for parsing.
The code is inside a gist at http://gist.github.com/489298
I'm happy to share with you my experience of life and programming.
Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts
Sunday, July 25
Wednesday, June 30
Dynamic Parsing of String into ExpressionTree
For some reason Microsoft hide the work done by Microsoft itself and other people to get LINQ more dynamic - that is parsing string into Expression object.
The code can be downloaded from Microsoft here (you can find the code inside LinqSamples\DynamicQuery\DynamicQuery\Dynamic.cs)
Explanation about this code can be found at Ryan's House blog
There are already couple of things to fix but it is great piece of code that can be very useful to allow user extend an application without programmer needed.
Subscribe to:
Posts (Atom)