Member-only story

LINQ Operator Drills

A Tour of Must-Know LINQ Operations

George Marklow
6 min readJul 17, 2022
Photo by Steve Johnson on Unsplash

Introduction

This article helps you if you’re already familiar with C# and LINQ and you need to:

  1. Prepare for interviews, or
  2. 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

--

--

George Marklow
George Marklow

Written by George Marklow

George is a software engineer, author, blogger, and abstract artist who believes in helping others to make us happier and healthier.

No responses yet