Create new reference to array with different length Anonymous User179105-Oct-2013Given some array:int[] array =newint[8000];Is it possible to refer to a new array such that:int[] array2 =Array.SameReferenceDifferentLength(array,4000);c#c# Updated on 05-Oct-2013
Anonymous User
05-Oct-2013This makes a shallow reference to the specified range of the array. That is, it doesn't copy the array data.
If you want to index an ArraySegment<T>, you can cast it to a IList<T> then use the indexer provided by that interface.