What is the best way to return a subset of a C # array specified as fromIndex and toIndex?
Obviously, I can use a loop, but are there any other approaches?
This is the signature of the method I want to fill out.
public static FixedSizeList<T> FromExisting(FixedSizeList<T> fixedSizeList, Int32 fromIndex, Int32 toIndex)
The internal implementation of FixedSizeList is
private T[] _Array;
this._Array = new T[size];
source
share