SOLID Principles - Five Principles of Object-Oriented Programming and Design

This is the first of what will be a series of posts on each of The SOLID Principles. Before we go into details lets look at an overview of the principles. Every software developer should be aware of the acronym “SOLID” and what it stands for. If you have not then you really should read this blog to learn it. Even if you do, there‚Äôs a good chance your understanding might be a bit fuzzy and a refresher on it never hurt anyone.

C# Mutex for running single instance of a program

Here is some sample code that can be used in a c# application to make sure that only one instance of the program can run at a time. In order to do this you will use a Mutex (Mutual Exclusion) which is a type of system wide lock. In laymens terms a Mutex is like a claim to ownership of a idea. You’re telling the world that no one else can have that idea as long as you are holding claim to it.