How I Use VS Code for Code Highlighting in My Blog

TL;DR Paste code from VS Code into your blog: https://github.com/slang25/html-copy-vscode The problem When I started this blog I did some investigation into how I should render fragments of code. I eventually landed on Prism, which…

Pattern Matching F# Union Types in C# 7

Starting with C# 7.0, there is basic pattern matching support. I want to look at using this to interop with F# Discriminated Unions, and see what consuming F# code from C# could look like at it's best. Here is…

IAsyncEnumerable<T> - An Introduction

The problem public async Task<IEnumerable<User>> GetUsers(){ var allResults = new List<User>(); var nextUrl = "https://account.zendesk.com/api/v2/users.json"; while (nextUrl != null) { var page = await _client.GetAsync(nextUrl) .Content.ReadAsAsync&…