In C# use the nameof() expression so your property, class and namespace references are type safe

In C# if you’re referencing property, class or namespace names in your code use the nameof() expression rather than strings … Continue reading In C# use the nameof() expression so your property, class and namespace references are type safe

Using ToLower() or ToUpper() in C# to compare strings is not safe in all cultures

If you’re using Resharper, Roslynator or similar you’ll likely see string comparisons using ToLower() or ToUpper() flagged. Why are these … Continue reading Using ToLower() or ToUpper() in C# to compare strings is not safe in all cultures

Setting Brotli compression level when using response compression in ASP.NET Core

Brotli compression can compress HTML, CSS and JS files more versus Gzip compression. If you can’t enable Brotli compression on … Continue reading Setting Brotli compression level when using response compression in ASP.NET Core