Lambda Expression Tree Parsing

前端 未结 4 1316
慢半拍i
慢半拍i 2020-12-28 18:51

I am trying to use Lambda Expressions in a project to map to a third party query API. So, I\'m parsing the Expression tree by hand.

If I pass in a lambda expression

4条回答
  •  天涯浪人
    2020-12-28 19:25

    I'm not sure I understand. Where are you "seeing" that? Is that at design-time or run-time? Lambda expressions can be thought of essentially as anonymous delegates, and will operate with deferred execution. So you shouldn't expect to see the value assigned until after execution has passed that line, obviously.
    I don't think that's really what you mean though... if you clarify the question a bit maybe I can help :)

提交回复
热议问题