A
Anatol Ciolac
How dinamically add a new element to Array????
Anatol Ciolac said:How dinamically add a new element to Array????
Harris said:You could always create some kind so static util method that could
handle this; something like...
public static string[] addStringElement( string[] oldArray, string
element )
{
String[] newArray = new String[ oldArray.Length + 1 ];
Array.Copy( oldArray, newArray, oldArray.Length );
newArray[ oldArray.Length ] = element;
return newArray;
}
This may not be as fast as the ArrayList, but would keep the memory
consumption tight...