index++)
{
newElements[index] = elements[index];
}
newIndex = elements.Length;
elements = newElements;
}
else
{
elements = new int[1];
newIndex = 0;
}
elements[newIndex] = value;
}
public int this[int index]
{
get
{
return elements[index];
}
}
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/