Is it possible to implement mixins in C#?

前端 未结 9 608
感动是毒
感动是毒 2020-11-29 17:50

I\'ve heard that it\'s possible with extension methods, but I can\'t quite figure it out myself. I\'d like to see a specific example if possible.

Thanks!

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 18:36

    There is an open source framework that enables you to implement mixins via C#. Have a look on http://remix.codeplex.com/.

    It is very easy to implement mixins with this framework. Just have a look on the samples and the "Additional Information" links given on the page.

提交回复
热议问题