In this article we are going to discuss SOLID principles in C#. There are many blogs, articles are available on the internet regarding SOLID principles but in this particular article I will try to explain to you with as much as simple.
SOLID principles Introduction
The SOLID principles are a set of five design principles intended to make software designs more understandable, flexible, and maintainable. They were introduced by Robert C.Martin(Uncle Bob) and are widely regarded as best practices for object-oriented software design.
SOLID is an acronym for the following:
Why need SOLID Principals?
Developers build applications with good and tidy designs using their knowledge and experience. But over time, applications might develop bugs. The application design must be altered for every change request or new feature request. After some time, we might need to put in a lot of effort, even for simple tasks, and it might require a full working knowledge of the entire system. But we can't blame change or new feature requests. They are part of software development. We can't stop them or refuse them either. So who is the culprit here? It is the design of the application.
So we need to Choose the correct Design Patterns to build the software based on its specifications. We go through the Design Principles like SOLID Pricipals.
Advantage of SOLID Principals
Disadvantages of SOLID Principles in C#