Hey,
On Sat, May 1, 2010 at 5:55 PM, Jan <[email protected]> wrote:
> I have a int?& TypeReference and need a way to remove the &. I have
> tried Resolve and GetElementType but both returns a Nullable'1.
What you actually have is:
ByReferenceType
ElementType:
GenericInstanceType:
ElementType:
Nullable<T>
GenericArguments:
System.Int32
As I said earlier, Resolve is the process of getting the definition of
a reference, so this has nothing to do with what you want here.
GetElementType return the original type when dealing with complex type
specifications. In that case, it's Nullable<T>. But you can simply get
the ElementType of the ByReferenceType to get what is passed by ref.
--
Jb Evain <[email protected]>
--
--
mono-cecil