Karena sempat merasa bosan dengan coding di VB, last few days saya coba” coding di C#
dan ternyata jauh lebih bebas coding di C# ketimbang di VB. But, sempet bingung dengan how to define redim preserve in c#, and finally I did it. Below is the example code.
string[] MyArray;
string[] temp;
for (i=0;i<length;i++)
{
temp = new string[i + 1];
if (MyArray != null)
Array.Copy(MyArray, temp, Math.Min(MyArray.Length, temp.Length));
MyArray = temp;
}
