Code

SOLID Principles - Single Responsibility Principle

The first of the SOLID Principles to cover is the letter S which is the Single Responsibility Principle (SRP). What is the Single Responsibility Principle (SRP)? The Single Responsibility Principle (SRP) states that “A class should have one, and only one, reason to change.

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.

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.