Add warning, that keys and items parameters must not refer to the same array. #3163
Labels
area-System.Runtime
doc-enhancement
Improve the current content
dotnet-api/prod
Pri2
Indicates issues/PRs that are medium priority
Milestone
@NineBerry commented on Tue Sep 10 2019
When passing the same array as both keys and items parameter, in some situations you will get an ArgumentException stating that the "IComparer.Compare() method returns inconsistent results" and in some situations the sort order will just be wrong without getting any exception.
Add a remark in the documentation that this is not allowed.
Additionally, the framework code could actually be changed to check that both arguments don't refer to the same array object.
Dokumentdetails
⚠ Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von docs.microsoft.com zum GitHub-Artikel erforderlich.
@srvbpigh commented on Tue Sep 10 2019
Hello, @NineBerry
Thank you for your feedback.
We are actively reviewing your comments and will get back to you soon.
Kind regards,
Microsoft DOCS International Team
The text was updated successfully, but these errors were encountered: