benjamin-abt.com

Performance is a feature | Cloud - AI - Azure - .NET - Sustainability

  • Home
  • Blog
  • Portfolio
  • Contact
  • Home
  • Blog

Blog

Use ServiceCollection in Unit Tests with .NET
10 Oct 2024

Use ServiceCollection in Unit Tests with .NET

By BEN ABT Csharp .NET 5 min reading time

A popular unit test - and also a necessary test - is the correct registration of interfaces and their implementation with dependency injection. And a common mistake is that the associated IServiceCollection interface is …

Read Blog Post
How to process ZIP Files from a Stream in .NET
24 Aug 2024

How to process ZIP Files from a Stream in .NET

By BEN ABT Csharp .NET 2 min reading time

When working with ZIP files in .NET, there may be cases where the file is not stored on disk but comes directly as a Stream. This could happen if you’re downloading the ZIP file from a network, receiving it via an API or …

Read Blog Post
Decompress a ZIP archive with .NET
16 Aug 2024

Decompress a ZIP archive with .NET

By BEN ABT Csharp .NET 2 min reading time

Working with compressed files is common in many applications, whether you’re extracting data from an archive, installing software packages or retrieving bundled files. Thankfully, .NET finally provides an efficient, …

Read Blog Post
Compress a folder of files to a ZIP archive with .NET
15 Aug 2024

Compress a folder of files to a ZIP archive with .NET

By BEN ABT Csharp .NET 2 min reading time

When working with .NET apps you may sometimes need to bundle multiple files into a single compressed archive for easier storage, transfer or processing. In this post, I’ll show you a simple and effective way to compress …

Read Blog Post
Read cpu load on Windows with .NET
02 Aug 2024

Read cpu load on Windows with .NET

By BEN ABT Csharp .NET 1 min reading time

In C# (.NET 6 and above), there is now a very simple way to read out the CPU load with minimal overhead - i.e. without threads. The PerformanceCounter from the System.Diagnostics namespace helps us with this.

Read Blog Post
.NET: the cost of returning an empty collection
22 Jul 2024

.NET: the cost of returning an empty collection

By BEN ABT Csharp .NET 2 min reading time

Dealing with empty lists is an everyday situation in .NET. An empty list is often preferred to a null in order to control the logic. But how expensive is it to return an empty list?

Read Blog Post
.NET: use a preview version in your global.json
17 Jun 2024

.NET: use a preview version in your global.json

By BEN ABT Csharp .NET 1 min reading time

We are currently in the preview phase of .NET 9 , which releases in Nov 2024 - and if you want to test it extensively like I do, store the preview version in the global configuration global.json . But how do you have to …

Read Blog Post
Efficiently clean a string with .NET
28 May 2024

Efficiently clean a string with .NET

By BEN ABT Csharp .NET 6 min reading time

Strings are one of the most commonly used types in .NET applications - and very often the source of inefficient code. For example, cleaning up a string - such as removing invalid or non-visible characters - is one of the …

Read Blog Post
Refit .NET - my personal caller best practise
21 May 2024

Refit .NET - my personal caller best practise

By BEN ABT Csharp .NET 4 min reading time

Refit is an open-source library for .NET developers that simplifies the process of making HTTP API calls. It allows developers to define a set of interfaces that describe the API endpoints they want to interact with and …

Read Blog Post
Strong Name Sign .NET Assemblies via SNK
25 Apr 2024

Strong Name Sign .NET Assemblies via SNK

By BEN ABT Csharp .NET 4 min reading time

Strong Name Signing is a mechanism in .NET development that ensures the integrity and authenticity of assemblies. It is based on a public-private key procedure. Contrary to what many assume, this is not a security …

Read Blog Post
  • Previous
  • 1
  • ...
  • 7
  • 8
  • 9 (current)
  • 10
  • 11
  • ...
  • 32
  • Next

Open for work!

Contact Me
BEN ABT BEN ABT Software Engineer · Microsoft MVP Passionate about .NET, Azure, performance optimization and sustainable software engineering.

Medialesson GmbH Logo

Microsoft MVP Logo

Recent Posts
View All
MCP C# SDK 2.0: Stateless HTTP, Interactive Tools and a Practical Migration Path
MCP C# SDK 2.0: Stateless HTTP, Interactive Tools and a …
Aug 3, 2026
Handle time correctly in .NET: TimeProvider
Handle time correctly in .NET: TimeProvider
Jul 27, 2026
Run Hono on Azure Static Web Apps: managed Functions APIs for static frontends
Run Hono on Azure Static Web Apps: managed Functions APIs …
Jul 19, 2026
Problem Details in ASP.NET Core and .NET 10
Problem Details in ASP.NET Core and .NET 10
Jul 15, 2026
Using MeterListener with the new .NET 11 MemoryCache metrics
Using MeterListener with the new .NET 11 MemoryCache metrics
Jul 14, 2026
Tags
.NET (173) Csharp (83) ASP.NET Core (41) Azure (35) Devops (16) Microsoft (14) Docker (12) EF Core (11) Microsoft MVP (11) ASP.NET (9) Github (9) Synology (9) Dotnet (8) Ai (7) Azure Functions (7) C# (7) Cloudflare (7) Github Copilot (7) Raspberry (7) Bicep (6)
benjamin-abt.com
About BEN

Benjamin Abt is a Software Engineer, Platform Architect and Microsoft MVP specializing in .NET, Azure, cloud architecture, performance optimization and sustainable software development.

Connect
  • Follow me on GitHub
  • Follow me on LinkedIn
  • Follow me on Mastodon
  • Microsoft MVP Profile
  • Follow SchwabenCode on GitHub
  • Follow me on Twitter
Quick Links
  • Portfolio
  • Blog
  • Publications
  • Contact
Open for Work

© Copyright 2011 - 2026. All Rights Reserved.

Content licensed under CC BY 4.0 unless otherwise noted.

  • Impressum
  • Privacy
  • Contact