C# Tip: 2 ways to define ASP.NET Core custom Middleware
Customizing the behavior of an HTTP request is easy: you can use a middleware defined as a delegate or as a class. Continue readingC# 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 readingC# 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
C# 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
C# Tip: Access items from the end of the array using the ^ operator
Shorter code is often easier to read. Not always, but often. And the^
operator can make your code easier to read and less error-prone
Continue reading