To check if the assembly is dynamic:
if (assembly.ManifestModule is System.Reflection.Emit.ModuleBuilder)
This took me a while to figure out, so here it is asked and answered.
Update:
In .NET 4.0, there is now a property:
if (assembly.IsDynamic)
To check if the assembly is dynamic:
if (assembly.ManifestModule is System.Reflection.Emit.ModuleBuilder)
This took me a while to figure out, so here it is asked and answered.
Update:
In .NET 4.0, there is now a property:
if (assembly.IsDynamic)