Force attribute usage in subclass of abstract superclass

前端 未结 2 790
既然无缘
既然无缘 2021-01-11 15:29

How can I force a subclass to implement certain Attributes of its superclass? The reason is that I want to use Attributes for general information about the class, e.g. \"Dis

2条回答
  •  心在旅途
    2021-01-11 16:12

    In addition to the answers from that other thread:

    You could use FxCop and implement a custom rule that checks if your attributes are present.

提交回复
热议问题