Posts

How to catch OverflowExceptions

The OverflowException is thrown in .NET when an arithmetic operation or casting, inside a checked context, results in a type overflow. In…

Read More →

Closing WPF Dialogs from the ViewModel

Here are two elegant ways that you can use to close a WPF window dialog from the ViewModel. Using Events The first solution is by using an…

Read More →

Working with a legacy code base

After many years working with legacy code bases, I decided to put together valuable lessons that I learned along the way. Lesson 1: Respect…

Read More →

Different user information per git repository

If you want to commit your changes without using the global name and email, you can specify a different one by adding the following…

Read More →

ASP.NET Conditional Validation

Conditional validation can be very useful, and I’m glad that I found an elegant way of doing it. You can use the same View-Model on two…

Read More →

Unit Testing NHibernate Mappings

What is the best approach to map your domain classes to the database using NHibernate? After doing some tests, I believe that the best…

Read More →