Sharing code using Service Classes in C#
The simplest way to share code in most programming languages is to use functions. But this is not always possible with modern C# because of all the Dependency Injection involved.
The problem
Consider the following static method that tells you if an email looks valid:
public static class Utils
{
public