public virtual void Emit(System.Reflection.Emit.OpCode opcode, System.Reflection.Emit.SignatureHelper signature)
 {
 }
        /// <summary>
        /// Creates a new DynamicILGenerator instance.
        /// </summary>
        /// <param name="dynamicMethod"> The dynamic method to generate code for. </param>
        public DynamicILGenerator(System.Reflection.Emit.DynamicMethod dynamicMethod)
        {
            if (dynamicMethod == null)
                throw new ArgumentNullException("dynamicMethod");
            this.dynamicMethod = dynamicMethod;
            this.dynamicILInfo = dynamicMethod.GetDynamicILInfo();
            this.bytes = new byte[100];
            this.localVariables = new List<DynamicILLocalVariable>();
            this.signatureHelper = System.Reflection.Emit.SignatureHelper.GetLocalVarSigHelper(null);
            this.labels = new List<DynamicILLabel>();
            this.fixups = new List<Fixup>();

#if DEBUG
            this.operands = new Stack<VESType>();
#endif
        }
 public System.Reflection.Emit.SignatureToken GetSignatureToken(System.Reflection.Emit.SignatureHelper sigHelper)
 {
     throw new PlatformNotSupportedException();
 }
 /// <summary>Puts the specified instruction and a signature token onto the Microsoft intermediate language (MSIL) stream of instructions.</summary>
 /// <param name="opcode">The MSIL instruction to be emitted onto the stream. </param>
 /// <param name="signature">A helper for constructing a signature token. </param>
 /// <exception cref="T:System.ArgumentNullException">
 /// <paramref name="signature" /> is null. </exception>
 /// <param name="generator">The <see cref="T:System.Reflection.Emit.XsILGenerator" /> to emit instructions from</param>
 public static XsILGenerator FluentEmit(this XsILGenerator generator, System.Reflection.Emit.OpCode opcode, System.Reflection.Emit.SignatureHelper signature)
 {
     generator.Emit(opcode, signature);
     return(generator);
 }
示例#5
0
 public abstract void Emit(System.Reflection.Emit.OpCode opcode, System.Reflection.Emit.SignatureHelper signature);