mirror of https://github.com/dotnet/runtime
![]() * Fix declared type of custom comparer for MaxBy and MinBy Use the `TKey` output of the keySelector (not the input `TSource`) for the the custom `IComparer` since that's what the keySelector will emit. Fixes #113878 This is a semi-**BREAKING CHANGE** but is justifiable in that the only code that could have worked before was when `TKey` and `TSource` were the same type (e.g. both `int` as in the test cases)... and that code will continue to compile correctly. * Update to keep the old MinBy and MaxBy around as Obsolete Ensures the binary and source compatibility in case anyone was using the broken overloads. * PR Feedback: Fixed missing markdown escaping for < and > |
||
---|---|---|
.. | ||
analyzers.md | ||
api-review-process.md | ||
branching-guide.md | ||
breaking-change-process.md | ||
copyright.md | ||
dogfooding.md | ||
dotnet-filenames.md | ||
dotnet-standards.md | ||
garbage-collector-guidelines.md | ||
glossary.md | ||
issue-guide.md | ||
jit-testing.md | ||
library-servicing.md | ||
licensing-assets.md | ||
linux-build-methodology.md | ||
linux-performance-tracing.md | ||
list-of-diagnostics.md | ||
os-onboarding.md | ||
pcl-targets-dialog-net46-aspnetcore10.png | ||
performance-guidelines.md | ||
profiling-api-status.md | ||
public-signing.md | ||
repo-organization.md | ||
strong-name-signing.md | ||
updating-jitinterface.md | ||
versioning.md | ||
writing-tests.md |