Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Interceptors are an experimental feature, available in preview mode with C# 12. An interceptor is a method that allows you to substitute a call to an interceptable method, with a call to itself at compile time. In this article, I present how to create and use an interceptor.

Explore the journey of .NET web development from ASP.NET Framework to ASP.NET Core, encompassing technologies like Windows Forms, WPF, and Web Forms. Witness the transition to structured MVC architecture and the integration of Angular for dynamic user interfaces. Delve into the version history of .NET Framework and .NET Core.

Learn how to optimize data retrieval in your application by utilizing compiled queries. This technique, often employed in Entity Framework and LINQ, enhances performance by pre-compiling queries, resulting in faster execution times.

Explore the utilization of spatial types for data retrieval in Entity Data Model Framework 5.0. Learn how to design entities, create a web application, and implement data retrieval using Entity Framework 5.0. Experience the flexibility of pulling data via spatial types and witness successful data retrieval in the application output.

In the world of .NET development, handling JSON serialization and deserialization is a common task, especially when dealing with web APIs. In this article, we'll compare and contrast these two libraries, exploring their features, examples, advantages, and disadvantages.

Explore the comprehensive guide to Entity Framework Core in .NET 8, enriched with the latest features of C# 10. Authored by Ziggy Rafiq, this detailed overview covers everything from basic concepts to advanced techniques, offering insights into database interaction, performance optimisation, testing strategies, and best practices for .NET developers

This article talks about Unit Testing with xUnit with the .Net 8 framework as a guide. This comprehensive guide explores unit testing with xUnit in .NET 8, covering fundamentals, prerequisites, creating a sample project, writing tests, and advanced concepts like fixtures and mocking by Ziggy Rafiq.

Creating a C# .NET 8 MVC Application To Generate Dynamic Models From A Database Table. This article demonstrates how to dynamically generate models in C# .NET MVC based on database table schemas, streamlining the model creation process for improved scalability and maintainability.

In the realm of .NET Core development, managing HTTP requests efficiently is crucial for building robust and high-performance applications. In this article, we delve into the differences between HttpClient and IHttpClientFactory, examining their strengths, weaknesses, and best practices.

The Experimental attribute is a new C# 12 feature that allows you to add the Experimental attribute to your types, methods, or assemblies to indicate that they are experimental features. When someone tries to use the method or the type, the compiler will issue an error.

Generics in C# represent a cornerstone of modern software development, offering a powerful mechanism for creating reusable and type-safe code. This comprehensive article explores the fundamentals of generics, delving into practical examples and best practices to harness their full potential.

Frozen Collections is a new .NET 8 feature that can be used to create Dictionaries and Sets for faster read operations when you don’t need to make changes after the creation. In this article, I present how to work with these collections and demonstrate the performance difference when compared with other collections.

While the release of .NET 9 is planned for November 2024, the preview version is already available. One of the new .NET 9 features is the new LINQ methods: CountBy, AggregateBy, and Index. In this article, I present how to use these methods.

Implementing health checks in .NET Core applications ensures reliability. Using AspNetCore.HealthChecks, monitor application health and dependencies, facilitating proactive issue identification for enhanced performance and user satisfaction.

Overview of .NET 9 Preview 3 features, including TimeSpan overloads, runtime assembly generation, faster exception handling, inlining improvements, and terminal logger updates.

Object mapping plays a crucial role in modern software development, particularly in .NET applications where data transformation between different layers is a common requirement.

SemaphoreSlim in .NET enables efficient concurrency management, regulating resource access and ensuring thread safety. It's crucial for robust parallel programming, offering scalability without sacrificing stability in modern software development.

Synchronous programming in .NET involves sequential execution, blocking the current thread until a task completes. Asynchronous programming, on the other hand, enables non-blocking execution, improving responsiveness by allowing tasks to execute independently.

The "All-in-One" architecture, also known as the Monolithic architecture, is a traditional software design approach where all components of an application are tightly integrated into a single codebase and deployed as a single unit. In the context of .NET development, an "All-in-One" architecture typically involves building a monolithic application using the .NET framework or .NET Core (now .NET 5 and later). Let's explore this architecture in more detail

Send emails with images in C# using System.Net.Mail. Create an alternate view to embed images within HTML content. Utilize LinkedResource to reference images and SmtpClient to send MailMessage with an HTML body containing embedded images.

Auth0 offers robust solutions for app registration, JWT generation, and access token management. Developers configure settings, generate JWTs signed by Auth0's private key, and validate them using public keys. Access tokens grant permissions, and JWTs carry user info.

In the world of C# programming, events are a powerful mechanism that facilitates communication between different components of an application. In this comprehensive guide, we'll delve deep into the concept of events in C#, exploring their syntax, usage patterns, and best practices.

Publishing .NET applications with dotnet publish is essential for deployment. This tool compiles code resolves dependencies, and creates a self-contained directory for easy distribution and execution, ensuring optimal performance.

This article explores the integration of decorators in .NET projects, emphasizing design patterns and best practices. It provides examples and strategies for extending functionality dynamically while ensuring code integrity and maintainability.

In ASP.NET, passing data between controllers and views is a common requirement for building dynamic web applications. ASP.NET provides several mechanisms for achieving this, including ViewData, ViewBag, TempData, and Session.

Object Pooling optimizes resource usage by reusing objects from a pool. It enhances performance by minimizing object creation overhead. In .NET, it's implemented using a Factory pattern and a Queue for managing object instances. This approach ensures efficient object allocation and reuse.

We have been using the Dispose method for disposing objects in .NET. For the same purpose, we may also use the Finalize method. In this article I will try to explain what the Dispose and the Finalize methods are and where to use the Finalize and where to use the Dispose.

The .NET Core SDK's dotnet sln tool simplifies managing large .NET projects. Learn its commands for adding, removing, listing projects, and advanced operations, streamlining solution file management for efficient development.

Razor syntax provides seamless integration of server-side code within HTML markup, resulting in cleaner and more readable code compared to traditional ASP.NET Web Forms

This article gives a Brief overview of Visual Studio's evolution and its significance in software development. Description of each major version of Visual Studio from 1997 to 2022, highlighting key features, enhancements, and updates introduced in each release.
Everything on .NET, not only its articles: the .NET page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article