Emitting Symbolic Information with Reflection Emit
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Emitting Symbolic Information with Reflection Emit

Reflection emit allows symbolic information to be defined for a dynamic module. Symbolic information can be defined using the default symbol writer interface or a caller-specified symbol writer interface. Reflection emit provides a convenient high-level abstraction of the low-level symbol writer interfaces in the System.Diagnostics.SymbolStore namespace.

The caller must express an intention that a dynamic module will contain symbolic information by calling the appropriate method to define the dynamic module. The various options for creating dynamic modules with symbolic information are described in Defining a Dynamic Module. It is an error to call a symbol writer method for a dynamic module that has not been created with the intention of containing symbolic information.

Reflection emit provides the following methods for emitting symbolic information:

© 2016 Microsoft