dynamic-assemblies

.net dynamic assemblies

I was recently asked if I knew anything about Dynamic Assemblies in .Net. The short answer was - I don't. I have found plenty of articles that describe how to create a dynamic assembly but none that truely explain the following: What they are (other than they are run directly from memory) What advantages they provide over static assem...

How can I change the name of a dynamic assembly after it has been created?

Is there any way to change the name of a dynamic assembly after it has been created? I'm using a framework that uses dynamic methods, and it is creating a dynamic assembly with the same name as my main assembly (which causes problems with WPF when it tries to load resources). So I need to find a workaround, and I thought of trying to cha...

What might cause this ExecutionEngineException?

I am trying to use Reflection.Emit to generate a wrapper class in a dynamic assembly. Automatic wrapper generation is part of a new open-source library I'm writing called "GoInterfaces". The wrapper class implements IEnumerable<string> and wraps List<string>. In C# terms, all it does is this: class List1_7931B0B4_79328AA0 : IEnumerable...

Extension Method in Dynamically Generated Assembly?

I'm trying to include an extension methods static class in a dynamically generated assembly, except that i keep getting a compiler error of 'Type expected' at line 6, column 28, which happens to be on the word 'this'. If i remove 'this' no error is returned (but then it is not an extension method). public static void CodeDomDooDad() ...