Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.Reflection.Emit Namespace

The System.Reflection.Emit namespace contains classes that allow a compiler or tool to emit metadata and Microsoft intermediate language (MSIL) and optionally generate a PE file on disk. The primary clients of these classes are script engines and compilers.

  ClassDescription
Public classAssemblyBuilderDefines and represents a dynamic assembly.
Public classConstructorBuilderDefines and represents a constructor of a dynamic class.
Public classCustomAttributeBuilderHelps build custom attributes.
Public classDynamicILInfoProvides support for alternative ways to generate the Microsoft intermediate language (MSIL) and metadata for a dynamic method, including methods for creating tokens and for inserting the code, exception handling, and local variable signature blobs.
Public classDynamicMethodDefines and represents a dynamic method that can be compiled, executed, and discarded. Discarded methods are available for garbage collection.
Public classEnumBuilderDescribes and represents an enumeration type.
Public classEventBuilderDefines events for a class.
Public classFieldBuilderDefines and represents a field. This class cannot be inherited.
Public classGenericTypeParameterBuilderDefines and creates generic type parameters for dynamically defined generic types and methods. This class cannot be inherited.
Public classILGeneratorGenerates Microsoft intermediate language (MSIL) instructions.
Public classLocalBuilderRepresents a local variable within a method or constructor.
Public classMethodBuilderDefines and represents a method (or constructor) on a dynamic class.
Public classMethodRentalProvides a fast way to swap method body implementation given a method of a class.
Public classModuleBuilderDefines and represents a module in a dynamic assembly.
Public classOpCodesProvides field representations of the Microsoft Intermediate Language (MSIL) instructions for emission by the ILGenerator class members (such as Emit).
Public classParameterBuilderCreates or associates parameter information.
Public classPropertyBuilderDefines the properties for a type.
Public classSignatureHelperProvides methods for building signatures.
Public classTypeBuilderDefines and creates new instances of classes during run time.
Public classUnmanagedMarshal Obsolete. Represents the class that describes how to marshal a field from managed to unmanaged code. This class cannot be inherited.

  StructureDescription
Public structureEventTokenRepresents the Token returned by the metadata to represent an event.
Public structureFieldTokenThe FieldToken struct is an object representation of a token that represents a field.
Public structureLabelRepresents a label in the instruction stream. Label is used in conjunction with the ILGenerator class.
Public structureMethodTokenThe MethodToken struct is an object representation of a token that represents a method.
Public structureOpCodeDescribes a Microsoft intermediate language (MSIL) instruction.
Public structureParameterTokenThe ParameterToken struct is an opaque representation of the token returned by the metadata to represent a parameter.
Public structurePropertyTokenThe PropertyToken struct is an opaque representation of the Token returned by the metadata to represent a property.
Public structureSignatureTokenRepresents the Token returned by the metadata to represent a signature.
Public structureStringTokenRepresents a token that represents a string.
Public structureTypeTokenRepresents the Token returned by the metadata to represent a type.

  EnumerationDescription
Public enumerationAssemblyBuilderAccessDefines the access modes for a dynamic assembly.
Public enumerationFlowControlDescribes how an instruction alters the flow of control.
Public enumerationOpCodeTypeDescribes the types of the Microsoft intermediate language (MSIL) instructions.
Public enumerationOperandTypeDescribes the operand type of Microsoft intermediate language (MSIL) instruction.
Public enumerationPackingSizeSpecifies one of two factors that determine the memory alignment of fields when a type is marshaled.
Public enumerationPEFileKindsSpecifies the type of the portable executable (PE) file.
Public enumerationStackBehaviourDescribes how values are pushed onto a stack or popped off a stack.

Community Additions

Show:
© 2014 Microsoft