@奇 卢 , Welcome to Microsoft Q&A, you could try to use Array.Resize method to expand your array sizes.
Here is a code example you could refer to.
int[] arr = new int[10];
Console.WriteLine(arr.Length);
Array.Resize(ref arr, arr.Length + 5);
Console.WriteLine(arr.Length);
Result:
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.