【问题标题】:Are there libraries that convert from Expression trees or CodeDOM to Reflection.Emit?是否有从 Expression 树或 CodeDOM 转换为 Reflection.Emit 的库?
【发布时间】:2011-11-10 22:13:52
【问题描述】:

我发现了一个有趣的库 converts expression trees to CodeDOM。我想知道是否有任何库可以从 Expressions 树或 CodeDOM 对象转换为 Reflection.Emit 对象?

【问题讨论】:

    标签: c# reflection expression-trees codedom reflection.emit


    【解决方案1】:

    LambdaExpression.CompileToMethod 可能是您想要的?它可以向 MethodBuilder 发出表达式树。

    【讨论】:

      猜你喜欢
      • 2011-01-22
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 2014-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-17
      相关资源
      最近更新 更多