Removing byte[] allocations in .NET Framework using ReadOnlySpan<T>
Learn how to reduce byte[] allocations in .NET Framework using ReadOnlySpan<T> for better performance.
Andrew Lock — Full-stack ASP.NET developer and creator of .NET Escapades, sharing in-depth tutorials and practical insights on ASP.NET Core, C#, and modern .NET development, backed by a PhD and author of ASP.NET Core in Action.
32 articles from this blog
Learn how to reduce byte[] allocations in .NET Framework using ReadOnlySpan<T> for better performance.
Guide on creating custom Docker sandbox templates for AI agents to add tools and dependencies safely.
Guide to safely running AI coding agents in a microVM using Docker Sandbox, enabling dangerous mode without risking system damage.
Exploring the Microsoft.Extensions.Options.Contextual package for dynamically configuring .NET options based on context.
Details the restructuring of the NetEscapades.EnumGenerators source generator package into three packages, aiming for a stable 1.0 release.
A deep dive into using the System.Diagnostics.Metrics source generators in .NET for creating strongly-typed, boilerplate-free telemetry code.
Introduction to creating and monitoring custom metrics in .NET applications using the System.Diagnostics.Metrics APIs and dotnet-counters.
Explains a technique using reflection and dynamic methods to eliminate allocations when using foreach on an IEnumerable<T> in C#.
A review of File Pilot, a fast and feature-rich replacement for Windows File Explorer, covering its benefits, installation, and current limitations.
Updates to NetEscapades.EnumGenerators source generator, adding new APIs and System.Memory support for faster enum operations.
A tutorial on building a basic .NET CLR profiler using the Silhouette library and NativeAOT to log assembly loads.
A developer's first impressions and customization of the Zed editor for .NET and Markdown work, comparing it to VS Code and other IDEs.
Updates to the NetEscapades.EnumGenerators NuGet package, adding [EnumMember] support, analyzers, and bug fixes for faster enum operations.
Explains how to enable and use .NET host tracing to debug and understand the boot process of .NET applications.
Explores the new [UnsafeAccessorType] feature in .NET 10, which improves access to private members in code compared to earlier .NET versions.
Analysis of CVE-2025-55315, a critical HTTP request smuggling vulnerability in ASP.NET Core with a CVSS 9.9 score, its impact, and mitigation.
Explains how to add and use metadata with fallback endpoints in ASP.NET Core routing, including nuances for MVC/Razor Pages.
Guide to publishing NuGet packages from GitHub Actions using Trusted Publishing, eliminating API key management.
A developer builds a .NET Native AOT tool to force a Windows PC to sleep after a timer, detailing the Win32 API and tool creation.
Exploring .NET 10's new platform-specific tool features and strategies for maintaining compatibility with older .NET SDK versions.