As the title says when should I use List and when should I use ArrayList?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The main time to use
ArrayListis in .NET 1.1Other than that,
List<T>all the way (for your localT)…For those (rare) cases where you don’t know the type up-front (and can’t use generics), even
List<object>is more helpful thanArrayList(IMO).