问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

你正在创建一个自定义服务器控件 并且你需要此控件支持在Visual Studio 2005设计器中使用。为此


你正在创建一个自定义服务器控件,并且你需要此控件支持在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

参考答案
您可能感兴趣的试题