Lambda returning another lambda

后端 未结 4 1971
自闭症患者
自闭症患者 2021-02-08 15:59

is there any way how to return lambda from another lambda recursively?

All I want to do is finite state machine, implemented as lambda, which returns lambda implementin

4条回答
  •  佛祖请我去吃肉
    2021-02-08 16:14

    You can have a method which builds and returns an expression tree:

    public Expression GetExpression()
    {
    
    }
    

    Also building expression trees in .NET 4.0 has been greatly enhanced.

提交回复
热议问题