.NET – ArrayList hidden gem

Posted by nmgomes on ASP.net Weblogs See other posts from ASP.net Weblogs or by nmgomes
Published on Fri, 04 Feb 2011 01:52:04 GMT Indexed on 2011/02/04 7:26 UTC
Read the original article Hit count: 227

Filed under:

From time to time I end-up finding really old hidden gems and a few days ago I found another one.

IList System.Collections.ArrayList.ReadOnly(IList list)

This amazing method is available since the beginning (.NET 1.0).

I always complain about the small support for ReadOnly lists and collections and I have no clue why I miss this one.

For those of you that have to maintain and extend legacy applications prior to ASP.NET 2.0 SP2 this could be a very useful finding.

© ASP.net Weblogs or respective owner

Related posts about .NET