Click here to Skip to main content
15,888,218 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to create dynamic array with unlimited size?
Posted

You can't. You would use the List class for that, so that it can resize itself as needed. There's no such thing as 'unlimited size'.
 
Share this answer
 
Comments
Aswathi Narayan 6-Jul-11 5:08am    
ok ..thank u
i found the solution.

create array list.

ArrayList obj = new ArrayList();
//adding item
obj.Add("name");
 
Share this answer
 
Consider IList<t> which is generic and maintain its size by it self. I think this will do the job. Please see below details about IList<t>[^]

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900