Method GetMethodEntryPoint
GetMethodEntryPoint(MethodBase)
Gets the real entrypoint of the provided method.
nint GetMethodEntryPoint(MethodBase method)
Parameters
method
MethodBase- The method to get the entrypoint of.
Returns
- nint
- A pointer to the real entrypoint of the method.
Remarks
This method must always be implemented. Its result may be treated differently by PlatformTriple depending on whether the implementation sets the flag RequiresBodyThunkWalking. If that flag is set, the return value is presumed to be the start of a thunk chain which eventually leads to the real method body. If it is not set, the return value of this method is used directly.