When building a web server in ASP.NET Core, the APIs that deal with status codes are int based, there are multiple ways to express a status code in your code, in this post I will share my favourite. // Stop…
Defer with C# 8.0
Go (https://golang.org [https://golang.org/]) has a really nice little language feature called defer, which is a keyword that lets you defer a statement until the current function returns, and you can see an example here [https://gobyexample.…
Trying Out Daily Builds of Roslyn
I wanted to try out a daily build of Roslyn to see the effect of a recent change to the C# compiler. I know how to do this for older .NET Framework projects, I'd add a reference to…
C# 8.0 and .NET Standard 2.0 - Doing Unsupported Things
If you haven't heard, C# 8.0 is not supported on anything below .NET Core 3. This is in part due to the fact that some of the features cannot run on runtimes below .NET Core 3, and…
.NET Core 3 Local Tools
A look at the .NET Core Local Tools introduced in 3.0, contrasting the new way with the old way of dealing with locally installed tools.