lundi 16 septembre 2019

Get TypeBuilder from defined type in an AssemblyBuilder

Based on the other question, a Type cannot be converted into a TypeBuilder.

However, we have a method that returns a AssemblyBuilder. It already has types built and defined. We can know that some types might not be correctly converted, however, there is no direct method to get to the TypeBuilder and manually fix the issues.

It seems to me very strange to be returning an AssemblyBuilder and not provide a method to revise the constructed objects before finalizing it into an Assembly, so maybe I'm missing something.

So, Is there a way where we can take a defined type from a AssemblyBuilder and either revise it or replace it outright?





Aucun commentaire:

Enregistrer un commentaire