Skip to content

How can one know the index? #11519

Open
Open
@kwbBaker

Description

@kwbBaker

Type of issue

Other (describe below)

Description

This explanation begs the question of what value should be passed in as "index". It is described as if it is the ordinal position of the item being added, but the item being added does not yet exist in the list and therefore does not have an ordinal position! This makes no sense. Since the BindingList might have sorting facilities configured, there is no way to know where the item should be placed, either. One would think that AddNew could return this index, but it doesn't.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.bindinglist-1.endnew?view=net-9.0#system-componentmodel-bindinglist-1-endnew(system-int32)

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel/BindingList`1.xml

Document Version Independent Id

54506ba0-68b7-a5af-c12a-3f5da59a7ada

Platform Id

545e576b-5047-c233-87d1-ea4a4ced8ac3

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownersuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions