• C# Digest
  • Posts
  • Writing a .NET Garbage Collector

Writing a .NET Garbage Collector

... because why not

Writing a .NET Garbage Collector in C#
13 minutes by Kevin Gosse

In this article Kevin describes an experiment to create a Garbage Collector in C# using NativeAOT. He explores different approaches to initialize a custom GC, addressing challenges with function naming conflicts and runtime initialization. While not meant for production use, the experiment provides insights into .NET GC internals.

Fern allows developers to auto-generate and maintain SDKs across seven languages, including C#. Join customers like Square, ElevenLabs, and Intercom who use Fern as their dedicated SDK platform.

In modern software development, creating high-performance APIs is crucial to deliver a fast, stable, and responsive user experience. This article presents 12 essential techniques for optimizing .NET API performance, including async/await programming, efficient data access patterns, caching strategies, and modern protocols implementation. Anton provides practical code examples and emphasizes the importance of incremental adoption and continuous performance monitoring.

The Dangers of Async Void
5 minutes by Sergey Teplyakov

You probably have heard that something is wrong with async void methods. But letโ€™s explore what exactly. In this article Sergey explains why async void methods in C# are dangerous and should be avoided. He warns that async void delegates can be hidden in code when converting to System.Action or used in timers and parallel operations, making them particularly dangerous.

Getting Started with ArchUnitNET
9 minutes by Sarah Dutkiewicz

In this article Sarah demonstrates how to implement architecture testing in .NET using TngTech.ArchUnitNET package, with eShopOnWeb as a demo project. She explains how to set up the testing environment, create architecture rules, and write various types of tests including naming conventions, layer dependencies, and access modifiers. The guide includes practical examples of how to identify potential architectural issues and enforce clean architecture principles through automated testing.

In this article Fraser explains how to automate Entity Framework Core database migrations using GitHub Actions for Azure SQL databases. It covers setting up a GitHub Actions workflow that generates migration scripts, authenticates with Azure, and automatically applies database schema changes before application deployment. The guide provides a complete workflow configuration and practical steps for implementing automated database migrations in a CI/CD pipeline.

Weโ€™ll wrap up with the most popular article from the last issue:

how did you like this issue?

Login or Subscribe to participate in polls.

newsletters

Would you like to become a sponsor and advertise in one of the issues? Check out our media kit and get in touch.