[Mono-devel-list] [GENERICS] implementing static TypeBuilder.GetMethod (Field, Constructor)

Martin Baulig martin at ximian.com
Fri Jun 3 00:57:26 EDT 2005


On Mon, 2005-05-30 at 14:20 +0200, Michal Moskal wrote:

> There is a static method in the 2.0 .NET reflection API:
> 
>   MethodInfo TypeBuilder.GetMethod (System.Type t, MethodInfo m)
> 
> there is no documentation on msdn, so I'll skip the link.

Hello,

is this method only in TypeBuilder or also in Type ?  I think if it's
only in TypeBuilder it's not really that useful at all.

> What it does is take instanciated generic type and a method taken from
> the non instanciated generic type m. It then returns the same method
> in t.

We have some unmanaged API in Mono for that, shouldn't be hard exposing
it through that function.

However, you should also be able to implement this entirely in managed
code, I'll have a look at this next week and send you some sample code.

Martin





More information about the Mono-devel-list mailing list