dotnet / dotnet/dotnet-api-docs
How can one know the index?
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### 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
Contributor guide
Assessment
This issue has not been assessed yet.