Summary

This chapter examined the different ways of supporting collections of objects in the .NET Compact Framework. We started with System.Array, which you use by means of the C# and Visual Basic .NET language features for supporting arrays, rather than by instantiating a System.Array object directly. Then we briefly described the most important collection classes in the System.Collections and System.Collections.Specialized namespaces.

Finally, we looked at implementing IComparable and IComparer in a class to support sorting and how you create your own custom collections.

Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.