Ejemplo n.º 1
0
 /// <summary>
 /// Calls the given method virtually.  Pops its arguments in reverse order (left-most deepest in the stack), and pushes the return value if it is non-void.
 ///
 /// The `this` reference should appear before any arguments (deepest in the stack).
 ///
 /// The method invoked at runtime is determined by the type of the `this` reference.
 ///
 /// If the method invoked shouldn't vary (or if the method is static), use Call instead.
 /// </summary>
 public Emit CallVirtual(MethodInfo method, Type constrained = null, Type[] arglist = null)
 {
     InnerEmit.CallVirtual(method, constrained, arglist);
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Calls the given method virtually.  Pops its arguments in reverse order (left-most deepest in the stack), and pushes the return value if it is non-void.
 ///
 /// The `this` reference should appear before any arguments (deepest in the stack).
 ///
 /// The method invoked at runtime is determined by the type of the `this` reference.
 ///
 /// If the method invoked shouldn't vary (or if the method is static), use Call instead.
 /// </summary>
 public Emit CallVirtual(Emit emit, Type constrained = null, Type[] arglist = null)
 {
     InnerEmit.CallVirtual(emit.InnerEmit, constrained, arglist);
     return(this);
 }