aspnetcore Registering ASP.NET Core Site as Windows Service This post explains how to register an ASP.NET Core website as a Windows service via NSSM.
csharp Flurl multipart/form-data Unexpected End of Stream This is a solution to an IOException "Unexpected end of Stream" when using Flurl to post multipart/form-data.
csharp Get LiteDb Collection From CLR Type This post shows how to resolve a `ILiteCollection` from LiteDb using a `System.Type` instance.
csharp Swap Two Variables Without Temporary Variable This example shows how to swap two variables without using a temporary variable.
csharp Change WPF Button Visibility Based On Command.CanExecute This post shows how to set WPF button's visibility based on whether or not its bound command can execute.
wpf WPF ListBox Selection via CheckBox Here's an easy way to control your ListBox's selection by using a CheckBox in each item.
wpf Binding To Attached Properties This quick post shows how to bind to attached properties in xaml and code-behind.
csharp Polymorphic Serialization in System.Text.Json This post offers a solution for polymorphic json serialization using System.Text.Json.
wpf WPF and MSTest This post demonstrates a solution for overcoming the exception that is thrown when trying to test a WPF class with MSTest.
wpf Fixing Relative WPF Bindings On Custom Properties I recently spent a lot of time troubleshooting a problem where my relative WPF bindings were not behaving as expected for custom dependency properties that I had defined. This post explores the problem and the solution.
csharp Fire And Forget Tasks This post demonstrates a couple of different ways to execute fire and forget tasks in C#.
csharp WPF Version Numbers This post examines a couple of different ways that WPF version numbers can be stored and retrieved.
csharp Notify Collection Changed Event Args Reference If you're like me and find yourself forgetting how the event args work in INotifyCollectionChanged, then here's a quick reference that might be useful.
csharp Abstract Classes and Interfaces Abstract classes and interfaces can be used for similar purposes but it's important to understand the differences between the two.
csharp Cancellation Types in C# If you want to support cancellation in C#, you'll want to get familiar with the CancellationTokenSource and CancellationToken types.
csharp Best Practices for Structs in C# Structs in C# are value types and thus are meant for holding data structures that are usually immutable. If you're going to write a struct, consider the following practices.