C# Tip: Use custom Equality comparers in Nunit tests
When writing unit tests, there are smarter ways to check if two objects are equal than just comparing every field one by one. Continue readingHow to add Dependency Injection, Configurations, and Logging in a .NET 7 Console Application
By default, you cannot use Dependency Injection, custom logging, and configurations from settings in a Console Application. Unless you create a customHost!
Continue reading
Understanding IOptions, IOptionsMonitor, and IOptionsSnapshot in .NET 7
There are several ways to handle configurations in a .NET Application. In this article, we’re going to learn how to useIOptions<T>, IOptionsSnapshot<T>, and IOptionsMonitor<T>
Continue reading
C# Tip: Advanced Switch Expressions and Switch Statements using filters
We all useswitch statements in our code. Do you use them at their full potential?
Continue reading
How to download an online file and store it on file system with C#
Downloading a file from a remote resource seems an easy task: download the byte stream and copy it to a local file. Beware of edge cases! Continue readingC# Tip: Format Interpolated Strings
Interpolated strings are those built with the$ symbol, that you can use to create strings using existing variables or properties. Did you know that you can apply custom formattings to such values?
Continue reading