fork(7) download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. List<string> list = new List<string>(){ "Kate", "John", "Paul", "Eve", "Hugo" };
  9. list.Remove("Eve");
  10. list.Insert(0, "Eve");
  11. foreach (var i in list)
  12. {
  13. Console.WriteLine(i);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.02s 33872KB
stdin
Standard input is empty
stdout
Eve
Kate
John
Paul
Hugo