Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.3] numeric IntPtr #29625

Closed
Tracked by #30071
BillWagner opened this issue May 25, 2022 · 0 comments · Fixed by #29907
Closed
Tracked by #30071

[17.3] numeric IntPtr #29625

BillWagner opened this issue May 25, 2022 · 0 comments · Fixed by #29907
Assignees
Labels
🏁 Release: .NET 7 Work items for the .NET 7 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3 resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution]

Comments

@BillWagner
Copy link
Member

BillWagner commented May 25, 2022

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

@PRMerger7 PRMerger7 added the Pri3 label May 25, 2022
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label May 25, 2022
@BillWagner BillWagner self-assigned this May 26, 2022
@BillWagner BillWagner added doc-idea Indicates issues that are suggestions for new topics [org][type][category] 🏁 Release: .NET 7 Work items for the .NET 7 release Pri1 High priority, do before Pri2 and Pri3 and removed Pri3 ⌚ Not Triaged Not triaged labels May 26, 2022
BillWagner added a commit to BillWagner/docs that referenced this issue Jun 17, 2022
Fixes dotnet#29625

The types `nint` and `nuint` are now aliases for `System.IntPtr` and `System.NuintPtr`, respectively.

These updates mostly involve removing text that described how the `nint` and `nuint` types behaved differently than the underlying types. They now behave the same.
@dotnet-bot dotnet-bot added the resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution] label Jun 17, 2022
BillWagner added a commit that referenced this issue Jun 17, 2022
* Add updates for numeric IntPtr

Fixes #29625

The types `nint` and `nuint` are now aliases for `System.IntPtr` and `System.NuintPtr`, respectively.

These updates mostly involve removing text that described how the `nint` and `nuint` types behaved differently than the underlying types. They now behave the same.

* Remove generic restriction on nint

The `nint` and `nuint` types can now be used as the type parameter on generic Attribute classes.

Also, fix any warnings.

* add quotes on F1 keyword

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 7 Work items for the .NET 7 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3 resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution]
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants