Computer Science, asked by lokeshsharma749, 11 months ago

How to insert an item into a C# list by using an index?

Answers

Answered by khushi2622
3

Heyaa

Answer

u can just simple click on C

Answered by BrainlyNisha001
0

\huge{\bold{\star{\fcolorbox{black}{lightgreen}{Answer}}}}

★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