Expression Lambda versus Statement Lambda

前端 未结 8 927
北荒
北荒 2020-12-30 02:02

Fundamentally, is there any difference between a single-line expression lambda and a statement lambda? Take the following code, for example:

private delegate         


        
8条回答
  •  误落风尘
    2020-12-30 02:25

    Personnaly, i prefer the Lambda Expression. The Expression have a value where the Statement does not.

    i think the following links can help you :

    http://lambda-the-ultimate.org/node/1044

提交回复
热议问题