Why don't all System.Web.UI.WebControl classes with Text properties implement ITextControl?

前端 未结 1 820
借酒劲吻你
借酒劲吻你 2021-02-14 03:11

I\'m curious why only some System.Web.UI.WebControl controls implement certain interfaces when they have the same properties of an interface.

For instance,

1条回答
  •  走了就别回头了
    2021-02-14 03:43

    I think it was designed ok, I don't think it was an oversight; those are the controls where text is the primary focus of the purpose of the control. I do see your point because that would be very convenient to have controls utilize more of these types of interfaces.

    0 讨论(0)
提交回复
热议问题