SyntaxFix
Write A Post
Hire A Developer
Questions
Use Insert method of List<T>:
List<T>
List.Insert Method (Int32, T): Inserts an element into the List at the specified index.
Inserts
specified index
var names = new List<string> { "John", "Anna", "Monica" }; names.Insert(0, "Micheal"); // Insert to the first element