What's the best way to build an array?
I'm writing a method that adds a bunch of stuff to an array (of strings) and then returns it. Right now, I've just used a List<string> and then .Add stuff to it, and then return list.ToArray(). I don't know the length of the array beforehand (unless of course I use a 2-pass algorithm, once just to compute the size). Is that a good way to do it, or is there a more efficient way?
PS: I don't want to yield an enumerable.