When we get a compiler with the new nint/nuint feature we should change our current ifdef pattern in the Utf8String code:
|
#if TARGET_64BIT |
|
using nint = System.Int64; |
|
using nuint = System.UInt64; |
|
#else // TARGET_64BIT |
|
using nint = System.Int32; |
|
using nuint = System.UInt32; |
|
#endif // TARGET_64BIT |
And just use the new feature.
For the OOB Utf8String package, we chose to use Int64 and UInt64 for nint and nuint, because we can't compile twice for each bitness.