Skip to content

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

Merged
jshigetomi merged 1 commit intoPowerShell:release/v7.4.14from
jshigetomi:backport-26953
Mar 9, 2026
Merged

[release/v7.4.14] Fix PSMethodInvocationConstraints.GetHashCode method (#24965)#26959
jshigetomi merged 1 commit intoPowerShell:release/v7.4.14from
jshigetomi:backport-26953

Conversation

@jshigetomi
Copy link
Collaborator

Backport #26953

@jshigetomi 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 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
Copy link
Contributor

Copilot AI left a comment

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 jshigetomi enabled auto-merge (squash) March 9, 2026 19:23
@jshigetomi jshigetomi merged commit 8439a55 into PowerShell:release/v7.4.14 Mar 9, 2026
35 of 36 checks passed
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