<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C-Sharp on Matt Bolitho</title><link>https://mattbolitho.github.io/tags/c-sharp/</link><description>Recent content in C-Sharp on Matt Bolitho</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>Matt Bolitho</copyright><lastBuildDate>Thu, 08 May 2025 19:00:00 +0000</lastBuildDate><atom:link href="https://mattbolitho.github.io/tags/c-sharp/index.xml" rel="self" type="application/rss+xml"/><item><title>Skipping hardware instruction dependent tests in C#</title><link>https://mattbolitho.github.io/posts/skipping-hardware-instruction-dependent-tests-in-csharp/</link><pubDate>Thu, 08 May 2025 19:00:00 +0000</pubDate><guid>https://mattbolitho.github.io/posts/skipping-hardware-instruction-dependent-tests-in-csharp/</guid><description>When writing tests for a project that uses hardware intrinsics, we face the problem of ensuring that we only run tests that the host hardware supports. I recently ran into this issue for a personal project in C#, and wanted to write a post about it. There is nothing hugely complicated here, but it does allow us to explore hardware intrinsics, standard library API design, and practical testing advice in a single post.</description></item><item><title>A Result type for C#</title><link>https://mattbolitho.github.io/posts/a-result-type-for-csharp/</link><pubDate>Mon, 13 May 2024 20:00:00 +0000</pubDate><guid>https://mattbolitho.github.io/posts/a-result-type-for-csharp/</guid><description>I was recently thinking about optional/result types and how C# doesn&amp;rsquo;t have them natively. I thought I would have a go at implementing a result type myself as a challenge, because I hadn&amp;rsquo;t written any C# for a while. I chose result types specifically because C# has T? for optional types (which aren&amp;rsquo;t perfect) and there are already good functional type libraries out there with optional type implementations.
The end result was at least a little interesting, so I thought I&amp;rsquo;d write a quick post about it!</description></item><item><title>Event Report: .NET 8 Launch Party at Williams F1</title><link>https://mattbolitho.github.io/posts/event-report-dotnet-8-launch-party-at-williams-f1/</link><pubDate>Tue, 28 Nov 2023 18:00:00 +0000</pubDate><guid>https://mattbolitho.github.io/posts/event-report-dotnet-8-launch-party-at-williams-f1/</guid><description>Tonight I made my first visit to .NET Oxford for their .NET 8 launch party at the Williams F1 Experience Centre!
It has been a while since I have done any serious C# programming, but there are are definitely a lot of interesting developments in that space. I am especially interested to see how AOT compilation and Profile-Guided Optimization (PGO) can be used to generate some lean, high performance C# programs.</description></item></channel></rss>