fork(29) download
  1. using System;
  2. using System.Linq;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int[,] numbers = new int[3, 2] { { 2, 1 }, { 3, 4 }, { 6, 5 } };
  8. var all = numbers.Cast<int>();
  9.  
  10. foreach(int i in all)
  11. Console.WriteLine(i);
  12. }
  13. }
Success #stdin #stdout 0.03s 33920KB
stdin
Standard input is empty
stdout
2
1
3
4
6
5