NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

System.Reflection.Emit Namespace

Classes

Class Description
AssemblyBuilder The AssemblyBuilder class is used to define and represent a dynamic assembly.

The dynamic modules in the assembly are saved when the dynamic assembly is saved using the Save method. To generate an executable, the ModuleBuilder.SetEntryPoint method must be called to identify the method that is the entry point to the module. If no entry point is specified, a DLL will be generated.

ConstructorBuilder The ConstructorBuilder class is used to define and represent a constructor on a dynamic class. ConstructorBuilder is used to fully describe a constructor in IL, including the name, attributes, signature, and constructor body. It is used in conjunction with the TypeBuilder class to create classes at run time.
CustomAttributeBuilder CustomAttributeBuilder is a helper class to help build custom attributes.
EnumBuilder The EnumBuilder class is used to describe and represent an enumeration type.
EventBuilder This class is used to define events for a class. An EventBuilder is always associated with a TypeBuilder. The TypeBuilder.DefineEvent method will return a new EventBuilder to a client.
FieldBuilder The FieldBuilder class is used to define and represent a field.
ILGenerator The ILGenerator class generates IL instructions.
LocalBuilder The LocalBuilder class represents a local variable within a method or constructor. A LocalBuilder object can be defined using the DeclareLocal method.
MethodBuilder The MethodBuilder class is used to define and represent a method (or constructor) on a dynamic class. MethodBuilder is used to fully describe a method in IL, including the name, attributes, signature, and method body. It is used in conjunction with the TypeBuilder class to create classes at run time.
MethodRental The MethodRental class provides a fast way to swap method body implementation given a method of a class.
ModuleBuilder The ModuleBuilder class is used to define and represent a module.
OpCodes The IL instruction opcodes supported by the runtime. The IL Instruction Specification describes each Opcode.
ParameterBuilder The ParameterBuilder class is used to create or associate parameter information.
PropertyBuilder The PropertyBuilder class defines the properties for a type.
SignatureHelper The SignatureHelper class provides methods for building signatures.
TypeBuilder The TypeBuilder class is used to define and instantiate classes at run time. TypeBuilder is the root class used to control the creation of dynamic classes in the runtime. TypeBuilder provides a set of routines that are used to define classes, add methods and fields, and then create the class inside the runtime. A new TypeBuilder can be created from a dynamic Module.

Structures

Structure Description
EventToken The EventToken class is an opaque representation of the Token returned by the MetaData to represent an event.
FieldToken The FieldToken class is an object representation of a token that represents a field.
Label The Label class is used with the ILGenerator class to represent a label in the instruction stream.
LocalToken This class is obsolete and is no longer being used. It will be removed in a future release.
MethodToken The MethodToken class is an object representation of a token that represents a method.
OpCode Describes an IL instruction.
ParameterToken The ParameterToken class is an opaque representation of the Token returned by the MetaData to represent a parameter.
PropertyToken The PropertyToken class is an opaque representation of the Token returned by the MetaData to represent a property.
SignatureToken The SignatureToken class is an opaque representation of the Token returned by the MetaData to represent a signature.
StringToken The StringToken class is an object representation of a token that represents a string.
TypeToken The TypeToken class is an opaque representation of the Token returned by the MetaData to represent a type.

Enumerations

Enumeration Description
AssemblyBuilderAccess The AssemblyBuilderAccess class is an enumeration that defines the access modes for a dynamic assembly.
FlowControl FlowControl describes how an instruction alters the flow of control.
OpCodeType Describes the types of the IL instructions.
OperandType Describes the operand type of IL instruction.
PackingSize An enumeration for specifying the packing size of a type.
PEFileKinds Specifies the type of the PE file.
StackBehaviour Describes how values are pushed onto a stack or popped off a stack.