Puts the specified instruction and metadata token for the specified field onto the stream of instructions.
[Visual Basic] Overloads Overridable Public Sub Emit( _ ByVal opcode As OpCode, _ ByVal field As FieldInfo _ ) [C#] public virtual void Emit( OpCode opcode, FieldInfo field ); [C++] public: virtual void Emit( OpCode opcode, FieldInfo* field ); [JScript] public function Emit( opcode : OpCode, field : FieldInfo );
The instruction values are defined in the OpCodes enumeration. The location of field is recorded so that the instruction stream can be patched if necessary when persisting the module to a PE.
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace | ILGenerator.Emit Overload List