How can you inherit from a sealed class using reflection in .Net?

后端 未结 5 2039
青春惊慌失措
青春惊慌失措 2021-01-07 18:19

Before you start firing at me, I\'m NOT looking to do this, but someone in another post said it was possible. How is it possible? I\'ve never heard of inheriting from anythi

5条回答
  •  终归单人心
    2021-01-07 19:06

    It MIGHT (would increase the size if I could). According to the guys on freenode, it would involved modifying the byte code, using Reflection.Emit, and handing the JIT a new set of byte code.

    Not that I KNOW how ... it was just what they thought.

提交回复
热议问题