Skip to content

[release/v7.4.14] Fix PSMethodInvocationConstraints.GetHashCode method (#24965) - #26959

Merged
Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.4.14from
jshigetomi:backport-26953
Mar 9, 2026
Merged

Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.4.14from
jshigetomi:backport-26953

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

Backport #26953

@jshigetomi Justin Chung (jshigetomi) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Mar 9, 2026
@jshigetomi
Justin Chung (jshigetomi) marked this pull request as ready for review March 9, 2026 19:21
Copilot AI review requested due to automatic review settings March 9, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the fix for PSMethodInvocationConstraints.GetHashCode() to ensure the hash code reflects the contents of its parameter/generic-parameter sequences (consistent with Equals using sequence equality), rather than hashing the collection objects themselves.

Changes:

  • Update PSMethodInvocationConstraints.GetHashCode() to hash ParameterTypes and GenericTypeParameters by sequence contents via SequenceGetHashCode().

@jshigetomi
Justin Chung (jshigetomi) enabled auto-merge (squash) March 9, 2026 19:23
@jshigetomi
Justin Chung (jshigetomi) merged commit 8439a55 into PowerShell:release/v7.4.14 Mar 9, 2026
35 of 36 checks passed
@jshigetomi
Justin Chung (jshigetomi) deleted the backport-26953 branch June 25, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants