Hi, Jb, > On 3/24/09, Wicky <[email protected]> wrote: > > > Could it be enhanced to have the actual name in ReturnType? > > No. It's not a matter of name. What you get is a GenericParameter > instance as it is encoded in the signature. >
But why Reflection can get the proper information in ReturnType and DeclaringType? > > If it's not possible, could you tell me the rule that when to use > > ReturnType and when to use DeclaringType? > > It's a matter of context. > Do you mean for GenericParameter, I should check DeclaringType, and for others, I should use ReturnType? > > I suggest you read a bit of IL using ildasm to understand what's going > on under the hood. > Thanks for your suggestion. I should read. I rely on Cecil so much, I think I'm too lazy now :). Thanks, Wicky --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
