Hey,

Nested generic types are instantiated as A.B<T,M> :) That's what you should
create.

Jb

On Mon, May 9, 2016 at 11:12 AM, Dudi Keleti <[email protected]> wrote:

>
> I have these classes
>
> internal static class A<T>
> {
>     private sealed class B<M>
>     {
>     }
> }
>
> In class B I have method that I want to create MethodReference from its
> MethodDefinition.
>
> For this I call MakeGenericInstanceType on the methodDef.DeclaringType
> with methodDef.DeclaringType.GenericParameters
>
> When I do it I got generic type that looks like this: A.B<T,M> but what I
> want to achieve its A<T>.B<M>
>
> What should I do?
>
> Thanks for any help
>
> --
> --
> --
> mono-cecil
> ---
> You received this message because you are subscribed to the Google Groups
> "mono-cecil" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to