LINQ and lambda expressions in C#
There are many LINQ methods in C# that you can use with lambda expressions to filter a collection type, like a list. You can read more about LINQ and lambda expressions, or watch the video:
Download the code example
You'll need to fill out the code example form. We will send you an email where you can download the code example.
Software
This is the software that will need to be installed onto your machine.
Visual Studio 2026. Version 18.0.0 or above. It will work with the free community version.
.NET 10 SDK. Version 10.0.0 or above.
The application
Open up RoundTheCode.LinqQueries.slnx in Visual Studio. It loads a console application with everything covered in the tutorial and video. Feel free to modify and run it in a terminal window to test the code.
Download this code example
Enter your email and we'll send you a download link.
Related code examples
Writing dynamic queries for Entity Framework. A sample .NET 5 MVC application, showing examples of LINQ expressions.
Download a C# code example to help you learn variables, types, conditionals, arrays, lists, loops, classes, structs, interfaces, enums and static classes.
Download this code example
Enter your email and we'll send you a download link.