I've been hanging out with the Aspect Oriented Programming crowd, and they talk about doing runtime weaving where they add fields and functions to an already existing compiled class in the library using CodeDOM. However, I've been unable to find any source code for how this might be done.
I need code that will take an existing class and add functionality to it at runtime.
If a specific example is necessary, I'd like to take the base class Control and add a virtual function with the signature
Anyone have a clue how to do this, or if it's possible? The guys in AOP land say they are doing it, but again, I haven't seen any code.
I know this is a tough question, so I'm throwing out the big points.