Skip to content

Conversation

@pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Aug 10, 2021

@pranavkm pranavkm requested a review from a team August 10, 2021 20:18
@pranavkm pranavkm closed this Aug 11, 2021
@pranavkm pranavkm reopened this Aug 12, 2021
@pranavkm pranavkm requested a review from sharwell August 12, 2021 21:31
@pranavkm pranavkm enabled auto-merge (squash) August 12, 2021 21:46
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Add(IEnumerable e)
Copy link
Member

Choose a reason for hiding this comment

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

We don't care about this? Presumably it's just calling the generic version now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see any uses for this and it seemed messier to add a generic version. Regardless, most of our codebase is using System.HashCode and Razor is an outlier due to it targeting ns2.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you see any uses of this before the introduction of the generic form? Derived types would prefer to call the generic form than cast to IEnumerable.

Copy link
Contributor

Choose a reason for hiding this comment

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

I just checked and I don't see any references prior to this PR.

@pranavkm pranavkm merged commit 7b39058 into main Aug 12, 2021
@pranavkm pranavkm deleted the prkrishn/generic-hashcodecombiner branch August 12, 2021 23:05
@ghost ghost added this to the 6.0-rc1 milestone Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants