How LINQ works internally?

前端 未结 5 1728
滥情空心
滥情空心 2020-11-28 20:06

I love to use LINQ on .net, but I wonder to know how does that works internally?

Does anyone know that?

Thks.

5条回答
  •  -上瘾入骨i
    2020-11-28 20:34

    Basically linq is a mixture of some language facilities (compiler) and some framework extensions. So when you write linq queries, they get executed using appropriate interfaces such as IQuerable. Also note that the runtime has no role in linq.

    But it is difficult to do justice to linq in a short answer. I recommend you read some book to get yourself in it. I am not sure about the book that tells you internals of Linq but Linq in Action gives a good handson about it.

提交回复
热议问题