fork(7) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var listOfArrays = new List<string[]> {
  10. new[] {"1", "A", "X"}, new[] {"2", "B", "Y"}, new[] {"3", "C", "Z"}
  11. };
  12. var myListOfStrings = listOfArrays.Select(a => a[1]).ToList();
  13. foreach (var s in myListOfStrings) {
  14. Console.WriteLine(s);
  15. }
  16. }
  17. }
Success #stdin #stdout 0.03s 24264KB
stdin
Standard input is empty
stdout
A
B
C