Hey,

On Sat, May 1, 2010 at 6:38 PM, Jan <[email protected]> wrote:
> How can I get the tye? I have inspected the MethodDefinition in the
> debugger and cannot see a correlation between !0 and the DateTime.

If you have:

!0 System.Nullable`1<System.DateTime>::get_Value()

That's a MethodReference, whose DeclaringType is a:

GenericInstanceType
  ElementType:
    TypeReference
      Name: Nullable`1
      GenericParameters: !0
  GenericArguments: System.DateTime

And the ReturnType of the MethodReference is the instance of the
GenericParameter on the Nullable`1 TypeReference.
So you have to map the parameter !0 to its corresponding argument, in
that case, System.DateTime.

-- 
Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to