link中如何創建能存放0-10個元素的List
class LimitedList
{
private List<int> innerList = new List()<T>;
public void Add(int value)
{
if (innerList.Count < 10) innerList.Add(value);
}
public IEnumerable<int> AsEnumerable() { return innerList as IEnumerable<int>; }
}