stakx / TypeNameFormatter

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

Format `System.IntPtr` and `System.UIntPtr` as C# 9 keywords `nint` and `nuint`? #50

Open stakx opened 3 years ago

stakx commented 3 years ago

This isn't as clear-cut as it may be, since System.IntPtr has traditionally been used in interop scenarios to represent unmanaged pointers outside of unsafe contexts. nint "feels" much closer to a regular integral type than it does to void*, so I'm not sure if we should throw those two types in the same basket as all the other primitive types.