You could use ArraySegment<T>
. It’s very light-weight as it doesn’t copy the array:
string[] a = { "one", "two", "three", "four", "five" };
var segment = new ArraySegment<string>( a, 1, 2 );
More Related Contents:
- Ordered Unique Combinations [closed]
- C# appointing distinct array elements randomly to another array
- Merge two arrays and return sorted array in c# [closed]
- How to generate an Array of Double Arrays in c#? [duplicate]
- Define if statement for property in C# [closed]
- How to convert UTF-8 byte[] to string
- How to access random item in list?
- Byte array to image conversion
- How to convert byte array to string [duplicate]
- Easiest way to compare arrays in C#
- How to resize multidimensional (2D) array in C#?
- Overhead of a .NET array?
- How to “flatten” or “index” 3D-array in 1D array?
- Fast way to convert a two dimensional array to a List ( one dimensional )
- Testing equality of arrays in C#
- Copy Arrays to Array
- Correlation of two arrays in C#
- C# Cast Entire Array?
- Why is there huge performance hit in 2048×2048 versus 2047×2047 array multiplication?
- How to get a dimension (slice) from a multidimensional array
- Pick Random String From Array
- Random number generator in C# – unique values
- C# Permutation of an array of arraylists?
- Iterate through 2 dimensional array c#
- Why can’t I use the array initializer with an implicitly typed variable?
- convert string array to string
- How can I safely convert a byte array into a string and back? [duplicate]
- Why do arrays in .net only implement IEnumerable and not IEnumerable?
- Is string actually an array of chars or does it just have an indexer?
- byte[] to BitmapImage in silverlight