Select Page

Open Closed Principle in C#

Software entities should be open for extension and closed for modification. An entity should allow its behavior to be extended without the need to modify its source code. If we change the source code of an existing bug-free entity in order to support a change in...

Single Responsibility Principle in C#

A class should only have one responsibility and a class should only have one reason to change. SRP is trying to enforce high cohesion and loose coupling in our classes, our classes should only contain elements that are closely related. Having unrelated elements in our...