O'Reilly logo

From Java to C#: A Developer's Guide by Heng Ngee Mok

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 19. C# collection classes

Collection classes are convenient classes acting as data structures for 'holding' multiple objects. Collection classes are often used instead of arrays because they have useful methods for manipulating the objects stored within. While not part of the C# language itself, I have included this chapter because collection classes are used very frequently.

Java 2 came with a whole set of useful collection classes so that we have more choices than java.util.Vector. The Java 2 Collection API includes classes in the java.util package such as Stack, LinkedList, Set, ArrayList, Vector, etc.

Of course the .NET framework comes with its own set of collection classes which can be used by any .NET language. They are found in ...

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