What Are C# Source Generators? History, Concepts, and How They Fit in .NET
Understand what C# source generators are, their history in .NET, and how they differ from reflection and T4 templates. A clear introduction for .NET developers.
C# language feature deep dives, including Roslyn analyzers, UnsafeAccessor, and techniques for making reflection-heavy code safe under Native AOT.
Showing 67–72 of 127 articles
Understand what C# source generators are, their history in .NET, and how they differ from reflection and T4 templates. A clear introduction for .NET developers.
Master C# source generators with this complete guide. Learn how compile-time code generation works in .NET 10, why it beats reflection, and how to get started.
Learn how exception handling works in C# with the basics of try catch. This article is perfect for junior software engineers aiming to understand dotnet and C#.
Learn how to convert a C# string to a byte[] using UTF-8, ASCII, and Unicode encodings. Copy-paste code examples included for each method.
I tried to get C# regular expression benchmarks in my original article, but messed up a critical assumption. Let's see how to fix that and get the real data!
Regular expressions are powerful for pattern matching, but what about performance? Check out this article for details on C# regex performance from benchmarks!