Use ServiceCollection in Unit Tests with .NET
A popular unit test - and also a necessary test - is the correct registration of interfaces and their implementation with dependency injection. And a
A popular unit test - and also a necessary test - is the correct registration of interfaces and their implementation with dependency injection. And a
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
Working with compressed files is common in many applications, whether you're extracting data from an archive, installing software packages, or retrie
When working with .NET apps you may sometimes need to bundle multiple files into a single compressed archive for easier storage, transfer, or process
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 PerformanceCounte
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 expensiv