public class TDKViewDisplayBindingWrapper<TGroup, TDocument, TView> : AbstractViewContent, IUndoHandler, ISelectionHandler,
IClipboardHandler, IReflectionHandler, ISimulationHandler, IDigramPropertyHandler
where TGroup : TDKGroup, new()
where TDocument: TDKDocument, new()
where TView : TDKView<TGroup, TDocument>, new()
{
};
IClipboardHandler, IReflectionHandler, ISimulationHandler, IDigramPropertyHandler
where TGroup : TDKGroup, new()
where TDocument: TDKDocument, new()
where TView : TDKView<TGroup, TDocument>, new()
{
};
Test1 t1 = new Test1();
...
...Test1 必须要实现TDKGroup 接口 其他的一样要实现where后面的接口 ,才能放到TDKViewDisplayBindingWrapper后面的<>括号里TDKViewDisplayBindingWrapper<t1,...> tdk = new TDKViewDisplayBindingWrapper<t1,...>();where T:new()指明了创建T的实例时应该使用的构造函数。