What are the differences between LinFu.DynamicProxy and Castle.DynamicProxy?

后端 未结 3 922
伪装坚强ぢ
伪装坚强ぢ 2020-12-24 12:24

I am looking at adding logic to a library I am working on that would require the need for a Dynamic Proxy. I would like to get some advice from user\'s who have used these

3条回答
  •  暖寄归人
    2020-12-24 12:40

    Linfu is a more lightweight proxy generator than the Castle proxy generator.

    When deciding which to use, to be honest it doesn't make much difference.

    According to the author, Linfu will greatly outperforms the Castle generator, but in my own observations of real world usage the difference in speed is marginal.

    Having said that Linfu will outperform Castle, and I'm not aware of anything Castle has over it, and so I always use Linfu.

提交回复
热议问题