Working with Arrays and Collections in C#

by Simon Robinson

If your app has data, you’ll almost always need to store that data in a collection. This course will teach you the essential skills behind manipulating collections, enabling you to store, look up, and enumerate your data in C# apps.

What you'll learn

Real-world apps almost always require manipulating sets of data, and in C# apps, that data is normally held in collections. In this course, Working with Arrays and Collections in C#, you’ll learn how to use collections to access your data. First, you’ll discover how to look up and enumerate data in an array – the simplest of the collections. Next, you’ll learn how to add and remove data using a list, and how dictionaries can aid efficient look up by using a key. Then, you’ll delve into easily combining sets of data using the HashSet collection. Finally, you'll explore how to process data using stacks and queues, and make modifications more efficient with linked lists. By the end of the course, you’ll have a better understanding of the skills needed to work with your data in C# using collections.

Table of contents

Course Overview
2mins

Course FAQ

What will you learn in this C# tutorial?

In this course, you will learn how to look up items in arrays and lists, use iteration to process values, how to use linked lists, and about stacks and queues.

Are there any prerequisites for this C# tutorial?

Prerequisites for this course are: an understanding of the basics of C#, creating classes and writing console apps, and how to use loops to control program flow.

What is an array?

An array is a data structure that consists of a collection of elements where each element is identified by at least one array index or key.

What is a linked list?

A linked list is a linear collection of data elements whose order is not given by their physical placement in memory. Instead, each element points to the next creating a collection of nodes that represent a sequence.

What is a queue?

A queue is a collection of entities that are maintained in a sequence and can be modified by the addition of entities at one end of the sequence and the removal of entities from the other end of the sequence.

About the author

Simon is a senior developer with over 20 years programming experience, particularly covering C++ and the .NET Framework. He believes knowledge is to be shared and has written or co-written more than a dozen books for professional programmers.

Ready to upskill? Get started