> This code will work on both of Mono and MS.NET, but will fail without
> the WriteGenericSignature patch:
[...]
> Although using a generic type definition directly makes little sense,
> neither makes using tb.MakeGenericType(tb.GetGenericArguments()) much
> more sense, since you still can use the latter in a context that has
> fewer generic arguments.

Ugh. Thanks. It turns out that 
ReferenceEquals(typeof(Foo<>).MakeGenericType(typeof(Foo<>).GetGenericArguments()),
 typeof(Foo<>)) is true and that means that I need to do some fixing...

I guess I had it coming that a major flaw in my understanding would come to 
light after bragging I know so much about Reflection ;-)

Regards,
Jeroen

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to