I need to make an interface like this:
public interface ISomething
{
List<T> ListA { get; set; }
List<T> ListB { get; set; }
}
And then implement it like this:
public class Something01: ISomething
{
public List<string> ListA { get; set; }
public List<Person> ListB { get; set; }
}
Or like this:
public class Something02: ISomething
{
public List<int> ListA { get; set; }
public List<string> ListB { get; set; }
}
But looking at other posts it seems like I have to define T in top of my interface class. Which forces me to one specific type for all properties when implementing. Can this be done somehow?
Thanks