Skip to content

Add warning, that keys and items parameters must not refer to the same array. #3163

Open
@CeciAc

Description

@CeciAc

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions