RE: GetMethod disambiguate

2012-01-08 Thread Greg Keogh
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 :-( I'll bet there is a way, but it will take too long to

Re: GetMethod disambiguate

2012-01-08 Thread Mark Hurd
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 wrote: > Folks, I

GetMethod disambiguate

2012-01-06 Thread Greg Keogh
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(); I can't figure out how to call GetMethod(???) to get the first one. Anyone know off the top of their head?! Greg