I always prefer lambda expression to perform operations on collection. But i can achieve same thing with LINQ which is simpler than Lambda expression. but, I am still confused a bit about which comes at top in Abstraction Level & why?
I always prefer lambda expression to perform operations on collection. But i can achieve
Share
I suspect by “LINQ” you mean “query expressions”:
And I suspect by “lambda expression” you mean calling the extension methods directly:
Both of these are really LINQ…
Query expressions are at a slightly higher abstraction level I guess, and that there’s more work required to get down to the real operations… but not terribly significantly, given that the conversion process is fairly mechanical.