Skip to main content

Topic

.NET 10

7 articles

Preview image blogpost

No more public partial class Program in .NET 10

If you are using API Tests with the WebApplicationFactory you might did something like this to have a public Program class:

public partial class Program;

No more!

Read article

Preview image blogpost

Writing new guards with extensions in C# 14

In C# we have many nice guards sitting on top of static exceptions classes like ArgumentNullException, ArgumentOutOfRangeException, etc: As ArgumentException.ThrowIfNullOrEmpty, ArgumentException.ThrowIfNullOrWhiteSpace. Now we can extend them easily!

Read article

Preview image blogpost

HttpClient improvements in .NET 10

New dotnet version means new features and improvements. There is a nice update to the HttpClient class in .NET 10.

Read article

Preview image blogpost

Extensions get an update in .NET 10

With the latest preview: .NET 10 preview 3, we did get an overhaul on extensions. It might enable some nice tricks in the future.

Read article

Preview image blogpost

System.Linq.Async is part of .NET 10 - LINQ for IAsyncEnumerable

IAsyncEnumerable is a type that was introduced in netcoreapp3.1 times. While somewhat an enumerable (even though async in nature), it never had the capabilities as its synchronous counterpart. Until dotnet 10! Now we have some feature-parity between those two.

Read article

Preview image blogpost

Some news about .NET 10: BackgroundServices and new String Comparer

Recently, there were two new features merged in .NET 10 I think are small little quality of life improvements: Avoid Blocking on startup with BackgroundServices and a new string comparer.

Read article

Preview image blogpost

LINQ might get a "left join" operator in .net 10

LINQ has a Join operator, that basically translates to something like a SQL INNER JOIN. There is no built in operator for a LEFT JOIN in LINQ, but you can achieve the same result by using a combination of GroupJoin, SelectMany and DefaultIfEmpty. But there is a chance that this might change in the future, as there is a proposal to add a LeftJoin operator in .net 10.

Read article

An error has occurred. This application may no longer respond until reloaded.Reload x