The .Insert() method on List<T> is exactly for this purpose:
someList.Insert(2, someValue);
This would modify the someList collection to insert someValue at index 2, pushing other values up one index.
More information here.
The .Insert() method on List<T> is exactly for this purpose:
someList.Insert(2, someValue);
This would modify the someList collection to insert someValue at index 2, pushing other values up one index.
More information here.