System.Reflection.Emit Namespace

Switch View :
ScriptFree
.NET Framework Class Library
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.

Classes

  Class Description
Public class AssemblyBuilder Defines and represents a dynamic assembly.
Public class ConstructorBuilder Defines and represents a constructor of a dynamic class.
Public class CustomAttributeBuilder Helps build custom attributes.
Public class DynamicILInfo Provides 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 class DynamicMethod Defines and represents a dynamic method. This class cannot be inherited.
Public class EnumBuilder Describes and represents an enumeration type.
Public class EventBuilder Defines events for a class.
Public class FieldBuilder Defines and represents a field. This class cannot be inherited.
Public class GenericTypeParameterBuilder Defines and creates generic type parameters for dynamically defined generic types and methods. This class cannot be inherited.
Public class ILGenerator Generates Microsoft intermediate language (MSIL) instructions.
Public class LocalBuilder Represents a local variable within a method or constructor.
Public class MethodBuilder Defines and represents a method (or constructor) on a dynamic class.
Public class MethodRental Provides a fast way to swap method body implementation given a method of a class.
Public class ModuleBuilder Defines and represents a module. Get an instance of ModuleBuilder by calling DefineDynamicModule.
Public class OpCodes Provides field representations of the Microsoft Intermediate Language (MSIL) instructions for emission by the ILGenerator class members (such as Emit).
Public class ParameterBuilder Creates or associates parameter information.
Public class PropertyBuilder Defines the properties for a type.
Public class SignatureHelper Provides methods for building signatures.
Public class TypeBuilder Defines and creates new instances of classes during runtime.
Public class UnmanagedMarshal Represents the class that describes how to marshal a field from managed to unmanaged code. This class cannot be inherited.
Structures

  Structure Description
Public structure EventToken Represents the Token returned by the metadata to represent an event.
Public structure FieldToken The FieldToken struct is an object representation of a token that represents a field.
Public structure Label Represents a label in the instruction stream. Label is used in conjunction with the ILGenerator class.
Public structure MethodToken The MethodToken struct is an object representation of a token that represents a method.
Public structure OpCode Describes a Microsoft intermediate language (MSIL) instruction.
Public structure ParameterToken The ParameterToken struct is an opaque representation of the token returned by the metadata to represent a parameter.
Public structure PropertyToken The PropertyToken struct is an opaque representation of the Token returned by the metadata to represent a property.
Public structure SignatureToken Represents the Token returned by the metadata to represent a signature.
Public structure StringToken Represents a token that represents a string.
Public structure TypeToken Represents the Token returned by the metadata to represent a type.
Enumerations

  Enumeration Description
Public enumeration AssemblyBuilderAccess Defines the access modes for a dynamic assembly.
Public enumeration FlowControl Describes how an instruction alters the flow of control.
Public enumeration OpCodeType Describes the types of the Microsoft intermediate language (MSIL) instructions.
Public enumeration OperandType Describes the operand type of Microsoft intermediate language (MSIL) instruction.
Public enumeration PackingSize Specifies one of two factors that determine the memory alignment of fields when a type is marshaled.
Public enumeration PEFileKinds Specifies the type of the portable executable (PE) file.
Public enumeration StackBehaviour Describes how values are pushed onto a stack or popped off a stack.