Be more productive with fewer keystrokes: Access modifiers Posted by By sven.huebner.it November 10, 2021Posted inGeneral Development1 Comment Only declare access modifiers if you do not want the default. This makes the code much more readable and succinct.
How to exclude test categories by default for ‘dotnet test’ CLI Posted by By sven.huebner.it September 30, 2021Posted inTesting Exclude test categories from "dotnet test" by default via a TestCaseFilter in your .runsettings file.
Creating POCOs from XSD with a Source Generator Posted by By sven.huebner.it August 8, 2021Posted inGeneral Development How to write a source generator for generating POCOs from XSD files.
Record type gotcha with FluentAssertions 5 Posted by By sven.huebner.it July 22, 2021Posted inTesting Use version 6+ of FluentAssertions when asserting equality of record types with collections in them.
Domain Primitives III: easily creating domain-primitive-based data structures from raw data Posted by By sven.huebner.it May 30, 2021Posted inGeneral Development Only a couple dozen lines of helper code enable easy construction of validated data structures out of raw data as well as proper error tracking.
Nuget Packaging Series 1: Including other projects’ output assemblies Posted by By sven.huebner.it May 1, 2021Posted inUncategorized How to include output assemblies from referenced projects in the same nuget package.
Nuget Packaging Series: Introduction Posted by By sven.huebner.it May 1, 2021Posted inUncategorized Multifaceted requirements for a nuget package are introduced, leading to a series of posts solving each one.
Gotcha with XmlDocument.Validate and XDocument.Load Posted by By sven.huebner.it May 1, 2021Posted inUncategorized TL;DR: XmlDocument.Validate is not a read-only operation. but changes the document tree. XDocument.Load(XmlReader) adds attributes, even if they are marked as unspecified.
Returning Auto-Unregistering Objects From An Instance-Counting Factory Posted by By sven.huebner.it January 23, 2021Posted inGeneral Development Automatically unregister a disposed instance at the factory by using a wrapper around the instance that executes a factory callback on being disposed.
Domain Primitives II: forcing developers to deal with error cases Posted by By sven.huebner.it December 11, 2020Posted inGeneral Development Using a static method with a Result return type for creating domain primitives forces developers to deal with error cases.