Hi, On Mon, Apr 19, 2010 at 4:30 PM, Michael Sync <[email protected]> wrote: > Can I create one specific assembly and import method by CilWorker in order > to get the similar functionality of DynamicMethod?
You mean you want to create one assembly with one method in order to emulate a DynamicMethod? That's not a good idea. The main point of DynamicMethod is that the code is garbage collectable. When you use Cecil with something which is not .net 4.0, you can not garbage collect assemblies, plus it's quite resource demanding to load an assembly. So multiplying the number of loaded assemblies is really not a good strategy. If you have to generate an assembly on the CF, do it as few times as possible. -- Jb Evain <[email protected]> -- -- mono-cecil Subscription settings: http://groups.google.com/group/mono-cecil/subscribe?hl=en
