8.7. Summary

In this chapter you learned about arrays and how they make many programming tasks easier by offering a convenient way to organize data. You also learned how to define arrays of differing sizes and how to initialize them. Examples discussed included data lists and data tables. You saw how program loops can be used to set values into an array and read those values from an array. You learned that collections are simply groups of objects and saw how you can use foreach loops to observe the items in a collection. Another important topic was how jagged arrays can be defined to meet specific needs, especially when memory limitations might be severe.

Get Beginning C# 3.0 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.