I tried very hard to initialize a 1-dimensional array without knowing its size, but I do not get it; Please tell me how I can declare an array whose size will dynamically increase in accordance with the requirement in C #.
I mean, I want to do something like this
class A
{
int[] myarray;
int i=0;
while(i<5)
{
myarray[i]==n;
n=n%10;
i++;
}
}
Please, help!!!
source
share