I started studying C# a while back, and I always heard that if I do not have the size of the array, I should always choose list, because arrays can't be initialized without the size.
That being said, I have tried to instance a new array with no size value, and it just works.
string Input = "1-2-3";
string[] Lista = new string[] { };
Lista = Input.Split('-');
for(int i = 0; i < Lista.Length; i++)
{
Console.WriteLine(Lista[i]);
}
Output: 1 2 3.
Do I really have to choose list over array, or it is an outdated concept?