How LINQ works internally?

前端 未结 5 1731
滥情空心
滥情空心 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条回答
  •  迷失自我
    2020-11-28 20:56

    LINQ is basically a combination of C# 3.0 discrete features of these:

    • local variable type inference
    • auto properties (not implemented in VB 9.0)
    • extension methods
    • lambda expressions
    • anonymous type initializers
    • query comprehension

    For more information about the journey to get there (LINQ), see this video of Anders in LANGNET 2008:

    http://download.microsoft.com/download/c/e/5/ce5434ca-4f54-42b1-81ea-7f5a72f3b1dd/1-01%20-%20CSharp3%20-%20Anders%20Hejlsberg.wmv

提交回复
热议问题