Reputation: 1645
is there an easy way to convert a string to a linq query?
e.g. var query = StringToLINQQuery(AString);
has somebody the implementation for this method?
Upvotes: 1
Views: 1230
Reputation: 263167
You would have to compile the string.
The compiler as a service feature is scheduled for C# 5, so it's not here yet. It's already available on Mono, but Mono's support for LINQ was quite shaky last time I checked.
Upvotes: 1