From the course: C#: Interfaces and Generics
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Generic list collections - C# Tutorial
From the course: C#: Interfaces and Generics
Generic list collections
- [Instructor] The dotnet library provides many useful generic collections that you can use in your applications. They can be found in the system.collections.generics namespace. In this lesson, we'll begin learning about dotnet's generic collections by looking at the list class. List is the generic version of the array list class, and we saw a quick example of list in the previous video. The MSDN documentation for the generics namespace lists all of the built in generic collection classes that you can use in your applications. And you can see that there are quite a few and we'll cover some more of these later in the chapter. But for now, let's look at the list documentation, and that's this link here. So you can see here in the documentation for list that there is a lot of properties and methods that you can call. Now, I'm not going to go into depth on all of these, but we'll see how to use some of the more common ones. So let's switch over to the editor. So here I'm using VS code and…