How to insert an item into a C# list by using an index?
Answers
Answered by
3
Heyaa
Answer
u can just simple click on C
Answered by
0
★List.Insert() and List.InsertRange() methods
★// Insert an item at index = 3.
★numbers.Insert(2, 22);
★numbers.Insert(3, 33);
★// Insert a collection.
★numbers. InsertRange(5, new int[] { 11, 22, 33, 44, 55});
Similar questions
Physics,
6 months ago
Math,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago