Does Visual Studio 2010’s Silverlight support ArrayList? If yes then how to use it, if not then why?
How to use ArrayList in Silverlight?
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.
Silverlight don’t support ArrayList now, see
http://www.infoq.com/news/2007/07/ArrayList-Gone.
EDIT:
Here is the content from this link,
According to Inbar Gazit of Microsoft’s Base Class Library team, the non-generic collections are not going to ship with Silverlight 1.1. This means that while you can continue to use them with the main .NET distribution, they cannot be used in any assembly targeting Silverlight. The affected classes are:
Just to make it clear, Microsoft is not planning on removing these classes or marking them as obsolete in the main .NET distribution at this time.
In order to support scenarios such as data binding where the type is not necessarily known, the following non-generic interfaces will be kept in Silverlight.
Some generic collections have also been dropped from Silverlight. Inbar explains,
Do also check C# – Replacement for.NET ArrayList.ToArray(Type) in Silverlight.