I need to generate a new interface at run-time with all the same members as an existing interface, except that I will be putting different attributes on some of the methods (some of the attribute parameters are not known until run-time). How can it be achieved?
Share
Your question isn’t very specific. If you update it with more information, I’ll flesh out this answer with additional detail.
Here’s an overview of the manual steps involved.
TypeAttributes.Interfaceto make your type an interface.TypeBuilder.CreateTypeto finish building your interface.