Menu

1 / 4

9 LINQ Methods Added Since .NET 6 That Most Developers Still Don’t Use

JavaScript in Plain English - Medium·Rituraj·1 day ago
#fWlzNPoy
Reading 0:00
15s threshold

Press enter or click to view image in full size Image created by me in canva

Member-only story

LinqCsharpDotnet 11DotnetProgramming 9 LINQ Methods Added Since .NET 6 That Most Developers Still Don’t Use

Four of them arrived in the last two releases. One of them has a trap that shares a single list across every group.

Rituraj

5 min read17 hours ago

--

Ask a .NET developer to count orders per status and you will usually get this:

var counts = orders

.GroupBy(o => o.Status)

.Select(g => new { Status = g.Key, Count = g.Count() });

It works. It has also been unnecessary since .NET 9, which shipped two years ago.

LINQ is the part of .NET most of us learned once and stopped revisiting. Meanwhile every release since .NET 6 has added operators, and the newest ones arrived with .NET 11 this month. Here are nine worth knowing, newest first, with the one detail on each that the release notes skip.

1. FullJoin (.NET 11)

For years LINQ had inner joins and nothing else. .NET 10 added left and right joins.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.