No, no, all is ok )))) Thank you very much for great help!

On 24 май, 14:12, Gábor Kozár <[email protected]> wrote:
> I agree, it's not very intuitive, but that's how it works. You may write
> extension methods, or use ones that I've shown in the discussion to ease the
> problem.
> If you can implement it better, please go ahead.
>
> 2011/5/24 Stanislav <[email protected]>
>
>
>
>
>
>
>
> > > when you Resolve() a TypeReference or MethodReference (or any
> > > other reference), you loose all generic arguments. You have to then
> > restore
> > > those generic arguments by essentially cloning the MethodReference (in
> > your
> > > case), except setting its DeclaringType to the original TypeReference
> > (which
> > > still contains the generic arguments).
>
> > It looks like bug, not as feature )
>
> > --
> > --
> > mono-cecil

-- 
--
mono-cecil

Reply via email to