C# Digest - CD#547 Writing a .NET profiler in C#
Writing a .NET profiler in C#
10 minutes by Kevin Gosse
In this guide Kevin demonstrates how to create a basic CPU profiler for .NET using Silhouette, a library that wraps profiling APIs. He shows how to set up a project with NativeAOT, implement stack walking functionality, track running threads, and resolve method names from instruction pointers. The example includes a complete implementation of a simple profiler that periodically captures and displays stack traces of all managed threads, written entirely in C# rather than the traditional C++ approach.
Deliver Data-Heavy Blazor Apps in Half the Time
sponsored by Progress Telerik
UI Library With 110+ Native Components for Building Modern and Feature-Rich Applications. Featuring the Fastest Blazor Grid, Charts, Scheduler, Editor, Dropdown list and many more. See demos here.
Implement Phone verification, 2FA using ASP.NET Core Identity
7 minutes by Damien Bod
In this article Damien demonstrates how to implement SMS verification and two-factor authentication (2FA) in ASP.NET Core Identity applications. It provides a detailed guide for integrating phone-based verification during user registration and login processes using ASP.NET Core Identity's extensibility features. While acknowledging that SMS is not the most secure authentication method, the article explains it can be useful for specific business cases like onboarding phone users or frontline workers.
Injecting Action Method Values from Configuration in ASP.NET Core
5 minutes by Ricardo Peres
In this post Ricardo presents how to create a custom model binding mechanism in ASP.NET Core to inject configuration values directly into action method parameters. He shows how to build a custom binding source, model binder provider, and model binder, along with an extension method for registration and a `FromConfiguration` attribute.
Creating an analyzer to detect infinite loops caused by ThreadAbortExceptions
12 minutes by Andrew Lock
Andrew explains a bug in .NET Framework where ThreadAbortException can cause infinite loops when a try-catch block is nested directly inside a while loop without manual re-throwing. This occurs because the runtime fails to automatically re-throw the exception as it normally should. Andrew describes a Roslyn Analyzer they created to detect this problematic pattern and provide a code fix that adds a manual "throw;" statement to prevent the infinite loop.
Mastering C# Design Patterns: Practical Examples of Singleton, Factory, and Observer
5 minutes by Leandro Veiga
In this article Leandro explores three essential design patterns in C# - Singleton, Factory, and Observer - and he provides practical examples and cases for each. He explains how these patterns solve common software challenges by offering reusable solutions that improve code maintainability and scalability.
And the most popular article from the last issue was:
newsletters
Would you like to advertise in the newsletter? Check out our media kit and get in touch.

Older messages
C#546 Finalizers are tricker than you think
Sunday, March 2, 2025
Common pitfalls when implementing finalizers
C#545 .NET MAUI Performance Features in .NET 9
Thursday, February 27, 2025
with full trimming and NativeAOT support
C#539 A detailed look at EF Core’s JSON Columns feature
Sunday, January 12, 2025
Comparing it with the traditional tables with indexes
C#538 Unit Testing Clean Architecture Use Cases
Sunday, January 5, 2025
Battle-tested approach to unit testing
C#537 Automating Santa's Workshop with NServiceBus
Sunday, December 22, 2024
Using event-driven architecture for effective gift delivery 🎄🎁
You Might Also Like
Where’s Apple Intelligence? - Sync #509
Sunday, March 9, 2025
Plus: Musk vs OpenAI trial set for expedited trial this year; scientists create woolly mice; an android with artificial muscles; another dancing humanoid robot; how to make superbabies; and more! ͏ ͏ ͏
RD#496 Signals in React?
Sunday, March 9, 2025
Not a good idea according to Filipe ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
PD#616 Bloom Filter: A Deep Dive
Sunday, March 9, 2025
How Bloom filters are useful in scenarios with memory constraints ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Daily Coding Problem: Problem #1713 [Hard]
Sunday, March 9, 2025
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Netflix. Implement a queue using a set of fixed-length arrays. The queue should support
Netflix codes/Travel Adapter/Real China
Sunday, March 9, 2025
Recomendo - issue #453 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Sunday Digest | Featuring 'The 15 Largest Defense Budgets in the World' 📊
Sunday, March 9, 2025
Every visualization published this week, in one place. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Android Weekly #665 🤖
Sunday, March 9, 2025
View in web browser 665 March 9th, 2025 Articles & Tutorials Sponsored Discover How AI Enables Zero-Maintenance Apps Watch Instabug's CPO, Kenny Johnston in this recorded webinar as he
😸 vibe coding is so in
Sunday, March 9, 2025
no more sunday scaries 🫶 Product Hunt Sunday, Mar 09 The Roundup This newsletter was brought to you by Rho no more sunday scaries 🫶 gm besties and welcome back to the Roundup. Today,. we're diving
This Week's Daily Tip Roundup
Sunday, March 9, 2025
Missed some of this week's tips? No problem. We've compiled all of them here in one convenient place for you to enjoy. Happy learning! iPhoneLife Logo View In Browser Your Tip of the Day is