Search code examples
linqcompact-frameworkcilreflection.emitilasm

ILASM for Compact Framework?


I'm working with Linq expression trees (from the db4o/Mainsoft/Mono port) on the Compact Framework. Since System.Reflection.Emit doesn't exist, I can't compile my LambdaExpressions into delegates, which I want to do for performance reasons.

I thought maybe I could transform my expression tree into IL and basically provide the missing Emit functionality that way, but then I realized that I'd have to either run a WinCE-based ILASM on it or write my own PE headers and assmebly metadata.

I'd much rather have ILASM available. Is it?


Solution

  • Apparently, I can compile Mono.Cecil for use under the Compact Framework, which will allow me to emit and load assemblies.