Is there a way to “override” a method with reflection?

The first part of this answer is wrong, I’m only leaving it so that the evolution in the comments makes sense. Please see the EDIT(s). You’re not looking for reflection, but emission (which is the other way around). In particular, there’s a method that does just what you want, lucky you! See TypeBuilder.DefineMethodOverride EDIT: Writing … Read more

tech