W
watcher
when we redefine an array ,how can we preserve the old data?
string[] a = new string[1];
a[1] = "old data";
when we redefine the array a as following:
a = new string[2];
the data of a[1] was lost
what can i do to prevent it?
thanks a lot
string[] a = new string[1];
a[1] = "old data";
when we redefine the array a as following:
a = new string[2];
the data of a[1] was lost
what can i do to prevent it?
thanks a lot