Nuno Gomes /* ASP.NET Adventures */

var myInterests = new { language : "C#", technology: "ASP.NET" };

.NET – ArrayList hidden gem

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.

Posted: Feb 04 2011, 01:52 AM by nmgomes | with 2 comment(s)
Filed under:

Comments

Arun Mahendrakar said:

Interesting.. thnx for the find!

Arun

# February 3, 2011 9:02 PM

Md Tariq Ul Azam said:

Thats indeed an interesting find. Since .NET 2.0 there were many way to achieve this, but with .NET 1.0!!!!!!

Thanks mate for sharing this with us.

# February 3, 2011 10:28 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)