MY bad this should below to C#...
ignore this one please, sorry about that...
---------------------------------------------------------------------------------------------
Hi people I found I can only reset the values in the array but I can resize it in a new method and return it back to main method,
static void Main()
{
int[] myArray = new int[4];
setLength(myArray, 8);
}
static void setLength(int[] myArray, int length)
{
Array.Resize(ref myArray, length);
}
This is the code what I wrote, it works at the end of the setLength method,
but after it turns back to the main mathod, the array returns to the original one...
Could someone help me please?