O'Reilly logo

Programming C# 4.0 by Jesse Liberty, Matthew Adams, Ian Griffiths

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

List<T>

The List<T> class, defined in the System.Collections.Generic namespace, is effectively a resizable array. Strictly speaking, it’s just a generic class provided by the .NET Framework class library, and unlike arrays, List<T> does not get any special treatment from the type system or the CLR. But from a C# developer’s perspective, it feels very similar—you can do most of the things you could do with an array, but without the restriction of a fixed size.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required