Friday, 13 September 2013

Is there a way to insert new data into any location in a C# list?

Is there a way to insert new data into any location in a C# list?

I'm writing a program that basically creates a list of items. It first
stores all the item numbers in a List of strings. After that, after each
item, I want the program to store multiple lines of descriptions. Is there
a way to add new data between two pre-existing points of data in the List
without destroying any pre-existing data? I know in C++ you could push
back a Vector, but I'm not sure if you can or how to do the same in C#.

No comments:

Post a Comment