The DeclaringType of your MethodReference is a GenericInstanceType with System.Int32 as a generic argument, and the ElementType being a TypeReference to SimpleGenericClass`1.
Now I'm not sure what you exactly mean by open type, as Cecil makes the distinction between the type itself, and its open instantiation. For instance, Cecil makes the differences between: List`1 with one GenericParameter T and List`1<T> which is a GenericInstanceType with the GenericParameter T as a GenericArgument, and the previous representation as an ElementType. On Thu, Oct 28, 2010 at 8:44 PM, Greg Young <[email protected]> wrote: > Given I have a memberreference > {System.Void Coupling.Tests.SimpleGenericClass`1<System.Int32>::Foo(T)} > I want to get the open generic. Not seeing how to do this. Any help is much > appreciated. > Cheers, > Greg > > -- > Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de > votre attention > > -- > -- > mono-cecil -- -- mono-cecil
