I haven't looked recently (i.e. with .NET 4.0) but the last I heard
was the Refection API was not really up to date with generics and
you're probably better off getting all the relevant methods (with
GetMethods) and analysing them yourself :-(

On 7 January 2012 10:50, Greg Keogh <[email protected]> wrote:
> Folks, I’m using reflection to get a method of an object, but there are two
> methods that look like this:
>
> Foo.CreateObject();
>
> Foo.CreateObject<T>();
>
> I can’t figure out how to call GetMethod(???) to get the first one. Anyone
> know off the top of their head?!
>
> Greg

-- 
Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)

Reply via email to