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 [https:…
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.…
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)…
Adding AssemblyMetadataAttribute using new SDK project, with MSBuild
Now that we have the new project system, and we can define common assembly info in our .csproj, we can say good-bye to AssemblyInfo.cs, well, I still see these left around for general assembly attributes. For example it is…