JB no problem once passed in. You mentioned a special handling for arrays. Could you elaborate?
On Thu, Dec 2, 2010 at 10:37 AM, Greg Young <[email protected]> wrote: > ok I guess I will have to pass it in then. > > > On Thu, Dec 2, 2010 at 10:35 AM, Jb Evain <[email protected]> wrote: > >> On Thu, Dec 2, 2010 at 4:30 PM, Greg Young <[email protected]> >> wrote: >> > When I go to call in the extension method: >> > MethodDefinition.Parameters[0].GetTypeWithGenericResolve(); >> > MethodDefinition is a GenericInstanceMethod it is pointing at a method >> ... >> > Whatever<string>("hello"); >> > Inside of the extension method I call: parameterDefinition.Method to get >> the >> > method. But what I get back is no longer a GenericInstanceMethod. >> >> Right, a GenericInstanceMethod is just a specification of the method >> which declares the parameter. Meaning that the parameter is attached >> to the actual method that the GenericInstanceMethod is instantiating. >> >> -- >> -- >> mono-cecil > > > > > -- > Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de > votre attention > -- Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de votre attention -- -- mono-cecil
