VB:
Dim YourArray() As Integer
...
ReDim Preserve YourArray(i)


C#:
int[] YourArray;
...
int[] temp = new int[i + 1];
if (YourArray != null)
    Array.Copy(YourArray, temp, Math.Min(YourArray.Length, temp.Length));
YourArray = temp;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 createps 的頭像
    createps

    遊戲人生 人生遊戲

    createps 發表在 痞客邦 留言(0) 人氣()