[Mono-list] Obtaining a generic MonoMethod

Robert Jordan robertj at gmx.net
Sat Dec 2 17:46:51 EST 2006


Andreas Färber wrote:
> Hello,
> 
> 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*.

Unlike System.Collections.IList, System.Collections.IList`1
doesn't define the member "Add". ICollection`1 does it.

Robert



More information about the Mono-list mailing list