如何在给定fromIndex和toIndex的情况下返回C#数组的子集?
显然,可以使用循环,但是否有其他方法?
这是我要填写的方法签名。
public static FixedSizeList<T> FromExisting(FixedSizeList<T> fixedSizeList, Int32 fromIndex, Int32 toIndex)
FixedSizeList的内部实现是
private T[] _Array;
this._Array = new T[size];