May be a simple question..
I have an interface:
public interface ISanitizer
{
T Sanitize(T data_);
}
And an implementi
In your code you are returning a string from a generic type which could be anything.
Change your code to this if you want a generic return type:
public interface ISanitizer
{
T Sanitize(T data_);
}
public class BasicFilenameSanitizer : ISanitizer
If you simply want to always return a string you only need to change the method return type:
public interface ISanitizer
{
string Sanitize(T data_);
}
public virtual string Sanitize(T filename_)