System.RuntimeMethodHandle.GetFunctionPointer C# (CSharp) Method

GetFunctionPointer() private method

private GetFunctionPointer ( ) : IntPtr
return IntPtr
        public extern IntPtr GetFunctionPointer();

Usage Example

 public static RedirectCallsState RedirectCalls(RuntimeMethodHandle from, RuntimeMethodHandle to)
 {
     // GetFunctionPointer enforces compilation of the method.
     var fptr1 = from.GetFunctionPointer();
     var fptr2 = to.GetFunctionPointer();
     return PatchJumpTo(fptr1, fptr2);
 }
All Usage Examples Of System.RuntimeMethodHandle::GetFunctionPointer