C# Nullable Reference Types: IntelliSense Confusion 2020-02-13 16:49 UTC .NET .NET Core C# Visual Studio The feature and concept of Nullable reference types were introduced in C# 8.0 and it basically made all types non-nullable by default and ensured that these...
PowerShell LINQ with Short Aliases 2019-07-15 17:04 UTC .NET C# LINQ PowerShell Most modern applications or code today deal with some kind of filtering or querying. In C# and .NET, we have Language Integrated Query (LINQ), which we also...
HTML Encode TagHelper in ASP.NET Core 2019-06-27 14:31 UTC .NET .NET Core ASP.NET ASP.NET C# Core HTML Razor For a specific scenario recently, I wanted to display the HTML-encoded output of a TagHelper in ASP.NET Core. So I wanted to use the TagHelper, but not output...
API Rate Limit HTTP Handler with HttpClientFactory 2019-02-18 16:01 UTC .NET .NET Core C# HTTP Most APIs have a Rate Limit of some sort. For example, GitHub has a limit of 5000 requests per hour. This can be handled, as a consumer of the API, by limiting...
LINQ Distinct-Method using Lambda Expression 2018-08-21 05:33 UTC .NET .NET Core C# Entity Framework LINQ If you've ever wanted to filter a collection for a distinct result you probably know about the extension-method .Distinct in LINQ. It can be useful on simple...