C# reflection, benchmarks, and Redis
A varied .NET roundup covering safer alternatives to reflection, benchmarking traps, source generators, migrations, authentication, and caching.
Jasen's top three picks
- 1 Avoiding reflection in C# in way unsafer ways!
steven-giesel.com
A practical look at avoiding reflection without painting yourself into a corner.
- 2 Why I Like Developing in C# and .NET
taithienbo.medium.com
Good reminder that benchmark numbers need context, not just a chart.
- 3 How to build an HTTP Server in .NET — Practical Guide
medium.com
A nice pair: DbUp migrations and database development process thinking.
Editor's note
I curated a pretty mixed bag today, from safer ways to avoid reflection to a solid reminder that .NET benchmarks can mislead you. I also liked the database-process pieces, especially the DbUp migration article and the note that deployments alone aren’t enough.
Today's articles
Avoiding reflection in C# in way unsafer ways!
steven-giesel.com
https://steven-giesel.com/blogPost/53691229-fbb1-48cf-95e5-f586f9800ee1
Topics: C# Source Generators
Read articleWhy I Like Developing in C# and .NET
taithienbo.medium.com
https://taithienbo.medium.com/why-i-like-developing-in-c-and-net-99c1d6051576
Read articleHow to build an HTTP Server in .NET — Practical Guide
medium.com
https://medium.com/@bhargavkoya56/how-to-build-an-http-server-in-net-practical-guide-716e6e0665e7
Topics: ASP.NET Core .NET Core
Read articleC# in the Age of AI: Build Smart, Self-Writing Code with Source Generators
medium.com
https://medium.com/@mohsho10/c-in-the-age-of-ai-build-smart-self-writing-code-with-source-generators-8e686c84889c
Topics: C# Source Generators
Read articleVS Code Live - Let it Cook: Episode 3 - Jupyter Notebooks + GitHub Copilot
youtube.com
https://www.youtube.com/watch?v=fRxh1u-hFAs
Topics: GitHub Copilot Visual Studio Code
Read articleEfficient Containerization of .NET Applications using dotnet publish
c-sharpcorner.com
https://www.c-sharpcorner.com/article/efficient-containerization-of-net-applications-using-dotnet-publish/
Read articleWhy Your .NET Benchmarks Are Lying to You (+ How to Fix Them)
itnext.io
https://itnext.io/why-your-net-benchmarks-are-lying-to-you-how-to-fix-them-447490aa0bfb?source=rss------csharp-5
Topics: Benchmarking Performance
Read articleDeep Dive Into Global Exception Handling in Modern .NET
medium.com
https://medium.com/@nhamnava.me/deep-dive-into-global-exception-handling-in-modern-net-be66ebd6390a?source=rss------dotnet-5
Topics: ASP.NET Core Security
Read articleDatabase Migrations Made Simple: Building a Robust Migration Tool with DbUp and .NET
medium.com
https://medium.com/@ahmed.elmaadawy03/database-migrations-made-simple-building-a-robust-migration-tool-with-dbup-and-net-91d26a35d484
Topics: EF Core SQL Server
Read articleUnderstanding Task.Run in C#
medium.com
https://medium.com/@info_4533/understanding-task-run-in-c-6a699a9a646c
Read articleDeployments aren’t Enough – Databases Deserve a Development Process
c-sharpcorner.com
https://www.c-sharpcorner.com/article/deployments-arent-enough-databases-deserve-a-development-process/
Topics: EF Core SQL Server
Read articleWhat's new in seqcli?
blog.datalust.co
https://blog.datalust.co/whats-new-in-seqcli-2025/
Read articleRecommended Video from Microsoft Build 2025: GitHub Copilot Agent Mode (May 2025)
c-sharpcorner.com
https://www.c-sharpcorner.com/article/recommended-video-from-microsoft-build-2025-github-copilot-agent-mode-may-2025/
Topics: GitHub GitHub Copilot
Read articleUnderstanding Task.FromException
medium.com
https://medium.com/@info_4533/understanding-task-fromexception-84503693b79a
Read articleTop Tips to Analyze .NET Caching with BenchmarkDotNet
medium.com
https://medium.com/@hasanmcse/f302b5df16ed
Topics: Benchmarking Performance
Read article10 advanced use cases using Array.AsReadOnly in C#
medium.com
https://medium.com/@ashokreddy343/10-advanced-use-cases-using-array-asreadonly-in-c-577212680941
Read articleHow Building a Simple Task Manager Taught Me Deep C# Concepts
medium.com
https://medium.com/@aibhi.dev/how-building-a-simple-task-manager-taught-me-deep-c-concepts-027ebb200199
Read articleSmart authentication scheme your latest .NET API
medium.com
https://medium.com/lets-code-future/smart-authentication-scheme-your-latest-net-api-efb62e290dbc
Topics: ASP.NET Core Authentication
Read articleUnderstanding the Snowman Consensus Protocol
c-sharpcorner.com
https://www.c-sharpcorner.com/article/understanding-the-snowman-consensus-protocol/
Topics: CQRS Event Sourcing
Read articleThe Lightning-Fast Queries: Adventure with Compiled LINQ
patilraviraj.medium.com
https://patilraviraj.medium.com/the-lightning-fast-queries-adventure-with-compiled-linq-cfad0faac8e4
Topics: EF Core Performance
Read articleFrom RAM to Redis in 30 Minutes — Upgrading Your ASP.NET
medium.com
https://medium.com/@michaelmaurice410/from-ram-to-redis-in-30-minutes-upgrading-your-asp-net-f4968b07d355
Topics: ASP.NET Core Redis
Read articleWhy You Should Stop Using DateTime and Start Using DateTimeOffset in 2025 ️
medium.com
https://medium.com/@metoz.florian/why-you-should-stop-using-datetime-and-start-using-datetimeoffset-in-2025-%EF%B8%8F-f2735e039ff2?source=rss------dotnet-5
Read articleLearn C# Async
oofnivek.medium.com
https://oofnivek.medium.com/learn-c-async-d4d3f9dc708c
Topics: .NET Core
Read articleCockroachDB with .NET: Why is it new?
medium.com
https://medium.com/@hasanmcse/cockroachdb-with-net-why-is-it-new-be701527e936
Read article