i want to simply add a string to an array, like this:
string[] arrayName = new string[0];
arrayName.Add("raptor");
But this doesn't work, can someone help me?
i want to simply add a string to an array, like this:
string[] arrayName = new string[0];
arrayName.Add("raptor");
But this doesn't work, can someone help me?
You should use a generic List(Of T).
List<string> myStrings = new List<string>();
myStrings.Add("raptor");
and if you really want an array:
string[] myStringArray = myStrings.ToArray();