Hi Jb,

Let's see if I can rephrase the question a bit--in other words, how to
I create a method that has an open generic type (like List<T>) as the
return type, using Cecil?


On Mar 31, 6:38 am, Jb Evain <[email protected]> wrote:
> Hey Philip,
>
> On 3/31/09, Philip_L <[email protected]> wrote:
>  >  ...and if the return type is set to an open generic type of List<T>,
>
> >  the Import() method throws an exception. Is there something I have to
> >  do with Cecil and the returnType parameter before calling the import
> >  method?
>
> It's hard to say without more details about the exception, or better
> yet, a test case ;)
>
> My guess would be that if the return type is a List<T>, then the
> return type is an (open) generic instance of, taking as a
> GenericArgument a GenericParameter, the T.
>
> Then I guess Cecil is missing some context about what T is if you try
> to import it. But again, hard to figure it out without more
> precisions.
>
> --
> Jb Evain  <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to