468,256 Members | 1,426 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,256 developers. It's quick & easy.

StringCollection or List<string>


Why should I use StringCollection as opposed to List<string>?

Thank you.

Jul 15 '07 #1
2 9181
bill tie <bi*****@discussions.microsoft.comwrote:
Why should I use StringCollection as opposed to List<string>?
StringCollection was basically there before generics. If you're using
2.0, I'd recommend using List<stringinstead.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jul 15 '07 #2
"bill tie" <bi*****@discussions.microsoft.comwrote
>
Why should I use StringCollection as opposed to List<string>?
The SilverLight Micro-CLR has already punted on them:
http://blogs.msdn.com/bclteam/archiv...bar-gazit.aspx

I wouldn't be surprised to soon see the Compact Framework do the same, and
then (soon after) the standard CLR. I'm not saying there are any plans to do
this, but to me it seems like writing on the wall...

As Jon already pointed out, the Generic collections are considered "better"
these days, and your best bet is to stick with them.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Jul 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by s | last post: by
3 posts views Thread by aquanutz | last post: by
4 posts views Thread by parez | last post: by
3 posts views Thread by banangroda | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.