O'Reilly logo

C#: A Beginner's Tutorial by Jayden Ky

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

Chapter 13

Collections

When writing an object-oriented program, you often work with groups of objects. In Chapter 5, “Core Classes” you learned that arrays can be used to group objects and iterate over elements. Unfortunately, arrays lack the flexibility you need to rapidly develop applications. For one, they cannot be resized. Fortunately, the .NET Framework comes with a set of interfaces and classes that make working with groups of objects easier. These interfaces and classes are part of the System.Collections namespace and its subnamespaces. System.Collections contains non-generic types that more or less have been replaced by the generic types in the System.Collections.Generic namespace. This chapter discusses the most frequently used types ...

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