so i have a list where i need to add new values constantly but when i do i need to increment it and insert it in between two values.
List initiali
List initializers = new List (); initializers.Add(1); initializers.Add(3); int index = initializers.IndexOf(3); initializers.Insert(index, 2);
Gives you 1,2,3.