stakx / TypeNameFormatter

A small .NET library for formatting type names à la C#.
MIT License
33 stars 4 forks source link

Open generic type `Nullable<T>` gets rendered as "?" #16

Closed stakx closed 6 years ago

stakx commented 6 years ago

The transform for nullable types to question mark syntax makes sense for closed generic types such as Nullable<int>, but not so much for the generic type definition Nullable<> itself.

stakx commented 6 years ago

Fixed in eb875cad61ee1500737522178407b3183fa85c99. For the generic type definition of Nullable<>, the transform is not applied.