i have interface:
public interface Inx<T>
{
T Set(Data data);
}
simple class with this metod
public class Base
{
??? Set(Data data) { ... }
}
and parent class like that:
public class Parent : Base, Inx<Parent>
{
...
}
i want to return Parent type from Set metod in child class It's possible ? I need it do to something like that:
list.Add(new Parent().Set(data));
Now i have to do that:
T t = new T();
t.Set(data);
list.Add(t);
And its little annoying, i have to use it many time