Use GetElementType () and GetElementMethod ().

On Wednesday, May 5, 2010, Timwi <[email protected]> wrote:
> Hi,
>
> I have some code that looks like this ...
>
> void SomeMethod(TypeReference tr)
> {
>     if (tr is GenericInstanceType)
>         tr = tr.GetOriginalType();
>     // ... some more code
> }
>
> Given that .GetOriginalType() no longer exists, what is the
> recommended way to do this now? And how for the similar case of a
> GenericInstanceMethod?
>
> Thanks!
> Timwi
>
> --
> --
> mono-cecil
>

-- 
Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to