What's the return type of a LINQ query?

后端 未结 5 603
轻奢々
轻奢々 2021-02-11 22:20

Is it IEnumerable. As far as I know, the reference always points to a class instance. What instance type does the LINQ query really point to?

5条回答
  •  广开言路
    2021-02-11 23:04

    You can check here for Three parts of Query operation.You can see that the return type of an LINQ query is IEnumerable< int >.

提交回复
热议问题