In the previous post I showed how to consume extension methods without modifying either the assembly containing the extension methods or the assembly being extended. The price for this was having to create a third assembly. In this post, I will bring the scenario much close to the desired state.
Before I do that, I will illustrate how I would like IronPython to behave.
First, again we have two assemblies …
And what we would like to do is simply consume the extension methods - something like this
As I demonstrated in my last post, it’s not that simple.
A little bit of C# and some CodeDOM magic and we can do this…