I'm looking for a way to add a List to the beginning of another List (specifically, strings).
I have found the List.Insert method, but that is for a single object.
I have thought about a for each loop to insert the item, but that would add them backwards.
How can I do this?
Thanks.
You can use List.InsertRange
:
list.InsertRange(0, otherStrings);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With