c#标记方法如反射调用
我有一个课堂上有反射调用的方法,可以根据执行环境自动调用它们。
我想指出这些方法是通过反射调用的,因为它似乎不使用任何不知道应用程序的人。
我已经在班级的文档部分中指出了这一点,但我想询问是否有更好的方法来避免发出警报的声音。
I have a class whitch have methods called by reflection to call automatically them depending on execution environment.
I wanted to indicate that these methods are called by reflection because it seems not to be used to anyone who doesn't have knowledge of the application.
I have indicated it in the documentation section of the class but I want to ask if there is any better way also to avoid alerts of SonarQube.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会尝试 。
有一个 sonarqube resharper clt clt Plugin 可能会对您有所帮助。
I would try
UsedImplicitlyAttribute
of JetBrains Annotations.There is a SonarQube ReSharper CLT Plugin that might help you.