convert this LINQ expression into Lambda

后端 未结 7 881
春和景丽
春和景丽 2020-11-29 07:56

Guys, I have a hard time converting this below linq expression(left join implementation) to lambda expression (for learning).

var result = from g in groc         


        
7条回答
  •  醉梦人生
    2020-11-29 08:10

    Here's the heuristic that I follow:

    Favor LINQ expressions over lambdas when you have joins.

    I think that lambdas with joins look messy and are difficult to read.

提交回复
热议问题