Skip to content

Sven Hübner IT

  • Home
  • Blog

Blog

  • Home
  • Blog
  • Page 3

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

Posts pagination

Previous page 1 2 3 4 5 Next page
Copyright 2025 — Sven Hübner IT. All rights reserved. Sinatra WordPress Theme
Scroll to Top