Grant Winney
  • About
  • Code
  • Questions
  • Tools of the Trade

C#  

Using Raw String Literals in C# 11 / .NET 7

Using Raw String Literals in C# 11 / .NET 7

C# 11 added raw string literals, not a life-altering new feature, but they could be useful in the right circumstances. Let's see how to use them.
Dec 14, 2024
Using Primary Constructors with Classes and Structs in C# 12 / .NET 8

Using Primary Constructors with Classes and Structs in C# 12 / .NET 8

As part of C# 12, we got a new feature called primary constructors. Let's see how they work and what we can do with them.
Dec 12, 2024
Records, Classes and Equality in C# 9 / .NET 5

Records, Classes and Equality in C# 9 / .NET 5

The record modifier can define properties and equality in our classes for us, saving time and keeping our code cleaner. Let's see how it works!
Dec 10, 2024
Set-based LINQ - ExceptBy, IntersectBy, UnionBy, DistinctBy

Set-based LINQ - ExceptBy, IntersectBy, UnionBy, DistinctBy

The .NET team has made some helpful additions to LINQ in recent years. Today let's check out the various set-based updates from C# 10 / .NET 6.
Dec 8, 2024
Using MinBy and MaxBy in C# 10 / .NET 6

Using MinBy and MaxBy in C# 10 / .NET 6

The .NET team has made some helpful additions to LINQ over the last few years. Today let's check out MinBy and MaxBy from C# 10 / .NET 6.
Dec 5, 2024
Using CountBy and AggregateBy in C# 13 / .NET 9

Using CountBy and AggregateBy in C# 13 / .NET 9

It's great to see Microsoft still giving us new things in LINQ. With C# 13 / .NET 9, we get CountBy and AggregateBy, so let's see how to use them.
Dec 3, 2024
If/else vs switch/case pattern matching

If/else vs switch/case pattern matching

A look at if/else, switch/case, pattern matching, other options ... and which is best. (spoiler: none ;) )
Nov 3, 2023
Send me new posts: *

  • Connect
  • Privacy
  • License
  • Cross-Posting
Grant Winney © 2025. Powered by Ghost