Click here to Skip to main content
Click here to Skip to main content

Convert ArrayList to a Generic List

, 22 Oct 2011
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.
| Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 22 Oct 2011
Article Copyright 2011 by Michael Freidgeim
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid