Hey Jb, I'm again having some trouble around generics. I don't seem to be able to wrap my head around it...
The situation is pretty simple. I create a GenericInstanceType representing System.Nullable<int>. I want to get the value of its HasValue property, i.e. call it's GetMethod method. Trouble is, the only way to get that method is via a TypeDefinition (i.e. Resolve()), but a TypeDefinition doesn't contain the type parameters, obviously, so I end up with IL like this: call instance bool [mscorlib]System.Nullable`1::get_HasValue() Instead of: call instance bool [mscorlib]System.Nullable`1<int>::get_HasValue() The solution must be very trivial, but I just cannot see it. Thanks! -- -- mono-cecil
