I need to create an array of strings, easy enough... the only problem is that the strings are integers from 1-1000 and I really dont want to type each of them.
Can you create a loop that could create this?
right now it looks like this
private readonly string[] _myArray = { "1", "2", "3", "4", "5" };
and its called by
for (var i = 0; i < _myArray.Length; i++)
{
arFoo[i].SetBar(_myArray[i]);
}
any suggestions on how to add the other 995 without manually typing them?