What’s new in C# 14.0
C# 14.0 will be released in November 2025, at the same time as .NET 10.
C# 14.0 is currently in preview:
- Preview 1 (25 Feb 2025)
.NET 10 will be released in November 2025. .NET 10 is a Long Term Support (LTS) version, which will receive free support and patches for 3 years from the release date, up until November 2028. .NET 10 is currently in preview: End of support .NET 10 is a Long Term Support (LTS) version, and will…
The params modifier in C# has traditionally been associated with array types, allowing methods to accept a variable number of arguments. However, starting with C# 13, you can now use params collections with a variety of collection types, broadening its applicability and making your code even more versatile. Supported collection types The params modifier now…
Starting with .NET 8, it’s possible to directly generate a tar.gz container archive. This is particularly advantageous for more complex workflows where activities like scanning the images before pushing them are needed. After creating the archive, it can be transferred, scanned, or incorporated into your local Docker setup. For archiving during publication, integrate the ContainerArchiveOutputPath…
Code snippets are a great way of improving your productivity because they allow you to define pieces of code which you can later on insert into your projects by using a short alias. Although they’ve been in Visual Studio for quite some time not many people know what they are, what exactly they do and…
Starting with .NET 8 you can disable the default reflection-based serializer that comes with System.Text.Json. This can be useful in trimmed and native AOT applications where you don’t want to include the reflection components in your build. You can enable this feature by setting the JsonSerializerIsReflectionEnabledByDefault property to false in your .csproj file. As a…
The With…End With statement in VB allows you to execute a series of statements that epeatedly refer to a single object. Thus the statements can use a simplified syntax for accesing members of the object. For example: Is there a C# syntax equivalent? No. There is not. The closest thing to it would be the…