TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Faisal Ansari
NA
451
833.6k
how can we increase the length of array on runtime?
Jun 18 2011 5:00 AM
hello guys
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.
Reply
Answers (
2
)
Attach dll
install dll