日期:2014-05-18 浏览次数:20877 次
class SubArray<T>
{
private T[] _refarray;
private int startpos;
publc SubArray(T[] source, int startpos)
{
_refarray = source; _startpos = startpos;
}
public this[int index]
{
get { return _refarray[startpos + index]; }
set { _refarray[startpos + index] = value; }
}
}