Beginning C# 7 Collections

by Simon Robinson

Almost every app requires data to be stored in collections. This course gives you a basic introduction, covering the most widely used collections - arrays, lists, and dictionaries - and gets you up to speed with querying and modifying data in them.

What you'll learn

Collections are essential to store almost any real data in apps, but the vast number of different collections can be confusing.

In this course, Beginning C# Collections, you will gain the ability to leverage the most commonly used collections to query data.

First, you will learn how and when to use the three most widely used collections to group data together:

  • Arrays
  • Lists
  • Dictionaries
Next, you will discover how to query data using the foreach and for loops and also using LINQ.

Finally, you will explore how to put collections inside other collections to accomplish tasks such as partitioning data.

When you're finished with this course, you will have the skills to store data in collections, and to look up, enumerate, query, and modify that data using the collections in a variety of simple scenarios.

Table of contents

Course Overview
2mins

Course FAQ

What are C# collections?

C# collections are classes used for storing, retrieving, and managing data. Collections let you group data together and effectively look up, enumerate, query, and modify it as needed.

What are the main types of collections in C#?

The three most commonly used collections in C# are arrays, lists, and dictionaries.

What will I learn in this course?

This course will give you an introduction to C# collections, including:

  • Arrays, lists, and dictionaries
  • Importing from a data source
  • Resizing collections with lists
  • Storing keyed data with dictionaries
  • Manipulating list data
  • Selecting items using LINQ
  • Creating collections of collections
  • Much more
Who should take this course?

Anyone who wants to learn about C# collections should take this course. If you want to learn how to use arrays, lists, and dictionaries in your C# programming, then this is the place to be.

Are there prerequisites to this course?

Before beginning this course, you need to be able to write simple apps in C# using Visual Studio. This is a beginners' course so you don't need any prior knowledge of collections, but you do need to know basic C#.

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