dotnet_runtime/docs/project
Marc Brooks fbb0f14b33
Fix declared type of custom comparer for MaxBy and MinBy (#113944)
* 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 >
2025-03-28 12:04:42 +00:00
..
analyzers.md
api-review-process.md
branching-guide.md
breaking-change-process.md
copyright.md Add cross-linking between files (#105884) 2024-08-02 13:10:19 -07:00
dogfooding.md Target .NET 10 / net10.0 (#106599) 2024-09-25 11:28:31 -05:00
dotnet-filenames.md
dotnet-standards.md Fix ECMA 355 Partition download links (#105454) 2024-07-25 11:15:34 -04:00
garbage-collector-guidelines.md
glossary.md Update dynamic methods reference (#109473) 2024-11-02 20:57:03 -07:00
issue-guide.md remove corefx from md (#105275) 2024-07-22 14:55:00 -06:00
jit-testing.md remove corefx from md (#105275) 2024-07-22 14:55:00 -06:00
library-servicing.md Use -pack switch instead of -allconfigurations to create packages (#110778) 2025-01-03 23:38:14 +01:00
licensing-assets.md Add doc on asset licensing model (#110418) 2024-12-04 13:43:39 -08:00
linux-build-methodology.md Update to .NET 10 build images (#110198) 2024-12-20 10:29:14 -08:00
linux-performance-tracing.md
list-of-diagnostics.md Fix declared type of custom comparer for MaxBy and MinBy (#113944) 2025-03-28 12:04:42 +00:00
os-onboarding.md Move some links to other doc (#112574) 2025-02-18 17:15:14 -08:00
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