System.Reflection.Emit.ILGenerator.EmitCall C# (CSharp) Méthode

EmitCall() private méthode

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

Usage Example

 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