Пример #1
0
 /// <summary>
 /// Pushes a pointer to the given function onto the stack, as a native int.
 ///
 /// To resolve a method at runtime using an object, use LoadVirtualFunctionPointer instead.
 ///
 /// This method is provided as MethodBuilder cannot be inspected for parameter information at runtime.  If the passed parameterTypes
 /// do not match the given method, the produced code will be invalid.
 /// </summary>
 public Emit LoadFunctionPointer(MethodBuilder method, Type[] parameterTypes)
 {
     InnerEmit.LoadFunctionPointer(method, parameterTypes);
     return(this);
 }
Пример #2
0
 /// <summary>
 /// Pushes a pointer to the given function onto the stack, as a native int.
 ///
 /// To resolve a method at runtime using an object, use LoadVirtualFunctionPointer instead.
 /// </summary>
 public Emit LoadFunctionPointer(MethodInfo method)
 {
     InnerEmit.LoadFunctionPointer(method);
     return(this);
 }