Better to use a List:
List<string> names = new List<string>();
names.Add(name);
Later, if you need an array of names, call:
string[] arr = names.ToArray();
If you need to use an array of strings, you must know the size of the advance. If you don't know the size, you can initialize an array of some length by default (say 10). What you need to do is:
- Keep the number of rows already added to the array
- , (, 15) .
- , , (.. , )
, ,