How to use ArrayList to store some data using ICollection

Posted by Shantanu Gupta on Stack Overflow See other posts from Stack Overflow or by Shantanu Gupta
Published on 2010-04-29T07:49:00Z Indexed on 2010/04/29 7:57 UTC
Read the original article Hit count: 476

Filed under:
|
|
|
|

I want to store few strings into an array using ArrayList.

How can I store all the strings at once without using Add function every time. Is it somewhat related to interface ICollection in anyway. Can I use ICollection to store my array. If yes How.

ArrayList _1019=new ArrayList("TEN","ELEVEN","TWELVE","THIRTEEN","FOURTEEN","FIFTEEN","SIXTEEN","SEVENTEEN","EIGHTEEN","NINETEEN");

I want to store this in the constructor of a class in C#

© Stack Overflow or respective owner

Related posts about c#

Related posts about arraylist