May be a simple question..
I have an interface:
public interface ISanitizer
{
T Sanitize(T data_);
}
And an implementi
Your problem is that the method SanitizeTas the return type, but the method actually returns astringfromRegex.Replace`.
Try changing the method to return a string instead:
public virtual string Sanitize(T filename_)
That means you need to change your method in the interface to return string as well.