Member-only story
LINQ Operator Drills
A Tour of Must-Know LINQ Operations
Introduction
This article helps you if you’re already familiar with C# and LINQ and you need to:
- Prepare for interviews, or
- Reacquaint yourself with the language after a period away from C# e.g. moving from frontend development in Angular and TypeScript to a backend project.
Each part consists of a “drill” that explores important operations of a few common linq operations.
Names of variables and methods are kept deliberately short to minimize the amount of typing required to complete the code exercises.
What This Article Is Not
This article is about “learning by doing” and doesn’t offer thorough explanations of the operations used. You’re left to explore these operations in more detail on the C# Documentation page in your own time.
Setup
Open a new Replit C# environment (or create a Visual Studio console project):
Ensure you’re using:
- System.Linq