fork download
  1. using System;
  2. using static System.Console;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. string[] meuArray = {"stack", "overflow","em", "português"};
  7. var meuSegmento = new ArraySegment<string>(meuArray, 2, (meuArray.Length - 2));
  8. string[] arraySegmentado = meuSegmento.ToArray();
  9. foreach (var item in arraySegmentado) WriteLine(item);
  10. }
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/113891/101
Success #stdin #stdout 0.02s 15952KB
stdin
Standard input is empty
stdout
em
português