Reflecting on Generated Code

  • Nick Harrison


Generated code will always be code that was not known at compile time. The whole point of generating code is to make it easier to change the business rules after deployment. This is where reflection comes in. Reflection allows you to access metadata about your code at runtime. With it, you can load an assembly, discover the types in the assembly, create an instance of these types, and systematically execute any method discovered in these types. This is exactly what you need to evaluate new business logic.


Base Class Business Logic Business Rule Type Rule Return Type 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Nick Harrison 2017

Authors and Affiliations

  • Nick Harrison
    • 1
  1. 1.LexingtonUSA

Personalised recommendations