Trim() a list of strings using dynamic query language to produce a trimmed IQueryable<string>

Viewed 30494

Is this possible, or am I just trying to way overly shorten my code?

I thought it might be something like:

IQueryable<string> trimmedStrs = untrimmedStrsArr.AsQueryable<string>().All(s => s.Trim());

But that's no good :(

3 Answers
Related