Refactoring with Collection Expressions
Explore C# 12 collection expressions, spread syntax, and initialization techniques to write cleaner, more consistent, and efficient code in everyday development.
Refactor your code with C# collection expressions
12 minutes by David Pine
A look at how C# 12 collection expressions simplify working with arrays and lists. They offer cleaner syntax, better consistency, and potential performance benefits across many collection types.
Three new LINQ methods in .NET 9
3 minutes by Steven Giesel
.NET 9 introduces new LINQ methods like CountBy, AggregateBy, and Index. CountBy groups elements and counts them, AggregateBy performs custom aggregations with a seed and function, and Index returns each item with its position in the sequence. These additions make LINQ more expressive and convenient for common data operations.
Useful features in Entity Framework Core 8
8 minutes by Dennis Frühauff
Entity Framework Core 8 adds useful features like primitive collection mapping, complex types without keys, better JSON column support (now also in SQLite), and configurable sentinel values. These improvements simplify data modeling, reduce boilerplate, and make entities cleaner and more expressive for real-world .NET applications.