📅 Week 27
.NET 11 Preview - Capturing Process Output & Errors
[C#, .NET, .NET 11 Preview]
Occasionally it is necessary to run a program, typically a terminal program, and capture its output.
.NET 11 Preview - Collection Expression Arguments
[C#, .NET, .NET 11 Preview]
One of the more brilliant innovations in C# 12 was collection expressions.
.NET 11 Preview - Property Name Casing With JsonNamingPolicyAttribute
[C#, .NET, .NET 11 Preview]
When serializing JSON, you have the ability to specify the casing of the names of properties of the type.
.NET 11 Preview - Passing Environment Variables
[C#, .NET, .NET 11 Preview]
In a previous post, “Overriding appsettings.json via Environment Variables”, we looked at how to access and override environment variables in our applications.
.NET 11 Preview - Video MIME Type Constants
[C#, .NET, .NET 11 Preview]
In a previous post, “Tip - Use Constants For MIME Types”, we discussed how to use constants for MIME types, rather than the usual approach that is specifying them as strings.
.NET 11 Preview - Get Random Integral Numbers
[C#, .NET, .NET 11 Preview]
In a previous post, “Generating Random Values For Other Integral Types In C# & .NET”, we looked at the additional gymnastics needed to generate random values for other integral types, given that the Next method for the Random type was designed for integers.
📅 Week 26
.NET 11 Preview - Get Extension From MIME Type
[C#, .NET, .NET 11 Preview, MIME]
Yesterday’s post, “.NET 11 Preview - MIME Type Lookups”, looked at how to get the MIME type of a file given its extension using the new MediaTypeMap class.
.NET 11 Preview - MIME Type Lookups
[C#, .NET, .NET 11 Preview, MIME]
In a previous post, “Use Constants For MIME Types”, we discussed how to avoid specifying strings for MIME types and use built-in constants instead.
.NET 11 Preview - Customizing Tar Format
[C#, .NET, .NET 11 Preview, Compression]
In a previous post, “How To Compress Multiple Files Using GZip In C# & .NET”, we looked at how to compress multiple files using gzip compression, during which we observed that it is not in fact possible to compress multiple files using gzip, as it only supports a single file.
.NET 11 Preview - Pascal Case Json Serialization
[C#, .NET, .NET 11 Preview, System.Text.Json]
When serializing JSON, you have some leeway to specify exactly how you want the property names to be serialized. This is useful in cases where you do not control the consumer of your output, which might be fussy about the property naming.
Installing .NET 11 Preview On macOS
[C#, .NET, .NET 11 Preview]
.NET 10 was released last year, and work is in progress on .NET 11, due for release this year. As a reminder, there is an annual release cycle for .NET (a topic of hot debate).
Setting OAUTH Authentication & Authorization At Folder Level In Yaak
[Yaak, Tools]
I am a recent and happy convert to the API & endpoint testing tool Yaak, which has now replaced my previous go-to, Insomnia.
FIX - Dumping Dynamic Types In LinqPad
[Tools, LinqPad, Fix]
If you are a .NET developer, you must have come across and used Joe Albahari’s LinqPad.
📅 Week 25
Determining Your Shell In macOS & Linux
[Command Line]
If you are on Linux or macOS, chances are you already know your shell. This is even more so if you have made any customizations to your command-line experience.
FIX - Permission Error When Removing Multiple Docker Images
[Docker, Fix]
In yesterday’s post, “Removing Multiple Docker Images (Improved)”, we looked at how to remove multiple Docker images in a single command.
📅 Archives ...