Skip to content

[release/5.0-preview4] Add new IntPtr/UIntPtr API surface#35248

Merged
tannergooding merged 2 commits intodotnet:release/5.0-preview4from
tannergooding:prev4-nint-nuint
Apr 23, 2020
Merged

[release/5.0-preview4] Add new IntPtr/UIntPtr API surface#35248
tannergooding merged 2 commits intodotnet:release/5.0-preview4from
tannergooding:prev4-nint-nuint

Conversation

@tannergooding
Copy link
Member

This backports #307 to the release/5.0-preview4 branch that was snapped yesterday. While not strictly required, this is a nice-to-have as the corresponding language feature for nint/nuint is in for the same preview.

* Add new IntPtr surface

* Add new UIntPtr API surface

* Add sequential layout to match [U]Int32

* Add interfaces and sequential layout

* Add interfaces

* Add namespaces

* Add namespaces

* Update UIntPtr.cs

* Update IntPtr.cs

* Change style

* make non versionable, elide copy

* fix style, elide copy, make non versionable

* Fix syntax error

* Fix style issues

* Fix style issues

* Update IntPtr.cs

* Update UIntPtr.cs

* Update ref assembly

* Allow comparison of intptr/uintptr in Array

* Fixed ELEMENT_TYPE cases, added tests based on Int32/UInt32 tests

* Fixes

* Update Array.cs

* Update Array.cs

* Update Array.cs

* Update ArrayTests.cs

* Update ArrayTests.cs

* Update UIntPtrTests.cs

* Update ArrayTests.cs

* fix instance methods??

* fixes

* Fixwa

* fix tests

* Add non versionables

* fix compare methods

* Fix comparison error

* fix boundary

* fix compares

* fix maxvals

* remove xunit buggy data

* silly var name error

* Update src/libraries/System.Private.CoreLib/src/Resources/Strings.resx

Co-Authored-By: Tanner Gooding <tagoo@outlook.com>

* Fix ToString

Co-authored-by: Tanner Gooding <tagoo@outlook.com>
@tannergooding tannergooding added the Servicing-consider Issue for next servicing release review label Apr 21, 2020
@tannergooding
Copy link
Member Author

CC. @cston

@Dotnet-GitSync-Bot
Copy link
Collaborator

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@danmoseley danmoseley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 21, 2020
@danmoseley
Copy link
Member

approved to merge when you have green CI/signed off.
cc @Anipik

@tannergooding
Copy link
Member Author

Realized that the ref API had the IEquatable API as explicit still. Pushed a commit which fixes here and mirrored to master in #35256

@tannergooding
Copy link
Member Author

@Anipik, is anything further blocking this from being merged?

@tannergooding tannergooding merged commit 0ce44af into dotnet:release/5.0-preview4 Apr 23, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
@tannergooding tannergooding deleted the prev4-nint-nuint branch July 1, 2025 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants