Today’s Articles Cover MediatR, Blazor Web Apps, C# 12 Primary Constructors, and Performance Optimization

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

Feel like sharing?

Exploring MediatR Alternatives, Enhancing Blazor Web Apps, and Leveraging C# 12 Primary Constructors for Cleaner Code | Daily Issue #183

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

List of Article’s

The Easiest Way to Replace MediatR!

https://medium.com/@paveluzunov/the-easiest-way-to-replace-mediatr-cb6a0fa07ded?source=rss——csharp-5

If you’ve been using MediatR in your .NET projects, you might have encountered the recent commercial shift. In this article, discover how to replace MediatR with your own CQRS-based mediator—a lightweight and customizable solution that reduces external dependencies and gives you full control over your .NET codebase. Learn how to build a clean, efficient, and license-free mediator, ideal for developers seeking simplicity and flexibility in their applications.

A custom 404 page in Blazor Web Apps

https://steven-giesel.com/blogPost/38a4f1dc-420f-4489-9179-77371a79b9a9

In Blazor Web Apps, creating a custom 404 page has evolved with .NET 8, especially since the <NotFound> tag of the Router no longer functions as expected. This article walks you through how to build your own 404 page in the new Blazor Web App model. Learn to implement a fallback page that catches 404 errors and provides a tailored user experience without extra complexity or dependencies. Perfect for .NET developers looking to improve navigation and user flow in their Blazor applications.

Primary Constructors in C# 12

https://www.c-sharpcorner.com/article/primary-constructors-in-c-sharp-12/

With C# 12 introducing primary constructors in .NET 8, class and struct definitions are now more concise and readable than ever. This feature eliminates the need for repetitive code, such as manual constructor declarations and backing fields. In this article, explore how primary constructors streamline code for DTOs, service classes, and simple models. Learn how they reduce boilerplate, improve maintainability, and simplify your C# 12 development workflow.

Five biggest performance issues in C#

https://medium.com/@CodeCrack/five-biggest-performance-issues-in-c-622e11910610

In C# and .NET development, performance issues can significantly impact your application’s efficiency, especially in large-scale or high-load environments. This article highlights 5 critical performance pitfalls in C#, including common issues like boxing/unboxing and inefficient LINQ usage. By identifying and addressing these problems, you can boost your application’s speed and memory efficiency, leading to smoother performance in your C# projects »

The Evolution of .NET: A Journey from .NET Framework to .NET Core to Modern .NET

https://medium.com/@mahendra.gurav/the-evolution-of-net-a-journey-from-net-framework-to-net-core-to-modern-net-efcace49c6c0

The evolution of .NET has been a transformative journey, from the .NET Framework to .NET Core and now to Modern .NET 5+. This article explores the milestones of .NET’s development, including the shift to cross-platform support, the rise of open-source development, and the unification of the platform with .NET 5+. Discover how .NET Core improved performance, scalability, and containerization, and how .NET 5+ has become the go-to solution for all types of applications, from web and mobile to IoT and cloud.

Decorator Pattern — C#

https://medium.com/@martinstm/decorator-pattern-c-cbf4b7ccf474

In C#, the Decorator Pattern is a powerful structural design pattern that allows you to add new behavior to objects without modifying their original code. This pattern promotes composition over inheritance and is particularly useful when you need to extend the functionality of a class in a flexible, maintainable way. In this article, explore how the Decorator Pattern works in real-world scenarios like caching, retry logic, and dependency injection, and learn how to implement this pattern efficiently in .NET 8 to enhance your service layers.

Domain Layer Navigation Properties in .NET C#: Best Practices

https://medium.com/@20011002nimeth/domain-layer-navigation-properties-in-net-c-best-practices-1d9c9c24684d

In Domain-Driven Design (DDD), navigation properties in C# are crucial for modeling relationships between domain entities. However, improper use of these properties in Entity Framework Core (EF Core) can lead to performance issues, tight coupling, and even circular references. This article covers the best practices for implementing navigation properties, such as using lazy loading cautiously, avoiding unnecessary bidirectional navigation, and preventing N+1 query problems. Learn how to keep your domain logic clean, maintainable, and performant with EF Core.

Why Custom Software Development Is the Key to Business Growth in 2025

https://www.c-sharpcorner.com/article/why-custom-software-development-is-the-key-to-business-growth-in-20252/

In 2025, custom software development is transforming businesses by providing tailored solutions that enhance efficiency, security, and scalability. Unlike off-the-shelf software, custom solutions are designed to meet specific business needs, streamline processes, and improve customer experiences. This article explores how custom software can help businesses reduce dependency on third-party tools, boost data security, and ensure compliance with evolving regulations. Learn how investing in customized digital solutions positions businesses for long-term growth and a competitive edge in the digital age.

Blazor Deep Dive: C# in the Browser & Beyond — Is It Right for You?

https://medium.com/@20011002nimeth/blazor-deep-dive-c-in-the-browser-beyond-is-it-right-for-you-b34b2ede2683

In a world dominated by JavaScript frameworks like React and Angular, Blazor stands out as a game-changer for .NET developers looking to build interactive, client-side web UIs using C#. With Blazor’s support for WebAssembly (WASM), Blazor Server, and Hybrid applications, you can now leverage .NET across all layers of your application, from backend to frontend. This article dives into Blazor’s architecture, key features, and performance advantages, while exploring its potential for cross-platform development, including web, desktop, and mobile applications.

RAG on Video using Azure AI Content Understanding

Joe shows how this can be achieved using a single Azure AI Content Understanding API in Azure AI Foundry. Content Understanding documentation, https://aka.ms/cu-docs

10 Reasons Your .NET App Is Still at Risk in 2025 — How to Secure It

https://itnext.io/10-reasons-your-net-app-is-still-at-risk-in-2025-how-to-secure-it-efbaa229589d

In 2025, .NET applications continue to face security risks, many of which stem from common vulnerabilities like injection flaws, broken authentication, and more. This article walks through the OWASP Top 10 security risks, offering practical .NET examples, secure coding practices, and recommended libraries to help you protect your ASP.NET Core services. Learn how to identify security weaknesses in your .NET applications and follow best practices to ensure your code is secure-by-default. »

Using older .NET Frameworks with Visual Studio 2022

https://medium.com/@jonschdev/using-older-net-frameworks-with-visual-studio-2022-2ef4e77a7a81

In 2025, many businesses still rely on legacy .NET frameworks, and Visual Studio 2022 does not natively support .NET Framework 4.5 or earlier versions out of the box. This article guides you through the steps to work with older .NET Frameworks in Visual Studio 2022, enabling you to maintain and update projects without switching to outdated IDE versions. Learn how to manage technical debt, integrate older frameworks, and continue supporting legacy .NET applications with ease. Whether you’re dealing with infrastructure or customer requests, this article provides a practical solution for handling older .NET frameworks in modern development environments.

🔴 VS Code Live: Coding with Gemini in GitHub Copilot

Demystifying Records in C#: Immutable Design for Modern Applications

https://www.c-sharpcorner.com/article/demystifying-records-in-c-sharp-immutable-design-for-modern-applications/

In C# 12, record types have become an essential tool for developers seeking to simplify data modeling while embracing immutability and value-based equality. Introduced in C# 9 and refined in later versions, records provide a powerful way to define immutable data structures with minimal code and maximum clarity. In this article, we dive deep into how records in C# have evolved, from primary constructors to the latest features in C# 14. Whether you’re working with DTOs, DDD entities, or functional pipelines, record types offer an elegant solution to model data efficiently and safely. Explore their advantages over traditional classes and structs, and learn why adopting records in modern C# development leads to more maintainable and expressive code.

What is Razor Syntax?

https://medium.com/@chikeredev/what-is-razor-syntax-421e4cb442d9?source=rss——csharp-5

Understanding Razor syntax is a key skill for ASP.NET Core developers, as it seamlessly integrates C# code within HTML to create dynamic web applications. In this article, we dive into how Razor simplifies the development process by allowing developers to embed backend code directly in view files (CSHTML). Learn the syntax, its benefits, and how it can streamline your workflow by enabling server-side logic to generate dynamic HTML content effortlessly. Whether you’re building web apps with MVC or Razor Pages, mastering Razor syntax will significantly improve your productivity and code maintainability.

Announcing the GPT-4.1 model series for Azure AI Foundry and GitHub developers

