В приведенной ниже иерархии классов показано, как определить ограничение типа для T (where T : class, new())?
abstract class AbstractComponent : Parent, IComponentType, IRelationship
{}
class ChildComponent : AbstractComponent
{}
Подробнее здесь: https://stackoverflow.com/questions/790 ... ents-inter
Мобильная версия