[Mono-list] Obtaining a generic MonoMethod

Andreas Färber andreas.faerber at web.de
Sat Dec 2 16:29:57 EST 2006


I would like to invoke the generic method IList<T>.Add(T) on an  
object - how can I do this?

I've been able to get a MonoClass of "IList`1" but neither using  
mono_class_get_method_from_name nor using a MonoMethodDesc did I  
succeed in retrieving a non-zero MonoMethod*.

The intent is to invoke the method on a collection interface  
implementing IList<T> where the T type is known but the implementing  
class is not, so that I cannot just get "MyClass:Add(MyType)".


More information about the Mono-list mailing list