Simple play icon Course
Skills

Working with Arrays and Collections in C# 9

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
1min

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 Robinson first cut his developer teeth in the early 1980s writing a scheduling system in BBC Basic(!) for his local college. Since then, his programming career has spanned industries ranging from academic research to telecoms to finance, and many computer languages such as C++, C# and Python, as well as writing front-end and back-end code for Windows and Web. He believes knowledge is to be shared, and has written or co-written more than a dozen books for professional programmers, includin... more

Ready to upskill? Get started