Creating a class for an interface at runtime, in C#

后端 未结 3 653
太阳男子
太阳男子 2021-02-14 11:08

I\'m looking at taking a set of objects, let\'s say there\'s 3 objects alive at the moment, which all implement a common interface, and then wrap those objects inside a fourth o

3条回答
  •  执念已碎
    2021-02-14 12:08

    Did you really need to create the assembly at runtime?

    Probably you don't need it.

    c# give you Action, the is operator and lambda/delegates...

提交回复
热议问题