c# - ReSharper 警告仍显示为 UsedImplicitlyAttribute

标签 c# resharper warnings

ReSharper 警告我未调用私有(private)方法。它是通过反射调用的,所以我不想删除该方法,并且(部分)为此目的设计了 UsedImplicitlyAttribute。但 ReSharper 仍然警告我,即使在使用该属性装饰方法之后也是如此。这似乎是一个错误,但也许我遗漏了一些选项(ReSharper 的选项不多)。有谁知道我该如何解决?构建项目失败。

最佳答案

我假设您已经阅读了 the documentation on how to incorporate the Code Annotations items into your own code .我过去发现 R# 的这部分选项可能有点不稳定:

R# options page

有时需要多次访问此页面,您将声明复制到其中的 namespace 才会出现在列表中。但是一旦它完成了,并且您勾选了复选框,它就应该可以正常工作了。

关于c# - ReSharper 警告仍显示为 UsedImplicitlyAttribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5557821/

相关文章:

c# - 进程内存大小 - 不同的计数器

sass - 有没有办法将 ReSharper 代码清理设置应用于 .scss (SASS) 文件?

visual-studio-2008 - 按类型过滤 Visual Studio(或 ReSharper)Intellisense

visual-studio - Visual Studio 在空行上添加了空格

ocaml - 避免警告 "Warning 21: this statement never returns (or has an unsound type.)"

c - 修复签名和未签名警告之间比较的解决方案

javascript - ASP.NET TextBox OnTextChanged 事件未触发

c# - Azure表存储: Which string comparison method is used?

c# - 属性名称不同时Automapper的使用

spring - 在 Hybris 控制台中处理警告