Ejemplo n.º 1
0
        /// <summary>
        /// Emits code for this expression
        /// </summary>
        /// <param name="ilGen">IL generator object</param>
        /// <param name="scope">The scope of this expression</param>
        public override void EmitCode(ILGenerator ilGen, Scope scope)
        {
            // Emit code for all arguments
            foreach (Expression expr in arguments)
            {
                expr.EmitCode(ilGen, scope);
            }

            // Get metadata token for method from symbol table and emit call
            ilGen.Emit(OpCodes.Call, scope.GetMethodInfo(this));
        }