Definition of direct general type

I am posting type definitions for our old support. To do this, I use the following syntax:

[assembly: TypeForwardedTo(typeof(NamespaceA.TypeA))] 

The problem is that I cannot find the correct syntax for generic type definitions (this should be possible based on Eric Lippert post and many other places).

What I expect as a working solution,

 [assembly: TypeForwardedTo(typeof(NamespaceA.TypeA<T>))] 

Any idea how to write correctly, please? Thanks.

+5
source share
1 answer

You can try the following:

 [assembly: TypeForwardedTo(typeof(NamespaceA.TypeA<>))] 
+2
source

Source: https://habr.com/ru/post/1233330/


All Articles