how r u all ?
Q: How can we increase the length of array on runtime in c sharp?
i am trying this code:
public class TestArray
{
static int size = 0;
static int[] array = new int[size];
public TestArray()
{
size++;
Console.WriteLine(array[size]);
}
}
public class Program
{
public static void Main(string[] args)
{
TestArray t = new TestArray();
}
}
Reply soon
Thanks.
public class Program
{
public static void Main(string[] args)
{
TestArray t = new TestArray();
}
}
Reply soon
Thanks.

VulpesRank #55 · 29.2K reputationPosted Jun 18, 2011, 2:16 AM EDT
Faisal AnsariRank #3,366 · 427 reputationPosted Jun 18, 2011, 4:32 AM EDT
i got my answer
thanks again :)