Today’s articles include topics on ASP.NET Core, Akka.NET, C# Serialization, TOTP MFA, and performance optimization

.NET News - Daily C# and .NET curated articles from all over the internet.

Feel like sharing?

Mastering ASP.NET Core Microservices, Enhancing Security with TOTP MFA, and Building Scalable Systems with Akka.NET | Daily Issue #185

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

It’s Tuesday, and time to power up, fellow .NET enthusiasts. As seasoned developers, we know that code—just like a finely tuned machine runs best with continuous optimization.

Today, let’s dive into the innovative world of .NET development, where the precision of modern solutions meets the timeless effectiveness of established practices.

Don’t just shift gears—keep reading and accelerate through these expert insights, crafted specifically for the discerning developer seeking to stay ahead in the world of ASP.NET Core, Akka.NET, C#, and performance-driven solutions.

List of Article’s

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 efficiently convert a DataTable to a List<T> in C# using manual, reflection, and LINQ methods. Improve code maintainability, type safety, and performance in modern C# applications.

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 why Any() outperforms Count() > 0 in C# for performance, especially when working with large datasets. Learn through real-world benchmarks how small code adjustments can make a big impact. »

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/

Learn why Akka.NET is the best framework for building reactive systems in C# .NET 9. Explore its core features like concurrency, scalability, and fault tolerance, with a hands-on example for creating a reactive banking system.

🎨 Abstract Factory Pattern in C# 14

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

Learn how to implement the Abstract Factory pattern in C# 14 for creating families of related objects. Explore its benefits in UI theming, scalability, and maintainable architecture for enterprise applications.

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 the Spire.XLS library. Discover examples for currency, percentages, dates, and custom formats to enhance Excel automation in your applications.

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

Explore the performance differences between BinaryFormatter, MessagePack, and Protobuf in C# with .NET 8 benchmarks. Learn why BinaryFormatter is obsolete and how modern serialization techniques can enhance your app’s performance and security »

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/

Learn how to implement TOTP (Time-Based One-Time Password) MFA in .NET Core. Follow step-by-step instructions to enhance your application’s security with two-factor authentication (2FA), including setup and 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

Master type casting in C# with this guide on implicit and explicit casting, as well as safe conversion methods like Convert.ToInt32(). Learn best practices for handling data types and avoid common pitfalls in your C# applications.

EF Core WITH (NOLOCK) — SqlServer

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

Learn how to apply WITH (NOLOCK) in EF Core to optimize SQL Server queries for better performance. Follow this step-by-step guide to automatically inject NOLOCK into queries, improving speed while managing uncommitted data.

Say Goodbye to Crashing Microservices in ASP.NET Core

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

Learn how to prevent crashes and timeouts in ASP.NET Core microservices using Polly. Implement retry, circuit breaker, and fallback strategies to enhance resiliency and uptime in your microservices architecture»

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 to use GitHub Copilot slash commands in Visual Studio to boost productivity. Learn commands like /generate, /fix, /explain, and /tests to automate coding tasks, enhance code quality, and streamline your development process.

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

Learn how to set up a GraphQL server in .NET using Hot Chocolate. This step-by-step guide covers creating types, queries, and resolvers to build efficient and scalable APIs in .NET 6/7/8»

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 save DateTime values as UTC and display them in local time using EF Core. Follow this guide for efficient date handling in .NET applications with ValueConverters and multi-timezone support …

Structured Logging in .NET

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

Enhance your .NET 8 logging with structured logging and transactional logging using TransactionId for improved observability. Learn how to enrich logs, track operations, and integrate with Serilog, Datadog, and Seq.…

C# Brain Teasers

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

Challenge your C# skills with brain teasers covering loops, exceptions, object lifetime, type conversions, and more. Expand your understanding of C# features with puzzles designed to improve your coding practices and problem-solving abilities»

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

Explore the performance differences between InterpolatedParser and Regex in C# for efficient string parsing. Learn when to use each method, backed by 10x speedup benchmarks, to optimize your application’s parsing capabilities»

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/

Master the Singleton pattern in C# 14 with a real-world example. Learn how to implement a thread-safe, lazy-loaded configuration reader and explore best practices for building scalable, maintainable enterprise applications.

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

Manage state transitions in .NET with FlowLite, a lightweight FSM engine. Learn how to handle complex workflows, implement thread-safe transitions, and optimize performance with a fluent API and custom logic hooks.

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

Explore the new field keyword in C# 14 for cleaner property setters and reduced boilerplate code. Learn how this feature enhances maintainability, improves code clarity, and provides isolation for backing fields in your applications.

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! 👋 Discover the ASP.NET Core Full-Stack Development Projects book by Alexandre Malavasi. Learn how to build real-world applications using ASP.NET Core, Angular, Vue.js, Blazor, and more. Perfect for developers seeking full-stack .NET expertise.

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

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

Learn how to build an MCP server with C# and .NET, using AICodeNavigator as a case study for advanced code navigation and analysis. Discover the Model Context Protocol (MCP) for integrating modular developer tools with flexible communication options.

Subscribe to the .NET Newsletter and never miss another awesome article.

Leave a Reply

Your email address will not be published. Required fields are marked *