The .NET News Daily Issue #113

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

Hello, .NET enthusiasts! As we cruise into another Friday, it's time to fuel up on some exciting .NET revelations before shifting gears into the weekend. Imagine your code is a well-serviced classic car—let's ensure it purrs smoothly with the latest updates and timeless tips. So, buckle up, because today's line-up is engineered to enhance your craftsmanship and keep your development engine running efficiently.

Today's Articles

Tracking Token Usage with Microsoft.Extensions.AI
Tracking Token Usage with Microsoft.Extensions.AI

Continuing in my recent series of posts about calling LLMs with C# using the Microsoft.Extensions.AI NuGet package, in this post I want to discuss how to track the cost of your API calls to AI models....

 
How to Use the Pub-Sub Pattern with RabbitMQ?
How to Use the Pub-Sub Pattern with RabbitMQ?

Many apps need to send the same message to multiple places at once. For example, an e-commerce site might want to notify inventory… Continue reading on Medium »

 
Lazy<T>
Lazy

💡 The Lazy<T> class in .NET Core 8 is a generic class that provides support for lazy initialization. It allows you to delay the creation… Continue reading on Medium »

 
How to use the new Lock object in C# 13
How to use the new Lock object in C# 13

How to use the new Lock object in C# 13

 
Mastering [Produces("application/json")] in ASP.NET Core
Mastering [Produces("application/json")] in ASP.NET Core

[Produces("application/json")] in ASP.NET Core ensures your API always responds with JSON, regardless of the client’s request format. It provides consistency, control, and simplicity, especi...

 
The .NET Survival Guide!
The .NET Survival Guide!

What They Won’t Tell You in Coding Class Continue reading on Readers Club »

 
ASP.NET Core 9: Discover the new developer Exception page
ASP.NET Core 9: Discover the new developer Exception page

Introduction ASP.NET Core 9 has arrived and brings interesting novelties, especially on debugging. In this...

 
Choosing Between IQueryable and IEnumerable
Choosing Between IQueryable and IEnumerable

When we are working with data in .NET, we definetly come across IQueryable and IEnumerable. Both of them let you work with data, but they… Continue reading on Medium »

 
Dapper vs EF Core: Understanding When to Use Each
Dapper vs EF Core: Understanding When to Use Each

While designing application we need to understand which we should use and what are use cases, it is very critical to decide based on… Continue reading on Yet Another »

 
[Don’t .NET] Last() at last!
[Don’t .NET] Last() at last!

Although LinkedLists may not be your go-to data structure, you might find yourself using the Last property to access the tail of the list… Continue reading on Medium »

 
What’s New in .NET 9: Essential Features Every Developer Must Know
What’s New in .NET 9: Essential Features Every Developer Must Know

.NET 9 continues Microsoft’s tradition of enhancing developer productivity and performance with an array of new features and improvements… Continue reading on Medium »

 
Mind-Blowing C# Tricks You HAVE to Try Today!
Mind-Blowing C# Tricks You HAVE to Try Today!

C# is a powerhouse language with countless features that can take your coding game to the next level. Continue reading on Medium »