H
hvj
Hi all,
Is it possible to 'automatically' expose the members of a contained
class in C# (just as with COM) that implements some interface that
that the containing class wants to implement by delegating to the
contained class? Off course it is possible to implement all the
properties and methods in the containing class by calling the same
property on the contained class, but if it is possible I would like to
avoid that.
I thought maybe with the new possibilities with dynamic methods, class
extension etc this might be possible.
Another possibility would be generating the code that implements the
properties and methods. A sollution in that direction would also be
appreciated.
Regards,
Henk
Is it possible to 'automatically' expose the members of a contained
class in C# (just as with COM) that implements some interface that
that the containing class wants to implement by delegating to the
contained class? Off course it is possible to implement all the
properties and methods in the containing class by calling the same
property on the contained class, but if it is possible I would like to
avoid that.
I thought maybe with the new possibilities with dynamic methods, class
extension etc this might be possible.
Another possibility would be generating the code that implements the
properties and methods. A sollution in that direction would also be
appreciated.
Regards,
Henk