If I understand correctly, you need to create a class in runtime and load it dynamically and instantiate it.
I remember a class library called "Code Generation Library" or "cglib" is usually used for such scenarios.
I know it is used for creating dynamic classes in interception and aspect oriented frameworks.