The title pretty much sums it up. Now that we have List<T>‘s why would anyone want to use an ArrayList instead? The only reason I can think of is if you are forced to use an old version of .NET before List<T> was implemented?
The title pretty much sums it up. Now that we have List<T> ‘s why
Share
As you said, if for some reason you are stuck with .Net 1.1 then you don’t have a choice.
Your question seems to indicate that there is a choice. So then there is no reason to user
ArrayList. Anything thatArrayListcan do,List<T>can do as well, if not better.