-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
The GetHashCode implementation of the Thickness struct is broken for uniform length. #8789
Labels
Comments
singhashish-wpf
added
the
Investigate
Requires further investigation by the WPF team.
label
Feb 9, 2024
The reason is: wpf/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Thickness.cs Lines 96 to 99 in 19f227f
The uniform length means that the I'm not sure I can change its behavior. |
lindexi
added a commit
to dotnet-campus/wpf
that referenced
this issue
Feb 18, 2024
…for uniform length dotnet#8789
lindexi
added a commit
to dotnet-campus/wpf
that referenced
this issue
Feb 18, 2024
…for uniform length dotnet#8789
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
For any uniform length instance of Thickness struct GetHashCode returns zero.
Reproduction Steps
Expected behavior
h1 and h2 should have different values
Actual behavior
h1 and h2 have the same value
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: