Click here to Skip to main content
13,287,315 members (49,496 online)
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.

You may also be interested in...

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