Adding Host to WPF for Dependency Injection

One of the primary frameworks I used to use for DI was Unity Container. It’s a wonderful project but with support from Microsoft for host.services I’ve abandoned Unity Container in favor of the Microsoft solution. The main reason is that I see it everywhere. Maybe it’s the hot, new thing but using it and asking […]

.

Read more

Parsing a nullable primitive to a primitive with generics and the Try-Parse pattern

There is a lot to unpack in that title. Let’s start with the Try-Parse pattern. This pattern is defined in Microsoft’s “Exceptions and Performance” article (which itself comes from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition) and is likely one you are very familiar with. Fundamentally the return type […]

.

Read more

Starting over

Starting over by loading the archive of all my old posts.

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712