- 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.
Want a C# SDK now? Use Fern
sponsored by Fern
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.
How To Increase Performance of Web APIs in .NET
10 minutes by Anton Martyniuk
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.
Automate Entity Framework Core migrations
7 minutes by Fraser McLean
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? |