Announcing the GPT-4.1 model series for Azure AI Foundry and GitHub developers

Introducing GPT-4.1 — the next-generation model in the GPT-4o family, now available on Azure OpenAI Service. With improvements in coding capabilities, instruction-following, and the ability to handle long-context processing, GPT-4.1 is designed to enhance the productivity and efficiency of developers. Key advancements like fine-tuning support, improved front-end code generation, and long token inputs (up to one million tokens) make this model a game-changer for AI-powered applications. Whether you’re building custom AI solutions or optimizing workflows, GPT-4.1 brings unparalleled performance and flexibility to your business.

.NET 9 Just Changed the Game — Are You Ready to Build Faster?

https://medium.com/turbo-net/net-9-just-changed-the-game-are-you-ready-to-build-faster-f9f0bb19a5bd

.NET 9 has just redefined performance for developers, and if you’re not already leveraging its cutting-edge features, you’re missing out on significant speed gains. In this performance guide, we’ll explore 6 key upgrades in .NET 9, including Native AOT, dynamic PGO, smarter LINQ, and blazing-fast Regex. With real code examples and trustworthy benchmarks, you’ll discover how to build faster and optimize performance in your .NET applications. Ready to level up your development game? Dive into this comprehensive guide and unlock the true potential of .NET 9 »

If LLMs Can Code, Why Are We Building More IDEs?

https://www.poppastring.com/blog/if-llms-can-code-why-are-we-building-more-ides

In today’s fast-paced world of software development, the rise of Large Language Models (LLMs) has sparked a major debate: Could they replace human developers and make traditional coding obsolete? With AI-assisted tools generating functional code snippets, debugging, and even optimizing performance, it’s easy to think we’re heading towards an era where developers step aside. However, the explosion of new AI-powered IDEs suggests a different reality. Instead of eliminating coding, AI-enhanced development environments are reshaping the way developers interact with code. This article explores the paradox of LLMs in coding, why AI-powered IDEs are on the rise, and how they might revolutionize development workflows while keeping developers at the center of the process.

The Hidden Cost of else in .NET (And How to Write Code Like the Pros)

https://medium.com/@metoz.florian/the-hidden-cost-of-else-in-net-and-how-to-write-code-like-the-pros-9c1c34b1b48b

In the world of .NET development, clean code is essential for long-term maintainability and efficiency. However, one seemingly innocuous element—the else statement—can silently undermine even the most meticulously written code. As simple as it may seem, excessive use of else often leads to deeply nested logic, making code harder to read, maintain, and debug. This article dives into the hidden cost of else in .NET, explaining why avoiding else can help you write cleaner, more professional code. Learn how to implement flat logic, simplify conditional statements, and improve readability by reducing unnecessary branches in your methods.

Entity Framework Core – Deep Performance Optimization Guide

https://www.c-sharpcorner.com/article/entity-framework-core-deep-performance-optimization-guide/

In Entity Framework Core (EF Core) applications, performance optimization is crucial for delivering fast and responsive services. Whether you’re building APIs, microservices, or data-intensive platforms, EF Core performance can significantly impact speed, scalability, and overall user experience. In this comprehensive guide, we delve into 16 proven strategies to boost your EF Core performance, including AsNoTracking, eager loading, compiled queries, and using third-party libraries like EFCore.BulkExtensions. Learn how to streamline your EF Core queries, reduce memory usage, and optimize your database calls to make your applications production-ready and lightning-fast.

Exploring C# 14: New Features and Enhancements

https://www.c-sharpcorner.com/blogs/exploring-c-sharp-14-new-features-and-enhancements

Discover the latest advancements in C# 14 with .NET 10 and how these features can elevate your programming experience. From Span<T> and ReadOnlySpan<T> for optimized memory usage to the new field keyword for simplifying property declarations, C# 14 introduces several powerful enhancements. Learn how null-conditional assignments and extension members improve code readability and flexibility, enabling developers to write cleaner, more efficient applications. Whether you’re building high-performance systems or looking to streamline daily tasks, C# 14 offers practical solutions that boost developer productivity and enhance application performance.

.NET 10 Preview 3 – C# 14 Extension Properties & Null-Conditional Assignment

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 *