The .NET News Daily Issue #185

Your Daily Dose of .NET Insights, Tools, and Trends

Tuesday's here, and it's time to slip into our thinking caps, fellow .NET whisperers. As seasoned pros, we know that code—much like a classic car—runs smoother with regular tuning. Today, let's explore the finely-tuned engines of .NET innovation, where a hint of nostalgia meets the precision of new-age solutions. Don't just rev your engines; keep scrolling and cruise through these insights tailored for the discerning developer you are.

Today's Articles

How to Convert a DataTable to a List of Objects in C#

https://www.c-sharpcorner.com/article/how-to-convert-a-datatable-to-a-list-of-objects-in-c-sharp2/

Learn how to convert a DataTable to a List<T> in C#. Explore manual, reflection-based, and LINQ methods for better performance, type safety, and cleaner code. Improve maintainability in modern C# a...

Boost Your C# Code: Why Any() is Faster Than Count() > 0 for Performance

https://medium.com/c-sharp-programming/boost-your-c-code-why-any-is-faster-than-count-0-for-performance-bd10e5275137

Discover the performance differences between Any(), Count() > 0, and Length/Count in C# through real-world benchmarks. Continue reading on .Net Programming »

Akka.NET is the Best Choice for Reactive Systems in C# .NET 9

https://www.c-sharpcorner.com/article/akka-net-is-the-best-choice-for-reactive-systems-in-c-sharp-net-9/

Build responsive and resilient applications using Akka.NET in .NET 9. Leverage the actor model to create scalable, fault-tolerant, message-driven systems with ease—ideal for real-time services, micros...

🎨 Abstract Factory Pattern in C# 14

https://www.c-sharpcorner.com/article/abstract-factory-pattern-in-c-sharp-14/

In modern C# development, particularly within enterprise applications, it’s common to deal with families of related objects.

How to Set Excel Number Formats in C#

https://medium.com/@andrewwil/how-to-set-excel-number-formats-in-c-271ff84ab457

Learn how to set Excel number formats in C# using a free .NET library to enhances your data export capabilities significantly.

The Battle of C# Serializers: BinaryFormatter vs. MessagePack vs. Protobuf (with .NET 8 Benchmarks)

https://medium.com/c-sharp-programming/the-battle-of-c-serializers-binaryformatter-vs-messagepack-vs-protobuf-with-net-8-benchmarks-3fe2ba8944c0

Why BinaryFormatter Is Dead, and How MessagePack and Protobuf Took Over Serialisation in Modern .NET Apps Continue reading on .Net Programming »

Implementing TOTP (Time-Based One-Time Password) MFA in .NET Core

https://www.c-sharpcorner.com/article/implementing-totp-time-based-one-time-password-mfa-in-net-core/

TOTP (Time-based One-Time Password) is a secure two-factor authentication (2FA) method that generates temporary, single-use codes for user verification.

Type Casting in C#: What It Is and How It Works

https://medium.com/@fulton_shaun/type-casting-in-c-what-it-is-and-how-it-works-7a3e398a922a

Learn how to safely convert between data types — and avoid unexpected results.

EF Core WITH (NOLOCK) — SqlServer

https://ogulcanturan.medium.com/ef-core-with-nolock-sqlserver-d57debbac956

For simplicity, EF Core is very useful and straightforward to use. But when it comes to some DB-specific features, we often need to handle…

Say Goodbye to Crashing Microservices in ASP.NET Core

https://itnext.io/say-goodbye-to-crashing-microservices-in-asp-net-core-738bcf60f3b6

Prevent crashes and timeouts in ASP.NET Core microservices using Polly. Learn how to implement retry, circuit breaker, and fallback… Continue reading on ITNEXT »

How to Use Copilot Slash Commands in Visual Studio

https://www.c-sharpcorner.com/article/how-to-use-copilot-slash-commands-in-visual-studio/

Discover how commands like /generate, /explain, and /tests can help you write code, fix errors, add documentation, and create unit tests more efficiently. Boost your productivity today.

Getting Started with GraphQL in .NET using Hot Chocolate — A Step-by-Step Guide

https://rahulsahay19.medium.com/getting-started-with-graphql-in-net-using-hot-chocolate-a-step-by-step-guide-390ba9300237

GraphQL is rapidly becoming the standard for building modern APIs. And if you’re working with .NET, the Hot Chocolate library makes it… Continue reading on Stackademic »

Five C# coding habits you must break

https://medium.com/dot-net-sql-learning/five-c-coding-habits-you-must-break-2ad4a075d145

As important as learning or using C#, it is equally important to develop good coding habits. But often we develop some bad habits — which… Continue reading on Dot Net, API & SQL Learning »

Use EF Core to easily save dates as UTC & show in local time

https://www.roundthecode.com/dotnet-tutorials/use-ef-core-easily-save-dates-utc-show-local-time

Learn how to create a ValueConverter in Entity Framework Core to save dates as UTC in the database & convert them back to your local time zone in ASP.NET Core. The page Use EF Core to easily save ...

Structured Logging in .NET

https://yisusvii.medium.com/structured-logging-in-net-3ebcffbbd54e

Welcome back! In Part 1, we explored the foundations of structured logging in .NET 8 Isolated applications. This guide was well received…

C# Brain Teasers

https://medium.com/pragmatic-programmers/c-brain-teasers-6ea89dabf991

by Steve Love Continue reading on The Pragmatic Programmers »

The Ultimate Guide: Choosing Between InterpolatedParser And Regex In C#

https://medium.com/@nagarajvela/the-ultimate-guide-choosing-between-interpolatedparser-and-regex-in-c-f038cf4d85b4

InterpolatedParser or Regex — choose wisely. Continue reading on Towards Dev »

Singleton Pattern in C# 14: A Deep Dive with a Real-World Example

https://www.c-sharpcorner.com/article/singleton-pattern-in-c-sharp-14-a-deep-dive-with-a-real-world-example/

In software architecture, there are scenarios where only a single instance of a class should exist throughout the lifetime of an application.

FlowLite — a lightweight way to manage state in .NET without the pain

https://medium.com/@nselyutin/flowlite-a-lightweight-way-to-manage-state-in-net-without-the-pain-87ff6aa3fcd1

Build robust, testable, and fast state machines in minutes — no boilerplate, no headaches

Behind the scenes of the new field keyword in C# 14

https://mareks-082.medium.com/behind-the-scenes-of-the-new-field-keyword-in-c-14-cb792c0a4edc

C# 14’s new field keyword: a small change promising cleaner properties — or just a cosmetic tweak?

Launching My New Book: ASP.NET Core Full-Stack Development Projects!

https://medium.com/@alexandre.malavasi/launching-my-new-book-asp-net-core-full-stack-development-projects-93704aee4676

Hey devs! 👋

On .NET Live: Clean Architecture, Vertical Slices, and Modular Monoliths (Oh My!)

https://www.youtube.com/watch?v=aBfmaVwXBP4

Building a Code Navigation Server with C# and .NET: An MCP Case Study with AICodeNavigator

https://medium.com/@shahriddhi717/building-a-code-navigation-server-with-c-and-net-an-mcp-case-study-with-aicodenavigator-883f059d938e

Modern software development relies heavily on powerful tooling for navigating complex codebases. As projects grow and encompass diverse…