Expanded

Working with Arrays and Collections in C#

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.
Course info
Level
Intermediate
Updated
Apr 20, 2021
Duration
2h 12m
Table of contents
Course Overview
Storing Data in an Array
Finding Data in an Array
Adding and Removing Data with List<T>
Dictionaries
Sets
Complex Data: Multidimensional and Jagged Arrays
Stacks and Queues
Adding Data Efficiently with Linked Lists
Description
Course info
Level
Intermediate
Updated
Apr 20, 2021
Duration
2h 12m
Description

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.

About the author
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.

More from the author
C# Concurrent Collections
Advanced
2h 42m
Jul 31, 2020
Advanced C# Collections
Intermediate
3h 46m
Jan 9, 2020
More courses by Simon Robinson
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. I'm Simon Robinson, welcoming you to this course, Working with Arrays and Collections in C#. Learning to use collections properly is a vital part of your C# training because almost whenever you want to manipulate any data you'll need to store that data in your app using collections. In this course, you'll learn how to leverage collections effectively. I'll show you how to look up individual items in arrays and lists and how to use a key to look up values in a dictionary. You'll also see how you can easily use iteration to process all the values in a collection and how arrays let you easily represent tables or grids of data. For situations where your data changes very frequently, you'll find out how to use linked lists to manage those changes efficiently. And you'll discover how stacks and queues help you when you have any kind of tasks waiting to be processed. By the end of this course, you'll have a good understanding of how to code with all the main, most commonly used collections. Before beginning the course, you should be familiar with the basics of C#. You need to be comfortable creating classes, writing simple console apps, and using loops to control program flow, etc. If that's you and you want to learn how to write great apps, then keep watching and discover the amazing world of C# collections.