Z.ExtensionMethods icon indicating copy to clipboard operation
Z.ExtensionMethods copied to clipboard

GetSigniature fails on nested generic types

Open ZacharyPatten opened this issue 6 years ago • 0 comments

Description

This is the same as #29 but for the GetSigniature extension method.

class A
{
    class B<D>
    {
        class C<E> {  }
    }
}

typeof(A.B<int>.C<string>).GetSigniature();
typeof(A.B<>.C<>).GetSigniature();

It either throws an InvalidOperationException or returns too many generics for the nested generic signiature.

ZacharyPatten avatar Jan 07 '20 19:01 ZacharyPatten