Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

InlineArray's Equals and GetHashCode throw - #103612

#103612
Merged
AaronRobinsonMSFT merged 5 commits into
dotnet:maindotnet/runtime:mainfrom
AaronRobinsonMSFT:runtime_96943AaronRobinsonMSFT/runtime:runtime_96943Copy head branch name to clipboard
Jun 20, 2024
Merged

InlineArray's Equals and GetHashCode throw#103612
AaronRobinsonMSFT merged 5 commits into
dotnet:maindotnet/runtime:mainfrom
AaronRobinsonMSFT:runtime_96943AaronRobinsonMSFT/runtime:runtime_96943Copy head branch name to clipboard

Conversation

@AaronRobinsonMSFT

@AaronRobinsonMSFT AaronRobinsonMSFT commented Jun 18, 2024

Copy link
Copy Markdown
Member

The default Equals() and GetHashCode() throw
for types marked with InlineArrayAttribute.

Fixes #96943

See documentation update at dotnet/dotnet-api-docs#10036

The default Equals() and GetHashCode() throw
for types marked with InlineArrayAttribute.
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 9.0.0 milestone Jun 18, 2024
@AaronRobinsonMSFT AaronRobinsonMSFT changed the title InlineArray's Equals and GetHashCode throw InlineArray's Equals and GetHashCode throw Jun 18, 2024
Comment thread src/coreclr/vm/comutilnative.cpp
Add test for types where their layout is the same
whether InlineArray is provided or not.
@AaronRobinsonMSFT
AaronRobinsonMSFT marked this pull request as ready for review June 18, 2024 23:20
Comment thread src/coreclr/vm/comutilnative.cpp
@AaronRobinsonMSFT AaronRobinsonMSFT added the breaking-change Issue or PR that represents a breaking API or functional change over a previous release. label Jun 20, 2024
@dotnet-policy-service dotnet-policy-service Bot added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Jun 20, 2024
@AaronRobinsonMSFT
AaronRobinsonMSFT merged commit b0c4728 into dotnet:main Jun 20, 2024
@AaronRobinsonMSFT
AaronRobinsonMSFT deleted the runtime_96943 branch June 20, 2024 18:10
@AaronRobinsonMSFT AaronRobinsonMSFT removed the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Jun 20, 2024
rzikm pushed a commit to rzikm/dotnet-runtime that referenced this pull request Jun 24, 2024
* InlineArray's Equals and GetHashCode throw

The default Equals() and GetHashCode() throw
for types marked with InlineArrayAttribute.
@am11 am11 mentioned this pull request Jul 12, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Runtime.CompilerServices breaking-change Issue or PR that represents a breaking API or functional change over a previous release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inline array Equals unexpected behavior

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.