Skip to content

Instantly share code, notes, and snippets.

Aspect Oriented Programming with Action<> 2
public static void LogOnFailure(Action action)
{
try
{
action();
}
catch (Exception exception)
{
Logger.Log(exception.Message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment