I would like to programmatically add or remove some elements to a string array in C#, but still keeping the items I had before, a bit like the VB function ReDim Preserve.
Since arrays implement IEnumerable you can use Concat:
IEnumerable
Concat
string[] strArr = { "foo", "bar" }; strArr = strArr.Concat(new string[] { "something", "new" });
Or what would be more appropriate would be to use a collection type that supports inline manipulation.