Fortunately, you can achieve this simply and without writing any code at all by using the extension points provided by the static analysis framework. This is known as a Rule Set.
幸运的是,您可以通过使用由静态分析框架提供的扩展点来轻松地实现它,而且不需要编写任何代码。
Identifies the points in the static method that can be extended.
标识可在静态方法中扩展的点。
Static join points allow aspects to define new members on a class.
静态连接点允许方面定义类上的新成员。
应用推荐