gregoryyoung1 at gmail.com
Sat Feb 14 22:47:49 UTC 2015
I have to pass by lookup values. My unmanaged is running in the context of
On Saturday, February 14, 2015, Jonathan Chambers <joncham at gmail.com> wrote:
> You could pass the manged MethodInfo* object directly into managed,
> retrieving it in native code by calling: mono_method_get_object
> Alternatively, you could pass a System.RuntimeMethodHandle struct into
> managed code (with the MonoMethod* as the value in that structure) and
> call MethodBase.GetMethodFromHandle to retrieve the method from that handle
> when needed.
> - Jonathan
> On Sat, Feb 14, 2015 at 3:56 PM, Greg Young <gregoryyoung1 at gmail.com
>> Let's say I have a MonoMethod in unmanaged code. I want to pass some
>> data out of that code back into managed code (using some identifiers
>> of the monomethod) so that the managed code can obtain a MethodInfo
>> via reflection.
>> At first I thought about passing the token(s). I cannot however find
>> anyway of looking up a MethodInfo based on its token (nor a type ...).
>> I could get the type and then iterate over the methods but this seems
>> like a bad idea.
>> 1) Am I missing something with tokens on the managed side?
>> 2) Is there some other way of doing this that I am missing?
>> Studying for the Turing test
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
Studying for the Turing test
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list