Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Last active Aug 8, 2022
Embed
What would you like to do?
using System;
using System.IO;
namespace CsharpSingleResponsibilityPrinciple
{
class Wrapper
{
public void HandleAdd(FileLogger logger, Database db, User user)
{
try
{
user.Add(db);
}
catch (Exception error)
{
logger.Handle(error.ToString());
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment