This section describes a set of managed types in the System.Reflection.Emit namespace that enable your application to emit metadata and Microsoft intermediate language (MSIL) at run time. Script engines and compilers are the primary users of this namespace. In this section, the functionality provided by the System.Reflection.Emit namespace is referred to as reflection emit.
Reflection emit provides the following capabilities:
Defines lightweight global methods at run time, using the DynamicMethod class, and executes them using delegates.
Generates assemblies at run time.
Defines types in modules at run time, creates instances of these types, and invokes their methods.
Describes the class that represents types in reflection, and that is the base class of TypeBuilder, which represents dynamic types in reflection emit. This class is key to the use of these technologies.