On 3/31/09, Philip_L <[email protected]> wrote: > 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?
The return type would be a GenericInstanceType, whose ElementType would be a TypeReference to System.Collections.List`1. The first GenericArgument of the GenericInstanceType would be a GenericParameter. This GenericParameter would be the T, be it defined on a type or a method. -- Jb Evain <[email protected]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
