3
|
David Williams · 技术社区 · 15 年前 |
![]() |
1
2
在过去,我复制了用于设置HTMLControls和WebControls属性的代码。不过,还有一个想法:
|
![]() |
2
3
htmlcontrol和webcontrol都实现了接口 IAttributeAccessor (明确)。使用 IAttributeAccessor.SetAttribute 相反。我不是一个vb.net程序员,所以我把编写代码的任务留给了读者。;) |
![]() |
3
2
我知道你的意思。理论上,您可以执行以下操作之一:
最终,没有任何公共桥(没有公共的基类或接口)。我们在讨论什么样的作业? |
![]() |
4
0
西蒙的回答很有效:
|