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.
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:
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.
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
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#.
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.
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#.