Beginning C# Collections

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.
Course info
Rating
(68)
Level
Beginner
Updated
Mar 29, 2019
Duration
3h 26m
Table of contents
Course Overview
Introducing Collections and Arrays
Importing from a Data Source into an Array
Resizing Collections with Lists
Storing Keyed Data with Dictionaries
Manipulating List Data
Selecting Items Using LINQ
Creating Collections of Collections
Taking Collections Further
Description
Course info
Rating
(68)
Level
Beginner
Updated
Mar 29, 2019
Duration
3h 26m
Description

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 array, the list, and the dictionary - the three most widely used collections - to group data together. 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.

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
3h 32m
May 15, 2015
C# Equality and Comparisons
Intermediate
4h 51m
Sep 10, 2014
More courses by Simon Robinson
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
(Music) HI, and welcome to this course, Beginning C# Collections. I'm Simon Robinson and I first started coding in C# 18 years ago when the language was still in beta, and I've been a C# developer ever since because I think it's such a great general-purpose language. I wrote this course because using collections correctly really is a vital skill if you want to become an effective C# developer. Just about any real app is going to require collections, because if your program uses any data, it probably needs a collection to store and lets you work with that data. In this course, I'll show you how to code using what are arguably the most useful and widely used collections, the array, the list, and the dictionary, and importantly, when to use each of those collections. I'll teach you good techniques for leveraging collection operations, how to look up, enumerate, and modify data in collections, and you'll even get a very quick overview of how LINQ can help you extract data from collections. By the end of this course, you should be able to manipulate simple collections to store data appropriately in the kinds of scenarios that most frequently come up when writing apps, and are to come up when writing. Prerequisites: 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#.