Monthly Archives: September 2016

How to catch multiple types of exceptions in one catch block

Catch ’em all Last week a colleague asked: what’s the best way to catch different types of exceptions that need to be handled in the same way? He saw a couple of options himself, for example:

Or an other proposal:

Exception Filters While both of these options work, since C# 6 there is an… Read More »

Category: C#

Fix Visual Studio 2015 random crash

Visual Studio 2015 randomly crashing -> FIX! A colleague of mine was having issues with Visual Studio 2015. Every now and then his instance of Visual Studio would just crash. He thought it would crash more often when pressing CTRL+X or Backspace… but I don’t believe him, I think it was just random! After trying… Read More »

UWP Simple PDF viewer

Some months ago, I blogged about how to display PDF files in your UWP app: Displaying PDF files in a UWP app When I look at the stats of my blog, I notice that that particular blogpost gets a lot of visitors. Also, I regularly get mails from people having questions about displaying PDF files in a UWP… Read More »