M
Marc Gravell
The difference is the query syntax guarantees binding tot he most
No it doesn't. There is no difference in this respect between the
query syntax ("from a in b where c select a") and the extension syntax
("b.Where(a=>c)"). They are identical. It is only the Expression vs
Func<> that makes a difference in terms of overload resolution. So
stick with the lambda and it is the same either way (it will select
Expression in both forms for *exactly* the same reasons).
Yes, it would be possible to be daft and throw a delegate into the
extension syntax, but a lot of daft things are possible if you try
hard enough...
Marc
derived extension.
No it doesn't. There is no difference in this respect between the
query syntax ("from a in b where c select a") and the extension syntax
("b.Where(a=>c)"). They are identical. It is only the Expression vs
Func<> that makes a difference in terms of overload resolution. So
stick with the lambda and it is the same either way (it will select
Expression in both forms for *exactly* the same reasons).
Yes, it would be possible to be daft and throw a delegate into the
extension syntax, but a lot of daft things are possible if you try
hard enough...
Marc