Dear ladies and sirs.
I have a class A, which implements interface I:
class A: I
{
// implementation of I
}
There is another interface J, which extends I:
interface J : I
{
// J methods and properties.
}
I would like to emit a dynamic class B, which would look like so:
class B : A, J
{
// All the constructors of A
// All the methods of J, which are not implemented by A. Their implementation would just throw NotImplementedException()
}
I have enough knowledge in Reflection.Emit to do it from scratch, but, alas, I do not really wish to. Does anyone know a library, which can do that?
Thanks.
P.S.
I am aware of the Castle project, but never really used it and do not know whether they have a ready solution for me.