Difference between expression lambda and statement lambda

后端 未结 4 1361
长情又很酷
长情又很酷 2021-02-01 03:38

Is there a difference between expression lambda and statement lambda?

If so, what is the difference?

Found this question in the below link but could not understa

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 04:19

    lampda expression is an anonymous function that the compiler can either turn into a Func or an Expression> (inferred by compiler depending on usage).

    It is not entirely clear what you mean by "expression lamdba", but if you have heard the phrase in a podcast/webcast or something it is probably either referring to a lambda expression. Or it could be the property Expression.Lambda, which you use to obtain a lambda from an Expression instance.

提交回复
热议问题