I'm creating a dynamic class in a dynamic assembly at runtime, and want to be able to Define methods for that class on demand.
Ex.
- Build the Type X
- Define Method GetA on Type X
- Create Type X
- Call GetA
- use same type builder for Type X
- Define new Method GetB on Type X
- Recreate type X, that now has both GetA and GetB
if that is impossible then I will have to build the type on demand for one of the methods, and to do that then I have to create the assembly as well, on each time.
Any Ideas, Thanks