Reflection - Get the list of method calls inside a lambda expression

前端 未结 5 1575
迷失自我
迷失自我 2021-01-13 08:32

I am trying to find a way to get the list of method calls inside a lambda expression in C# 3.5. For instance, in the code below, I would like to method LookAtThis(Action a)

5条回答
  •  猫巷女王i
    2021-01-13 09:36

    I think you'd need to use Expression Trees instead. See Expression Tree Visualizer Sample and How to: Implement an Expression Tree Visitor.

提交回复
热议问题