StringCollection or List<string>

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Thank you.
 
bill tie said:
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<string> instead.
 
bill tie said:
Why should I use StringCollection as opposed to List<string>?

The SilverLight Micro-CLR has already punted on them:
http://blogs.msdn.com/bclteam/archi...-be-removed-from-silverlight-inbar-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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top