dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

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

Open jlidbeck opened this issue 9 months ago • 1 comments

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

jlidbeck avatar Feb 05 '26 17:02 jlidbeck

Tagging subscribers to this area: @dotnet/area-system-collections