Click here to Skip to main content
12,633,764 members (30,631 online)
Click here to Skip to main content

Convert ArrayList to a Generic List

, 22 Oct 2011 CPOL
You can filter all elements of arrayList that can be cast to the same type using Enumerable.OfType(Of TResult) Method[^] List typedList = arrayList.OfType().ToList();
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the Programming Tips Table of Contents to view the list of available articles in this section.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 22 Oct 2011
Article Copyright 2011 by Michael Freidgeim
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid