Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Cannot use Linq Where and Select Extension Methods

0
0
This approach worked. Thanks for the example.

The only problem with this approach is that it requires a priori knowledge of the predicates that will be used. This kind of defeats the purpose of providing a scripting component in an application. It means I would have to enumerate all possible predicate types for possible linq statements.

I'm not sure if it is possible, but and excellent feature would be to allow for automatic conversion of script functions to delegates (at least For Func and Action delegate types.) This would greatly simplify usage of the LINQ language features.

Viewing all articles
Browse latest Browse all 2297