bAN bAN - 2 months ago 6
C# Question

How can I add to a List's first position?

I just have a List<> and I would like to add an item to this list but at the first position.
List.add() add the item at the last.. How can I do that?..
Thanks for help!

Answer
List<T>.Insert(0, item);