Skip to content

IList example does not meet end-of-list Insert behavior #12282

@jlidbeck

Description

@jlidbeck

Type of issue

Code doesn't work

Description

The example Insert implementation does nothing when index==Count. Expected behavior is to add to the end of the list, according to the IList documentation, under "Remarks:"

If index equals the number of items in the IList, then item is appended to the end.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.collections.ilist.insert?view=net-10.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Collections/IList.xml

Document Version Independent Id

29468c75-c596-f099-ce36-2fced37f38b0

Platform Id

441396e6-57a0-1e5d-c43d-8fa0c05bcb1a

Article author

@dotnet-bot


Associated WorkItem - 551424

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.area-System.CollectionsuntriagedNew issue has not been triaged by the area owner

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions