Use Newtonsoft.Json in .NET Core 3 Web Api

October 22, 2020 .net .netcore

This post is mostly just distilling information I got from .NET Core Tutorials to revert back to Newtonsoft.Json in core WebApi.

Read More

Creating a web app with an Angular frontend


We're going to create a what I call a "WebShell" application with core on the backend and Angular on the frontend.

Read More

Enum Extension Methods

Did you know you can create extension methods for enums?

Read More

Disable C# null checks for a field or property

January 02, 2020 .net c# nrt nullable

The new nullable reference types in C# are great but sometimes you might need to disable it for a single field or property. You can do that by assigning the value to null and using the ! operator.

Read More

Use nameof() to set a string variable to its name

December 17, 2019 .net c#

This is one of those things that should have just been obvious to me but once I saw it I wondered why I had never thought to use it myself. nameof() can be used when declaring a variable to set the value of the variable to the name of the variable:

public const string MyVariable1 = nameof(MyVariable1);

public static void Main()
Read More