Skip to content

Champion: numeric IntPtr #6065

@jcouv

Description

@jcouv

numeric IntPtr

Summary

System.IntPtr and System.UIntPtr become numeric types, aliased by nint and nuint, and gain the built-in status of nint and nuint.

Motivation

As part of numerics work for .NET 7, System.IntPtr and System.UIntPtr are becoming proper numeric types.
So the distinction between native integer types and their underlying types becomes unnecessary.

Detailed design

https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/numeric-intptr.md

Drawbacks

Alternatives

Unresolved questions

Design meetings

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions