Can I force subclasses to override a method without making it abstract?

前端 未结 7 671
别那么骄傲
别那么骄傲 2021-01-02 12:22

I have a class with some abstract methods, but I want to be able to edit a subclass of that class in the designer. However, the designer can\'t edit the subclass unless it

7条回答
  •  轮回少年
    2021-01-02 12:28

    To use ms as an example...

    Microsoft does this with the user control templates in silverlight. #if is perfectly acceptable and it is doubtful the the tooling will work around it anytime soon. IMHO

提交回复
热议问题