Single responsibility principle

When talking about SOLID principles, we will start off with the single responsibility principle (SRP). Here, we are actually saying that a class has a specific task that it needs to fulfill and it should not do anything else.

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.