c# - What is the Efficiency and Performance of LINQ and Lambda Expression in .Net? -


I've used Net 3.5 and VS 2008 for more than a month. majority of. Like net developers, I have evolved from years of experience. Net 1.0 & amp; 2.0 and VS 2005. Recently, I discovered the simplicity and power of my recent questions like, and, e.g., LINQ and long expression.

I believe that lambda Read LINQ is very simple and easy and they seem very powerful behind the scenes, .net compiler should generate a lot of code to achieve those tasks. So I hesitate to switch to a bit syntax because I already know the "old" way of getting the same result.

My question is about the Lambda and LINQ efficiency and performance may Lambda expressions are mostly in-line functions, should be fine I think lambda is in that position. How about LINQ?

We limit the discussion on LINQ-to-Objects LINQ-to-SQL (LINQ-to-SQL). Any comments, comparisons and experiences?

There will be no single answer that will be sufficient.

LINQ has many uses, and many implementations, and thus there are many implications for the efficiency of your code.

With each piece of technology at our fingertips, LINQ can be misused and abused, and the ability to distinguish between that, and fair use, only on one thing Dependent: Knowledge

That's why I can give you the best advice and how to implement LINQ really.

  • < / Li>
  • How to separate LINQ-to-object and LINQ-to-SQL
  • New LINQ Syntax options, for example, use. Where to store (...) the extension method
  • And as always, the only safe approach is to take measures just to correct the low efficiency questions. Create a single piece of code using LINQ, create a single, address, thing and an option, then measure both, and try to improve. By estimating and accidentally, only bad results will be.


    Comments

    Popular posts from this blog

    c# - ListView onScroll event -

    PHP - get image from byte array -

    Linux Terminal Problem with Non-Canonical Terminal I/O app -