What is the most suitable container just for strings holding in some array with non-predetermined upper boundary, which length is unknown on it's creation.
For simple code like:
Foo list = new Foo(); // size in unknown
for()/foreach()/do()/while() // any loop
{
list.Add(string);
}
Is it StringCollection
as optimized Collection for string, or just Collection<string>
or List<string>
or ArrayList
? What is the different between them?