Blogged: Invariant culture string interpolation with [InterpolatedStringHandler]
https://t.co/r2pH3MVbWz
In this post I show how you can use a custom interpolated string handler to ensure string interpolation formats values using the invariant culture
#dotnet
Andrew Lock shows how to shrink NativeAOT binaries by 22–25% using Sizoscope and ILLink.Substitutions.xml. By turning runtime checks into compile-time constants, the linker trims dead code and entire dependency chains.
🔗https://t.co/oNmQgvH9mo via @andrewlocknet
Understanding Lazy<T> thread safety modes
https://t.co/LVQLqM56wY
In this post I look at how the different LazyThreadSafetyMode values work with Lazy<T> and how exceptions are handled for each mode
#dotnet
JSON is great. But are you also familiar with CBOR... JSON's compact, binary-loving cousin? 📦⚡
Curious when CBOR makes sense, why developers are using it & how to work with it in #dotNET? @andrewlocknet breaks it all down.
Dive into the full article: https://t.co/CSKS7Zifrm
Blogged: An introduction to Compact Binary Object Notation (CBOR) in .NET
https://t.co/uTwDpDNZEF
In this post I introduce CBOR as a JSON alternative, and show how to use the System.Formats.Cbor NuGet package to read and write CBOR encoded data
#dotnet#aspnetcore
Stripping extra dependencies in .NET NativeAOT apps using linker substitutions
https://t.co/68DxGSf8Cp
In this post I describe how to perform method substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused
#dotnet
Experimental support for Device Bound Session Credentials (DBSC) in ASP .NET Core: Exploring the .NET 11 preview - Part 8 by @andrewlocknet https://t.co/l5hJOJEcHR #aspnetcore
Blogged: Experimental support for Device Bound Session Credentials (DBSC) in https://t.co/80fop16EI1 Core - Exploring the .NET 11 previews
https://t.co/h51bJF6tae
In this post I look at the new experimental support for DBSC coming in .NET 11
#dotnet#security#aspnetcore
@nonlinear_james Sure, I get that, but again... That's all unrelated to DBSC? 🤔 It doesn't mean "there's only specific devices you can log in from". It's not passkeys. It's not MFA.
Understanding Device Bound Session Credentials (DBSC)
https://t.co/4stoRPdZBc
In this post I provide an introduction to Device Bound Session Credentials, I look at how DBSC protects against session hijacking, and how the protocol works.
#security#dotnet
Blogged: The pain of serializing unions and closed class hierarchies with System.Text.Json in .NET 11
https://t.co/xTz50eIfQ0
In this post I discuss the Json support for unions and closed hierarchies coming in .NET 11, the decisions made, and some of the sharp edges
#dotnet
Blogged: Finding the total number of processors on a machine with .NET
https://t.co/7SBfrBouE2
In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET
#dotnet