fork(7) download
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. List<int> list1 = new List<int>();
  10. List<int> list2 = new List<int>();
  11.  
  12. list1.Add(10);
  13. list1.Add(20);
  14. list1.Add(30);
  15.  
  16. list2.Add(100);
  17. list2.AddRange(list1.Skip(1));
  18.  
  19. foreach(int i in list2) {
  20. Console.WriteLine(i);
  21. }
  22. }
  23. }
Success #stdin #stdout 0.03s 33712KB
stdin
Standard input is empty
stdout
100
20
30