What is the point of using ArrayList in Silverlight?

I found this piece of code in the source code

#if SILVERLIGHT internal static System.Collections.IList CreateArrayList() { return new List<object>(); } #else internal static System.Collections.IList CreateArrayList() { return new ArrayList(); } #endif 

What could be the purpose of this various treatment?

+4
source share
1 answer

Silverlight does not have deprecated classes of non-generic classes; they are not just discouraged; they are not at all.

What is strange about this code: obviously, this works for the SilverLight case, so why leave the old code at all? There is no convincing benefit from using an ArrayList, is there?

+10
source

All Articles