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 solve the brain-teaser
and find it, so I just did a LINQ Where on GetMethods() where the Name is
"CreateObject" and IsGeneric is false. That gives me the single method I
want -- Greg

Reply via email to