IL Generator • Generation and compilation of C# code or IL at runtime • Pros: • Analysis of types and current state of the application possible • No performance penalties when using the generated types, unless reflection is used • Cons: • CodeDOM: C# code compilation at runtime is expensive • IL Generator: IL is difficult to write because very cryptic • Difficult review of the generated code, due to code generation at runtime • Generated types cannot be used during development directly because they don’t exist yet Code generation today development time compile time run time CodeDOM/IL Gen