Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
which is used to keep string ?in Array or List?
Posted
Updated 8-Nov-10 20:12pm
v2
Comments
JF2015 9-Nov-10 2:07am    
Your question is not clear. What are you trying to do? Use the "Improve question" feature to add some information to your question.
aayu 9-Nov-10 2:11am    
SOrry we can't understand what you want
Rajesh Anuhya 9-Nov-10 2:11am    
More clarification required..

Do you mean which should be used to store a string?

You need to know the size of the array before it is created. So if you don't know the size, use a list for dynamic allocation.
 
Share this answer
 
Comments
Htike Htike Aung 9-Nov-10 2:21am    
Thanks.
Abhinav S 9-Nov-10 3:10am    
You are welcome.
You should first understand the various data structures available in .NET framework, it will help you to understand in which scenario which data structure needs to be used.

You can refer following article to understand this

http://create.msdn.com/en-US/education/catalog/article/data_structures[^]
 
Share this answer
 
v2

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