Euan's Blog
  • Home
  • About
  • GitHub
Sign in Subscribe

C#

A collection of 5 posts
C#

Monitoring Windows Services With C#

Ever wanted to monitor the state of Windows Services in a .NET project? This is a problem I recently had to solve and after some experimentation I settled on using WMI to monitor changes.
04 Apr 2023 1 min read
C#

Logging with Source Generators in .NET

.NET 6 added a new feature called Source Generators, allowing compile time code generation. Microsoft's logging library makes use of these Source Generators to generate best-practice logging code.
19 Feb 2023 2 min read
C#

Parsing Data Packets In .NET

An example of how I parse data using the new Span types in .NET.
26 Sep 2020 6 min read
C#

C# JSON encoding with System.Text.Json - a small gotcha

Microsoft released a new namespace for working with JSON in .NET core 3, called System.Text.Json. I've recently spent some time trying it out with a view to moving from Json.NET.
09 Mar 2020 1 min read
C#

Using Nim with C# .NET

Nim is a statically typed programming language that compiles to C. In this post, I will show how code written in Nim can be integrated within programs written for the .NET framework in C#.
30 Sep 2016 3 min read
Page 1 of 1
Euan's Blog © 2025
Powered by Ghost