C# features, safety, and perf
A varied .NET roundup covering claims handling, async performance, LINQ pitfalls, security mistakes, Azure Functions, and new C# 14 features.
Jasen's top three picks
- 1 Stop Using FirstOrDefault for Claims in .NET
itnext.io
Claims handling gets subtle fast; this is a good reminder not to assume the first match is the right one.
- 2 Don’t Let Blob Sync Break Your .NET App — Try This Instead
itnext.io
Blob sync and Azure SQL pieces are very practical if you’re moving data between cloud services.
- 3 Build AI-Powered Web APIs in .NET with Copilot and VS Code
medium.com
The C# 14 extension members post is the kind of language update worth skimming before it lands in your toolbox.
Editor's note
I curated a fairly mixed issue today, with practical pieces on claims handling, LINQ, and async performance alongside newer C# language coverage. The Azure Function and logging articles stand out for folks shipping real apps, while the security warning is a good reminder that small mistakes still matter.
Today's articles
Stop Using FirstOrDefault for Claims in .NET
itnext.io
https://itnext.io/stop-using-firstordefault-for-claims-in-net-71add18db5a2
Topics: Authentication C# Security
Read articleDon’t Let Blob Sync Break Your .NET App — Try This Instead
itnext.io
https://itnext.io/dont-let-blob-sync-break-your-net-app-try-this-instead-79d6fd5ef6f9
Topics: Azure Azure Functions Performance
Read articleBuild AI-Powered Web APIs in .NET with Copilot and VS Code
medium.com
https://medium.com/@hasanmcse/build-ai-powered-web-apis-in-net-with-copilot-and-vs-code-bfef6adfd3d3
Topics: Azure GitHub Copilot Web API
Read articleC# Data Science With C# 14 Features (Comprehensive Guide)
c-sharpcorner.com
https://www.c-sharpcorner.com/article/c-sharp-data-science-with-c-sharp-14-features-comprehensive-guide/
Read articleStringComparison.InvariantCulture is not always invariant
meziantou.net
https://www.meziantou.net/stringcomparison-invariantculture-is-not-always-invariant.htm
Topics: C# Performance
Read articleThe ‘using’ Statement in C# Just Got Smarter — Are You Using It?
medium.com
https://medium.com/dot-net-sql-learning/the-using-statement-in-c-just-got-smarter-are-you-using-it-1afb0c6a8879
Read articleWhy does Single() throw an exception in LINQ?
medium.com
https://medium.com/@info.codenargs/why-does-single-throw-an-exception-in-linq-f0c5787db107
Topics: C# .NET Core Performance
Read articleHackers Love This .NET Mistake — Don’t Fall for It!
medium.com
https://medium.com/write-a-catalyst/hackers-love-this-net-mistake-dont-fall-for-it-31110144fda5
Topics: Authentication C# Security
Read articleHow do I track a database in source control?
youtube.com
https://www.youtube.com/watch?v=xzqpf0Nq06o
Topics: .NET Framework GitHub SQL Server
Read articleC# 14 – Exploring extension members
devblogs.microsoft.com
https://devblogs.microsoft.com/dotnet/csharp-exploring-extension-members/
Topics: C# .NET 10 Source Generators
Read articleWhen Old .NET Habits Save New SQLite Code
medium.com
https://medium.com/@rbrooks33/when-old-net-habits-save-new-sqlite-code-33d952d62a4a
Topics: C# Performance SQL Server
Read articleC# 10 File-Scoped Namespace: New Generation Namespace Usage
medium.com
https://medium.com/womenintechnology/c-10-file-scoped-namespace-new-generation-namespace-usage-0eaa96132079
Read articleBoost Your .NET Projects: Enhancing .NET Logging with LoggingHelper in Spargine
dotnettips.wordpress.com
https://dotnettips.wordpress.com/2025/05/07/boost-your-net-projects-enhancing-net-logging-with-logginghelper-in-spargine/
Topics: C# Performance Serilog
Read articleBuild & Deploy Azure Function Using C# and Integration with Azure SQL
c-sharpcorner.com
https://www.c-sharpcorner.com/article/build-deploy-azure-function-using-c-sharp-and-integration-with-azure-sql/
Topics: Azure Azure Functions SQL Server
Read articleSOLID Principles in C# — In-Depth Guide with Real World Examples
medium.com
https://medium.com/@hpultimatemedia/solid-principles-in-c-in-depth-guide-with-real-world-examples-7017f3dc7a29
Topics: C# Design Patterns Solid Principles
Read article10 Costly Mistakes Developers Make When Using GC.Collect() in C#
medium.com
https://medium.com/@ashokreddy343/10-costly-mistakes-developers-make-when-using-gc-collect-in-c-5a746c79ab06
Topics: Benchmarking C# Performance
Read articleWhat are you most excited about in .NET right now?
youtube.com
https://www.youtube.com/watch?v=qPIJ2lKhBKI
Read articleYASA - Yet another S.O.L.I.D. article
medium.com
https://medium.com/@markjackmilian/yasa-yet-another-s-o-l-i-d-article-e937f73c2dc9
Topics: C# Design Patterns Solid Principles
Read articleAsync/Await in C#: How to Avoid the Hidden Performance Pitfalls
medium.com
https://medium.com/@mohsho10/async-await-in-c-how-to-avoid-the-hidden-performance-pitfalls-4641f5eb4c12?source=rss------csharp-5
Topics: C# .NET Core Performance
Read article