C#
news

48stories

Stories

Steam achievements
Batch unlocks, owned DLC
DVDEV Community: #csharp zevnda Oct 30

Steam achievement sets: batched unlocks fail on unowned DLC

Valve's Achievement Sets beta lets Steam games group achievements by base game, DLC and other sets. Steam refuses unlocks for DLC the account doesn't own or for archived sets, and one rejected item can fail an entire batch write. A C# developer maintaining an achievement manager explains the schema changes, the parsing code and the ownership-check fix.

Metalama 2027.0
Redirect calls at build time
PMMetalama / PostSharp Blog Gaël Fraiteur Oct 29

Metalama 2027.0 adds interceptors to redirect method calls at build time

Metalama 2027.0 introduces call-site interceptors that rewrite selected method calls at build time, so a method from a NuGet package or the .NET libraries can be wrapped without touching its source. The post walks through a retry example built from a T# template, a hand-written audit redirect, and the scoping rules. The feature is in preview from 2027.0.4-preview.

Game Boy in C#
Rebuild hardware in C#
DPdotnetpro (de) Stefan Fiedler Oct 28

Game Boy emulation in C#, part 1: CPU, memory and registers

A new dotnetpro series walks through building a Game Boy emulator in C#. Part one covers the 16-bit address bus, the 64 KB memory map, CPU registers modeled as C# fields and properties, and the flag register. It also shows how opcodes are dispatched in a switch loop and how cycle counting keeps components in sync.

.NET 10
Custom sort vs LINQ
CCC# Corner Željko Perić Oct 25

Custom Array Sorting vs LINQ: BenchmarkDotNet Results for 2D and Jagged Arrays

Željko Perić benchmarks his custom multi-column sort extensions for 2D and jagged arrays against the standard LINQ OrderBy/ThenBy pipeline using BenchmarkDotNet. The results show how memory layout and sorting algorithm change speed and allocations on datasets up to one million rows. It is a practical reference for developers who care about GC pressure in data-heavy code.

.NET 11
Full outer joins in LINQ

LINQ gets FullJoin in .NET 11 for full outer joins

The new FullJoin method in .NET 11 returns matched pairs plus unmatched rows from both sides as (Outer, Inner) tuples. Join, LeftJoin, RightJoin and GroupJoin also gain overloads without a result selector. The feature is in .NET 11 RC2, so details may still change before the final release.

C# derleyici
Why jump addresses break
HBHabr C# (ru) Stefanio Oct 22

Why stable instruction addresses beat numeric indexes in a C# compiler

The author of the C# interpreter HydraScript explains why numeric instruction indexes broke code generation and how switching to stable IAddress objects fixed it. Addresses now stay with their instructions when code is inserted, removed or replaced, so jumps keep pointing to the right place. It is a concrete case for developers building compilers or interpreters with the Visitor pattern.

C# 14
New extension members
DVDEV Community: #csharp emanuele longo Oct 19

C# 14 Extension Members: Extension Properties, Static Members and Operators

C# 14, shipped with .NET 10, adds extension members: extension properties, static members and operators declared inside extension blocks. This goes beyond the classic this-parameter extension methods and lets APIs read more naturally. Knowing the current limits, such as no state and no indexers, matters before adopting it in production.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message