I’m trying to create a simple DataContainer class,
public interface DataObject
{
string Name { get; set; }
uint ID { get; set; }
}
[Serializable()]
public class DataContainer<T> where T : DataObject
{
}
…but if I want DataContainer to also inherit DataObject – how do I do that?
What’s wrong with