Latest posts

InvalidOperationException: “Exception” in disguise? Or just the new ApplicationException?

Microsoft added ApplicationException with the idea that all exceptions that you made should derive from it. Fair point, you should be able to handle your own…

Why autogenerated MSTests are bad for you!

MS can generate complete test classes for you that test and access all methods and properties, no matter if they are private or public. Isn’t that awesome?…

Do NOT catch that exception!

Ohhh, I’ve recently seen one too many applications where the developers try to be safe by catching exceptions all over the place. It can be everything from a…

Reasons for a C# developer to learn VB.NET

I found the question above on Stack Overflow today, and it got really lovely answers.

Simplified WCF services

Being an old C++ developer I’ve always found myself doing everything by myself from the bottom and up. I’ve always created my own DALs, socket handling etc. I…

Autofac, starting components

Some of my components need to be started after all of them have been created. This is quite easy to solve with Autofac. The components simply implement this…

NLog configuration

I’ve switched from my own logging framework to NLog. NLog seems quite flexible, is under active development and suits my needs perfectly. I’m logging both to…

Simplified Autofac registrations

I’m building an application which will monitor other applications (memory usage, starting them if they crash etc.). I’m trying to stop re-inventing the wheel…

Introducing a validation library

I’ve made a validation library which is focusing on model validation. Why another one when there are a few good ones like EntLib Validation Application Block…

Extension methods to simplify database handling

Two extension methods used to simplify database handling.