Hi,

You have to take different things into account:

*) Where the GenericParameter is defined, on a type or on a method,
that's necessary if you want to map a GenericParameter to its
corresponding argument.
*) The position of the GenericParameter, that gives you the position
of the corresponding argument.


On Fri, Nov 19, 2010 at 5:25 PM, Greg Young <[email protected]> wrote:
> I have a method reference:
> {System.Void TestProject.IFoo`1<System.Int32>::Foo(T)}
> I can't seem to figure out how to tie the T to System.Int32 I can get the
> generic arguments off the declaring type but I have a name (T) and they
> don't seem to have this info on them? eg:
> ((GenericInstanceType) m1.DeclaringType).GenericArguments
> In the parameter type I see a position which seems like it may be an index
> back into the generic arguments. Is this correct?
> Greg
>
> --
> Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de
> votre attention
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to