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

EmitCall() private method

private EmitCall ( System opcode, System methodInfo, System optionalParameterTypes ) : void
opcode System
methodInfo System
optionalParameterTypes System
return void
        public virtual void EmitCall(System.Reflection.Emit.OpCode opcode, System.Reflection.MethodInfo methodInfo, System.Type[] optionalParameterTypes) { }
        [System.Security.SecuritySafeCriticalAttribute]

Usage Example

示例#1
0
 private static void EmitCallMethod(ILGenerator il, MethodInfo methodInfo)
 {
     if (methodInfo.IsStatic)
         il.EmitCall(OpCodes.Call, methodInfo, null);
     else
         il.EmitCall(OpCodes.Callvirt, methodInfo, null);
 }
All Usage Examples Of System.Reflection.Emit.ILGenerator::EmitCall