I've figured it out why it wouldn't map the dynamic class;
It was all about correctly naming the assembly.
The assemblyname has to be defined without .dll in its name and the
name of the module has to be the same as the assemblyname, but
with .dll at the end.
Like this:
var aName = new AssemblyName("DynamicAssembly");
var ab = AppDomain.CurrentDomain.DefineDynamicAssembly(aName,
AssemblyBuilderAccess.RunAndSave);
var mb = ab.DefineDynamicModule("DynamicAssembly.dll");
var typeBuilder = mb.DefineType("Dynamic.Test",
TypeAttributes.Public);
<....>
ab.Save("DynamicAssemblyExample.dll");
Regards,
Freerk Jelsma
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.