Creating a DynamicType in .NET implementing an interface but using member implementations from a base class
问题 I am attempting to generate a dynamic class implementing an interface, but where one or more of the members already exists in the base. I compiled the following code in C# and examined it in reflector to see what the C# compiler does. class BaseClass { public string Bob { get { return "Bob"; } } } interface IStuff { string Bob { get; } } class SubClass : BaseClass, IStuff { } Reflector does not show any implementation in SubClass. .class private auto ansi beforefieldinit SubClass extends