Skip to content
Sven Hübner IT
  • Home
  • Blog

C#

  • Home
  • Blog
  • C#
  • Page 2

Recap: One Year Using C# 9 with .NET Framework

Posted by By sven.huebner.it February 12, 2022Posted inGeneral Development
You can use C# 9 language features with .NET Framework or netstandard. After more than a year, I can recommend it.
Read More

Be more productive with different keystrokes: Explicit interface implementation

Posted by By sven.huebner.it January 8, 2022Posted inGeneral Development
Implement interfaces explicitly to convey intent, get more help from the compiler and maybe type less.
Read More

Be more productive with more keystrokes: seal all the things

Posted by By sven.huebner.it November 20, 2021Posted inGeneral Development
Declare your classes (and records!) sealed by default.
Read More

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

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

Performance Optimization Guided By Benchmarks

Posted by By sven.huebner.it August 22, 2020Posted inPerformance
This post is just a summary of a few things I learned about performance optimization of CPU-bound / memory-bound processes in C#/.NET. I was able to accelerate two different low-level image processing algorithms by a factor of 10 while learning a lot and enjoying the process.
Read More

Gotcha with xsd.exe and XmlSerializer

Posted by By sven.huebner.it August 8, 2020Posted inGeneral Development
TL;DR: Always use the /order option when using xsd.exe. If you have ever generated C# classes from an XML schema, chances are you used xsd.exe for that.You probably also expected…
Read More

Posts pagination

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