On 11.07.2013 13:55, mugginsoft wrote:
Hi

I have a MonoAssembly pointer to System.Core.
I obtain a MonoClass pointer to System.Linq.Enumerable with the above
assembly.
This is a static class used to implement LINQ functionality via extensions.
I write the method names to the console.
The signature of the the method I want, ToList() is displayed as:

ToList<TSource>(System.Collections.Generic.IEnumerable`1<TSource>)

However trying to obtain a MonoMethod from
mono_method_desc_search_in_class() for the above method name fails.

It works for me using both mono_class_get_method_from_name ()
and mono_method_desc_search_in_class ().

Odds are that you're not using the correct MonoClass* (it must
System.Linq.Enumerable) or your desc is wrongly formatted.

The parameter's string descriptor is just

        "System.Collections.Generic.IEnumerable`1"

Notice the missing trailing <TSource>.

Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to