In my Windows 8 app written using Visual Studio 11 Express Beta, I cannot use the ArrayList. Here is my code:
using System.Collections;
ArrayList al = new ArrayList();
Compiler error:
The type or namespace name ‘ArrayList’ could not be found (are you missing a using directive or an assembly reference?)
Is this something new? I love ArrayLists 🙂
For WinRT, they took out all of the non-generic collections – it’s faster and makes your code more reliable. Use List<T> instead.
ps… this will not be your last time saying “why the heck did they take away that API?” while migrating to WinRT