C# language and API updates
C# language tips, ASP.NET Core API guidance, security notes, SQL tuning, Visual Studio tooling, and .NET AI examples for working developers.
Jasen's top three picks
- 1 Making Sense of yield in C#
c-sharpcorner.com
A clear walk-through of yield in C# for anyone who wants to make lazy iteration feel less magical and more useful.
- 2 Combatting Bot Attacks: Introducing NSCaptcha for Your .NET Applications
medium.com
NSCaptcha is a practical security read for teams fighting bot abuse without overcomplicating the app.
- 3 Smarter Code with Built-in AI Support in C# 14
c-sharpcorner.com
The C# 14 AI support post is interesting for how language and tooling are starting to meet in the same workflow.
Editor's note
I pulled together a deliberately mixed issue this time: language features, API work, tooling, and a few practical ops topics. The C# 14 and System.Threading.Lock pieces stand out for folks tracking the language, while the Visual Studio git tags post is a nice reminder that small tooling improvements still matter.
Today's articles
Making Sense of yield in C#
c-sharpcorner.com
https://www.c-sharpcorner.com/article/making-sense-of-yield-in-c-sharp/
Topics: C#
Read articleCombatting Bot Attacks: Introducing NSCaptcha for Your .NET Applications
medium.com
https://medium.com/@hussein.nakhostin2000/combatting-bot-attacks-introducing-nscaptcha-for-your-net-applications-72518e7837f1
Topics: ASP.NET Core Security
Read articleSmarter Code with Built-in AI Support in C# 14
c-sharpcorner.com
https://www.c-sharpcorner.com/article/smarter-code-with-built-in-ai-support-in-c-sharp-14/
Read articleAdvanced APIs with ASP.NET Core: Middleware, EF Core, and Versioning
c-sharpcorner.com
https://www.c-sharpcorner.com/article/advanced-apis-with-asp-net-co-middleware-ef-core-and-versioning/
Topics: ASP.NET Core EF Core Web API
Read articleC# 13: Introducing System.Threading.Lock
anthonygiretti.com
https://anthonygiretti.com/2025/03/05/c-13-introducing-system-threading-lock/
Read articledotnet cross-platform interop with C via Environment.ProcessId system call
semuserable.com
https://semuserable.com/2025/03/22/dotnet-cross-platform-interop-with-c/
Read articleSQL Optimization: Filter Data Before or During a JOIN?
c-sharpcorner.com
https://www.c-sharpcorner.com/Blogs/sql-optimization-filter-data-before-or-during-a-join
Topics: SQL Server
Read articleAutomating News Publication with .NET: A Deep Dive into the AI News Automation System
csharp.com
https://www.csharp.com/article/automating-news-publication-with-net-a-deep-dive-into-the-ai-news-automation-s/
Read articleMy Unity Layout
medium.com
https://medium.com/@justinhhorner/my-unity-layout-60eba94ab160
Topics: .NET Core
Read articleHow to Handle File Operations in C#
c-sharpcorner.com
https://www.c-sharpcorner.com/article/how-to-handle-file-operations-in-c-sharp/
Topics: C#
Read articleView and manage git tags
devblogs.microsoft.com
https://devblogs.microsoft.com/visualstudio/view-and-manage-git-tags/
Topics: GitHub Visual Studio
Read articleDependency Injection in .NET: Should You Use Built-in DI or Roll Your Own?
levelup.gitconnected.com
https://levelup.gitconnected.com/dependency-injection-in-net-should-you-use-built-in-di-or-roll-your-own-4975ed9f64e2
Topics: .NET Core
Read article10 C# Syntax Rules Every Beginner Should Know
medium.com
https://medium.com/@fulton_shaun/10-c-syntax-rules-every-beginner-should-know-91bb192f126b?source=rss------csharp-5
Topics: C#
Read articleC# [Experimental]: Prevent Breaking Changes Instantly!
medium.com
https://medium.com/turbo-net/c-experimental-prevent-breaking-changes-instantly-9ca3b8e28084
Topics: C# Solid Principles
Read articleObsolete Design Patterns in .NET 9: What You No Longer Need to Code
medium.com
https://medium.com/@Adem_Korkmaz/obsolete-design-patterns-in-net-9-what-you-no-longer-need-to-code-e8cced496493
Topics: Design Patterns .NET 9
Read articleTop Libraries Every Fullstack .NET Developer Should Know (Before Reinventing the Wheel Again)
medium.com
https://medium.com/@nidhiname/top-libraries-every-fullstack-net-developer-should-know-before-reinventing-the-wheel-again-62cf6cb70bff
Topics: C#
Read articleMastering Delegates in C#: A Developer’s Guide to Best Practices
medium.com
https://medium.com/c-sharp-programming/mastering-delegates-in-c-a-developers-guide-to-best-practices-fc0d29ed9da2
Topics: C#
Read articleModel Context Protocol in .NET 9: How to Implement and Why You Need It
medium.com
https://medium.com/asp-dotnet/model-context-protocol-in-net-9-how-to-implement-and-why-you-need-it-7554d9ecbd92
Read articleImplementing Identity in .NET: A Step-by-Step Guide
medium.com
https://medium.com/@sauravadhikari98/implementing-identity-in-net-a-step-by-step-guide-85d3421c64c2
Topics: Authentication Security
Read articleI’d rather read 50 lines than Extract Method Refactoring
codeopinion.com
https://codeopinion.com/id-rather-read-50-lines-than-extract-method-refactoring/
Topics: Solid Principles
Read articleMore LinkedIn "Tips": Dragging your whole database into memory!
steven-giesel.com
https://steven-giesel.com/blogPost/1534963c-fcf4-427c-847c-6ebfd8c91f31
Topics: EF Core Performance
Read articleC# Ambient Transactions: What They Are and Why They Matter
medium.com
https://medium.com/@eve.is.sim/c-ambient-transactions-what-they-are-and-why-they-matter-c154caa8f27b
Topics: C#
Read articleC# 14: Exploring New Language Features for Modern .NET Development
c-sharpcorner.com
https://www.c-sharpcorner.com/article/c-sharp-14-exploring-new-language-features-for-modern-net-development/
Topics: C#
Read article15 Little-Known C# Array Tips That Will Supercharge Your Coding
medium.com
https://medium.com/@ashokreddy343/15-little-known-c-array-tips-that-will-supercharge-your-coding-523f521884ce
Topics: C#
Read article