System.Reflection.Emit.ILGenerator.EmitCalli C# (CSharp) Method

EmitCalli() private method

private EmitCalli ( System opcode, System callingConvention, System returnType, System parameterTypes, System optionalParameterTypes ) : void
opcode System
callingConvention System
returnType System
parameterTypes System
optionalParameterTypes System
return void
        public virtual void EmitCalli(System.Reflection.Emit.OpCode opcode, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Type[] optionalParameterTypes) { }
        public virtual void EmitWriteLine(System.Reflection.Emit.LocalBuilder localBuilder) { }

Usage Example

示例#1
0
        static public void Emit(this ILGenerator body, IntPtr function, Type type, Signature signature)
        {
            switch (IntPtr.Size)
            {
            case 4: body.Emit(OpCodes.Ldc_I4, function.ToInt32()); break;

            case 8: body.Emit(OpCodes.Ldc_I8, function.ToInt64()); break;

            default: throw new NotSupportedException();
            }
            body.EmitCalli(OpCodes.Calli, CallingConventions.Standard, type, signature, null);
        }
All Usage Examples Of System.Reflection.Emit.ILGenerator::EmitCalli