试题详情
- 单项选择题你正在创建一个自定义服务器控件,并且你需要此控件支持在Visual Studio 2005设计器中使用。为此,你创建了两个类:一个是从Composite Control继承的myControl类,另一个是从Composite ControlDesigner继承的myControlDesigner类。你需要把myControl和myControlDesigner进行关联。下面那一个可以正确达到此目的?()
A、[Designer(myControlDesigner)] public class myControl: CompositeControl
B、[Designer(typeof(myControl))] public class myControlDesigner: CompositeControlDesigner
C、[Designer(myControl)] public class myControlDesigner: CompositeControlDesigner
D、[Designer(typeof(myControlDesigner))] public class myControl: CompositeControl
- D
关注下方微信公众号,在线模考后查看
热门试题