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