When creating a ArraySegment
, I'd like to get the new array created, but when using:
meuSegmento.Array;
the original array is returned and not the created thread.
string[] meuArray = {"stack", "overflow","em", "português"};
var meuSegmento = new ArraySegment<string>(meuArray, 2, (meuArray.Length - 1));
string[] arraySegmentado = meuSegmento.Segmento; //Quero o seguimento criado: { "em", "português" }