Murach's C# - How to use arrays and collections

First, this chapter shows you how to use three types of arrays. Then, it shows you to use the methods and properties of the Array class for working with an array (since an array is actually an instance of that class). Last, it shows you how to use four other types of collection classes for specific purposes: ArrayList, SortedList, Queue, and Stack.

Chapter 8 How to use arrays and collections
How to work with one-dimensional arrays 202
How to create an array 202
How to assign values to the elements of an array 204
How to work with arrays 206
How to use foreach loops to work with arrays 208
How to work with rectangular arrays 210
How to create a rectangular array 210
How to assign values to a rectangular array 210
How to work with rectangular arrays 212
How to work with jagged arrays 214
How to create a jagged array 214
How to assign values to a jagged array 214
How to work with jagged arrays 216
More skills for working with arrays 218
How to use the Array class 218
How to refer to and copy arrays 220
How to code methods that work with arrays 222
How to work with collections 224
How to create an array list 224
Properties and methods of the ArrayList class 224
How to work with an array list 226
How to work with a sorted list 228
How to work with queues and stacks 230




Murach's C#

Learn more about this book

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.