class YList<T>
{
private T[] _list;
public YList(T[] ts){
_list = ts;
}
public YList() {
_list = new T[5];
}
public T this[int i] {
get
{
return _list[i];
}
set {
_list[i] = value;
}
}
}
转载于:https://my.oschina.net/u/2296689/blog/545777